From f83a34b57abe8e4275891ecd80a639402fd3b7aa Mon Sep 17 00:00:00 2001 From: Denys Kuchma Date: Tue, 5 May 2026 13:38:50 +0300 Subject: [PATCH] chunk uploads for large test syncs --- dist/index.js | 1983 +++------------------------------------- src/reporter.js | 228 ++++- tests/reporter_test.js | 267 ++++++ 3 files changed, 589 insertions(+), 1889 deletions(-) diff --git a/dist/index.js b/dist/index.js index 51245ca2..b60e9986 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,8 +1,77 @@ -module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var n=r[t]={i:t,l:false,exports:{}};var i=true;try{e[t].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete r[t]}n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(104)}t(__webpack_require__);return startup()}({1:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const o=r(2357);const c=a(r(3129));const u=a(r(5622));const l=r(1669);const p=a(r(3672));const d=l.promisify(c.exec);const f=l.promisify(c.execFile);function cp(e,t,r={}){return s(this,void 0,void 0,function*(){const{force:n,recursive:i,copySourceDirectory:a}=readCopyOptions(r);const s=(yield p.exists(t))?yield p.stat(t):null;if(s&&s.isFile()&&!n){return}const o=s&&s.isDirectory()&&a?u.join(t,u.basename(e)):t;if(!(yield p.exists(e))){throw new Error(`no such file or directory: ${e}`)}const c=yield p.stat(e);if(c.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,o,0,n)}}else{if(u.relative(e,o)===""){throw new Error(`'${o}' and '${e}' are the same file`)}yield copyFile(e,o,n)}})}t.cp=cp;function mv(e,t,r={}){return s(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=true;if(yield p.isDirectory(t)){t=u.join(t,u.basename(e));n=yield p.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(u.dirname(t));yield p.rename(e,t)})}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,function*(){if(p.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=p.getCmdPath();if(yield p.isDirectory(e,true)){yield d(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield d(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield p.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield p.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield f(`rm`,[`-rf`,`${e}`])}else{yield p.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,function*(){o.ok(e,"a path argument must be provided");yield p.mkdir(e,{recursive:true})})}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(p.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""})}t.which=which;function findInPath(e){return s(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(p.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(u.delimiter)){if(e){t.push(e)}}}if(p.isRooted(e)){const r=yield p.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(u.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(u.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield p.tryGetExecutablePath(u.join(i,e),t);if(r){n.push(r)}}return n})}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return s(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield p.readdir(e);for(const a of i){const i=`${e}/${a}`;const s=`${t}/${a}`;const o=yield p.lstat(i);if(o.isDirectory()){yield cpDirRecursive(i,s,r,n)}else{yield copyFile(i,s,n)}}yield p.chmod(t,(yield p.stat(e)).mode)})}function copyFile(e,t,r){return s(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t);yield p.unlink(t)}catch(e){if(e.code==="EPERM"){yield p.chmod(t,"0666");yield p.unlink(t)}}const r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null)}else if(!(yield p.exists(t))||r){yield p.copyFile(e,t)}})}},12:function(e,t,r){var n=r(6893);var i=r(4439)("iterator");var a=r(6438);e.exports=r(5496).getIteratorMethod=function(e){if(e!=undefined)return e[i]||e["@@iterator"]||a[n(e)]}},13:function(e,t){t.f={}.propertyIsEnumerable},21:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(1451);const i=(0,n.default)("React.Component");var a=i;t.default=a},32:function(e,t,r){const n=r(5369);const i=(e,t)=>new n(e,t).patch;e.exports=i},55:function(e,t,r){"use strict";t.__esModule=true;var n=r(5013);var i=_interopRequireDefault(n);var a=r(8715);var s=_interopRequireDefault(a);var o=r(4061);var c=_interopRequireDefault(o);var u=r(7272);var l=_interopRequireDefault(u);var p=r(2979);var d=_interopRequireDefault(p);var f=r(2973);var m=_interopRequireDefault(f);var g=r(3208);var _=_interopRequireDefault(g);var h=r(3785);var y=_interopRequireDefault(h);var v=r(5852);var T=_interopRequireDefault(v);var S=r(5767);var b=_interopRequireDefault(S);var E=r(8243);var x=_interopRequireWildcard(E);var D=r(437);var C=_interopRequireDefault(D);var A=r(6333);var k=_interopRequireDefault(A);var P=r(8011);var N=_interopRequireWildcard(P);var O=r(6450);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var F=0;function getCache(e,t,r){var n=O.scope.get(e.node)||[];for(var i=n,a=Array.isArray(i),s=0,i=a?i:(0,d.default)(i);;){var o;if(a){if(s>=i.length)break;o=i[s++]}else{s=i.next();if(s.done)break;o=s.value}var c=o;if(c.parent===t&&c.path===e)return c}n.push(r);if(!O.scope.has(e.node)){O.scope.set(e.node,n)}}function gatherNodeParts(e,t){if(N.isModuleDeclaration(e)){if(e.source){gatherNodeParts(e.source,t)}else if(e.specifiers&&e.specifiers.length){for(var r=e.specifiers,n=Array.isArray(r),i=0,r=n?r:(0,d.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}var s=a;gatherNodeParts(s,t)}}else if(e.declaration){gatherNodeParts(e.declaration,t)}}else if(N.isModuleSpecifier(e)){gatherNodeParts(e.local,t)}else if(N.isMemberExpression(e)){gatherNodeParts(e.object,t);gatherNodeParts(e.property,t)}else if(N.isIdentifier(e)){t.push(e.name)}else if(N.isLiteral(e)){t.push(e.value)}else if(N.isCallExpression(e)){gatherNodeParts(e.callee,t)}else if(N.isObjectExpression(e)||N.isObjectPattern(e)){for(var o=e.properties,c=Array.isArray(o),u=0,o=c?o:(0,d.default)(o);;){var l;if(c){if(u>=o.length)break;l=o[u++]}else{u=o.next();if(u.done)break;l=u.value}var p=l;gatherNodeParts(p.key||p.argument,t)}}}var w={For:function For(e){for(var t=N.FOR_INIT_KEYS,r=Array.isArray(t),n=0,t=r?t:(0,d.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{n=t.next();if(n.done)break;i=n.value}var a=i;var s=e.get(a);if(s.isVar())e.scope.getFunctionParent().registerBinding("var",s)}},Declaration:function Declaration(e){if(e.isBlockScoped())return;if(e.isExportDeclaration()&&e.get("declaration").isDeclaration())return;e.scope.getFunctionParent().registerDeclaration(e)},ReferencedIdentifier:function ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement:function ForXStatement(e,t){var r=e.get("left");if(r.isPattern()||r.isIdentifier()){t.constantViolations.push(r)}},ExportDeclaration:{exit:function exit(e){var t=e.node,r=e.scope;var n=t.declaration;if(N.isClassDeclaration(n)||N.isFunctionDeclaration(n)){var i=n.id;if(!i)return;var a=r.getBinding(i.name);if(a)a.reference(e)}else if(N.isVariableDeclaration(n)){for(var s=n.declarations,o=Array.isArray(s),c=0,s=o?s:(0,d.default)(s);;){var u;if(o){if(c>=s.length)break;u=s[c++]}else{c=s.next();if(c.done)break;u=c.value}var l=u;var p=N.getBindingIdentifiers(l);for(var f in p){var m=r.getBinding(f);if(m)m.reference(e)}}}}},LabeledStatement:function LabeledStatement(e){e.scope.getProgramParent().addGlobal(e.node);e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression:function AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression:function UpdateExpression(e,t){t.constantViolations.push(e.get("argument"))},UnaryExpression:function UnaryExpression(e,t){if(e.node.operator==="delete"){t.constantViolations.push(e.get("argument"))}},BlockScoped:function BlockScoped(e){var t=e.scope;if(t.path===e)t=t.parent;t.getBlockParent().registerDeclaration(e)},ClassDeclaration:function ClassDeclaration(e){var t=e.node.id;if(!t)return;var r=t.name;e.scope.bindings[r]=e.scope.getBinding(r)},Block:function Block(e){var t=e.get("body");for(var r=t,n=Array.isArray(r),i=0,r=n?r:(0,d.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}var s=a;if(s.isFunctionDeclaration()){e.scope.getBlockParent().registerDeclaration(s)}}}};var I=0;var L=function(){function Scope(e,t){(0,l.default)(this,Scope);if(t&&t.block===e.node){return t}var r=getCache(e,t,this);if(r)return r;this.uid=I++;this.parent=t;this.hub=e.hub;this.parentBlock=e.parent;this.block=e.node;this.path=e;this.labels=new c.default}Scope.prototype.traverse=function traverse(e,t,r){(0,T.default)(e,t,this,r,this.path)};Scope.prototype.generateDeclaredUidIdentifier=function generateDeclaredUidIdentifier(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"temp";var t=this.generateUidIdentifier(e);this.push({id:t});return t};Scope.prototype.generateUidIdentifier=function generateUidIdentifier(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"temp";return N.identifier(this.generateUid(e))};Scope.prototype.generateUid=function generateUid(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"temp";e=N.toIdentifier(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");var t=void 0;var r=0;do{t=this._generateUid(e,r);r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));var n=this.getProgramParent();n.references[t]=true;n.uids[t]=true;return t};Scope.prototype._generateUid=function _generateUid(e,t){var r=e;if(t>1)r+=t;return"_"+r};Scope.prototype.generateUidIdentifierBasedOnNode=function generateUidIdentifierBasedOnNode(e,t){var r=e;if(N.isAssignmentExpression(e)){r=e.left}else if(N.isVariableDeclarator(e)){r=e.id}else if(N.isObjectProperty(r)||N.isObjectMethod(r)){r=r.key}var n=[];gatherNodeParts(r,n);var i=n.join("$");i=i.replace(/^_/,"")||t||"ref";return this.generateUidIdentifier(i.slice(0,20))};Scope.prototype.isStatic=function isStatic(e){if(N.isThisExpression(e)||N.isSuper(e)){return true}if(N.isIdentifier(e)){var t=this.getBinding(e.name);if(t){return t.constant}else{return this.hasBinding(e.name)}}return false};Scope.prototype.maybeGenerateMemoised=function maybeGenerateMemoised(e,t){if(this.isStatic(e)){return null}else{var r=this.generateUidIdentifierBasedOnNode(e);if(!t)this.push({id:r});return r}};Scope.prototype.checkBlockScopedCollisions=function checkBlockScopedCollisions(e,t,r,n){if(t==="param")return;if(t==="hoisted"&&e.kind==="let")return;var i=t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&(t==="let"||t==="const");if(i){throw this.hub.file.buildCodeFrameError(n,x.get("scopeDuplicateDeclaration",r),TypeError)}};Scope.prototype.rename=function rename(e,t,r){var n=this.getBinding(e);if(n){t=t||this.generateUidIdentifier(e).name;return new y.default(n,e,t).rename(r)}};Scope.prototype._renameFromMap=function _renameFromMap(e,t,r,n){if(e[t]){e[r]=n;e[t]=null}};Scope.prototype.dump=function dump(){var e=(0,_.default)("-",60);console.log(e);var t=this;do{console.log("#",t.block.type);for(var r in t.bindings){var n=t.bindings[r];console.log(" -",r,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(t=t.parent);console.log(e)};Scope.prototype.toArray=function toArray(e,t){var r=this.hub.file;if(N.isIdentifier(e)){var n=this.getBinding(e.name);if(n&&n.constant&&n.path.isGenericType("Array"))return e}if(N.isArrayExpression(e)){return e}if(N.isIdentifier(e,{name:"arguments"})){return N.callExpression(N.memberExpression(N.memberExpression(N.memberExpression(N.identifier("Array"),N.identifier("prototype")),N.identifier("slice")),N.identifier("call")),[e])}var i="toArray";var a=[e];if(t===true){i="toConsumableArray"}else if(t){a.push(N.numericLiteral(t));i="slicedToArray"}return N.callExpression(r.addHelper(i),a)};Scope.prototype.hasLabel=function hasLabel(e){return!!this.getLabel(e)};Scope.prototype.getLabel=function getLabel(e){return this.labels.get(e)};Scope.prototype.registerLabel=function registerLabel(e){this.labels.set(e.node.label.name,e)};Scope.prototype.registerDeclaration=function registerDeclaration(e){if(e.isLabeledStatement()){this.registerLabel(e)}else if(e.isFunctionDeclaration()){this.registerBinding("hoisted",e.get("id"),e)}else if(e.isVariableDeclaration()){var t=e.get("declarations");for(var r=t,n=Array.isArray(r),i=0,r=n?r:(0,d.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}var s=a;this.registerBinding(e.node.kind,s)}}else if(e.isClassDeclaration()){this.registerBinding("let",e)}else if(e.isImportDeclaration()){var o=e.get("specifiers");for(var c=o,u=Array.isArray(c),l=0,c=u?c:(0,d.default)(c);;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}var f=p;this.registerBinding("module",f)}}else if(e.isExportDeclaration()){var m=e.get("declaration");if(m.isClassDeclaration()||m.isFunctionDeclaration()||m.isVariableDeclaration()){this.registerDeclaration(m)}}else{this.registerBinding("unknown",e)}};Scope.prototype.buildUndefinedNode=function buildUndefinedNode(){if(this.hasBinding("undefined")){return N.unaryExpression("void",N.numericLiteral(0),true)}else{return N.identifier("undefined")}};Scope.prototype.registerConstantViolation=function registerConstantViolation(e){var t=e.getBindingIdentifiers();for(var r in t){var n=this.getBinding(r);if(n)n.reassign(e)}};Scope.prototype.registerBinding=function registerBinding(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){var n=t.get("declarations");for(var i=n,a=Array.isArray(i),s=0,i=a?i:(0,d.default)(i);;){var o;if(a){if(s>=i.length)break;o=i[s++]}else{s=i.next();if(s.done)break;o=s.value}var c=o;this.registerBinding(e,c)}return}var u=this.getProgramParent();var l=t.getBindingIdentifiers(true);for(var p in l){for(var f=l[p],m=Array.isArray(f),g=0,f=m?f:(0,d.default)(f);;){var _;if(m){if(g>=f.length)break;_=f[g++]}else{g=f.next();if(g.done)break;_=g.value}var h=_;var y=this.getOwnBinding(p);if(y){if(y.identifier===h)continue;this.checkBlockScopedCollisions(y,e,p,h)}if(y&&y.path.isFlow())y=null;u.references[p]=true;this.bindings[p]=new C.default({identifier:h,existing:y,scope:this,path:r,kind:e})}}};Scope.prototype.addGlobal=function addGlobal(e){this.globals[e.name]=e};Scope.prototype.hasUid=function hasUid(e){var t=this;do{if(t.uids[e])return true}while(t=t.parent);return false};Scope.prototype.hasGlobal=function hasGlobal(e){var t=this;do{if(t.globals[e])return true}while(t=t.parent);return false};Scope.prototype.hasReference=function hasReference(e){var t=this;do{if(t.references[e])return true}while(t=t.parent);return false};Scope.prototype.isPure=function isPure(e,t){if(N.isIdentifier(e)){var r=this.getBinding(e.name);if(!r)return false;if(t)return r.constant;return true}else if(N.isClass(e)){if(e.superClass&&!this.isPure(e.superClass,t))return false;return this.isPure(e.body,t)}else if(N.isClassBody(e)){for(var n=e.body,i=Array.isArray(n),a=0,n=i?n:(0,d.default)(n);;){var s;if(i){if(a>=n.length)break;s=n[a++]}else{a=n.next();if(a.done)break;s=a.value}var o=s;if(!this.isPure(o,t))return false}return true}else if(N.isBinary(e)){return this.isPure(e.left,t)&&this.isPure(e.right,t)}else if(N.isArrayExpression(e)){for(var c=e.elements,u=Array.isArray(c),l=0,c=u?c:(0,d.default)(c);;){var p;if(u){if(l>=c.length)break;p=c[l++]}else{l=c.next();if(l.done)break;p=l.value}var f=p;if(!this.isPure(f,t))return false}return true}else if(N.isObjectExpression(e)){for(var m=e.properties,g=Array.isArray(m),_=0,m=g?m:(0,d.default)(m);;){var h;if(g){if(_>=m.length)break;h=m[_++]}else{_=m.next();if(_.done)break;h=_.value}var y=h;if(!this.isPure(y,t))return false}return true}else if(N.isClassMethod(e)){if(e.computed&&!this.isPure(e.key,t))return false;if(e.kind==="get"||e.kind==="set")return false;return true}else if(N.isClassProperty(e)||N.isObjectProperty(e)){if(e.computed&&!this.isPure(e.key,t))return false;return this.isPure(e.value,t)}else if(N.isUnaryExpression(e)){return this.isPure(e.argument,t)}else{return N.isPureish(e)}};Scope.prototype.setData=function setData(e,t){return this.data[e]=t};Scope.prototype.getData=function getData(e){var t=this;do{var r=t.data[e];if(r!=null)return r}while(t=t.parent)};Scope.prototype.removeData=function removeData(e){var t=this;do{var r=t.data[e];if(r!=null)t.data[e]=null}while(t=t.parent)};Scope.prototype.init=function init(){if(!this.references)this.crawl()};Scope.prototype.crawl=function crawl(){F++;this._crawl();F--};Scope.prototype._crawl=function _crawl(){var e=this.path;this.references=(0,s.default)(null);this.bindings=(0,s.default)(null);this.globals=(0,s.default)(null);this.uids=(0,s.default)(null);this.data=(0,s.default)(null);if(e.isLoop()){for(var t=N.FOR_INIT_KEYS,r=Array.isArray(t),n=0,t=r?t:(0,d.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{n=t.next();if(n.done)break;i=n.value}var a=i;var o=e.get(a);if(o.isBlockScoped())this.registerBinding(o.node.kind,o)}}if(e.isFunctionExpression()&&e.has("id")){if(!e.get("id").node[N.NOT_LOCAL_BINDING]){this.registerBinding("local",e.get("id"),e)}}if(e.isClassExpression()&&e.has("id")){if(!e.get("id").node[N.NOT_LOCAL_BINDING]){this.registerBinding("local",e)}}if(e.isFunction()){var c=e.get("params");for(var u=c,l=Array.isArray(u),p=0,u=l?u:(0,d.default)(u);;){var f;if(l){if(p>=u.length)break;f=u[p++]}else{p=u.next();if(p.done)break;f=p.value}var m=f;this.registerBinding("param",m)}}if(e.isCatchClause()){this.registerBinding("let",e)}var g=this.getProgramParent();if(g.crawling)return;var _={references:[],constantViolations:[],assignments:[]};this.crawling=true;e.traverse(w,_);this.crawling=false;for(var h=_.assignments,y=Array.isArray(h),v=0,h=y?h:(0,d.default)(h);;){var T;if(y){if(v>=h.length)break;T=h[v++]}else{v=h.next();if(v.done)break;T=v.value}var S=T;var b=S.getBindingIdentifiers();var E=void 0;for(var x in b){if(S.scope.getBinding(x))continue;E=E||S.scope.getProgramParent();E.addGlobal(b[x])}S.scope.registerConstantViolation(S)}for(var D=_.references,C=Array.isArray(D),A=0,D=C?D:(0,d.default)(D);;){var k;if(C){if(A>=D.length)break;k=D[A++]}else{A=D.next();if(A.done)break;k=A.value}var P=k;var O=P.scope.getBinding(P.node.name);if(O){O.reference(P)}else{P.scope.getProgramParent().addGlobal(P.node)}}for(var F=_.constantViolations,I=Array.isArray(F),L=0,F=I?F:(0,d.default)(F);;){var M;if(I){if(L>=F.length)break;M=F[L++]}else{L=F.next();if(L.done)break;M=L.value}var R=M;R.scope.registerConstantViolation(R)}};Scope.prototype.push=function push(e){var t=this.path;if(!t.isBlockStatement()&&!t.isProgram()){t=this.getBlockParent().path}if(t.isSwitchStatement()){t=this.getFunctionParent().path}if(t.isLoop()||t.isCatchClause()||t.isFunction()){N.ensureBlock(t.node);t=t.get("body")}var r=e.unique;var n=e.kind||"var";var i=e._blockHoist==null?2:e._blockHoist;var a="declaration:"+n+":"+i;var s=!r&&t.getData(a);if(!s){var o=N.variableDeclaration(n,[]);o._generated=true;o._blockHoist=i;var c=t.unshiftContainer("body",[o]);s=c[0];if(!r)t.setData(a,s)}var u=N.variableDeclarator(e.id,e.init);s.node.declarations.push(u);this.registerBinding(n,s.get("declarations").pop())};Scope.prototype.getProgramParent=function getProgramParent(){var e=this;do{if(e.path.isProgram()){return e}}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")};Scope.prototype.getFunctionParent=function getFunctionParent(){var e=this;do{if(e.path.isFunctionParent()){return e}}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")};Scope.prototype.getBlockParent=function getBlockParent(){var e=this;do{if(e.path.isBlockParent()){return e}}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")};Scope.prototype.getAllBindings=function getAllBindings(){var e=(0,s.default)(null);var t=this;do{(0,b.default)(e,t.bindings);t=t.parent}while(t);return e};Scope.prototype.getAllBindingsOfKind=function getAllBindingsOfKind(){var e=(0,s.default)(null);for(var t=arguments,r=Array.isArray(t),n=0,t=r?t:(0,d.default)(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{n=t.next();if(n.done)break;i=n.value}var a=i;var o=this;do{for(var c in o.bindings){var u=o.bindings[c];if(u.kind===a)e[c]=u}o=o.parent}while(o)}return e};Scope.prototype.bindingIdentifierEquals=function bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t};Scope.prototype.warnOnFlowBinding=function warnOnFlowBinding(e){if(F===0&&e&&e.path.isFlow()){console.warn("\n You or one of the Babel plugins you are using are using Flow declarations as bindings.\n Support for this will be removed in version 7. To find out the caller, grep for this\n message and change it to a `console.trace()`.\n ")}return e};Scope.prototype.getBinding=function getBinding(e){var t=this;do{var r=t.getOwnBinding(e);if(r)return this.warnOnFlowBinding(r)}while(t=t.parent)};Scope.prototype.getOwnBinding=function getOwnBinding(e){return this.warnOnFlowBinding(this.bindings[e])};Scope.prototype.getBindingIdentifier=function getBindingIdentifier(e){var t=this.getBinding(e);return t&&t.identifier};Scope.prototype.getOwnBindingIdentifier=function getOwnBindingIdentifier(e){var t=this.bindings[e];return t&&t.identifier};Scope.prototype.hasOwnBinding=function hasOwnBinding(e){return!!this.getOwnBinding(e)};Scope.prototype.hasBinding=function hasBinding(e,t){if(!e)return false;if(this.hasOwnBinding(e))return true;if(this.parentHasBinding(e,t))return true;if(this.hasUid(e))return true;if(!t&&(0,m.default)(Scope.globals,e))return true;if(!t&&(0,m.default)(Scope.contextVariables,e))return true;return false};Scope.prototype.parentHasBinding=function parentHasBinding(e,t){return this.parent&&this.parent.hasBinding(e,t)};Scope.prototype.moveBindingTo=function moveBindingTo(e,t){var r=this.getBinding(e);if(r){r.scope.removeOwnBinding(e);r.scope=t;t.bindings[e]=r}};Scope.prototype.removeOwnBinding=function removeOwnBinding(e){delete this.bindings[e]};Scope.prototype.removeBinding=function removeBinding(e){var t=this.getBinding(e);if(t){t.scope.removeOwnBinding(e)}var r=this;do{if(r.uids[e]){r.uids[e]=false}}while(r=r.parent)};return Scope}();L.globals=(0,i.default)(k.default.builtin);L.contextVariables=["arguments","undefined","Infinity","NaN"];t.default=L;e.exports=t["default"]},63:function(e,t,r){"use strict";t.__esModule=true;t.toComputedKey=toComputedKey;t.ensureBlock=ensureBlock;t.arrowFunctionToShadowed=arrowFunctionToShadowed;var n=r(8011);var i=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function toComputedKey(){var e=this.node;var t=void 0;if(this.isMemberExpression()){t=e.property}else if(this.isProperty()||this.isMethod()){t=e.key}else{throw new ReferenceError("todo")}if(!e.computed){if(i.isIdentifier(t))t=i.stringLiteral(t.name)}return t}function ensureBlock(){return i.ensureBlock(this.node)}function arrowFunctionToShadowed(){if(!this.isArrowFunctionExpression())return;this.ensureBlock();var e=this.node;e.expression=false;e.type="FunctionExpression";e.shadow=e.shadow||true}},104:function(e,t,r){const n=r(6470);const i=r(4986);const a=r(1469);const s=r(8349);const o=r(119);const c=r(1297);const u=r(8333);const l=r(3933);const p=r(5931);const d=r(5459);const f=r(9452);const m=process.env.GITHUB_WORKSPACE;async function run(){const e=process.env.GITHUB_REPOSITORY;const[t,r]=e.split("/");const d=new a.GitHub(n.getInput("token",{required:true}));let g=n.getInput("nodiff");const _=n.getInput("framework",{required:true});const h=n.getInput("tests",{required:true});const y=n.getInput("testomatio-key");const v=n.getInput("github-pat");const T=n.getInput("enable-documentation");const S=n.getInput("wiki-doc-name")||"Tests";const b=n.getInput("documentation-branch")||(await d.repos.get({owner:t,repo:r})).data.default_branch;const E=new o(n.getInput("token",{required:true}));const x=new l(_,m);if(n.getInput("typescript"))x.withTypeScript();if(!n.getInput("documentation-branch")){console.log(`Using default branch ${b}`)}try{if(!m){throw new Error("Repository was not fetched, please enable add `actions/checkout` step before")}x.analyze(h);const e=x.getDecorator();const t=x.getStats();if(y){const t=new p(y);t.addTests(e.getDecorator().getTests());t.send()}let r;try{if(!g){r=await E.fetch()}}catch(e){r=null}const i=await analyzeBase(r);const a=s(i.tests,t.tests);a.missing=a.missing.filter(e=>!t.skipped.includes(Object.values(e)[0]));const o=s(i.skipped,t.skipped);console.log(`Added ${a.added.length} tests, removed ${a.missing.length} tests`);console.log(`Total ${t.tests.length} tests`);if(!r&&T&&process.env.GITHUB_REF.endsWith(b)){console.log("Documentation enabled, Going to create Wiki");await createTestDocWikiPage(e)}if(!r)return;const l=new c;l.writeSummary(t.tests.length,t.files.length,_);const d=n.getInput("comment-on-empty");const f=n.getInput("comment-on-skipped");const v=n.getInput("close-on-empty");const S=n.getInput("close-on-skipped");const D=!a.added.length&&!a.missing.length&&!o.added.length&&!o.missing.length;if(d&&d!=="true"&&D){l.write(d)}if(f&&f!=="true"&&o.added.length){l.write(f)}l.writeDiff(a);l.writeSkippedDiff(o);l.writeSkipped(e.getSkippedMarkdownList());if(e.count()<300){l.writeTests(e.getMarkdownList())}else{l.writeSuites(e.getSuitesMarkdownList())}if(D&&!d){console.log("No tests changed, comment not shown")}else{await E.addComment(l)}if(D&&v){await E.close()}if(o.added.length&&S){await E.close()}if(n.getInput("has-tests-label")){let e=n.getInput("has-tests-label");e=e==="true"?"✔️ has tests":e;if(a.added.length){await E.addLabel(e)}else{await E.removeLabel(e)}}if(n.getInput("no-tests-label")){let e=n.getInput("no-tests-label");e=e==="true"?"❌ no tests":e;if(a.added.length){await E.removeLabel(e)}else{await E.addLabel(e)}}}catch(e){if(e instanceof u){E.addComment(e.getComment())}n.setFailed(e.message);console.error(e)}async function analyzeBase(e){if(!e){return x.getEmptyStats()}try{console.log("Comparing with",e.base.sha);await i.exec("git",["checkout",e.base.sha],{cwd:m,stdio:"inherit"});x.analyze(h);await i.exec("git",["switch",e.head.ref],{cwd:m,stdio:"inherit"});return x.getStats()}catch(e){console.error("Can't calculate base test files");console.error(e);return x.getEmptyStats()}}async function createTestDocWikiPage(e){try{await i.exec("git",["clone",`https://${v}@github.com/${process.env.GITHUB_REPOSITORY}.wiki.git`]);const t=f.createTestDoc(`${r}.wiki/${S}.md`,e);if(t){await setTestomatioUserInGit();await i.exec("git",["add","."],{cwd:`${process.cwd()}/${r}.wiki`});await i.exec("git",["commit","-am","Update test docs"],{cwd:`${process.cwd()}/${r}.wiki`});await i.exec("git",["push","origin","master"],{cwd:`${process.cwd()}/${r}.wiki`,stdio:"inherit"})}}catch(e){console.error("Can't create test doc PR");console.error(e)}}async function setTestomatioUserInGit(){await i.exec("git",["config","--global","user.email","testomatio@sdclabs.com"]);await i.exec("git",["config","--global","user.name","testomatio"])}}run()},109:function(e,t,r){var n=r(6429);var i=r(3178);var a=r(3966);var s=Object.defineProperty;t.f=r(917)?Object.defineProperty:function defineProperty(e,t,r){n(e);t=a(t,true);n(r);if(i)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");if("value"in r)e[t]=r.value;return e}},118:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(7862);var i=r(5167);var a=r(7923);var s=r(4938);var o=r(9978);var c=r(2715);const{NOT_LOCAL_BINDING:u,callExpression:l,cloneNode:p,getBindingIdentifiers:d,identifier:f,isArrayExpression:m,isBinary:g,isClass:_,isClassBody:h,isClassDeclaration:y,isExportAllDeclaration:v,isExportDefaultDeclaration:T,isExportNamedDeclaration:S,isFunctionDeclaration:b,isIdentifier:E,isImportDeclaration:x,isLiteral:D,isMethod:C,isModuleDeclaration:A,isModuleSpecifier:k,isObjectExpression:P,isProperty:N,isPureish:O,isSuper:F,isTaggedTemplateExpression:w,isTemplateLiteral:I,isThisExpression:L,isUnaryExpression:M,isVariableDeclaration:R,matchesPattern:B,memberExpression:j,numericLiteral:J,toIdentifier:U,unaryExpression:V,variableDeclaration:W,variableDeclarator:K}=o;function gatherNodeParts(e,t){switch(e==null?void 0:e.type){default:if(A(e)){if((v(e)||S(e)||x(e))&&e.source){gatherNodeParts(e.source,t)}else if((S(e)||x(e))&&e.specifiers&&e.specifiers.length){for(const r of e.specifiers)gatherNodeParts(r,t)}else if((T(e)||S(e))&&e.declaration){gatherNodeParts(e.declaration,t)}}else if(k(e)){gatherNodeParts(e.local,t)}else if(D(e)){t.push(e.value)}break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t);gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties){gatherNodeParts(r,t)}break;case"SpreadElement":case"RestElement":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield");gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await");gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":gatherNodeParts(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":gatherNodeParts(e.id,t);break;case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"MetaProperty":gatherNodeParts(e.meta,t);gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXOpeningElement":t.push(e.name);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t);gatherNodeParts(e.name,t);break}}const G={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:r}=e;const n=r.getFunctionParent()||r.getProgramParent();n.registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;const t=e.scope.getFunctionParent()||e.scope.getProgramParent();t.registerDeclaration(e)},ImportDeclaration(e){const t=e.scope.getBlockParent();t.registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){const r=e.get("left");if(r.isPattern()||r.isIdentifier()){t.constantViolations.push(e)}else if(r.isVar()){const{scope:t}=e;const n=t.getFunctionParent()||t.getProgramParent();n.registerBinding("var",r)}},ExportDeclaration:{exit(e){const{node:t,scope:r}=e;if(v(t))return;const n=t.declaration;if(y(n)||b(n)){const t=n.id;if(!t)return;const i=r.getBinding(t.name);i==null?void 0:i.reference(e)}else if(R(n)){for(const t of n.declarations){for(const n of Object.keys(d(t))){const t=r.getBinding(n);t==null?void 0:t.reference(e)}}}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){if(e.node.operator==="delete"){t.constantViolations.push(e)}},BlockScoped(e){let t=e.scope;if(t.path===e)t=t.parent;const r=t.getBlockParent();r.registerDeclaration(e);if(e.isClassDeclaration()&&e.node.id){const t=e.node.id;const r=t.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){if(e.isFunctionExpression()&&e.has("id")&&!e.get("id").node[u]){e.scope.registerBinding("local",e.get("id"),e)}const t=e.get("params");for(const r of t){e.scope.registerBinding("param",r)}},ClassExpression(e){if(e.has("id")&&!e.get("id").node[u]){e.scope.registerBinding("local",e)}}};let z=0;class Scope{constructor(e){this.uid=void 0;this.path=void 0;this.block=void 0;this.labels=void 0;this.inited=void 0;this.bindings=void 0;this.references=void 0;this.globals=void 0;this.uids=void 0;this.data=void 0;this.crawling=void 0;const{node:t}=e;const r=c.scope.get(t);if((r==null?void 0:r.path)===e){return r}c.scope.set(t,this);this.uid=z++;this.block=t;this.path=e;this.labels=new Map;this.inited=false}get parent(){var e;let t,r=this.path;do{const e=r.key==="key";r=r.parentPath;if(e&&r.isMethod())r=r.parentPath;if(r&&r.isScope())t=r}while(r&&!t);return(e=t)==null?void 0:e.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(e,t,r){(0,i.default)(e,t,this,r,this.path)}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);this.push({id:t});return p(t)}generateUidIdentifier(e){return f(this.generateUid(e))}generateUid(e="temp"){e=U(e).replace(/^_+/,"").replace(/[0-9]+$/g,"");let t;let r=1;do{t=this._generateUid(e,r);r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const n=this.getProgramParent();n.references[t]=true;n.uids[t]=true;return t}_generateUid(e,t){let r=e;if(t>1)r+=t;return`_${r}`}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let n=r.join("$");n=n.replace(/^_/,"")||t||"ref";return this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return f(this.generateUidBasedOnNode(e,t))}isStatic(e){if(L(e)||F(e)){return true}if(E(e)){const t=this.getBinding(e.name);if(t){return t.constant}else{return this.hasBinding(e.name)}}return false}maybeGenerateMemoised(e,t){if(this.isStatic(e)){return null}else{const r=this.generateUidIdentifierBasedOnNode(e);if(!t){this.push({id:r});return p(r)}return r}}checkBlockScopedCollisions(e,t,r,n){if(t==="param")return;if(e.kind==="local")return;const i=t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&(t==="let"||t==="const");if(i){throw this.hub.buildError(n,`Duplicate declaration "${r}"`,TypeError)}}rename(e,t,r){const i=this.getBinding(e);if(i){t=t||this.generateUidIdentifier(e).name;return new n.default(i,e,t).rename(r)}}_renameFromMap(e,t,r,n){if(e[t]){e[r]=n;e[t]=null}}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}toArray(e,t,r){if(E(e)){const t=this.getBinding(e.name);if(t!=null&&t.constant&&t.path.isGenericType("Array")){return e}}if(m(e)){return e}if(E(e,{name:"arguments"})){return l(j(j(j(f("Array"),f("prototype")),f("slice")),f("call")),[e])}let n;const i=[e];if(t===true){n="toConsumableArray"}else if(t){i.push(J(t));n="slicedToArray"}else{n="toArray"}if(r){i.unshift(this.hub.addHelper(n));n="maybeArrayLike"}return l(this.hub.addHelper(n),i)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement()){this.registerLabel(e)}else if(e.isFunctionDeclaration()){this.registerBinding("hoisted",e.get("id"),e)}else if(e.isVariableDeclaration()){const t=e.get("declarations");for(const r of t){this.registerBinding(e.node.kind,r)}}else if(e.isClassDeclaration()){this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t=e.get("specifiers");for(const e of t){this.registerBinding("module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");if(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration()){this.registerDeclaration(t)}}else{this.registerBinding("unknown",e)}}buildUndefinedNode(){return V("void",J(0),true)}registerConstantViolation(e){const t=e.getBindingIdentifiers();for(const r of Object.keys(t)){const t=this.getBinding(r);if(t)t.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r){this.registerBinding(e,t)}return}const n=this.getProgramParent();const i=t.getOuterBindingIdentifiers(true);for(const t of Object.keys(i)){n.references[t]=true;for(const n of i[t]){const i=this.getOwnBinding(t);if(i){if(i.identifier===n)continue;this.checkBlockScopedCollisions(i,e,t,n)}if(i){this.registerConstantViolation(r)}else{this.bindings[t]=new a.default({identifier:n,scope:this,path:r,kind:e})}}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return true}while(t=t.parent);return false}hasGlobal(e){let t=this;do{if(t.globals[e])return true}while(t=t.parent);return false}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(E(e)){const r=this.getBinding(e.name);if(!r)return false;if(t)return r.constant;return true}else if(_(e)){if(e.superClass&&!this.isPure(e.superClass,t)){return false}return this.isPure(e.body,t)}else if(h(e)){for(const r of e.body){if(!this.isPure(r,t))return false}return true}else if(g(e)){return this.isPure(e.left,t)&&this.isPure(e.right,t)}else if(m(e)){for(const r of e.elements){if(!this.isPure(r,t))return false}return true}else if(P(e)){for(const r of e.properties){if(!this.isPure(r,t))return false}return true}else if(C(e)){if(e.computed&&!this.isPure(e.key,t))return false;if(e.kind==="get"||e.kind==="set")return false;return true}else if(N(e)){if(e.computed&&!this.isPure(e.key,t))return false;return this.isPure(e.value,t)}else if(M(e)){return this.isPure(e.argument,t)}else if(w(e)){return B(e.tag,"String.raw")&&!this.hasBinding("String",true)&&this.isPure(e.quasi,t)}else if(I(e)){for(const r of e.expressions){if(!this.isPure(r,t))return false}return true}else{return O(e)}}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(r!=null)return r}while(t=t.parent)}removeData(e){let t=this;do{const r=t.data[e];if(r!=null)t.data[e]=null}while(t=t.parent)}init(){if(!this.inited){this.inited=true;this.crawl()}}crawl(){const e=this.path;this.references=Object.create(null);this.bindings=Object.create(null);this.globals=Object.create(null);this.uids=Object.create(null);this.data=Object.create(null);const t=this.getProgramParent();if(t.crawling)return;const r={references:[],constantViolations:[],assignments:[]};this.crawling=true;if(e.type!=="Program"&&G._exploded){for(const t of G.enter){t(e,r)}const t=G[e.type];if(t){for(const n of t.enter){n(e,r)}}}e.traverse(G,r);this.crawling=false;for(const e of r.assignments){const r=e.getBindingIdentifiers();for(const n of Object.keys(r)){if(e.scope.getBinding(n))continue;t.addGlobal(r[n])}e.scope.registerConstantViolation(e)}for(const e of r.references){const r=e.scope.getBinding(e.node.name);if(r){r.reference(e)}else{t.addGlobal(e.node)}}for(const e of r.constantViolations){e.scope.registerConstantViolation(e)}}push(e){let t=this.path;if(!t.isBlockStatement()&&!t.isProgram()){t=this.getBlockParent().path}if(t.isSwitchStatement()){t=(this.getFunctionParent()||this.getProgramParent()).path}if(t.isLoop()||t.isCatchClause()||t.isFunction()){t.ensureBlock();t=t.get("body")}const r=e.unique;const n=e.kind||"var";const i=e._blockHoist==null?2:e._blockHoist;const a=`declaration:${n}:${i}`;let s=!r&&t.getData(a);if(!s){const e=W(n,[]);e._blockHoist=i;[s]=t.unshiftContainer("body",[e]);if(!r)t.setData(a,s)}const o=K(e.id,e.init);s.node.declarations.push(o);this.registerBinding(n,s.get("declarations").pop())}getProgramParent(){let e=this;do{if(e.path.isProgram()){return e}}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent()){return e}}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent()){return e}}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings)){if(r in e===false){e[r]=t.bindings[r]}}t=t.parent}while(t);return e}getAllBindingsOfKind(...e){const t=Object.create(null);for(const r of e){let e=this;do{for(const n of Object.keys(e.bindings)){const i=e.bindings[n];if(i.kind===r)t[n]=i}e=e.parent}while(e)}return t}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this;let r;do{const i=t.getOwnBinding(e);if(i){var n;if((n=r)!=null&&n.isPattern()&&i.kind!=="param"){}else{return i}}r=t.path}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return(t=this.getBinding(e))==null?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return t==null?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return false;if(this.hasOwnBinding(e))return true;if(this.parentHasBinding(e,t))return true;if(this.hasUid(e))return true;if(!t&&Scope.globals.includes(e))return true;if(!t&&Scope.contextVariables.includes(e))return true;return false}parentHasBinding(e,t){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);if(r){r.scope.removeOwnBinding(e);r.scope=t;t.bindings[e]=r}}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;(t=this.getBinding(e))==null?void 0:t.scope.removeOwnBinding(e);let r=this;do{if(r.uids[e]){r.uids[e]=false}}while(r=r.parent)}}t.default=Scope;Scope.globals=Object.keys(s.builtin);Scope.contextVariables=["arguments","undefined","Infinity","NaN"]},119:function(e,t,r){const n=r(1469);const i=process.env.GITHUB_REPOSITORY;const[a,s]=i.split("/");let o;class PullRequest{constructor(e){this.octokit=new n.GitHub(e)}async fetch(){if(o)return o;const{data:e}=await this.octokit.pulls.list({owner:a,repo:s,state:"open"});return o=e.filter(e=>e.merge_commit_sha===process.env.GITHUB_SHA)[0]}async addComment(e){const t=await this.fetch();const{number:r}=t;const{data:n}=await this.octokit.issues.listComments({owner:a,repo:s,issue_number:r});await Promise.all(n.filter(t=>{return t.user.login==="github-actions[bot]"&&t.body.indexOf(e.attribution)===0}).map(e=>this.octokit.issues.deleteComment({owner:a,repo:s,comment_id:e.id})));return this.octokit.issues.createComment({owner:a,repo:s,issue_number:r,body:e.body})}async addLabel(e){const t=await this.fetch();const{number:r}=t;await this.octokit.issues.addLabels({owner:a,repo:s,issue_number:r,labels:[e]})}async removeLabel(e){const t=await this.fetch();const{number:r}=t;try{await this.octokit.issues.removeLabel({owner:a,repo:s,issue_number:r,name:e})}catch(t){console.log(`Label ${e} not found, can't remove`)}}async close(){const e=await this.fetch();const{number:t}=e;try{await this.octokit.issues.update({owner:a,repo:s,issue_number:t,state:"closed"})}catch(e){console.log(`Can't close issue, ${e}`)}}}e.exports=PullRequest},131:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createItemFromDescriptor=createItemFromDescriptor;t.createConfigItem=createConfigItem;t.getItemDescriptor=getItemDescriptor;function _path(){const e=r(5622);_path=function(){return e};return e}var n=r(9791);function createItemFromDescriptor(e){return new ConfigItem(e)}function*createConfigItem(e,{dirname:t=".",type:r}={}){const i=yield*(0,n.createDescriptor)(e,_path().resolve(t),{type:r,alias:"programmatic item"});return createItemFromDescriptor(i)}function getItemDescriptor(e){if(e!=null&&e[i]){return e._descriptor}return undefined}const i=Symbol.for("@babel/core@7 - ConfigItem");class ConfigItem{constructor(e){this._descriptor=void 0;this[i]=true;this.value=void 0;this.options=void 0;this.dirname=void 0;this.name=void 0;this.file=void 0;this._descriptor=e;Object.defineProperty(this,"_descriptor",{enumerable:false});Object.defineProperty(this,i,{enumerable:false});this.value=this._descriptor.value;this.options=this._descriptor.options;this.dirname=this._descriptor.dirname;this.name=this._descriptor.name;this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:undefined;Object.freeze(this)}}Object.freeze(ConfigItem.prototype)},139:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.convertComments=void 0;const s=a(r(3186));const o=r(9833);const c=r(5023);const u=r(5488);function convertComments(e,t){const r=[];(0,o.forEachComment)(e,(n,i)=>{const a=i.kind==s.SyntaxKind.SingleLineCommentTrivia?u.AST_TOKEN_TYPES.Line:u.AST_TOKEN_TYPES.Block;const o=[i.pos,i.end];const l=(0,c.getLocFor)(o[0],o[1],e);const p=o[0]+2;const d=i.kind===s.SyntaxKind.SingleLineCommentTrivia?o[1]-p:o[1]-p-2;r.push({type:a,value:t.substr(p,d),range:o,loc:l})},e);return r}t.convertComments=convertComments},143:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=cloneDeepWithoutLoc;var n=r(1533);function cloneDeepWithoutLoc(e){return(0,n.default)(e,true,true)}},151:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"findPackageData",{enumerable:true,get:function(){return n.findPackageData}});Object.defineProperty(t,"findConfigUpwards",{enumerable:true,get:function(){return i.findConfigUpwards}});Object.defineProperty(t,"findRelativeConfig",{enumerable:true,get:function(){return i.findRelativeConfig}});Object.defineProperty(t,"findRootConfig",{enumerable:true,get:function(){return i.findRootConfig}});Object.defineProperty(t,"loadConfig",{enumerable:true,get:function(){return i.loadConfig}});Object.defineProperty(t,"resolveShowConfigPath",{enumerable:true,get:function(){return i.resolveShowConfigPath}});Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:true,get:function(){return i.ROOT_CONFIG_FILENAMES}});Object.defineProperty(t,"resolvePlugin",{enumerable:true,get:function(){return a.resolvePlugin}});Object.defineProperty(t,"resolvePreset",{enumerable:true,get:function(){return a.resolvePreset}});Object.defineProperty(t,"loadPlugin",{enumerable:true,get:function(){return a.loadPlugin}});Object.defineProperty(t,"loadPreset",{enumerable:true,get:function(){return a.loadPreset}});var n=r(4848);var i=r(8656);var a=r(6449);({})},160:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.call=call;t._call=_call;t.isBlacklisted=t.isDenylisted=isDenylisted;t.visit=visit;t.skip=skip;t.skipKey=skipKey;t.stop=stop;t.setScope=setScope;t.setContext=setContext;t.resync=resync;t._resyncParent=_resyncParent;t._resyncKey=_resyncKey;t._resyncList=_resyncList;t._resyncRemoved=_resyncRemoved;t.popContext=popContext;t.pushContext=pushContext;t.setup=setup;t.setKey=setKey;t.requeue=requeue;t._getQueueContexts=_getQueueContexts;var n=r(5167);var i=r(7774);function call(e){const t=this.opts;this.debug(e);if(this.node){if(this._call(t[e]))return true}if(this.node){return this._call(t[this.node.type]&&t[this.node.type][e])}return false}function _call(e){if(!e)return false;for(const t of e){if(!t)continue;const e=this.node;if(!e)return true;const r=t.call(this.state,this,this.state);if(r&&typeof r==="object"&&typeof r.then==="function"){throw new Error(`You appear to be using a plugin with an async traversal visitor, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}if(r){throw new Error(`Unexpected return value from visitor method ${t}`)}if(this.node!==e)return true;if(this._traverseFlags>0)return true}return false}function isDenylisted(){var e;const t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1}function visit(){if(!this.node){return false}if(this.isDenylisted()){return false}if(this.opts.shouldSkip&&this.opts.shouldSkip(this)){return false}if(this.shouldSkip||this.call("enter")||this.shouldSkip){this.debug("Skip...");return this.shouldStop}this.debug("Recursing into...");n.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys);this.call("exit");return this.shouldStop}function skip(){this.shouldSkip=true}function skipKey(e){if(this.skipKeys==null){this.skipKeys={}}this.skipKeys[e]=true}function stop(){this._traverseFlags|=i.SHOULD_SKIP|i.SHOULD_STOP}function setScope(){if(this.opts&&this.opts.noScope)return;let e=this.parentPath;if(this.key==="key"&&e.isMethod())e=e.parentPath;let t;while(e&&!t){if(e.opts&&e.opts.noScope)return;t=e.scope;e=e.parentPath}this.scope=this.getScope(t);if(this.scope)this.scope.init()}function setContext(e){if(this.skipKeys!=null){this.skipKeys={}}this._traverseFlags=0;if(e){this.context=e;this.state=e.state;this.opts=e.opts}this.setScope();return this}function resync(){if(this.removed)return;this._resyncParent();this._resyncList();this._resyncKey()}function _resyncParent(){if(this.parentPath){this.parent=this.parentPath.node}}function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e0){this.setContext(this.contexts[this.contexts.length-1])}else{this.setContext(undefined)}}function pushContext(e){this.contexts.push(e);this.setContext(e)}function setup(e,t,r,n){this.listKey=r;this.container=t;this.parentPath=e||this.parentPath;this.setKey(n)}function setKey(e){var t;this.key=e;this.node=this.container[this.key];this.type=(t=this.node)==null?void 0:t.type}function requeue(e=this){if(e.removed)return;const t=this.contexts;for(const r of t){r.maybeQueue(e)}}function _getQueueContexts(){let e=this;let t=this.contexts;while(!t.length){e=e.parentPath;if(!e)break;t=e.contexts}return t}},228:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loadCjsOrMjsDefault;var n=r(4433);function _path(){const e=r(5622);_path=function(){return e};return e}function _url(){const e=r(8835);_url=function(){return e};return e}function _module(){const e=r(2282);_module=function(){return e};return e}function asyncGeneratorStep(e,t,r,n,i,a,s){try{var o=e[a](s);var c=o.value}catch(e){r(e);return}if(o.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(undefined)})}}let i;try{i=r(4513).default}catch(e){}function*loadCjsOrMjsDefault(e,t,r=false){switch(guessJSModuleType(e)){case"cjs":return loadCjsDefault(e,r);case"unknown":try{return loadCjsDefault(e,r)}catch(e){if(e.code!=="ERR_REQUIRE_ESM")throw e}case"mjs":if(yield*(0,n.isAsync)()){return yield*(0,n.waitFor)(loadMjsDefault(e))}throw new Error(t)}}function guessJSModuleType(e){switch(_path().extname(e)){case".cjs":return"cjs";case".mjs":return"mjs";default:return"unknown"}}function loadCjsDefault(e,t){const r=require(e);return r!=null&&r.__esModule?r.default||(t?r:undefined):r}function loadMjsDefault(e){return _loadMjsDefault.apply(this,arguments)}function _loadMjsDefault(){_loadMjsDefault=_asyncToGenerator(function*(e){if(!i){throw new Error("Internal error: Native ECMAScript modules aren't supported"+" by this platform.\n")}const t=yield i((0,_url().pathToFileURL)(e));return t.default});return _loadMjsDefault.apply(this,arguments)}},236:function(e){function makeArray(e){return Array.isArray(e)?e:[e]}const t="";const r=" ";const n="\\";const i=/^\s+$/;const a=/^\\!/;const s=/^\\#/;const o=/\r?\n/g;const c=/^\.*\/|^\.+$/;const u="/";const l=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const p=(e,t,r)=>Object.defineProperty(e,t,{value:r});const d=/([0-z])-([0-z])/g;const f=e=>e.replace(d,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:t);const m=e=>{const{length:t}=e;return e.slice(0,t-t%2)};const g=[[/\\?\s+$/,e=>e.indexOf("\\")===0?r:t],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6`${t}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,i,a)=>t===n?`\\[${r}${m(i)}${a}`:a==="]"?i.length%2===0?`[${f(r)}${i}]`:"[]":"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const _=Object.create(null);const h=(e,t)=>{let r=_[e];if(!r){r=g.reduce((t,r)=>t.replace(r[0],r[1].bind(e)),e);_[e]=r}return t?new RegExp(r,"i"):new RegExp(r)};const y=e=>typeof e==="string";const v=e=>e&&y(e)&&!i.test(e)&&e.indexOf("#")!==0;const T=e=>e.split(o);class IgnoreRule{constructor(e,t,r,n){this.origin=e;this.pattern=t;this.negative=r;this.regex=n}}const S=(e,t)=>{const r=e;let n=false;if(e.indexOf("!")===0){n=true;e=e.substr(1)}e=e.replace(a,"!").replace(s,"#");const i=h(e,t);return new IgnoreRule(r,e,n,i)};const b=(e,t)=>{throw new t(e)};const E=(e,t,r)=>{if(!y(e)){return r(`path must be a string, but got \`${t}\``,TypeError)}if(!e){return r(`path must not be empty`,TypeError)}if(E.isNotRelative(e)){const e="`path.relative()`d";return r(`path should be a ${e} string, but got "${t}"`,RangeError)}return true};const x=e=>c.test(e);E.isNotRelative=x;E.convert=(e=>e);class Ignore{constructor({ignorecase:e=true}={}){p(this,l,true);this._rules=[];this._ignorecase=e;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(e){if(e&&e[l]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(v(e)){const t=S(e,this._ignorecase);this._added=true;this._rules.push(t)}}add(e){this._added=false;makeArray(y(e)?T(e):e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_testOne(e,t){let r=false;let n=false;this._rules.forEach(i=>{const{negative:a}=i;if(n===a&&r!==n||a&&!r&&!n&&!t){return}const s=i.regex.test(e);if(s){r=!a;n=a}});return{ignored:r,unignored:n}}_test(e,t,r,n){const i=e&&E.convert(e);E(i,e,b);return this._t(i,t,r,n)}_t(e,t,r,n){if(e in t){return t[e]}if(!n){n=e.split(u)}n.pop();if(!n.length){return t[e]=this._testOne(e,r)}const i=this._t(n.join(u)+u,t,r,n);return t[e]=i.ignored?i:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,false).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return makeArray(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,true)}}const D=e=>new Ignore(e);const C=()=>false;const A=e=>E(e&&E.convert(e),e,C);D.isPathValid=A;D.default=D;e.exports=D;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const e=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");E.convert=e;const t=/^[a-z]:\//i;E.isNotRelative=(e=>t.test(e)||x(e))}},252:function(e,t,r){"use strict";var n=r(6673);var i=r(2199);var a=r(9839);var s=r(9602);e.exports=function(e){n(n.S,e,{from:function from(e){var t=arguments[1];var r,n,o,c;i(this);r=t!==undefined;if(r)i(t);if(e==undefined)return new this;n=[];if(r){o=0;c=a(t,arguments[2],2);s(e,false,function(e){n.push(c(e,o++))})}else{s(e,false,n.push,n)}return new this(n)}})}},256:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hasExports=hasExports;t.isSideEffectImport=isSideEffectImport;t.validateImportInteropOption=validateImportInteropOption;t.default=normalizeModuleAndLoadMetadata;var n=r(5622);var i=r(420);var a=r(8667);function hasExports(e){return e.hasExports}function isSideEffectImport(e){return e.imports.size===0&&e.importsNamespace.size===0&&e.reexports.size===0&&e.reexportNamespace.size===0&&!e.reexportAll}function validateImportInteropOption(e){if(typeof e!=="function"&&e!=="none"&&e!=="babel"&&e!=="node"){throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`)}return e}function resolveImportInterop(e,t){if(typeof e==="function"){return validateImportInteropOption(e(t))}return e}function normalizeModuleAndLoadMetadata(e,t,{importInterop:r,initializeReexports:n=false,lazy:i=false,esNamespaceOnly:a=false}){if(!t){t=e.scope.generateUidIdentifier("exports").name}const s=new Set;nameAnonymousExports(e);const{local:o,source:c,hasExports:u}=getModuleMetadata(e,{initializeReexports:n,lazy:i},s);removeModuleDeclarations(e);for(const[,e]of c){if(e.importsNamespace.size>0){e.name=e.importsNamespace.values().next().value}const t=resolveImportInterop(r,e.source);if(t==="none"){e.interop="none"}else if(t==="node"&&e.interop==="namespace"){e.interop="node-namespace"}else if(t==="node"&&e.interop==="default"){e.interop="node-default"}else if(a&&e.interop==="namespace"){e.interop="default"}}return{exportName:t,exportNameListName:null,hasExports:u,local:o,source:c,stringSpecifiers:s}}function getExportSpecifierName(e,t){if(e.isIdentifier()){return e.node.name}else if(e.isStringLiteral()){const r=e.node.value;if(!(0,i.isIdentifierName)(r)){t.add(r)}return r}else{throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`)}}function assertExportSpecifier(e){if(e.isExportSpecifier()){return}else if(e.isExportNamespaceSpecifier()){throw e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-proposal-export-namespace-from`.")}else{throw e.buildCodeFrameError("Unexpected export specifier type")}}function getModuleMetadata(e,{lazy:t,initializeReexports:r},i){const a=getLocalExportMetadata(e,r,i);const s=new Map;const o=t=>{const r=t.value;let i=s.get(r);if(!i){i={name:e.scope.generateUidIdentifier((0,n.basename)(r,(0,n.extname)(r))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,lazy:false,source:r};s.set(r,i)}return i};let c=false;e.get("body").forEach(e=>{if(e.isImportDeclaration()){const t=o(e.node.source);if(!t.loc)t.loc=e.node.loc;e.get("specifiers").forEach(e=>{if(e.isImportDefaultSpecifier()){const r=e.get("local").node.name;t.imports.set(r,"default");const n=a.get(r);if(n){a.delete(r);n.names.forEach(e=>{t.reexports.set(e,"default")})}}else if(e.isImportNamespaceSpecifier()){const r=e.get("local").node.name;t.importsNamespace.add(r);const n=a.get(r);if(n){a.delete(r);n.names.forEach(e=>{t.reexportNamespace.add(e)})}}else if(e.isImportSpecifier()){const r=getExportSpecifierName(e.get("imported"),i);const n=e.get("local").node.name;t.imports.set(n,r);const s=a.get(n);if(s){a.delete(n);s.names.forEach(e=>{t.reexports.set(e,r)})}}})}else if(e.isExportAllDeclaration()){c=true;const t=o(e.node.source);if(!t.loc)t.loc=e.node.loc;t.reexportAll={loc:e.node.loc}}else if(e.isExportNamedDeclaration()&&e.node.source){c=true;const t=o(e.node.source);if(!t.loc)t.loc=e.node.loc;e.get("specifiers").forEach(e=>{assertExportSpecifier(e);const r=getExportSpecifierName(e.get("local"),i);const n=getExportSpecifierName(e.get("exported"),i);t.reexports.set(n,r);if(n==="__esModule"){throw e.get("exported").buildCodeFrameError('Illegal export "__esModule".')}})}else if(e.isExportNamedDeclaration()||e.isExportDefaultDeclaration()){c=true}});for(const e of s.values()){let t=false;let r=false;if(e.importsNamespace.size>0){t=true;r=true}if(e.reexportAll){r=true}for(const n of e.imports.values()){if(n==="default")t=true;else r=true}for(const n of e.reexports.values()){if(n==="default")t=true;else r=true}if(t&&r){e.interop="namespace"}else if(t){e.interop="default"}}for(const[e,r]of s){if(t!==false&&!(isSideEffectImport(r)||r.reexportAll)){if(t===true){r.lazy=!/\./.test(e)}else if(Array.isArray(t)){r.lazy=t.indexOf(e)!==-1}else if(typeof t==="function"){r.lazy=t(e)}else{throw new Error(`.lazy must be a boolean, string array, or function`)}}}return{hasExports:c,local:a,source:s}}function getLocalExportMetadata(e,t,r){const n=new Map;e.get("body").forEach(e=>{let r;if(e.isImportDeclaration()){r="import"}else{if(e.isExportDefaultDeclaration())e=e.get("declaration");if(e.isExportNamedDeclaration()){if(e.node.declaration){e=e.get("declaration")}else if(t&&e.node.source&&e.get("source").isStringLiteral()){e.get("specifiers").forEach(e=>{assertExportSpecifier(e);n.set(e.get("local").node.name,"block")});return}}if(e.isFunctionDeclaration()){r="hoisted"}else if(e.isClassDeclaration()){r="block"}else if(e.isVariableDeclaration({kind:"var"})){r="var"}else if(e.isVariableDeclaration()){r="block"}else{return}}Object.keys(e.getOuterBindingIdentifiers()).forEach(e=>{n.set(e,r)})});const i=new Map;const a=e=>{const t=e.node.name;let r=i.get(t);if(!r){const a=n.get(t);if(a===undefined){throw e.buildCodeFrameError(`Exporting local "${t}", which is not declared.`)}r={names:[],kind:a};i.set(t,r)}return r};e.get("body").forEach(e=>{if(e.isExportNamedDeclaration()&&(t||!e.node.source)){if(e.node.declaration){const t=e.get("declaration");const r=t.getOuterBindingIdentifierPaths();Object.keys(r).forEach(e=>{if(e==="__esModule"){throw t.buildCodeFrameError('Illegal export "__esModule".')}a(r[e]).names.push(e)})}else{e.get("specifiers").forEach(e=>{const t=e.get("local");const n=e.get("exported");const i=a(t);const s=getExportSpecifierName(n,r);if(s==="__esModule"){throw n.buildCodeFrameError('Illegal export "__esModule".')}i.names.push(s)})}}else if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(t.isFunctionDeclaration()||t.isClassDeclaration()){a(t.get("id")).names.push("default")}else{throw t.buildCodeFrameError("Unexpected default expression export.")}}});return i}function nameAnonymousExports(e){e.get("body").forEach(e=>{if(!e.isExportDefaultDeclaration())return;(0,a.default)(e)})}function removeModuleDeclarations(e){e.get("body").forEach(e=>{if(e.isImportDeclaration()){e.remove()}else if(e.isExportNamedDeclaration()){if(e.node.declaration){e.node.declaration._blockHoist=e.node._blockHoist;e.replaceWith(e.node.declaration)}else{e.remove()}}else if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(t.isFunctionDeclaration()||t.isClassDeclaration()){t._blockHoist=e.node._blockHoist;e.replaceWith(t)}else{throw t.buildCodeFrameError("Unexpected default expression export.")}}else if(e.isExportAllDeclaration()){e.remove()}})}},288:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"VISITOR_KEYS",{enumerable:true,get:function(){return i.VISITOR_KEYS}});Object.defineProperty(t,"ALIAS_KEYS",{enumerable:true,get:function(){return i.ALIAS_KEYS}});Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:true,get:function(){return i.FLIPPED_ALIAS_KEYS}});Object.defineProperty(t,"NODE_FIELDS",{enumerable:true,get:function(){return i.NODE_FIELDS}});Object.defineProperty(t,"BUILDER_KEYS",{enumerable:true,get:function(){return i.BUILDER_KEYS}});Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:true,get:function(){return i.DEPRECATED_KEYS}});Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:true,get:function(){return i.NODE_PARENT_VALIDATIONS}});Object.defineProperty(t,"PLACEHOLDERS",{enumerable:true,get:function(){return a.PLACEHOLDERS}});Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:true,get:function(){return a.PLACEHOLDERS_ALIAS}});Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:true,get:function(){return a.PLACEHOLDERS_FLIPPED_ALIAS}});t.TYPES=void 0;var n=r(9353);r(9565);r(745);r(2941);r(5040);r(1641);r(8976);var i=r(7138);var a=r(1807);n(i.VISITOR_KEYS);n(i.ALIAS_KEYS);n(i.FLIPPED_ALIAS_KEYS);n(i.NODE_FIELDS);n(i.BUILDER_KEYS);n(i.DEPRECATED_KEYS);n(a.PLACEHOLDERS_ALIAS);n(a.PLACEHOLDERS_FLIPPED_ALIAS);const s=Object.keys(i.VISITOR_KEYS).concat(Object.keys(i.FLIPPED_ALIAS_KEYS)).concat(Object.keys(i.DEPRECATED_KEYS));t.TYPES=s},297:function(e,t,r){const n=r(3804);const i=r(2335);const a=r(9316);const s=r(1618);const o=r(4342);const c=r(2495);const u=(e,t,r,u)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return a(e,r,u);case">=":return s(e,r,u);case"<":return o(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=u},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.16.5";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t({async next(){if(!o)return{done:true};try{const e=await i({method:a,url:o,headers:s});const t=normalizePaginatedListResponse(e);o=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;o="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then(i=>{if(i.done){return t}let a=false;function done(){a=true}t=t.concat(n?n(i.value,done):i.value.data);if(a){return t}return gather(e,t,r,n)})}const n=Object.assign(paginate,{iterator:iterator});const i=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/actions/runners/downloads","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/runners/downloads","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runners/downloads","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/autolinks","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /scim/v2/enterprises/{enterprise}/Groups","GET /scim/v2/enterprises/{enterprise}/Users","GET /scim/v2/organizations/{org}/Users","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/team-sync/group-mappings","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return i.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=n;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=i},317:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o){return}var c=parseFloat(o[1]);var u=(o[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=i){return Math.round(e/i)+"d"}if(a>=n){return Math.round(e/n)+"h"}if(a>=r){return Math.round(e/r)+"m"}if(a>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=i){return plural(e,a,i,"day")}if(a>=n){return plural(e,a,n,"hour")}if(a>=r){return plural(e,a,r,"minute")}if(a>=t){return plural(e,a,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},350:function(e,t,r){var n=r(749);var i=r(2392);e.exports=Object.keys||function keys(e){return n(e,i)}},361:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=generateMissingPluginMessage;const r={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://git.io/JYer8"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-class-properties",url:"https://git.io/vb4SL"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://git.io/vb4yQ"},transform:{name:"@babel/plugin-proposal-private-methods",url:"https://git.io/JvpRG"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://git.io/JTLB6"},transform:{name:"@babel/plugin-proposal-class-static-block",url:"https://git.io/JTLBP"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://git.io/JfKOH"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://git.io/vb4y9"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://git.io/vb4ST"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://git.io/vb4yh"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://git.io/vb4S3"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://git.io/vb4Sv"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://git.io/vb4SO"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://git.io/vb4yH"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://git.io/vb4Sf"},transform:{name:"@babel/plugin-proposal-export-namespace-from",url:"https://git.io/vb4SG"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://git.io/vb4yb"},transform:{name:"@babel/preset-flow",url:"https://git.io/JfeDn"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://git.io/vb4y7"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://git.io/vb4St"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://git.io/vb4yN"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://git.io/vb4SZ"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://git.io/vbKK6"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://git.io/vb4yA"},transform:{name:"@babel/preset-react",url:"https://git.io/JfeDR"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://git.io/JUbkv"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://git.io/JTL8G"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://git.io/vb4Sq"},transform:{name:"@babel/plugin-proposal-numeric-separator",url:"https://git.io/vb4yS"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://git.io/vb4Sc"},transform:{name:"@babel/plugin-proposal-optional-chaining",url:"https://git.io/vb4Sk"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://git.io/vb4yj"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://git.io/vb4SU"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://git.io/JfK3q"},transform:{name:"@babel/plugin-proposal-private-property-in-object",url:"https://git.io/JfK3O"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://git.io/JvKp3"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://git.io/vb4SJ"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://git.io/vb4yF"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://git.io/vb4SC"},transform:{name:"@babel/preset-typescript",url:"https://git.io/JfeDz"}},asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://git.io/vb4SY"},transform:{name:"@babel/plugin-proposal-async-generator-functions",url:"https://git.io/vb4yp"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://git.io/vAlBp"},transform:{name:"@babel/plugin-proposal-logical-assignment-operators",url:"https://git.io/vAlRe"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://git.io/vb4yx"},transform:{name:"@babel/plugin-proposal-nullish-coalescing-operator",url:"https://git.io/vb4Se"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://git.io/vb4y5"},transform:{name:"@babel/plugin-proposal-object-rest-spread",url:"https://git.io/vb4Ss"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://git.io/vb4Sn"},transform:{name:"@babel/plugin-proposal-optional-catch-binding",url:"https://git.io/vb4SI"}}};r.privateIn.syntax=r.privateIn.transform;const n=({name:e,url:t})=>`${e} (${t})`;function generateMissingPluginMessage(e,t,i){let a=`Support for the experimental syntax '${e}' isn't currently enabled `+`(${t.line}:${t.column+1}):\n\n`+i;const s=r[e];if(s){const{syntax:e,transform:t}=s;if(e){const r=n(e);if(t){const e=n(t);const i=t.name.startsWith("@babel/plugin")?"plugins":"presets";a+=`\n\nAdd ${e} to the '${i}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${r} to the 'plugins' section to enable parsing.`}else{a+=`\n\nAdd ${r} to the 'plugins' section of your Babel config `+`to enable parsing.`}}}return a}},363:function(e,t,r){var n=r(5772),i=r(5338);var a=Object.prototype;var s=a.hasOwnProperty;function assignValue(e,t,r){var a=e[t];if(!(s.call(e,t)&&i(a,r))||r===undefined&&!(t in e)){n(e,t,r)}}e.exports=assignValue},377:function(e,t,r){var n=r(8598),i=r(6698),a=r(363),s=r(4629),o=r(7610),c=r(1744),u=r(1239),l=r(3760),p=r(3589),d=r(7620),f=r(4590),m=r(4700),g=r(2430),_=r(1538),h=r(2066),y=r(1143),v=r(2546),T=r(5439),S=r(2988),b=r(670),E=r(1863),x=r(1971);var D=1,C=2,A=4;var k="[object Arguments]",P="[object Array]",N="[object Boolean]",O="[object Date]",F="[object Error]",w="[object Function]",I="[object GeneratorFunction]",L="[object Map]",M="[object Number]",R="[object Object]",B="[object RegExp]",j="[object Set]",J="[object String]",U="[object Symbol]",V="[object WeakMap]";var W="[object ArrayBuffer]",K="[object DataView]",G="[object Float32Array]",z="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",$="[object Int32Array]",Y="[object Uint8Array]",X="[object Uint8ClampedArray]",Q="[object Uint16Array]",Z="[object Uint32Array]";var ee={};ee[k]=ee[P]=ee[W]=ee[K]=ee[N]=ee[O]=ee[G]=ee[z]=ee[H]=ee[q]=ee[$]=ee[L]=ee[M]=ee[R]=ee[B]=ee[j]=ee[J]=ee[U]=ee[Y]=ee[X]=ee[Q]=ee[Z]=true;ee[F]=ee[w]=ee[V]=false;function baseClone(e,t,r,P,N,O){var F,L=t&D,M=t&C,B=t&A;if(r){F=N?r(e,P,N,O):r(e)}if(F!==undefined){return F}if(!S(e)){return e}var j=y(e);if(j){F=g(e);if(!L){return u(e,F)}}else{var J=m(e),U=J==w||J==I;if(v(e)){return c(e,L)}if(J==R||J==k||U&&!N){F=M||U?{}:h(e);if(!L){return M?p(e,o(F,e)):l(e,s(F,e))}}else{if(!ee[J]){return N?e:{}}F=_(e,J,L)}}O||(O=new n);var V=O.get(e);if(V){return V}O.set(e,F);if(b(e)){e.forEach(function(n){F.add(baseClone(n,t,r,n,e,O))})}else if(T(e)){e.forEach(function(n,i){F.set(i,baseClone(n,t,r,i,e,O))})}var W=B?M?f:d:M?x:E;var K=j?undefined:W(e);i(K||e,function(n,i){if(K){i=n;n=e[i]}a(F,i,baseClone(n,t,r,i,e,O))});return F}e.exports=baseClone},389:function(e,t,r){var n=r(4553),i=r(8460),a=r(1143),s=r(2546),o=r(5160),c=r(8850);var u=Object.prototype;var l=u.hasOwnProperty;function arrayLikeKeys(e,t){var r=a(e),u=!r&&i(e),p=!r&&!u&&s(e),d=!r&&!u&&!p&&c(e),f=r||u||p||d,m=f?n(e.length,String):[],g=m.length;for(var _ in e){if((t||l.call(e,_))&&!(f&&(_=="length"||p&&(_=="offset"||_=="parent")||d&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,g)))){m.push(_)}}return m}e.exports=arrayLikeKeys},405:function(e,t,r){var n=r(1978),i=r(4020),a=r(1261);function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new n;while(++t=0){break}}while(e=e.parent)};PathHoister.prototype.getAttachmentPath=function getAttachmentPath(){var e=this._getAttachmentPath();if(!e)return;var t=e.scope;if(t.path===e){t=e.scope.parent}if(t.path.isProgram()||t.path.isFunction()){for(var r in this.bindings){if(!t.hasOwnBinding(r))continue;var n=this.bindings[r];if(n.kind==="param")continue;if(this.getAttachmentParentForPath(n.path).key>e.key){this.attachAfter=true;e=n.path;for(var a=n.constantViolations,s=Array.isArray(a),o=0,a=s?a:(0,i.default)(a);;){var c;if(s){if(o>=a.length)break;c=a[o++]}else{o=a.next();if(o.done)break;c=o.value}var u=c;if(this.getAttachmentParentForPath(u).key>e.key){e=u}}}}}if(e.parentPath.isExportDeclaration()){e=e.parentPath}return e};PathHoister.prototype._getAttachmentPath=function _getAttachmentPath(){var e=this.scopes;var t=e.pop();if(!t)return;if(t.path.isFunction()){if(this.hasOwnParamBindings(t)){if(this.scope===t)return;return t.path.get("body").get("body")[0]}else{return this.getNextScopeAttachmentParent()}}else if(t.path.isProgram()){return this.getNextScopeAttachmentParent()}};PathHoister.prototype.getNextScopeAttachmentParent=function getNextScopeAttachmentParent(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)};PathHoister.prototype.getAttachmentParentForPath=function getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()||e.isVariableDeclarator()&&e.parentPath.node!==null&&e.parentPath.node.declarations.length>1)return e}while(e=e.parentPath)};PathHoister.prototype.hasOwnParamBindings=function hasOwnParamBindings(e){for(var t in this.bindings){if(!e.hasOwnBinding(t))continue;var r=this.bindings[t];if(r.kind==="param"&&r.constant)return true}return false};PathHoister.prototype.run=function run(){var e=this.path.node;if(e._hoisted)return;e._hoisted=true;this.path.traverse(u,this);this.getCompatibleScopes();var t=this.getAttachmentPath();if(!t)return;if(t.getFunctionParent()===this.path.getFunctionParent())return;var r=t.scope.generateUidIdentifier("ref");var n=c.variableDeclarator(r,this.path.node);var i=this.attachAfter?"insertAfter":"insertBefore";t[i]([t.isVariableDeclarator()?n:c.variableDeclaration("var",[n])]);var a=this.path.parentPath;if(a.isJSXElement()&&this.path.container===a.node.children){r=c.JSXExpressionContainer(r)}this.path.replaceWith(r)};return PathHoister}();t.default=l;e.exports=t["default"]},420:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return i.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return i.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return i.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return i.isStrictReservedWord}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return i.isKeyword}});var n=r(2674);var i=r(7974)},426:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Plugin{constructor(e,t,r){this.key=void 0;this.manipulateOptions=void 0;this.post=void 0;this.pre=void 0;this.visitor=void 0;this.parserOverride=void 0;this.generatorOverride=void 0;this.options=void 0;this.key=e.name||r;this.manipulateOptions=e.manipulateOptions;this.post=e.post;this.pre=e.pre;this.visitor=e.visitor||{};this.parserOverride=e.parserOverride;this.generatorOverride=e.generatorOverride;this.options=t}}t.default=Plugin},430:function(e,t,r){var n=r(6512);var i=Math.max;function overRest(e,t,r){t=i(t===undefined?e.length-1:t,0);return function(){var a=arguments,s=-1,o=i(a.length-t,0),c=Array(o);while(++sr.length){throw new Error(`${e}: Too many arguments passed. Received ${a} but can receive no more than ${r.length}`)}const s={type:e};let o=0;r.forEach(r=>{const i=n.NODE_FIELDS[e][r];let c;if(o(0,c.getAstFromProgram)(e,r));if(!n&&!t){const e=['"parserOptions.project" has been set for @typescript-eslint/parser.',`The file does not match your project config: ${a.default.relative(r.tsconfigRootDir||process.cwd(),r.filePath)}.`];let t=false;const n=r.extraFileExtensions||[];n.forEach(t=>{if(!t.startsWith(".")){e.push(`Found unexpected extension "${t}" specified with the "extraFileExtensions" option. Did you mean ".${t}"?`)}if(l.includes(t)){e.push(`You unnecessarily included the extension "${t}" with the "extraFileExtensions" option. This extension is already handled by the parser by default.`)}});const i=a.default.extname(r.filePath);if(!l.includes(i)){const r=`The extension for the file (${i}) is non-standard`;if(n.length>0){if(!n.includes(i)){e.push(`${r}. It should be added to your existing "parserOptions.extraFileExtensions".`);t=true}}else{e.push(`${r}. You should add "parserOptions.extraFileExtensions" to your config.`);t=true}}if(!t){e.push("The file must be included in at least one of the projects provided.")}throw new Error(e.join("\n"))}return n}t.createProjectProgram=createProjectProgram},547:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getProgramsForProjects=t.createWatchProgram=t.clearWatchCaches=void 0;const o=s(r(4784));const c=s(r(5747));const u=s(r(6900));const l=a(r(3186));const p=r(9208);const d=(0,o.default)("typescript-eslint:typescript-estree:createWatchProgram");const f=new Map;const m=new Map;const g=new Map;const _=new Map;const h=new Map;const y=new Map;function clearWatchCaches(){f.clear();m.clear();g.clear();y.clear();_.clear();h.clear()}t.clearWatchCaches=clearWatchCaches;function saveWatchCallback(e){return(t,r)=>{const n=(0,p.getCanonicalFileName)(t);const i=(()=>{let t=e.get(n);if(!t){t=new Set;e.set(n,t)}return t})();i.add(r);return{close:()=>{i.delete(r)}}}}const v={code:"",filePath:""};function diagnosticReporter(e){throw new Error(l.flattenDiagnosticMessageText(e.messageText,l.sys.newLine))}function createHash(e){var t;if((t=l.sys)===null||t===void 0?void 0:t.createHash){return l.sys.createHash(e)}return e}function updateCachedFileList(e,t,r){const n=r.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(t.getSourceFiles().map(e=>(0,p.getCanonicalFileName)(e.fileName))):new Set(t.getRootFileNames().map(e=>(0,p.getCanonicalFileName)(e)));_.set(e,n);return n}function getProgramsForProjects(e,t,r){const n=(0,p.getCanonicalFileName)(t);const i=[];v.code=e;v.filePath=n;const a=m.get(n);const s=createHash(e);if(y.get(n)!==s&&a&&a.size>0){a.forEach(e=>e(n,l.FileWatcherEventKind.Changed))}for(const[e,t]of f.entries()){let i=_.get(e);let a=null;if(!i){a=t.getProgram().getProgram();i=updateCachedFileList(e,a,r)}if(i.has(n)){d("Found existing program for file. %s",n);a=a!==null&&a!==void 0?a:t.getProgram().getProgram();a.getTypeChecker();return[a]}}d("File did not belong to any existing programs, moving to create/update. %s",n);for(const e of r.projects){const t=f.get(e);if(t){const a=maybeInvalidateProgram(t,n,e);if(!a){continue}a.getTypeChecker();const s=updateCachedFileList(e,a,r);if(s.has(n)){d("Found updated program for file. %s",n);return[a]}i.push(a);continue}const a=createWatchProgram(e,r);f.set(e,a);const s=a.getProgram().getProgram();s.getTypeChecker();const o=updateCachedFileList(e,s,r);if(o.has(n)){d("Found program for file. %s",n);return[s]}i.push(s)}return i}t.getProgramsForProjects=getProgramsForProjects;const T=u.default.satisfies(l.version,">=3.9.0-beta",{includePrerelease:true});function createWatchProgram(e,t){d("Creating watch program for %s.",e);const r=l.createWatchCompilerHost(e,(0,p.createDefaultCompilerOptionsFromExtra)(t),l.sys,l.createAbstractBuilder,diagnosticReporter,()=>{});if(t.moduleResolver){r.resolveModuleNames=(0,p.getModuleResolver)(t.moduleResolver).resolveModuleNames}const n=r.readFile;r.readFile=((e,t)=>{const r=(0,p.getCanonicalFileName)(e);const i=r===v.filePath?v.code:n(r,t);if(i!==undefined){y.set(r,createHash(i))}return i});r.onUnRecoverableConfigFileDiagnostic=diagnosticReporter;r.afterProgramCreate=(e=>{const t=e.getConfigFileParsingDiagnostics().filter(e=>e.category===l.DiagnosticCategory.Error&&e.code!==18003);if(t.length>0){diagnosticReporter(t[0])}});r.watchFile=saveWatchCallback(m);r.watchDirectory=saveWatchCallback(g);const i=r.onCachedDirectoryStructureHostCreate;r.onCachedDirectoryStructureHostCreate=(e=>{const r=e.readDirectory;e.readDirectory=((e,n,i,a,s)=>r(e,!n?undefined:n.concat(t.extraFileExtensions),i,a,s));i(e)});r.extraFileExtensions=t.extraFileExtensions.map(e=>({extension:e,isMixedContent:true,scriptKind:l.ScriptKind.Deferred}));r.trace=d;r.useSourceOfProjectReferenceRedirect=(()=>t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect);let a;if(T){r.setTimeout=undefined;r.clearTimeout=undefined}else{d("Running without timeout fix");r.setTimeout=((e,t,...r)=>{a=e.bind(undefined,...r);return a});r.clearTimeout=(()=>{a=undefined})}const s=l.createWatchProgram(r);if(!T){const e=s.getProgram;s.getProgram=(()=>{if(a){a()}a=undefined;return e.call(s)})}return s}t.createWatchProgram=createWatchProgram;function hasTSConfigChanged(e){const t=c.default.statSync(e);const r=t.mtimeMs;const n=h.get(e);h.set(e,r);if(n===undefined){return false}return Math.abs(n-r)>Number.EPSILON}function maybeInvalidateProgram(e,t,r){let n=e.getProgram().getProgram();if(process.env.TSESTREE_NO_INVALIDATION==="true"){return n}if(hasTSConfigChanged(r)){d("tsconfig has changed - triggering program update. %s",r);m.get(r).forEach(e=>e(r,l.FileWatcherEventKind.Changed));_.delete(r)}let i=n.getSourceFile(t);if(i){return n}d("File was not found in program - triggering folder update. %s",t);const a=(0,p.canonicalDirname)(t);let s=null;let o=a;let u=false;while(s!==o){s=o;const e=g.get(s);if(e){e.forEach(e=>{if(a!==s){e(a,l.FileWatcherEventKind.Changed)}e(s,l.FileWatcherEventKind.Changed)});u=true}o=(0,p.canonicalDirname)(s)}if(!u){d("No callback found for file, not part of this program. %s",t);return null}_.delete(r);n=e.getProgram().getProgram();i=n.getSourceFile(t);if(i){return n}d("File was still not found in program after directory update - checking file deletions. %s",t);const f=n.getRootFileNames();const h=f.find(e=>!c.default.existsSync(e));if(!h){return null}const y=m.get((0,p.getCanonicalFileName)(h));if(!y){d("Could not find watch callbacks for root file. %s",h);return n}d("Marking file as deleted. %s",h);y.forEach(e=>e(h,l.FileWatcherEventKind.Deleted));_.delete(r);n=e.getProgram().getProgram();i=n.getSourceFile(t);if(i){return n}d("File was still not found in program after deletion check, assuming it is not part of this program. %s",t);return null}},555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toComputedKey;var n=r(4897);var i=r(6405);function toComputedKey(e,t=e.key||e.property){if(!e.computed&&(0,n.isIdentifier)(t))t=(0,i.stringLiteral)(t.name);return t}},562:function(e){var t=/\s/;function trimmedEndIndex(e){var r=e.length;while(r--&&t.test(e.charAt(r))){}return r}e.exports=trimmedEndIndex},564:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createSourceFile=void 0;const o=s(r(4784));const c=a(r(3186));const u=r(9208);const l=(0,o.default)("typescript-eslint:typescript-estree:createSourceFile");function createSourceFile(e,t){l("Getting AST without type information in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);return c.createSourceFile(t.filePath,e,c.ScriptTarget.Latest,true,(0,u.getScriptKind)(t))}t.createSourceFile=createSourceFile},586:function(e,t,r){"use strict";t.__esModule=true;var n=r(2979);var i=_interopRequireDefault(n);t.call=call;t._call=_call;t.isBlacklisted=isBlacklisted;t.visit=visit;t.skip=skip;t.skipKey=skipKey;t.stop=stop;t.setScope=setScope;t.setContext=setContext;t.resync=resync;t._resyncParent=_resyncParent;t._resyncKey=_resyncKey;t._resyncList=_resyncList;t._resyncRemoved=_resyncRemoved;t.popContext=popContext;t.pushContext=pushContext;t.setup=setup;t.setKey=setKey;t.requeue=requeue;t._getQueueContexts=_getQueueContexts;var a=r(5852);var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function call(e){var t=this.opts;this.debug(function(){return e});if(this.node){if(this._call(t[e]))return true}if(this.node){return this._call(t[this.node.type]&&t[this.node.type][e])}return false}function _call(e){if(!e)return false;for(var t=e,r=Array.isArray(t),n=0,t=r?t:(0,i.default)(t);;){var a;if(r){if(n>=t.length)break;a=t[n++]}else{n=t.next();if(n.done)break;a=n.value}var s=a;if(!s)continue;var o=this.node;if(!o)return true;var c=s.call(this.state,this,this.state);if(c)throw new Error("Unexpected return value from visitor method "+s);if(this.node!==o)return true;if(this.shouldStop||this.shouldSkip||this.removed)return true}return false}function isBlacklisted(){var e=this.opts.blacklist;return e&&e.indexOf(this.node.type)>-1}function visit(){if(!this.node){return false}if(this.isBlacklisted()){return false}if(this.opts.shouldSkip&&this.opts.shouldSkip(this)){return false}if(this.call("enter")||this.shouldSkip){this.debug(function(){return"Skip..."});return this.shouldStop}this.debug(function(){return"Recursing into..."});s.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys);this.call("exit");return this.shouldStop}function skip(){this.shouldSkip=true}function skipKey(e){this.skipKeys[e]=true}function stop(){this.shouldStop=true;this.shouldSkip=true}function setScope(){if(this.opts&&this.opts.noScope)return;var e=this.context&&this.context.scope;if(!e){var t=this.parentPath;while(t&&!e){if(t.opts&&t.opts.noScope)return;e=t.scope;t=t.parentPath}}this.scope=this.getScope(e);if(this.scope)this.scope.init()}function setContext(e){this.shouldSkip=false;this.shouldStop=false;this.removed=false;this.skipKeys={};if(e){this.context=e;this.state=e.state;this.opts=e.opts}this.setScope();return this}function resync(){if(this.removed)return;this._resyncParent();this._resyncList();this._resyncKey()}function _resyncParent(){if(this.parentPath){this.parent=this.parentPath.node}}function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(var e=0;e0&&arguments[0]!==undefined?arguments[0]:this;if(e.removed)return;var t=this.contexts;for(var r=t,n=Array.isArray(r),a=0,r=n?r:(0,i.default)(r);;){var s;if(n){if(a>=r.length)break;s=r[a++]}else{a=r.next();if(a.done)break;s=a.value}var o=s;o.maybeQueue(e)}}function _getQueueContexts(){var e=this;var t=this.contexts;while(!t.length){e=e.parentPath;t=e.contexts}return t}},608:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2413);const i=r(3231);const a=r(7522);const s=r(9949);class ReaderStream extends s.default{constructor(){super(...arguments);this._walkStream=a.walkStream;this._stat=i.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const i=new n.PassThrough({objectMode:true});i._write=((n,a,s)=>{return this._getEntry(r[n],e[n],t).then(e=>{if(e!==null&&t.entryFilter(e)){i.push(e)}if(n===r.length-1){i.end()}s()}).catch(s)});for(let e=0;ethis._makeEntry(e,t)).catch(e=>{if(r.errorFilter(e)){return null}throw e})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(e,n)=>{return e===null?t(n):r(e)})})}}t.default=ReaderStream},612:function(e,t,r){var n=r(776);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i=0&&u>0){if(e===t){return[c,u]}n=[];a=r.length;while(l>=0&&!o){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){o=[n.pop(),u]}else{i=n.pop();if(i=0?c:u}if(n.length){o=[a,s]}}return o}},630:function(e){e.exports=require("perf_hooks")},637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WithStatement=WithStatement;t.IfStatement=IfStatement;t.ForStatement=ForStatement;t.WhileStatement=WhileStatement;t.DoWhileStatement=DoWhileStatement;t.LabeledStatement=LabeledStatement;t.TryStatement=TryStatement;t.CatchClause=CatchClause;t.SwitchStatement=SwitchStatement;t.SwitchCase=SwitchCase;t.DebuggerStatement=DebuggerStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.ThrowStatement=t.BreakStatement=t.ReturnStatement=t.ContinueStatement=t.ForOfStatement=t.ForInStatement=void 0;var n=r(9978);const{isFor:i,isForStatement:a,isIfStatement:s,isStatement:o}=n;function WithStatement(e){this.word("with");this.space();this.token("(");this.print(e.object,e);this.token(")");this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.token("(");this.print(e.test,e);this.token(")");this.space();const t=e.alternate&&s(getLastStatement(e.consequent));if(t){this.token("{");this.newline();this.indent()}this.printAndIndentOnComments(e.consequent,e);if(t){this.dedent();this.newline();this.token("}")}if(e.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate,e)}}function getLastStatement(e){if(!o(e.body))return e;return getLastStatement(e.body)}function ForStatement(e){this.word("for");this.space();this.token("(");this.inForStatementInitCounter++;this.print(e.init,e);this.inForStatementInitCounter--;this.token(";");if(e.test){this.space();this.print(e.test,e)}this.token(";");if(e.update){this.space();this.print(e.update,e)}this.token(")");this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.token("(");this.print(e.test,e);this.token(")");this.printBlock(e)}const c=function(e){return function(t){this.word("for");this.space();if(e==="of"&&t.await){this.word("await");this.space()}this.token("(");this.print(t.left,t);this.space();this.word(e);this.space();this.print(t.right,t);this.token(")");this.printBlock(t)}};const u=c("in");t.ForInStatement=u;const l=c("of");t.ForOfStatement=l;function DoWhileStatement(e){this.word("do");this.space();this.print(e.body,e);this.space();this.word("while");this.space();this.token("(");this.print(e.test,e);this.token(")");this.semicolon()}function buildLabelStatement(e,t="label"){return function(r){this.word(e);const n=r[t];if(n){this.space();const e=t=="label";const i=this.startTerminatorless(e);this.print(n,r);this.endTerminatorless(i)}this.semicolon()}}const p=buildLabelStatement("continue");t.ContinueStatement=p;const d=buildLabelStatement("return","argument");t.ReturnStatement=d;const f=buildLabelStatement("break");t.BreakStatement=f;const m=buildLabelStatement("throw","argument");t.ThrowStatement=m;function LabeledStatement(e){this.print(e.label,e);this.token(":");this.space();this.print(e.body,e)}function TryStatement(e){this.word("try");this.space();this.print(e.block,e);this.space();if(e.handlers){this.print(e.handlers[0],e)}else{this.print(e.handler,e)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer,e)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.token("(");this.print(e.param,e);this.print(e.param.typeAnnotation,e);this.token(")");this.space()}this.print(e.body,e)}function SwitchStatement(e){this.word("switch");this.space();this.token("(");this.print(e.discriminant,e);this.token(")");this.space();this.token("{");this.printSequence(e.cases,e,{indent:true,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}});this.token("}")}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test,e);this.token(":")}else{this.word("default");this.token(":")}if(e.consequent.length){this.newline();this.printSequence(e.consequent,e,{indent:true})}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function variableDeclarationIndent(){this.token(",");this.newline();if(this.endsWith(10)){for(let e=0;e<4;e++)this.space(true)}}function constDeclarationIndent(){this.token(",");this.newline();if(this.endsWith(10)){for(let e=0;e<6;e++)this.space(true)}}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}this.word(e.kind);this.space();let r=false;if(!i(t)){for(const t of e.declarations){if(t.init){r=true}}}let n;if(r){n=e.kind==="const"?constDeclarationIndent:variableDeclarationIndent}this.printList(e.declarations,e,{separator:n});if(i(t)){if(a(t)){if(t.init===e)return}else{if(t.left===e)return}}this.semicolon()}function VariableDeclarator(e){this.print(e.id,e);if(e.definite)this.token("!");this.print(e.id.typeAnnotation,e);if(e.init){this.space();this.token("=");this.space();this.print(e.init,e)}}},655:function(e){function arrayIncludesWith(e,t,r){var n=-1,i=e==null?0:e.length;while(++n{t=o(t);if(e instanceof s){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const r=t.loose?i[a.LOOSE]:i[a.FULL];if(!r.test(e)){return null}try{return new s(e,t)}catch(e){return null}};e.exports=c},667:function(e,t,r){var n=r(8348),i=r(3130);var a=Object.prototype;var s=a.propertyIsEnumerable;var o=Object.getOwnPropertySymbols;var c=!o?i:function(e){if(e==null){return[]}e=Object(e);return n(o(e),function(t){return s.call(e,t)})};e.exports=c},670:function(e,t,r){var n=r(9662),i=r(4231),a=r(616);var s=a&&a.isSet;var o=s?i(s):n;e.exports=o},673:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePluginObject=validatePluginObject;var n=r(1167);const i={name:n.assertString,manipulateOptions:n.assertFunction,pre:n.assertFunction,post:n.assertFunction,inherits:n.assertFunction,visitor:assertVisitorMap,parserOverride:n.assertFunction,generatorOverride:n.assertFunction};function assertVisitorMap(e,t){const r=(0,n.assertObject)(e,t);if(r){Object.keys(r).forEach(e=>assertVisitorHandler(e,r[e]));if(r.enter||r.exit){throw new Error(`${(0,n.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`)}}return r}function assertVisitorHandler(e,t){if(t&&typeof t==="object"){Object.keys(t).forEach(t=>{if(t!=="enter"&&t!=="exit"){throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)}})}else if(typeof t!=="function"){throw new Error(`.visitor["${e}"] must be a function`)}return t}function validatePluginObject(e){const t={type:"root",source:"plugin"};Object.keys(e).forEach(r=>{const n=i[r];if(n){const i={type:"option",name:r,parent:t};n(i,e[r])}else{const e=new Error(`.${r} is not a valid Plugin property`);e.code="BABEL_UNKNOWN_PLUGIN_PROPERTY";throw e}});return e}},680:function(e,t,r){"use strict";var n=r(6673);e.exports=function(e){n(n.S,e,{of:function of(){var e=arguments.length;var t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}})}},689:function(e,t,r){const n=r(5852);const i=r(8333);const{getStringValue:a,getUpdatePoint:s,hasStringOrTemplateArgument:o,getLineNumber:c,getEndLineNumber:u,getCode:l}=r(3094);e.exports=((e,t="",r="")=>{const p=[];let d=[];function addSuite(e){d=d.filter(t=>t.loc.end.line>e.loc.start.line);d.push(e)}n.default(e,{enter(e){if(e.isIdentifier({name:"describe"})){if(!o(e.parent))return;addSuite(e.parent)}if(e.isIdentifier({name:"context"})){if(!o(e.parent))return;addSuite(e.parent)}if(e.isIdentifier({name:"only"})){const r=e.parent.object.name;if(["describe","it","context"].includes(r)){const r=c(e);throw new i("Exclusive tests detected. `.only` call found in "+`${t}:${r}\n`+"Remove `.only` to restore test checks")}}if(e.isIdentifier({name:"skip"})){if(!e.parent||!e.parent.object){return}if(e.parent.object.name==="it"){if(!o(e.parentPath.container))return;const n=a(e.parentPath.container);p.push({name:n,suites:d.map(e=>a(e)),updatePoint:s(e.parent.container),line:c(e),code:l(r,c(e),u(e)),file:t,skipped:true})}if(e.parent.object.name==="describe"||e.parent.object.name==="context"){if(!o(e.parentPath.container))return;const t=e.parentPath.container;t.skipped=true;addSuite(t)}}if(e.isIdentifier({name:"xit"})){if(!o(e.parent))return;const n=a(e.parent);p.push({name:n,suites:d.map(e=>a(e)),updatePoint:s(e.parent),line:c(e),code:l(r,c(e),u(e)),skipped:true,file:t})}if(e.isIdentifier({name:"it"})){if(!o(e.parent))return;const n=a(e.parent);p.push({name:n,suites:d.map(e=>a(e)),updatePoint:s(e.parent),line:c(e),code:l(r,c(e),u(e)),file:t,skipped:!!d.filter(e=>e.skipped).length})}}});return p})},695:function(e,t,r){const n=r(5706);const i=(e,t)=>n(e,t,true);e.exports=i},745:function(e,t,r){"use strict";var n=r(7138);const i=(e,t="TypeParameterDeclaration")=>{(0,n.default)(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends","mixins","implements","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)(t),extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),mixins:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),implements:(0,n.validateOptional)((0,n.arrayOfType)("ClassImplements")),body:(0,n.validateType)("ObjectTypeAnnotation")}})};(0,n.default)("AnyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow","FlowType"],fields:{elementType:(0,n.validateType)("FlowType")}});(0,n.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});i("DeclareClass");(0,n.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),predicate:(0,n.validateOptionalType)("DeclaredPredicate")}});i("DeclareInterface");(0,n.default)("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)(["Identifier","StringLiteral"]),body:(0,n.validateType)("BlockStatement"),kind:(0,n.validateOptional)((0,n.assertOneOf)("CommonJS","ES"))}});(0,n.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,n.validateType)("TypeAnnotation")}});(0,n.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}});(0,n.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateOptionalType)("FlowType")}});(0,n.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier")}});(0,n.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,n.validateOptionalType)("Flow"),specifiers:(0,n.validateOptional)((0,n.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,n.validateOptionalType)("StringLiteral"),default:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}});(0,n.default)("DeclareExportAllDeclaration",{visitor:["source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{source:(0,n.validateType)("StringLiteral"),exportKind:(0,n.validateOptional)((0,n.assertOneOf)("type","value"))}});(0,n.default)("DeclaredPredicate",{visitor:["value"],aliases:["Flow","FlowPredicate"],fields:{value:(0,n.validateType)("Flow")}});(0,n.default)("ExistsTypeAnnotation",{aliases:["Flow","FlowType"]});(0,n.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow","FlowType"],fields:{typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),params:(0,n.validate)((0,n.arrayOfType)("FunctionTypeParam")),rest:(0,n.validateOptionalType)("FunctionTypeParam"),this:(0,n.validateOptionalType)("FunctionTypeParam"),returnType:(0,n.validateType)("FlowType")}});(0,n.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{name:(0,n.validateOptionalType)("Identifier"),typeAnnotation:(0,n.validateType)("FlowType"),optional:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}});(0,n.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow","FlowType"],fields:{id:(0,n.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});(0,n.default)("InferredPredicate",{aliases:["Flow","FlowPredicate"]});(0,n.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{id:(0,n.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}});i("InterfaceDeclaration");(0,n.default)("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["Flow","FlowType"],fields:{extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),body:(0,n.validateType)("ObjectTypeAnnotation")}});(0,n.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});(0,n.default)("MixedTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow","FlowType"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}});(0,n.default)("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("number"))}});(0,n.default)("NumberTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["Flow","FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,n.validate)((0,n.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:(0,n.validateOptional)((0,n.arrayOfType)("ObjectTypeIndexer")),callProperties:(0,n.validateOptional)((0,n.arrayOfType)("ObjectTypeCallProperty")),internalSlots:(0,n.validateOptional)((0,n.arrayOfType)("ObjectTypeInternalSlot")),exact:{validate:(0,n.assertValueType)("boolean"),default:false},inexact:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}});(0,n.default)("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,n.validateType)("Identifier"),value:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean")),static:(0,n.validate)((0,n.assertValueType)("boolean")),method:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{id:(0,n.validateOptionalType)("Identifier"),key:(0,n.validateType)("FlowType"),value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance")}});(0,n.default)("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["Flow","UserWhitespacable"],fields:{key:(0,n.validateType)(["Identifier","StringLiteral"]),value:(0,n.validateType)("FlowType"),kind:(0,n.validate)((0,n.assertOneOf)("init","get","set")),static:(0,n.validate)((0,n.assertValueType)("boolean")),proto:(0,n.validate)((0,n.assertValueType)("boolean")),optional:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance"),method:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{argument:(0,n.validateType)("FlowType")}});(0,n.default)("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateType)("FlowType")}});(0,n.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{id:(0,n.validateType)("Identifier"),qualification:(0,n.validateType)(["Identifier","QualifiedTypeIdentifier"])}});(0,n.default)("StringLiteralTypeAnnotation",{builder:["value"],aliases:["Flow","FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("string"))}});(0,n.default)("StringTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("SymbolTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("ThisTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});(0,n.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow","FlowType"],fields:{argument:(0,n.validateType)("FlowType")}});(0,n.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}});(0,n.default)("TypeAnnotation",{aliases:["Flow"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}});(0,n.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TypeAnnotation")}});(0,n.default)("TypeParameter",{aliases:["Flow"],visitor:["bound","default","variance"],fields:{name:(0,n.validate)((0,n.assertValueType)("string")),bound:(0,n.validateOptionalType)("TypeAnnotation"),default:(0,n.validateOptionalType)("FlowType"),variance:(0,n.validateOptionalType)("Variance")}});(0,n.default)("TypeParameterDeclaration",{aliases:["Flow"],visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("TypeParameter"))}});(0,n.default)("TypeParameterInstantiation",{aliases:["Flow"],visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});(0,n.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow","FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}});(0,n.default)("Variance",{aliases:["Flow"],builder:["kind"],fields:{kind:(0,n.validate)((0,n.assertOneOf)("minus","plus"))}});(0,n.default)("VoidTypeAnnotation",{aliases:["Flow","FlowType","FlowBaseAnnotation"]});(0,n.default)("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,n.validateType)("Identifier"),body:(0,n.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});(0,n.default)("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}});(0,n.default)("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("BooleanLiteral")}});(0,n.default)("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("NumericLiteral")}});(0,n.default)("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("StringLiteral")}});(0,n.default)("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}});(0,n.default)("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType")}});(0,n.default)("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["Flow","FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean"))}})},746:function(e,t,r){r(476);var n=r(5496).Object;e.exports=function create(e,t){return n.create(e,t)}},749:function(e,t,r){var n=r(5284);var i=r(5753);var a=r(4527)(false);var s=r(6059)("IE_PROTO");e.exports=function(e,t){var r=i(e);var o=0;var c=[];var u;for(u in r)if(u!=s)n(r,u)&&c.push(u);while(t.length>o)if(n(r,u=t[o++])){~a(c,u)||c.push(u)}return c}},755:function(e,t,r){var n=r(820);function listCacheGet(e){var t=this.__data__,r=n(t,e);return r<0?undefined:t[r][1]}e.exports=listCacheGet},773:function(e,t,r){var n=r(6438);var i=r(4439)("iterator");var a=Array.prototype;e.exports=function(e){return e!==undefined&&(n.Array===e||a[i]===e)}},776:function(e,t,r){var n=r(3713);var i={};for(var a in n){if(n.hasOwnProperty(a)){i[n[a]]=a}}var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in s){if(s.hasOwnProperty(o)){if(!("channels"in s[o])){throw new Error("missing channels property: "+o)}if(!("labels"in s[o])){throw new Error("missing channel labels property: "+o)}if(s[o].labels.length!==s[o].channels){throw new Error("channel and label counts mismatch: "+o)}var c=s[o].channels;var u=s[o].labels;delete s[o].channels;delete s[o].labels;Object.defineProperty(s[o],"channels",{value:c});Object.defineProperty(s[o],"labels",{value:u})}}s.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var a=Math.max(t,r,n);var s=a-i;var o;var c;var u;if(a===i){o=0}else if(t===a){o=(r-n)/s}else if(r===a){o=2+(n-t)/s}else if(n===a){o=4+(t-r)/s}o=Math.min(o*60,360);if(o<0){o+=360}u=(i+a)/2;if(a===i){c=0}else if(u<=.5){c=s/(a+i)}else{c=s/(2-a-i)}return[o,c*100,u*100]};s.rgb.hsv=function(e){var t;var r;var n;var i;var a;var s=e[0]/255;var o=e[1]/255;var c=e[2]/255;var u=Math.max(s,o,c);var l=u-Math.min(s,o,c);var p=function(e){return(u-e)/6/l+1/2};if(l===0){i=a=0}else{a=l/u;t=p(s);r=p(o);n=p(c);if(s===u){i=n-r}else if(o===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,a*100,u*100]};s.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=s.rgb.hsl(e)[0];var a=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,a*100,n*100]};s.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var a;var s;var o;o=Math.min(1-t,1-r,1-n);i=(1-t-o)/(1-o)||0;a=(1-r-o)/(1-o)||0;s=(1-n-o)/(1-o)||0;return[i*100,a*100,s*100,o*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}s.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var a;for(var s in n){if(n.hasOwnProperty(s)){var o=n[s];var c=comparativeDistance(e,o);if(c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var a=t*.2126+r*.7152+n*.0722;var s=t*.0193+r*.1192+n*.9505;return[i*100,a*100,s*100]};s.rgb.lab=function(e){var t=s.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var a;var o;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;a=116*n-16;o=500*(r-n);c=200*(n-i);return[a,o,c]};s.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var a;var s;var o;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){a=n*(1+r)}else{a=n+r-n*r}i=2*n-a;o=[0,0,0];for(var u=0;u<3;u++){s=t+1/3*-(u-1);if(s<0){s++}if(s>1){s--}if(6*s<1){c=i+(a-i)*6*s}else if(2*s<1){c=a}else if(3*s<2){c=i+(a-i)*(2/3-s)*6}else{c=i}o[u]=c*255}return o};s.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var a=Math.max(n,.01);var s;var o;n*=2;r*=n<=1?n:2-n;i*=a<=1?a:2-a;o=(n+r)/2;s=n===0?2*i/(a+i):2*r/(n+r);return[t,s*100,o*100]};s.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var a=t-Math.floor(t);var s=255*n*(1-r);var o=255*n*(1-r*a);var c=255*n*(1-r*(1-a));n*=255;switch(i){case 0:return[n,c,s];case 1:return[o,n,s];case 2:return[s,n,c];case 3:return[s,o,n];case 4:return[c,s,n];case 5:return[n,s,o]}};s.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var a;var s;var o;o=(2-r)*n;a=(2-r)*i;s=r*i;s/=a<=1?a:2-a;s=s||0;o/=2;return[t,s*100,o*100]};s.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var a;var s;var o;var c;if(i>1){r/=i;n/=i}a=Math.floor(6*t);s=1-n;o=6*t-a;if((a&1)!==0){o=1-o}c=r+o*(s-r);var u;var l;var p;switch(a){default:case 6:case 0:u=s;l=c;p=r;break;case 1:u=c;l=s;p=r;break;case 2:u=r;l=s;p=c;break;case 3:u=r;l=c;p=s;break;case 4:u=c;l=r;p=s;break;case 5:u=s;l=r;p=c;break}return[u*255,l*255,p*255]};s.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var a;var s;var o;a=1-Math.min(1,t*(1-i)+i);s=1-Math.min(1,r*(1-i)+i);o=1-Math.min(1,n*(1-i)+i);return[a*255,s*255,o*255]};s.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var a;var s;i=t*3.2406+r*-1.5372+n*-.4986;a=t*-.9689+r*1.8758+n*.0415;s=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;i=Math.min(Math.max(0,i),1);a=Math.min(Math.max(0,a),1);s=Math.min(Math.max(0,s),1);return[i*255,a*255,s*255]};s.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var s;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;a=500*(t-r);s=200*(r-n);return[i,a,s]};s.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var s;a=(t+16)/116;i=r/500+a;s=a-n/200;var o=Math.pow(a,3);var c=Math.pow(i,3);var u=Math.pow(s,3);a=o>.008856?o:(a-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;s=u>.008856?u:(s-16/116)/7.787;i*=95.047;a*=100;s*=108.883;return[i,a,s]};s.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var s;i=Math.atan2(n,r);a=i*360/2/Math.PI;if(a<0){a+=360}s=Math.sqrt(r*r+n*n);return[t,s,a]};s.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var a;var s;s=n/360*2*Math.PI;i=r*Math.cos(s);a=r*Math.sin(s);return[t,i,a]};s.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){a+=60}return a};s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])};s.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};s.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var a=(t>>2&1)*r*255;return[n,i,a]};s.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var a=r%6/5*255;return[n,i,a]};s.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var a=n>>8&255;var s=n&255;return[i,a,s]};s.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var a=Math.min(Math.min(t,r),n);var s=i-a;var o;var c;if(s<1){o=a/(1-s)}else{o=0}if(s<=0){c=0}else if(i===t){c=(r-n)/s%6}else if(i===r){c=2+(n-t)/s}else{c=4+(t-r)/s+4}c/=6;c%=1;return[c*360,s*100,o*100]};s.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};s.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};s.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var a=t%1*6;var s=a%1;var o=1-s;var c=0;switch(Math.floor(a)){case 0:i[0]=1;i[1]=s;i[2]=0;break;case 1:i[0]=o;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=s;break;case 3:i[0]=0;i[1]=o;i[2]=1;break;case 4:i[0]=s;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=o}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};s.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};s.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};s.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};s.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var a=0;if(i<1){a=(n-i)/(1-i)}return[e[0],i*100,a*100]};s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]};s.gray.hwb=function(e){return[0,100,e[0]]};s.gray.cmyk=function(e){return[0,0,0,e[0]]};s.gray.lab=function(e){return[e[0],0,0]};s.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};s.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},783:function(e,t,r){"use strict";const n=r(1382);const i=r(2435);const a=r(1441);const s=r(8227);const o=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let n of e){let e=o.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(o.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};o.parse=((e,t={})=>s(e,t));o.stringify=((e,t={})=>{if(typeof e==="string"){return n(o.parse(e,t),t)}return n(e,t)});o.compile=((e,t={})=>{if(typeof e==="string"){e=o.parse(e,t)}return i(e,t)});o.expand=((e,t={})=>{if(typeof e==="string"){e=o.parse(e,t)}let r=a(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r});o.create=((e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?o.compile(e,t):o.expand(e,t)});e.exports=o},792:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toBindingIdentifierName;var n=r(1433);function toBindingIdentifierName(e){e=(0,n.default)(e);if(e==="eval"||e==="arguments")e="_"+e;return e}},799:function(e){var t=e.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=t},801:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(8094);class SourceMap{constructor(e,t){this._cachedMap=void 0;this._code=void 0;this._opts=void 0;this._rawMappings=void 0;this._lastGenLine=void 0;this._lastSourceLine=void 0;this._lastSourceColumn=void 0;this._cachedMap=null;this._code=t;this._opts=e;this._rawMappings=[]}get(){if(!this._cachedMap){const e=this._cachedMap=new n.SourceMapGenerator({sourceRoot:this._opts.sourceRoot});const t=this._code;if(typeof t==="string"){e.setSourceContent(this._opts.sourceFileName.replace(/\\/g,"/"),t)}else if(typeof t==="object"){Object.keys(t).forEach(r=>{e.setSourceContent(r.replace(/\\/g,"/"),t[r])})}this._rawMappings.forEach(t=>e.addMapping(t),e)}return this._cachedMap.toJSON()}getRawMappings(){return this._rawMappings.slice()}mark(e,t,r,n,i,a,s){if(this._lastGenLine!==e&&r===null)return;if(!s&&this._lastGenLine===e&&this._lastSourceLine===r&&this._lastSourceColumn===n){return}this._cachedMap=null;this._lastGenLine=e;this._lastSourceLine=r;this._lastSourceColumn=n;this._rawMappings.push({name:i||undefined,generated:{line:e,column:t},source:r==null?undefined:(a||this._opts.sourceFileName).replace(/\\/g,"/"),original:r==null?undefined:{line:r,column:n}})}}t.default=SourceMap},805:function(e,t,r){const n=r(5369);const i=(e,t,r)=>{const i=new n(e,r);const a=new n(t,r);return i.compare(a)||i.compareBuild(a)};e.exports=i},813:function(e,t,r){var n=r(8933);function toInteger(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}e.exports=toInteger},820:function(e,t,r){var n=r(5338);function assocIndexOf(e,t){var r=e.length;while(r--){if(n(e[r][0],t)){return r}}return-1}e.exports=assocIndexOf},824:function(e,t,r){var n=r(8319),i=r(7824);var a=n(i,"Promise");e.exports=a},827:function(e,t,r){"use strict";e.exports=r(7366)},842:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;tc)if(o.call(e,u=s[c++]))t.push(u)}return t}},844:function(e,t,r){const n=r(962);const i=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t)};e.exports=i},851:function(e,t,r){var n=r(2988),i=r(4514),a=r(3540);var s=Object.prototype;var o=s.hasOwnProperty;function baseKeysIn(e){if(!n(e)){return a(e)}var t=i(e),r=[];for(var s in e){if(!(s=="constructor"&&(t||!o.call(e,s)))){r.push(s)}}return r}e.exports=baseKeysIn},856:function(e,t,r){"use strict";const n=r(4213);const i=r(2530);const a={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443};const s=Symbol("failure");function countSymbols(e){return n.ucs2.decode(e).length}function at(e,t){const r=e[t];return isNaN(r)?undefined:String.fromCodePoint(r)}function isASCIIDigit(e){return e>=48&&e<=57}function isASCIIAlpha(e){return e>=65&&e<=90||e>=97&&e<=122}function isASCIIAlphanumeric(e){return isASCIIAlpha(e)||isASCIIDigit(e)}function isASCIIHex(e){return isASCIIDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isSingleDot(e){return e==="."||e.toLowerCase()==="%2e"}function isDoubleDot(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"}function isWindowsDriveLetterCodePoints(e,t){return isASCIIAlpha(e)&&(t===58||t===124)}function isWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&(e[1]===":"||e[1]==="|")}function isNormalizedWindowsDriveLetterString(e){return e.length===2&&isASCIIAlpha(e.codePointAt(0))&&e[1]===":"}function containsForbiddenHostCodePoint(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/)!==-1}function containsForbiddenHostCodePointExcludingPercent(e){return e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/)!==-1}function isSpecialScheme(e){return a[e]!==undefined}function isSpecial(e){return isSpecialScheme(e.scheme)}function defaultPort(e){return a[e]}function percentEncode(e){let t=e.toString(16).toUpperCase();if(t.length===1){t="0"+t}return"%"+t}function utf8PercentEncode(e){const t=new Buffer(e);let r="";for(let e=0;e126}const o=new Set([32,34,35,60,62,63,96,123,125]);function isPathPercentEncode(e){return isC0ControlPercentEncode(e)||o.has(e)}const c=new Set([47,58,59,61,64,91,92,93,94,124]);function isUserinfoPercentEncode(e){return isPathPercentEncode(e)||c.has(e)}function percentEncodeChar(e,t){const r=String.fromCodePoint(e);if(t(e)){return utf8PercentEncode(r)}return r}function parseIPv4Number(e){let t=10;if(e.length>=2&&e.charAt(0)==="0"&&e.charAt(1).toLowerCase()==="x"){e=e.substring(2);t=16}else if(e.length>=2&&e.charAt(0)==="0"){e=e.substring(1);t=8}if(e===""){return 0}const r=t===10?/[^0-9]/:t===16?/[^0-9A-Fa-f]/:/[^0-7]/;if(r.test(e)){return s}return parseInt(e,t)}function parseIPv4(e){const t=e.split(".");if(t[t.length-1]===""){if(t.length>1){t.pop()}}if(t.length>4){return e}const r=[];for(const n of t){if(n===""){return e}const t=parseIPv4Number(n);if(t===s){return e}r.push(t)}for(let e=0;e255){return s}}if(r[r.length-1]>=Math.pow(256,5-r.length)){return s}let n=r.pop();let i=0;for(const e of r){n+=e*Math.pow(256,3-i);++i}return n}function serializeIPv4(e){let t="";let r=e;for(let e=1;e<=4;++e){t=String(r%256)+t;if(e!==4){t="."+t}r=Math.floor(r/256)}return t}function parseIPv6(e){const t=[0,0,0,0,0,0,0,0];let r=0;let i=null;let a=0;e=n.ucs2.decode(e);if(e[a]===58){if(e[a+1]!==58){return s}a+=2;++r;i=r}while(a6){return s}let n=0;while(e[a]!==undefined){let i=null;if(n>0){if(e[a]===46&&n<4){++a}else{return s}}if(!isASCIIDigit(e[a])){return s}while(isASCIIDigit(e[a])){const t=parseInt(at(e,a));if(i===null){i=t}else if(i===0){return s}else{i=i*10+t}if(i>255){return s}++a}t[r]=t[r]*256+i;++n;if(n===2||n===4){++r}}if(n!==4){return s}break}else if(e[a]===58){++a;if(e[a]===undefined){return s}}else if(e[a]!==undefined){return s}t[r]=n;++r}if(i!==null){let e=r-i;r=7;while(r!==0&&e>0){const n=t[i+e-1];t[i+e-1]=t[r];t[r]=n;--r;--e}}else if(i===null&&r!==8){return s}return t}function serializeIPv6(e){let t="";const r=findLongestZeroSequence(e);const n=r.idx;let i=false;for(let r=0;r<=7;++r){if(i&&e[r]===0){continue}else if(i){i=false}if(n===r){const e=r===0?"::":":";t+=e;i=true;continue}t+=e[r].toString(16);if(r!==7){t+=":"}}return t}function parseHost(e,t){if(e[0]==="["){if(e[e.length-1]!=="]"){return s}return parseIPv6(e.substring(1,e.length-1))}if(!t){return parseOpaqueHost(e)}const r=utf8PercentDecode(e);const n=i.toASCII(r,false,i.PROCESSING_OPTIONS.NONTRANSITIONAL,false);if(n===null){return s}if(containsForbiddenHostCodePoint(n)){return s}const a=parseIPv4(n);if(typeof a==="number"||a===s){return a}return n}function parseOpaqueHost(e){if(containsForbiddenHostCodePointExcludingPercent(e)){return s}let t="";const r=n.ucs2.decode(e);for(let e=0;er){t=n;r=i}n=null;i=0}else{if(n===null){n=a}++i}}if(i>r){t=n;r=i}return{idx:t,len:r}}function serializeHost(e){if(typeof e==="number"){return serializeIPv4(e)}if(e instanceof Array){return"["+serializeIPv6(e)+"]"}return e}function trimControlChars(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}function trimTabAndNewline(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}function shortenPath(e){const t=e.path;if(t.length===0){return}if(e.scheme==="file"&&t.length===1&&isNormalizedWindowsDriveLetter(t[0])){return}t.pop()}function includesCredentials(e){return e.username!==""||e.password!==""}function cannotHaveAUsernamePasswordPort(e){return e.host===null||e.host===""||e.cannotBeABaseURL||e.scheme==="file"}function isNormalizedWindowsDriveLetter(e){return/^[A-Za-z]:$/.test(e)}function URLStateMachine(e,t,r,i,a){this.pointer=0;this.input=e;this.base=t||null;this.encodingOverride=r||"utf-8";this.stateOverride=a;this.url=i;this.failure=false;this.parseError=false;if(!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:false};const e=trimControlChars(this.input);if(e!==this.input){this.parseError=true}this.input=e}const o=trimTabAndNewline(this.input);if(o!==this.input){this.parseError=true}this.input=o;this.state=a||"scheme start";this.buffer="";this.atFlag=false;this.arrFlag=false;this.passwordTokenSeenFlag=false;this.input=n.ucs2.decode(this.input);for(;this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer];const t=isNaN(e)?undefined:String.fromCodePoint(e);const r=this["parse "+this.state](e,t);if(!r){break}else if(r===s){this.failure=true;break}}}URLStateMachine.prototype["parse scheme start"]=function parseSchemeStart(e,t){if(isASCIIAlpha(e)){this.buffer+=t.toLowerCase();this.state="scheme"}else if(!this.stateOverride){this.state="no scheme";--this.pointer}else{this.parseError=true;return s}return true};URLStateMachine.prototype["parse scheme"]=function parseScheme(e,t){if(isASCIIAlphanumeric(e)||e===43||e===45||e===46){this.buffer+=t.toLowerCase()}else if(e===58){if(this.stateOverride){if(isSpecial(this.url)&&!isSpecialScheme(this.buffer)){return false}if(!isSpecial(this.url)&&isSpecialScheme(this.buffer)){return false}if((includesCredentials(this.url)||this.url.port!==null)&&this.buffer==="file"){return false}if(this.url.scheme==="file"&&(this.url.host===""||this.url.host===null)){return false}}this.url.scheme=this.buffer;this.buffer="";if(this.stateOverride){return false}if(this.url.scheme==="file"){if(this.input[this.pointer+1]!==47||this.input[this.pointer+2]!==47){this.parseError=true}this.state="file"}else if(isSpecial(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme){this.state="special relative or authority"}else if(isSpecial(this.url)){this.state="special authority slashes"}else if(this.input[this.pointer+1]===47){this.state="path or authority";++this.pointer}else{this.url.cannotBeABaseURL=true;this.url.path.push("");this.state="cannot-be-a-base-URL path"}}else if(!this.stateOverride){this.buffer="";this.state="no scheme";this.pointer=-1}else{this.parseError=true;return s}return true};URLStateMachine.prototype["parse no scheme"]=function parseNoScheme(e){if(this.base===null||this.base.cannotBeABaseURL&&e!==35){return s}else if(this.base.cannotBeABaseURL&&e===35){this.url.scheme=this.base.scheme;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.url.cannotBeABaseURL=true;this.state="fragment"}else if(this.base.scheme==="file"){this.state="file";--this.pointer}else{this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse special relative or authority"]=function parseSpecialRelativeOrAuthority(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="relative";--this.pointer}return true};URLStateMachine.prototype["parse path or authority"]=function parsePathOrAuthority(e){if(e===47){this.state="authority"}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative"]=function parseRelative(e){this.url.scheme=this.base.scheme;if(isNaN(e)){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===47){this.state="relative slash"}else if(e===63){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else if(isSpecial(this.url)&&e===92){this.parseError=true;this.state="relative slash"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.url.path=this.base.path.slice(0,this.base.path.length-1);this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse relative slash"]=function parseRelativeSlash(e){if(isSpecial(this.url)&&(e===47||e===92)){if(e===92){this.parseError=true}this.state="special authority ignore slashes"}else if(e===47){this.state="authority"}else{this.url.username=this.base.username;this.url.password=this.base.password;this.url.host=this.base.host;this.url.port=this.base.port;this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse special authority slashes"]=function parseSpecialAuthoritySlashes(e){if(e===47&&this.input[this.pointer+1]===47){this.state="special authority ignore slashes";++this.pointer}else{this.parseError=true;this.state="special authority ignore slashes";--this.pointer}return true};URLStateMachine.prototype["parse special authority ignore slashes"]=function parseSpecialAuthorityIgnoreSlashes(e){if(e!==47&&e!==92){this.state="authority";--this.pointer}else{this.parseError=true}return true};URLStateMachine.prototype["parse authority"]=function parseAuthority(e,t){if(e===64){this.parseError=true;if(this.atFlag){this.buffer="%40"+this.buffer}this.atFlag=true;const e=countSymbols(this.buffer);for(let t=0;tMath.pow(2,16)-1){this.parseError=true;return s}this.url.port=e===defaultPort(this.url.scheme)?null:e;this.buffer=""}if(this.stateOverride){return false}this.state="path start";--this.pointer}else{this.parseError=true;return s}return true};const u=new Set([47,92,63,35]);URLStateMachine.prototype["parse file"]=function parseFile(e){this.url.scheme="file";if(e===47||e===92){if(e===92){this.parseError=true}this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(isNaN(e)){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query}else if(e===63){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query="";this.state="query"}else if(e===35){this.url.host=this.base.host;this.url.path=this.base.path.slice();this.url.query=this.base.query;this.url.fragment="";this.state="fragment"}else{if(this.input.length-this.pointer-1===0||!isWindowsDriveLetterCodePoints(e,this.input[this.pointer+1])||this.input.length-this.pointer-1>=2&&!u.has(this.input[this.pointer+2])){this.url.host=this.base.host;this.url.path=this.base.path.slice();shortenPath(this.url)}else{this.parseError=true}this.state="path";--this.pointer}}else{this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file slash"]=function parseFileSlash(e){if(e===47||e===92){if(e===92){this.parseError=true}this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(isNormalizedWindowsDriveLetterString(this.base.path[0])){this.url.path.push(this.base.path[0])}else{this.url.host=this.base.host}}this.state="path";--this.pointer}return true};URLStateMachine.prototype["parse file host"]=function parseFileHost(e,t){if(isNaN(e)||e===47||e===92||e===63||e===35){--this.pointer;if(!this.stateOverride&&isWindowsDriveLetterString(this.buffer)){this.parseError=true;this.state="path"}else if(this.buffer===""){this.url.host="";if(this.stateOverride){return false}this.state="path start"}else{let e=parseHost(this.buffer,isSpecial(this.url));if(e===s){return s}if(e==="localhost"){e=""}this.url.host=e;if(this.stateOverride){return false}this.buffer="";this.state="path start"}}else{this.buffer+=t}return true};URLStateMachine.prototype["parse path start"]=function parsePathStart(e){if(isSpecial(this.url)){if(e===92){this.parseError=true}this.state="path";if(e!==47&&e!==92){--this.pointer}}else if(!this.stateOverride&&e===63){this.url.query="";this.state="query"}else if(!this.stateOverride&&e===35){this.url.fragment="";this.state="fragment"}else if(e!==undefined){this.state="path";if(e!==47){--this.pointer}}return true};URLStateMachine.prototype["parse path"]=function parsePath(e){if(isNaN(e)||e===47||isSpecial(this.url)&&e===92||!this.stateOverride&&(e===63||e===35)){if(isSpecial(this.url)&&e===92){this.parseError=true}if(isDoubleDot(this.buffer)){shortenPath(this.url);if(e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}}else if(isSingleDot(this.buffer)&&e!==47&&!(isSpecial(this.url)&&e===92)){this.url.path.push("")}else if(!isSingleDot(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&isWindowsDriveLetterString(this.buffer)){if(this.url.host!==""&&this.url.host!==null){this.parseError=true;this.url.host=""}this.buffer=this.buffer[0]+":"}this.url.path.push(this.buffer)}this.buffer="";if(this.url.scheme==="file"&&(e===undefined||e===63||e===35)){while(this.url.path.length>1&&this.url.path[0]===""){this.parseError=true;this.url.path.shift()}}if(e===63){this.url.query="";this.state="query"}if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=percentEncodeChar(e,isPathPercentEncode)}return true};URLStateMachine.prototype["parse cannot-be-a-base-URL path"]=function parseCannotBeABaseURLPath(e){if(e===63){this.url.query="";this.state="query"}else if(e===35){this.url.fragment="";this.state="fragment"}else{if(!isNaN(e)&&e!==37){this.parseError=true}if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}if(!isNaN(e)){this.url.path[0]=this.url.path[0]+percentEncodeChar(e,isC0ControlPercentEncode)}}return true};URLStateMachine.prototype["parse query"]=function parseQuery(e,t){if(isNaN(e)||!this.stateOverride&&e===35){if(!isSpecial(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss"){this.encodingOverride="utf-8"}const t=new Buffer(this.buffer);for(let e=0;e126||t[e]===34||t[e]===35||t[e]===60||t[e]===62){this.url.query+=percentEncode(t[e])}else{this.url.query+=String.fromCodePoint(t[e])}}this.buffer="";if(e===35){this.url.fragment="";this.state="fragment"}}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.buffer+=t}return true};URLStateMachine.prototype["parse fragment"]=function parseFragment(e){if(isNaN(e)){}else if(e===0){this.parseError=true}else{if(e===37&&(!isASCIIHex(this.input[this.pointer+1])||!isASCIIHex(this.input[this.pointer+2]))){this.parseError=true}this.url.fragment+=percentEncodeChar(e,isC0ControlPercentEncode)}return true};function serializeURL(e,t){let r=e.scheme+":";if(e.host!==null){r+="//";if(e.username!==""||e.password!==""){r+=e.username;if(e.password!==""){r+=":"+e.password}r+="@"}r+=serializeHost(e.host);if(e.port!==null){r+=":"+e.port}}else if(e.host===null&&e.scheme==="file"){r+="//"}if(e.cannotBeABaseURL){r+=e.path[0]}else{for(const t of e.path){r+="/"+t}}if(e.query!==null){r+="?"+e.query}if(!t&&e.fragment!==null){r+="#"+e.fragment}return r}function serializeOrigin(e){let t=e.scheme+"://";t+=serializeHost(e.host);if(e.port!==null){t+=":"+e.port}return t}e.exports.serializeURL=serializeURL;e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return serializeOrigin({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}};e.exports.basicURLParse=function(e,t){if(t===undefined){t={}}const r=new URLStateMachine(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);if(r.failure){return"failure"}return r.url};e.exports.setTheUsername=function(e,t){e.username="";const r=n.ucs2.decode(t);for(let t=0;tnormalizeOptions(e)),files:new Set}}const l=makeChainWalker({root:e=>p(e),env:(e,t)=>d(e)(t),overrides:(e,t)=>f(e)(t),overridesEnv:(e,t,r)=>m(e)(t)(r),createLogger:()=>()=>{}});t.buildPresetChainWalker=l;const p=(0,o.makeWeakCacheSync)(e=>buildRootDescriptors(e,e.alias,c.createUncachedDescriptors));const d=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>buildEnvDescriptors(e,e.alias,c.createUncachedDescriptors,t)));const f=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>buildOverrideDescriptors(e,e.alias,c.createUncachedDescriptors,t)));const m=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>(0,o.makeStrongCacheSync)(r=>buildOverrideEnvDescriptors(e,e.alias,c.createUncachedDescriptors,t,r))));function*buildRootChain(e,t){let r,n;const i=new a.ConfigPrinter;const o=yield*y({options:e,dirname:t.cwd},t,undefined,i);if(!o)return null;const c=yield*i.output();let u;if(typeof e.configFile==="string"){u=yield*(0,s.loadConfig)(e.configFile,t.cwd,t.envName,t.caller)}else if(e.configFile!==false){u=yield*(0,s.findRootConfig)(t.root,t.envName,t.caller)}let{babelrc:l,babelrcRoots:p}=e;let d=t.cwd;const f=emptyChain();const m=new a.ConfigPrinter;if(u){const e=g(u);const n=yield*loadFileChain(e,t,undefined,m);if(!n)return null;r=yield*m.output();if(l===undefined){l=e.options.babelrc}if(p===undefined){d=e.dirname;p=e.options.babelrcRoots}mergeChain(f,n)}let h,v;let T=false;const S=emptyChain();if((l===true||l===undefined)&&typeof t.filename==="string"){const e=yield*(0,s.findPackageData)(t.filename);if(e&&babelrcLoadEnabled(t,e,p,d)){({ignore:h,config:v}=yield*(0,s.findRelativeConfig)(e,t.envName,t.caller));if(h){S.files.add(h.filepath)}if(h&&shouldIgnore(t,h.ignore,null,h.dirname)){T=true}if(v&&!T){const e=_(v);const r=new a.ConfigPrinter;const i=yield*loadFileChain(e,t,undefined,r);if(!i){T=true}else{n=yield*r.output();mergeChain(S,i)}}if(v&&T){S.files.add(v.filepath)}}}if(t.showConfig){console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,n,c].filter(e=>!!e).join("\n\n")+"\n-----End Babel configs-----")}const b=mergeChain(mergeChain(mergeChain(emptyChain(),f),S),o);return{plugins:T?[]:dedupDescriptors(b.plugins),presets:T?[]:dedupDescriptors(b.presets),options:T?[]:b.options.map(e=>normalizeOptions(e)),fileHandling:T?"ignored":"transpile",ignore:h||undefined,babelrc:v||undefined,config:u||undefined,files:b.files}}function babelrcLoadEnabled(e,t,r,n){if(typeof r==="boolean")return r;const a=e.root;if(r===undefined){return t.directories.indexOf(a)!==-1}let s=r;if(!Array.isArray(s)){s=[s]}s=s.map(e=>{return typeof e==="string"?_path().resolve(n,e):e});if(s.length===1&&s[0]===a){return t.directories.indexOf(a)!==-1}return s.some(r=>{if(typeof r==="string"){r=(0,i.default)(r,n)}return t.directories.some(t=>{return matchPattern(r,n,t,e)})})}const g=(0,o.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("configfile",e.options)}));const _=(0,o.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("babelrcfile",e.options)}));const h=(0,o.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("extendsfile",e.options)}));const y=makeChainWalker({root:e=>buildRootDescriptors(e,"base",c.createCachedDescriptors),env:(e,t)=>buildEnvDescriptors(e,"base",c.createCachedDescriptors,t),overrides:(e,t)=>buildOverrideDescriptors(e,"base",c.createCachedDescriptors,t),overridesEnv:(e,t,r)=>buildOverrideEnvDescriptors(e,"base",c.createCachedDescriptors,t,r),createLogger:(e,t,r)=>buildProgrammaticLogger(e,t,r)});const v=makeChainWalker({root:e=>T(e),env:(e,t)=>S(e)(t),overrides:(e,t)=>b(e)(t),overridesEnv:(e,t,r)=>E(e)(t)(r),createLogger:(e,t,r)=>buildFileLogger(e.filepath,t,r)});function*loadFileChain(e,t,r,n){const i=yield*v(e,t,r,n);if(i){i.files.add(e.filepath)}return i}const T=(0,o.makeWeakCacheSync)(e=>buildRootDescriptors(e,e.filepath,c.createUncachedDescriptors));const S=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>buildEnvDescriptors(e,e.filepath,c.createUncachedDescriptors,t)));const b=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>buildOverrideDescriptors(e,e.filepath,c.createUncachedDescriptors,t)));const E=(0,o.makeWeakCacheSync)(e=>(0,o.makeStrongCacheSync)(t=>(0,o.makeStrongCacheSync)(r=>buildOverrideEnvDescriptors(e,e.filepath,c.createUncachedDescriptors,t,r))));function buildFileLogger(e,t,r){if(!r){return()=>{}}return r.configure(t.showConfig,a.ChainFormatter.Config,{filepath:e})}function buildRootDescriptors({dirname:e,options:t},r,n){return n(e,t,r)}function buildProgrammaticLogger(e,t,r){var n;if(!r){return()=>{}}return r.configure(t.showConfig,a.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name})}function buildEnvDescriptors({dirname:e,options:t},r,n,i){const a=t.env&&t.env[i];return a?n(e,a,`${r}.env["${i}"]`):null}function buildOverrideDescriptors({dirname:e,options:t},r,n,i){const a=t.overrides&&t.overrides[i];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${i}]`)}function buildOverrideEnvDescriptors({dirname:e,options:t},r,n,i,a){const s=t.overrides&&t.overrides[i];if(!s)throw new Error("Assertion failure - missing override");const o=s.env&&s.env[a];return o?n(e,o,`${r}.overrides[${i}].env["${a}"]`):null}function makeChainWalker({root:e,env:t,overrides:r,overridesEnv:n,createLogger:i}){return function*(a,s,o=new Set,c){const{dirname:u}=a;const l=[];const p=e(a);if(configIsApplicable(p,u,s)){l.push({config:p,envName:undefined,index:undefined});const e=t(a,s.envName);if(e&&configIsApplicable(e,u,s)){l.push({config:e,envName:s.envName,index:undefined})}(p.options.overrides||[]).forEach((e,t)=>{const i=r(a,t);if(configIsApplicable(i,u,s)){l.push({config:i,index:t,envName:undefined});const e=n(a,t,s.envName);if(e&&configIsApplicable(e,u,s)){l.push({config:e,index:t,envName:s.envName})}}})}if(l.some(({config:{options:{ignore:e,only:t}}})=>shouldIgnore(s,e,t,u))){return null}const d=emptyChain();const f=i(a,s,c);for(const{config:e,index:t,envName:r}of l){if(!(yield*mergeExtendsChain(d,e.options,u,s,o,c))){return null}f(e,t,r);yield*mergeChainOpts(d,e)}return d}}function*mergeExtendsChain(e,t,r,n,i,a){if(t.extends===undefined)return true;const o=yield*(0,s.loadConfig)(t.extends,r,n.envName,n.caller);if(i.has(o)){throw new Error(`Configuration cycle detected loading ${o.filepath}.\n`+`File already loaded following the config chain:\n`+Array.from(i,e=>` - ${e.filepath}`).join("\n"))}i.add(o);const c=yield*loadFileChain(h(o),n,i,a);i.delete(o);if(!c)return false;mergeChain(e,c);return true}function mergeChain(e,t){e.options.push(...t.options);e.plugins.push(...t.plugins);e.presets.push(...t.presets);for(const r of t.files){e.files.add(r)}return e}function*mergeChainOpts(e,{options:t,plugins:r,presets:n}){e.options.push(t);e.plugins.push(...yield*r());e.presets.push(...yield*n());return e}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(e){const t=Object.assign({},e);delete t.extends;delete t.env;delete t.overrides;delete t.plugins;delete t.presets;delete t.passPerPreset;delete t.ignore;delete t.only;delete t.test;delete t.include;delete t.exclude;if(Object.prototype.hasOwnProperty.call(t,"sourceMap")){t.sourceMaps=t.sourceMap;delete t.sourceMap}return t}function dedupDescriptors(e){const t=new Map;const r=[];for(const n of e){if(typeof n.value==="function"){const e=n.value;let i=t.get(e);if(!i){i=new Map;t.set(e,i)}let a=i.get(n.name);if(!a){a={value:n};r.push(a);if(!n.ownPass)i.set(n.name,a)}else{a.value=n}}else{r.push({value:n})}}return r.reduce((e,t)=>{e.push(t.value);return e},[])}function configIsApplicable({options:e},t,r){return(e.test===undefined||configFieldIsApplicable(r,e.test,t))&&(e.include===undefined||configFieldIsApplicable(r,e.include,t))&&(e.exclude===undefined||!configFieldIsApplicable(r,e.exclude,t))}function configFieldIsApplicable(e,t,r){const n=Array.isArray(t)?t:[t];return matchesPatterns(e,n,r)}function shouldIgnore(e,t,r,n){if(t&&matchesPatterns(e,t,n)){var i;const r=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t)}\` from "${n}"`;u(r);if(e.showConfig){console.log(r)}return true}if(r&&!matchesPatterns(e,r,n)){var a;const t=`No config is applied to "${(a=e.filename)!=null?a:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r)}\` from "${n}"`;u(t);if(e.showConfig){console.log(t)}return true}return false}function matchesPatterns(e,t,r){return t.some(t=>matchPattern(t,r,e.filename,e))}function matchPattern(e,t,r,n){if(typeof e==="function"){return!!e(r,{dirname:t,envName:n.envName,caller:n.caller})}if(typeof r!=="string"){throw new Error(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`)}if(typeof e==="string"){e=(0,i.default)(e,t)}return e.test(r)}},884:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},887:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2444);const i=r(3444);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t);const i=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,i)}_getMatcher(e){return new i.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,i){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const a=n.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(a,r)){return false}return this._isSkippedByNegativePatterns(a,i)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!n.pattern.matchAny(e,t)}}t.default=DeepFilter},891:function(e,t,r){var n=r(109);var i=r(2851);e.exports=r(917)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){e[t]=r;return e}},917:function(e,t,r){e.exports=!r(3461)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},929:function(e,t,r){e.exports={default:r(6466),__esModule:true}},930:function(e,t,r){const n=r(1486);const i=r(5706);e.exports=((e,t,r)=>{const a=[];let s=null;let o=null;const c=e.sort((e,t)=>i(e,t,r));for(const e of c){const i=n(e,t,r);if(i){o=e;if(!s)s=e}else{if(o){a.push([s,o])}o=null;s=null}}if(s)a.push([s,null]);const u=[];for(const[e,t]of a){if(e===t)u.push(e);else if(!t&&e===c[0])u.push("*");else if(!t)u.push(`>=${e}`);else if(e===c[0])u.push(`<=${t}`);else u.push(`${e} - ${t}`)}const l=u.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return l.lengththis.parseRange(e.trim())).filter(e=>e.length);if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter(e=>!m(e[0]));if(this.set.length===0)this.set=[e];else if(this.set.length>1){for(const e of this.set){if(e.length===1&&g(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map(e=>{return e.join(" ").trim()}).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const n=i.get(r);if(n)return n;const a=this.options.loose;const c=a?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,A(this.options.includePrerelease));o("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],p);o("comparator trim",e,u[l.COMPARATORTRIM]);e=e.replace(u[l.TILDETRIM],d);e=e.replace(u[l.CARETTRIM],f);e=e.split(/\s+/).join(" ");const g=a?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const _=e.split(" ").map(e=>h(e,this.options)).join(" ").split(/\s+/).map(e=>C(e,this.options)).filter(this.options.loose?e=>!!e.match(g):()=>true).map(e=>new s(e,this.options));const y=_.length;const v=new Map;for(const e of _){if(m(e))return[e];v.set(e.value,e)}if(v.size>1&&v.has(""))v.delete("");const T=[...v.values()];i.set(r,T);return T}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(r=>{return _(r,t)&&e.set.some(e=>{return _(e,t)&&r.every(r=>{return e.every(e=>{return r.intersects(e,t)})})})})}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const g=e=>e.value==="";const _=(e,t)=>{let r=true;const n=e.slice();let i=n.pop();while(r&&n.length){r=n.every(e=>{return i.intersects(e,t)});i=n.pop()}return r};const h=(e,t)=>{o("comp",e,t);e=S(e,t);o("caret",e);e=v(e,t);o("tildes",e);e=E(e,t);o("xrange",e);e=D(e,t);o("stars",e);return e};const y=e=>!e||e.toLowerCase()==="x"||e==="*";const v=(e,t)=>e.trim().split(/\s+/).map(e=>{return T(e,t)}).join(" ");const T=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,(t,r,n,i,a)=>{o("tilde",e,t,r,n,i,a);let s;if(y(r)){s=""}else if(y(n)){s=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(y(i)){s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(a){o("replaceTilde pr",a);s=`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`}else{s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`}o("tilde return",s);return s})};const S=(e,t)=>e.trim().split(/\s+/).map(e=>{return b(e,t)}).join(" ");const b=(e,t)=>{o("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,a,s)=>{o("caret",e,t,r,i,a,s);let c;if(y(r)){c=""}else if(y(i)){c=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(y(a)){if(r==="0"){c=`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`}else{c=`>=${r}.${i}.0${n} <${+r+1}.0.0-0`}}else if(s){o("replaceCaret pr",s);if(r==="0"){if(i==="0"){c=`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`}else{c=`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`}}else{c=`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`}}else{o("no pr");if(r==="0"){if(i==="0"){c=`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`}else{c=`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`}}else{c=`>=${r}.${i}.${a} <${+r+1}.0.0-0`}}o("caret return",c);return c})};const E=(e,t)=>{o("replaceXRanges",e,t);return e.split(/\s+/).map(e=>{return x(e,t)}).join(" ")};const x=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,(r,n,i,a,s,c)=>{o("xRange",e,r,n,i,a,s,c);const u=y(i);const l=u||y(a);const p=l||y(s);const d=p;if(n==="="&&d){n=""}c=t.includePrerelease?"-0":"";if(u){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&d){if(l){a=0}s=0;if(n===">"){n=">=";if(l){i=+i+1;a=0;s=0}else{a=+a+1;s=0}}else if(n==="<="){n="<";if(l){i=+i+1}else{a=+a+1}}if(n==="<")c="-0";r=`${n+i}.${a}.${s}${c}`}else if(l){r=`>=${i}.0.0${c} <${+i+1}.0.0-0`}else if(p){r=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`}o("xRange return",r);return r})};const D=(e,t)=>{o("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const C=(e,t)=>{o("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const A=e=>(t,r,n,i,a,s,o,c,u,l,p,d,f)=>{if(y(n)){r=""}else if(y(i)){r=`>=${n}.0.0${e?"-0":""}`}else if(y(a)){r=`>=${n}.${i}.0${e?"-0":""}`}else if(s){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(y(u)){c=""}else if(y(l)){c=`<${+u+1}.0.0-0`}else if(y(p)){c=`<${u}.${+l+1}.0-0`}else if(d){c=`<=${u}.${l}.${p}-${d}`}else if(e){c=`<${u}.${l}.${+p+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.trim()};const k=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},969:function(e,t,r){var n=r(9338);var i=Object.prototype.hasOwnProperty;var a=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=a?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&en.default.program.ast('\nvar REACT_ELEMENT_TYPE;\nexport default function _createRawReactElement(type, props, key, children) {\n if (!REACT_ELEMENT_TYPE) {\n REACT_ELEMENT_TYPE =\n (typeof Symbol === "function" &&\n \n Symbol["for"] &&\n Symbol["for"]("react.element")) ||\n 0xeac7;\n }\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n if (!props && childrenLength !== 0) {\n \n \n props = { children: void 0 };\n }\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = new Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : "" + key,\n ref: null,\n props: props,\n _owner: null,\n };\n}\n')};t.jsx=i;const a={minVersion:"7.5.0",ast:()=>n.default.program.ast('\nimport defineProperty from "defineProperty";\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(\n target,\n key,\n Object.getOwnPropertyDescriptor(source, key)\n );\n });\n }\n }\n return target;\n}\n')};t.objectSpread2=a;const s={minVersion:"7.0.0-beta.0",ast:()=>n.default.program.ast('\nexport default function _typeof(obj) {\n "@babel/helpers - typeof";\n if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj &&\n typeof Symbol === "function" &&\n obj.constructor === Symbol &&\n obj !== Symbol.prototype\n ? "symbol"\n : typeof obj;\n };\n }\n return _typeof(obj);\n}\n')};t.typeof=s;const o={minVersion:"7.2.6",ast:()=>n.default.program.ast('\nimport setPrototypeOf from "setPrototypeOf";\nimport inherits from "inherits";\nexport default function _wrapRegExp() {\n _wrapRegExp = function (re, groups) {\n return new BabelRegExp(re, undefined, groups);\n };\n var _super = RegExp.prototype;\n var _groups = new WeakMap();\n function BabelRegExp(re, flags, groups) {\n var _this = new RegExp(re, flags);\n \n _groups.set(_this, groups || _groups.get(re));\n return setPrototypeOf(_this, BabelRegExp.prototype);\n }\n inherits(BabelRegExp, RegExp);\n BabelRegExp.prototype.exec = function (str) {\n var result = _super.exec.call(this, str);\n if (result) result.groups = buildGroups(result, this);\n return result;\n };\n BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {\n if (typeof substitution === "string") {\n var groups = _groups.get(this);\n return _super[Symbol.replace].call(\n this,\n str,\n substitution.replace(/\\$<([^>]+)>/g, function (_, name) {\n return "$" + groups[name];\n })\n );\n } else if (typeof substitution === "function") {\n var _this = this;\n return _super[Symbol.replace].call(this, str, function () {\n var args = arguments;\n \n if (typeof args[args.length - 1] !== "object") {\n args = [].slice.call(args);\n args.push(buildGroups(args, _this));\n }\n return substitution.apply(this, args);\n });\n } else {\n return _super[Symbol.replace].call(this, str, substitution);\n }\n };\n function buildGroups(result, re) {\n \n \n var g = _groups.get(re);\n return Object.keys(g).reduce(function (groups, name) {\n groups[name] = result[g[name]];\n return groups;\n }, Object.create(null));\n }\n return _wrapRegExp.apply(this, arguments);\n}\n')};t.wrapRegExp=o},994:function(e,t,r){const n=r(5369);const i=r(962);const a=(e,t,r)=>{let a=null;let s=null;let o=null;try{o=new i(t,r)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!a||s.compare(e)===-1){a=e;s=new n(a,r)}}});return a};e.exports=a},1009:function(e,t,r){var n=r(4711),i=r(1638),a=r(6936),s=r(4802),o=r(3261);function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};const Q=(e,t)=>(p(t)||d(t))&&t.superClass===e;const Z=(e,t)=>(C(t)||O(t))&&t.object===e||(l(t)||N(t)||A(t))&&t.callee===e||W(t)&&t.tag===e||B(t);function NullableTypeAnnotation(e,t){return i(t)}function FunctionTypeAnnotation(e,t,r){return H(t)||x(t)||i(t)||G(t)&&a(r[r.length-3])}function UpdateExpression(e,t){return Z(e,t)||Q(e,t)}function ObjectExpression(e,t,r){return isFirstInContext(r,{expressionStatement:true,arrowBody:true})}function DoExpression(e,t,r){return!e.async&&isFirstInContext(r,{expressionStatement:true})}function Binary(e,t){if(e.operator==="**"&&u(t,{operator:"**"})){return t.left===e}if(Q(e,t)){return true}if(Z(e,t)||z(t)||o(t)){return true}if(c(t)){const r=t.operator;const n=X[r];const i=e.operator;const a=X[i];if(n===a&&t.right===e&&!D(t)||n>a){return true}}}function UnionTypeAnnotation(e,t){return i(t)||k(t)||x(t)||H(t)}function OptionalIndexedAccessType(e,t){return E(t,{objectType:e})}function TSAsExpression(){return true}function TSTypeAssertion(){return true}function TSUnionType(e,t){return L(t)||j(t)||R(t)||V(t)||J(t)}function TSInferType(e,t){return L(t)||j(t)}function BinaryExpression(e,t){return e.operator==="in"&&(q(t)||y(t))}function SequenceExpression(e,t){if(S(t)||K(t)||F(t)||b(t)&&t.test===e||$(t)&&t.test===e||v(t)&&t.right===e||I(t)&&t.discriminant===e||h(t)&&t.expression===e){return false}return true}function YieldExpression(e,t){return c(t)||z(t)||Z(e,t)||o(t)&&Y(e)||m(t)&&e===t.test||Q(e,t)}function ClassExpression(e,t,r){return isFirstInContext(r,{expressionStatement:true,exportDefault:true})}function UnaryLike(e,t){return Z(e,t)||u(t,{operator:"**",left:e})||Q(e,t)}function FunctionExpression(e,t,r){return isFirstInContext(r,{expressionStatement:true,exportDefault:true})}function ArrowFunctionExpression(e,t){return g(t)||ConditionalExpression(e,t)}function ConditionalExpression(e,t){if(z(t)||c(t)||m(t,{test:e})||o(t)||U(t)||M(t)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return l(t,{callee:e})||C(t,{object:e})}function AssignmentExpression(e,t){if(P(e.left)){return true}else{return ConditionalExpression(e,t)}}function LogicalExpression(e,t){switch(e.operator){case"||":if(!D(t))return false;return t.operator==="??"||t.operator==="&&";case"&&":return D(t,{operator:"??"});case"??":return D(t)&&t.operator!=="??"}}function Identifier(e,t,r){if(e.name==="let"){const n=C(t,{object:e,computed:true})||O(t,{object:e,computed:true,optional:false});return isFirstInContext(r,{expressionStatement:n,forHead:n,forInHead:n,forOfHead:true})}return e.name==="async"&&T(t)&&e===t.left}function isFirstInContext(e,{expressionStatement:t=false,arrowBody:r=false,exportDefault:n=false,forHead:i=false,forInHead:o=false,forOfHead:u=false}){let l=e.length-1;let p=e[l];l--;let d=e[l];while(l>=0){if(t&&h(d,{expression:p})||n&&_(d,{declaration:p})||r&&a(d,{body:p})||i&&S(d,{init:p})||o&&v(d,{left:p})||u&&T(d,{left:p})){return true}if(Z(p,d)&&!A(d)||w(d)&&d.expressions[0]===p||f(d,{test:p})||c(d,{left:p})||s(d,{left:p})){p=d;l--;d=e[l]}else{return false}}return false}},1064:function(e,t,r){const n=r(658);const i=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=i},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}var n=r(4433);var i=r(6390);var a=r(7278);var s=r(426);var o=r(131);var c=r(883);function _traverse(){const e=r(5167);_traverse=function(){return e};return e}var u=r(8596);var l=r(3394);var p=r(673);var d=r(3602);var f=r(9016);var m=r(1427);var g=_gensync()(function*loadFullConfig(e){var t;const r=yield*(0,f.default)(e);if(!r){return null}const{options:n,context:a,fileHandling:s}=r;if(s==="ignored"){return null}const c={};const{plugins:u,presets:p}=n;if(!u||!p){throw new Error("Assertion failure - plugins and presets exist")}const d=Object.assign({},a,{targets:n.targets});const m=e=>{const t=(0,o.getItemDescriptor)(e);if(!t){throw new Error("Assertion failure - must be config item")}return t};const g=p.map(m);const _=u.map(m);const h=[[]];const y=[];const v=yield*enhanceError(a,function*recursePresetDescriptors(e,t){const r=[];for(let n=0;n0){h.splice(1,0,...r.map(e=>e.pass).filter(e=>e!==t));for(const{preset:e,pass:t}of r){if(!e)return true;t.push(...e.plugins);const r=yield*recursePresetDescriptors(e.presets,t);if(r)return true;e.options.forEach(e=>{(0,i.mergeOptions)(c,e)})}}})(g,h[0]);if(v)return null;const T=c;(0,i.mergeOptions)(T,n);const S=Object.assign({},d,{assumptions:(t=T.assumptions)!=null?t:{}});yield*enhanceError(a,function*loadPluginDescriptors(){h[0].unshift(..._);for(const e of h){const t=[];y.push(t);for(let r=0;re.length>0).map(e=>({plugins:e}));T.passPerPreset=T.presets.length>0;return{options:T,passes:y}});t.default=g;function enhanceError(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){if(!/^\[BABEL\]/.test(t.message)){t.message=`[BABEL] ${e.filename||"unknown"}: ${t.message}`}throw t}}}const _=e=>(0,u.makeWeakCache)(function*({value:t,options:r,dirname:i,alias:s},o){if(r===false)throw new Error("Assertion failure");r=r||{};let c=t;if(typeof t==="function"){const u=(0,n.maybeAsync)(t,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);const l=Object.assign({},a,e(o));try{c=yield*u(l,r,i)}catch(e){if(s){e.message+=` (While processing: ${JSON.stringify(s)})`}throw e}}if(!c||typeof c!=="object"){throw new Error("Plugin/Preset did not return an object.")}if((0,n.isThenable)(c)){yield*[];throw new Error(`You appear to be using a promise as a plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version. `+`As an alternative, you can prefix the promise with "await". `+`(While processing: ${JSON.stringify(s)})`)}return{value:c,options:r,dirname:i,alias:s}});const h=_(d.makePluginAPI);const y=_(d.makePresetAPI);function*loadPluginDescriptor(e,t){if(e.value instanceof s.default){if(e.options){throw new Error("Passed options to an existing Plugin instance will not work.")}return e.value}return yield*v(yield*h(e,t),t)}const v=(0,u.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:i},a){const o=(0,p.validatePluginObject)(e);const c=Object.assign({},o);if(c.visitor){c.visitor=_traverse().default.explode(Object.assign({},c.visitor))}if(c.inherits){const e={name:undefined,alias:`${i}$inherits`,value:c.inherits,options:t,dirname:r};const s=yield*(0,n.forwardAsync)(loadPluginDescriptor,t=>{return a.invalidate(r=>t(e,r))});c.pre=chain(s.pre,c.pre);c.post=chain(s.post,c.post);c.manipulateOptions=chain(s.manipulateOptions,c.manipulateOptions);c.visitor=_traverse().default.visitors.merge([s.visitor||{},c.visitor||{}])}return new s.default(c,t,i)});const T=(e,t)=>{if(e.test||e.include||e.exclude){const e=t.name?`"${t.name}"`:"/* your preset */";throw new Error([`Preset ${e} requires a filename to be set when babel is called directly,`,`\`\`\``,`babel.transform(code, { filename: 'file.ts', presets: [${e}] });`,`\`\`\``,`See https://babeljs.io/docs/en/options#filename for more information.`].join("\n"))}};const S=(e,t,r)=>{if(!t.filename){const{options:t}=e;T(t,r);if(t.overrides){t.overrides.forEach(e=>T(e,r))}}};function*loadPresetDescriptor(e,t){const r=b(yield*y(e,t));S(r,t,e);return yield*(0,c.buildPresetChain)(r,t)}const b=(0,u.makeWeakCacheSync)(({value:e,dirname:t,alias:r})=>{return{options:(0,l.validate)("preset",e),alias:r,dirname:t}});function chain(e,t){const r=[e,t].filter(Boolean);if(r.length<=1)return r[0];return function(...e){for(const t of r){t.apply(this,e)}}}},1073:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=pathToPattern;function _path(){const e=r(5622);_path=function(){return e};return e}const n=`\\${_path().sep}`;const i=`(?:${n}|$)`;const a=`[^${n}]+`;const s=`(?:${a}${n})`;const o=`(?:${a}${i})`;const c=`${s}*?`;const u=`${s}*?${o}?`;function escapeRegExp(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function pathToPattern(e,t){const r=_path().resolve(t,e).split(_path().sep);return new RegExp(["^",...r.map((e,t)=>{const l=t===r.length-1;if(e==="**")return l?u:c;if(e==="*")return l?o:s;if(e.indexOf("*.")===0){return a+escapeRegExp(e.slice(1))+(l?i:n)}return escapeRegExp(e)+(l?i:n)})].join(""))}},1075:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TargetNames=void 0;const r={node:"node",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino"};t.TargetNames=r},1078:function(e,t,r){var n=r(9343);function mapCacheDelete(e){var t=n(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=mapCacheDelete},1083:function(e,t,r){const n=r(3880);const i=r(1986);const a={parse:n,stringify:i};e.exports=a},1098:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1108:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=inheritsComments;var n=r(5253);var i=r(2618);var a=r(4315);function inheritsComments(e,t){(0,n.default)(e,t);(0,i.default)(e,t);(0,a.default)(e,t);return e}},1120:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isScope;var n=r(4897);function isScope(e,t){if((0,n.isBlockStatement)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t))){return false}if((0,n.isPattern)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t))){return true}return(0,n.isScopable)(e)}},1121:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3422);n.__exportStar(r(3826),t)},1132:function(e,t,r){e.exports={default:r(3423),__esModule:true}},1143:function(e){var t=Array.isArray;e.exports=t},1148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(3231);const i=r(6171);const a=r(1933);const s=r(3185);function read(e,t){if(!t.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map(r=>{const n={dirent:r,name:r.name,path:s.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(n.path);n.dirent=a.fs.createDirentFromStats(n.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return n})}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map(r=>{const i=s.joinPathSegments(e,r,t.pathSegmentSeparator);const o=n.statSync(i,t.fsStatSettings);const c={name:r,path:i,dirent:a.fs.createDirentFromStats(r,o)};if(t.stats){c.stats=o}return c})}t.readdir=readdir},1159:function(e,t,r){var n=r(2396);var i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!i&&i in e}e.exports=isMasked},1162:function(e,t,r){"use strict";const{Transform:n}=r(2413);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(e){super();this._filter=e}_transform(e,t,r){if(this._filter(e)){this.push(e)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(e,t,r){if(!this._pushed.has(e)){this.push(e);this._pushed.add(e)}r()}}e.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},1167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.msg=msg;t.access=access;t.assertRootMode=assertRootMode;t.assertSourceMaps=assertSourceMaps;t.assertCompact=assertCompact;t.assertSourceType=assertSourceType;t.assertCallerMetadata=assertCallerMetadata;t.assertInputSourceMap=assertInputSourceMap;t.assertString=assertString;t.assertFunction=assertFunction;t.assertBoolean=assertBoolean;t.assertObject=assertObject;t.assertArray=assertArray;t.assertIgnoreList=assertIgnoreList;t.assertConfigApplicableTest=assertConfigApplicableTest;t.assertConfigFileSearch=assertConfigFileSearch;t.assertBabelrcSearch=assertBabelrcSearch;t.assertPluginList=assertPluginList;t.assertTargets=assertTargets;t.assertAssumptions=assertAssumptions;function _helperCompilationTargets(){const e=r(6852);_helperCompilationTargets=function(){return e};return e}var n=r(3394);function msg(e){switch(e.type){case"root":return``;case"env":return`${msg(e.parent)}.env["${e.name}"]`;case"overrides":return`${msg(e.parent)}.overrides[${e.index}]`;case"option":return`${msg(e.parent)}.${e.name}`;case"access":return`${msg(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function access(e,t){return{type:"access",name:t,parent:e}}function assertRootMode(e,t){if(t!==undefined&&t!=="root"&&t!=="upward"&&t!=="upward-optional"){throw new Error(`${msg(e)} must be a "root", "upward", "upward-optional" or undefined`)}return t}function assertSourceMaps(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="inline"&&t!=="both"){throw new Error(`${msg(e)} must be a boolean, "inline", "both", or undefined`)}return t}function assertCompact(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="auto"){throw new Error(`${msg(e)} must be a boolean, "auto", or undefined`)}return t}function assertSourceType(e,t){if(t!==undefined&&t!=="module"&&t!=="script"&&t!=="unambiguous"){throw new Error(`${msg(e)} must be "module", "script", "unambiguous", or undefined`)}return t}function assertCallerMetadata(e,t){const r=assertObject(e,t);if(r){if(typeof r.name!=="string"){throw new Error(`${msg(e)} set but does not contain "name" property string`)}for(const t of Object.keys(r)){const n=access(e,t);const i=r[t];if(i!=null&&typeof i!=="boolean"&&typeof i!=="string"&&typeof i!=="number"){throw new Error(`${msg(n)} must be null, undefined, a boolean, a string, or a number.`)}}}return t}function assertInputSourceMap(e,t){if(t!==undefined&&typeof t!=="boolean"&&(typeof t!=="object"||!t)){throw new Error(`${msg(e)} must be a boolean, object, or undefined`)}return t}function assertString(e,t){if(t!==undefined&&typeof t!=="string"){throw new Error(`${msg(e)} must be a string, or undefined`)}return t}function assertFunction(e,t){if(t!==undefined&&typeof t!=="function"){throw new Error(`${msg(e)} must be a function, or undefined`)}return t}function assertBoolean(e,t){if(t!==undefined&&typeof t!=="boolean"){throw new Error(`${msg(e)} must be a boolean, or undefined`)}return t}function assertObject(e,t){if(t!==undefined&&(typeof t!=="object"||Array.isArray(t)||!t)){throw new Error(`${msg(e)} must be an object, or undefined`)}return t}function assertArray(e,t){if(t!=null&&!Array.isArray(t)){throw new Error(`${msg(e)} must be an array, or undefined`)}return t}function assertIgnoreList(e,t){const r=assertArray(e,t);if(r){r.forEach((t,r)=>assertIgnoreItem(access(e,r),t))}return r}function assertIgnoreItem(e,t){if(typeof t!=="string"&&typeof t!=="function"&&!(t instanceof RegExp)){throw new Error(`${msg(e)} must be an array of string/Function/RegExp values, or undefined`)}return t}function assertConfigApplicableTest(e,t){if(t===undefined)return t;if(Array.isArray(t)){t.forEach((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}})}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a string/Function/RegExp, or an array of those`)}return t}function checkValidTest(e){return typeof e==="string"||typeof e==="function"||e instanceof RegExp}function assertConfigFileSearch(e,t){if(t!==undefined&&typeof t!=="boolean"&&typeof t!=="string"){throw new Error(`${msg(e)} must be a undefined, a boolean, a string, `+`got ${JSON.stringify(t)}`)}return t}function assertBabelrcSearch(e,t){if(t===undefined||typeof t==="boolean")return t;if(Array.isArray(t)){t.forEach((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}})}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a undefined, a boolean, a string/Function/RegExp `+`or an array of those, got ${JSON.stringify(t)}`)}return t}function assertPluginList(e,t){const r=assertArray(e,t);if(r){r.forEach((t,r)=>assertPluginItem(access(e,r),t))}return r}function assertPluginItem(e,t){if(Array.isArray(t)){if(t.length===0){throw new Error(`${msg(e)} must include an object`)}if(t.length>3){throw new Error(`${msg(e)} may only be a two-tuple or three-tuple`)}assertPluginTarget(access(e,0),t[0]);if(t.length>1){const r=t[1];if(r!==undefined&&r!==false&&(typeof r!=="object"||Array.isArray(r)||r===null)){throw new Error(`${msg(access(e,1))} must be an object, false, or undefined`)}}if(t.length===3){const r=t[2];if(r!==undefined&&typeof r!=="string"){throw new Error(`${msg(access(e,2))} must be a string, or undefined`)}}}else{assertPluginTarget(e,t)}return t}function assertPluginTarget(e,t){if((typeof t!=="object"||!t)&&typeof t!=="string"&&typeof t!=="function"){throw new Error(`${msg(e)} must be a string, object, function`)}return t}function assertTargets(e,t){if((0,_helperCompilationTargets().isBrowsersQueryValid)(t))return t;if(typeof t!=="object"||!t||Array.isArray(t)){throw new Error(`${msg(e)} must be a string, an array of strings or an object`)}const r=access(e,"browsers");const n=access(e,"esmodules");assertBrowsersList(r,t.browsers);assertBoolean(n,t.esmodules);for(const r of Object.keys(t)){const n=t[r];const i=access(e,r);if(r==="esmodules")assertBoolean(i,n);else if(r==="browsers")assertBrowsersList(i,n);else if(!Object.hasOwnProperty.call(_helperCompilationTargets().TargetNames,r)){const e=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(i)} is not a valid target. Supported targets are ${e}`)}else assertBrowserVersion(i,n)}return t}function assertBrowsersList(e,t){if(t!==undefined&&!(0,_helperCompilationTargets().isBrowsersQueryValid)(t)){throw new Error(`${msg(e)} must be undefined, a string or an array of strings`)}}function assertBrowserVersion(e,t){if(typeof t==="number"&&Math.round(t)===t)return;if(typeof t==="string")return;throw new Error(`${msg(e)} must be a string or an integer number`)}function assertAssumptions(e,t){if(t===undefined)return;if(typeof t!=="object"||t===null){throw new Error(`${msg(e)} must be an object or undefined.`)}let r=e;do{r=r.parent}while(r.type!=="root");const i=r.source==="preset";for(const r of Object.keys(t)){const a=access(e,r);if(!n.assumptionsNames.has(r)){throw new Error(`${msg(a)} is not a supported assumption.`)}if(typeof t[r]!=="boolean"){throw new Error(`${msg(a)} must be a boolean.`)}if(i&&t[r]===false){throw new Error(`${msg(a)} cannot be set to 'false' inside presets.`)}}return t}},1182:function(e){const t=["includePrerelease","loose","rtl"];const r=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter(t=>e[t]).reduce((e,t)=>{e[t]=true;return e},{});e.exports=r},1219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isUniqueESSymbolType=t.isUnionType=t.isUnionOrIntersectionType=t.isTypeVariable=t.isTypeReference=t.isTypeParameter=t.isSubstitutionType=t.isObjectType=t.isLiteralType=t.isIntersectionType=t.isInterfaceType=t.isInstantiableType=t.isIndexedAccessype=t.isIndexedAccessType=t.isGenericType=t.isEnumType=t.isConditionalType=void 0;const n=r(3186);function isConditionalType(e){return(e.flags&n.TypeFlags.Conditional)!==0}t.isConditionalType=isConditionalType;function isEnumType(e){return(e.flags&n.TypeFlags.Enum)!==0}t.isEnumType=isEnumType;function isGenericType(e){return(e.flags&n.TypeFlags.Object)!==0&&(e.objectFlags&n.ObjectFlags.ClassOrInterface)!==0&&(e.objectFlags&n.ObjectFlags.Reference)!==0}t.isGenericType=isGenericType;function isIndexedAccessType(e){return(e.flags&n.TypeFlags.IndexedAccess)!==0}t.isIndexedAccessType=isIndexedAccessType;function isIndexedAccessype(e){return(e.flags&n.TypeFlags.Index)!==0}t.isIndexedAccessype=isIndexedAccessype;function isInstantiableType(e){return(e.flags&n.TypeFlags.Instantiable)!==0}t.isInstantiableType=isInstantiableType;function isInterfaceType(e){return(e.flags&n.TypeFlags.Object)!==0&&(e.objectFlags&n.ObjectFlags.ClassOrInterface)!==0}t.isInterfaceType=isInterfaceType;function isIntersectionType(e){return(e.flags&n.TypeFlags.Intersection)!==0}t.isIntersectionType=isIntersectionType;function isLiteralType(e){return(e.flags&(n.TypeFlags.StringOrNumberLiteral|n.TypeFlags.BigIntLiteral))!==0}t.isLiteralType=isLiteralType;function isObjectType(e){return(e.flags&n.TypeFlags.Object)!==0}t.isObjectType=isObjectType;function isSubstitutionType(e){return(e.flags&n.TypeFlags.Substitution)!==0}t.isSubstitutionType=isSubstitutionType;function isTypeParameter(e){return(e.flags&n.TypeFlags.TypeParameter)!==0}t.isTypeParameter=isTypeParameter;function isTypeReference(e){return(e.flags&n.TypeFlags.Object)!==0&&(e.objectFlags&n.ObjectFlags.Reference)!==0}t.isTypeReference=isTypeReference;function isTypeVariable(e){return(e.flags&n.TypeFlags.TypeVariable)!==0}t.isTypeVariable=isTypeVariable;function isUnionOrIntersectionType(e){return(e.flags&n.TypeFlags.UnionOrIntersection)!==0}t.isUnionOrIntersectionType=isUnionOrIntersectionType;function isUnionType(e){return(e.flags&n.TypeFlags.Union)!==0}t.isUnionType=isUnionType;function isUniqueESSymbolType(e){return(e.flags&n.TypeFlags.UniqueESSymbol)!==0}t.isUniqueESSymbolType=isUniqueESSymbolType},1222:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=literalTemplate;var n=r(4653);var i=r(2601);var a=r(5392);function literalTemplate(e,t,r){const{metadata:i,names:s}=buildLiteralData(e,t,r);return t=>{const r={};t.forEach((e,t)=>{r[s[t]]=e});return t=>{const s=(0,n.normalizeReplacements)(t);if(s){Object.keys(s).forEach(e=>{if(Object.prototype.hasOwnProperty.call(r,e)){throw new Error("Unexpected replacement overlap.")}})}return e.unwrap((0,a.default)(i,s?Object.assign(s,r):r))}}}function buildLiteralData(e,t,r){let n;let a;let s;let o="";do{o+="$";const c=buildTemplateCode(t,o);n=c.names;a=new Set(n);s=(0,i.default)(e,e.code(c.code),{parser:r.parser,placeholderWhitelist:new Set(c.names.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders})}while(s.placeholders.some(e=>e.isDuplicate&&a.has(e.name)));return{metadata:s,names:n}}function buildTemplateCode(e,t){const r=[];let n=e[0];for(let i=1;i=0){continue}if(i.isAnyTypeAnnotation(o)){return[o]}if(i.isFlowBaseAnnotation(o)){r[o.type]=o;continue}if(i.isUnionTypeAnnotation(o)){if(n.indexOf(o.types)<0){e=e.concat(o.types);n.push(o.types)}continue}if(i.isGenericTypeAnnotation(o)){var c=o.id.name;if(t[c]){var u=t[c];if(u.typeParameters){if(o.typeParameters){u.typeParameters.params=removeTypeDuplicates(u.typeParameters.params.concat(o.typeParameters.params))}}else{u=o.typeParameters}}else{t[c]=o}continue}a.push(o)}for(var l in r){a.push(r[l])}for(var p in t){a.push(t[p])}return a}function createTypeAnnotationBasedOnTypeof(e){if(e==="string"){return i.stringTypeAnnotation()}else if(e==="number"){return i.numberTypeAnnotation()}else if(e==="undefined"){return i.voidTypeAnnotation()}else if(e==="boolean"){return i.booleanTypeAnnotation()}else if(e==="function"){return i.genericTypeAnnotation(i.identifier("Function"))}else if(e==="object"){return i.genericTypeAnnotation(i.identifier("Object"))}else if(e==="symbol"){return i.genericTypeAnnotation(i.identifier("Symbol"))}else{throw new Error("Invalid typeof value")}}},1261:function(e){function setCacheHas(e){return this.__data__.has(e)}e.exports=setCacheHas},1275:function(e){function cacheHas(e,t){return e.has(t)}e.exports=cacheHas},1276:function(e,t,r){var n=r(9338);var i=r(2972);var a=r(969).ArraySet;var s=r(6277);var o=r(3001).quickSort;function SourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}return t.sections!=null?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(e,t,r){var i=t||null;var a=r||SourceMapConsumer.GENERATED_ORDER;var s;switch(a){case SourceMapConsumer.GENERATED_ORDER:s=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;s.map(function(e){var t=e.source===null?null:this._sources.at(e.source);if(t!=null&&o!=null){t=n.join(o,t)}return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=n.getArg(e,"line");var r={source:n.getArg(e,"source"),originalLine:t,originalColumn:n.getArg(e,"column",0)};if(this.sourceRoot!=null){r.source=n.relative(this.sourceRoot,r.source)}if(!this._sources.has(r.source)){return[]}r.source=this._sources.indexOf(r.source);var a=[];var s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===undefined){var c=o.originalLine;while(o&&o.originalLine===c){a.push({line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)});o=this._originalMappings[++s]}}else{var u=o.originalColumn;while(o&&o.originalLine===t&&o.originalColumn==u){a.push({line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)});o=this._originalMappings[++s]}}}return a};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=n.getArg(t,"version");var i=n.getArg(t,"sources");var s=n.getArg(t,"names",[]);var o=n.getArg(t,"sourceRoot",null);var c=n.getArg(t,"sourcesContent",null);var u=n.getArg(t,"mappings");var l=n.getArg(t,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}i=i.map(String).map(n.normalize).map(function(e){return o&&n.isAbsolute(o)&&n.isAbsolute(e)?n.relative(o,e):e});this._names=a.fromArray(s.map(String),true);this._sources=a.fromArray(i,true);this.sourceRoot=o;this.sourcesContent=c;this._mappings=u;this.file=l}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e){var t=Object.create(BasicSourceMapConsumer.prototype);var r=t._names=a.fromArray(e._names.toArray(),true);var i=t._sources=a.fromArray(e._sources.toArray(),true);t.sourceRoot=e._sourceRoot;t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot);t.file=e._file;var s=e._mappings.toArray().slice();var c=t.__generatedMappings=[];var u=t.__originalMappings=[];for(var l=0,p=s.length;l1){h.source=u+v[1];u+=v[1];h.originalLine=a+v[2];a=h.originalLine;h.originalLine+=1;h.originalColumn=c+v[3];c=h.originalColumn;if(v.length>4){h.name=l+v[4];l+=v[4]}}_.push(h);if(typeof h.originalLine==="number"){g.push(h)}}}o(_,n.compareByGeneratedPositionsDeflated);this.__generatedMappings=_;o(g,n.compareByOriginalPositions);this.__originalMappings=g};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,r,n,a,s){if(e[r]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[r])}if(e[n]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[n])}return i.search(e,t,a,s)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);if(a!==null){a=this._sources.at(a);if(this.sourceRoot!=null){a=n.join(this.sourceRoot,a)}}var s=n.getArg(i,"name",null);if(s!==null){s=this._names.at(s)}return{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){e=n.relative(this.sourceRoot,e)}if(this._sources.has(e)){return this.sourcesContent[this._sources.indexOf(e)]}var r;if(this.sourceRoot!=null&&(r=n.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(i)){return this.sourcesContent[this._sources.indexOf(i)]}if((!r.path||r.path=="/")&&this._sources.has("/"+e)){return this.sourcesContent[this._sources.indexOf("/"+e)]}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=n.getArg(e,"source");if(this.sourceRoot!=null){t=n.relative(this.sourceRoot,t)}if(!this._sources.has(t)){return{line:null,column:null,lastColumn:null}}t=this._sources.indexOf(t);var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")};var i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source){return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};t.BasicSourceMapConsumer=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=n.getArg(t,"version");var i=n.getArg(t,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new a;this._names=new a;var s={line:-1,column:0};this._sections=i.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var t=n.getArg(e,"offset");var r=n.getArg(t,"line");var i=n.getArg(t,"column");if(r{if(!this._isFatalError){this._emitter.emit("end")}})}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)});return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,e=>{if(e!==null){this._handleError(e)}})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){t(r,undefined);return}for(const t of n){this._handleEntry(t,e.base)}t(null,undefined)})}_handleError(e){if(this._isDestroyed||!s.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=s.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t.default=AsyncReader},1297:function(e){class Comment{constructor(){this.attribution="🌀 Tests overview by [Testomatio](https://testomat.io)";this.body=`${this.attribution}\n`}writeDiff(e){if(e.added.length||e.missing.length){if(e.added.length){this.body+=`\n#### ✔️ Added ${e.added.length} ${properWordForNumberOfTests(e.added.length)}\n`;if(e.added.length<300){this.body+="\n\n```diff\n";e.added.forEach(e=>this.body+=`\n+ ${Object.values(e)[0]}`);this.body+="\n```\n\n"}}if(e.missing.length){this.body+=`\n#### 🗑️ Removed ${e.missing.length} ${properWordForNumberOfTests(e.missing.length)}\n`;if(e.added.length<300){this.body+="\n\n```diff\n";e.missing.forEach(e=>this.body+=`\n- ${Object.values(e)[0]}`);this.body+="\n```\n\n"}}}else{this.body+="\nNo new tests added or removed"}}writeSkippedDiff(e){if(e.added.length){this.body+=`\n\n#### ⚠️ Skipped ${e.added.length} ${properWordForNumberOfTests(e.added.length)}\n`;this.body+="```diff\n";e.added.forEach(e=>this.body+=`\n- ${Object.values(e)[0]}`);this.body+="\n```\n\n"}if(e.missing.length){this.body+=`\n\n#### ♻ Restored ${e.missing.length} ${properWordForNumberOfTests(e.missing.length)}\n`;this.body+="```diff\n";e.missing.forEach(e=>this.body+=`\n+ ${Object.values(e)[0]}`);this.body+="\n```\n\n"}}writeSkipped(e){if(!e.length)return;const t=e.join("\n");this.body+=`\n\n
\n ⚠️ List all skipped ${properWordForNumberOfTests(e.length)} (${e.length})\n\n${t}\n\n
\n\n`}writeSuites(e){const t=e.join("\n");this.body+=`\n\n
\n 📎 List all suites (${e.length})\n\n\n${t}\n\n
\n\n`}write(e){this.body+=`\n${e}\n`}writeTests(e){let t=e.join("\n");if(t.length>6e4){console.log("Too many tests, ignoring them in comment. String length: ",t.length);t=`${t.substring(0,6e4)}\n*...(more than possible to show)...*`}this.body+=`\n\n
\n 📑 List all tests\n\n---\n\n${t}\n\n
\n\n`}writeSummary(e,t,r){this.body+=`\n\nFound **${e}** ${r} tests in ${t} files `}}function properWordForNumberOfTests(e){return e===1?"test":"tests"}e.exports=Comment},1327:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t._params=_params;t._parameters=_parameters;t._param=_param;t._methodHead=_methodHead;t._predicate=_predicate;t._functionHead=_functionHead;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t.ArrowFunctionExpression=ArrowFunctionExpression;var n=r(9978);const{isIdentifier:i}=n;function _params(e){this.print(e.typeParameters,e);this.token("(");this._parameters(e.params,e);this.token(")");this.print(e.returnType,e)}function _parameters(e,t){for(let r=0;r");this.space();this.print(e.body,e)}function hasTypesOrComments(e,t){var r,n;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(n=t.trailingComments)!=null&&n.length)}},1337:function(e,t,r){"use strict";t.__esModule=true;t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=t.Identifier=undefined;var n=r(1400);Object.defineProperty(t,"Identifier",{enumerable:true,get:function get(){return _interopRequireDefault(n).default}});t.VariableDeclarator=VariableDeclarator;t.TypeCastExpression=TypeCastExpression;t.NewExpression=NewExpression;t.TemplateLiteral=TemplateLiteral;t.UnaryExpression=UnaryExpression;t.BinaryExpression=BinaryExpression;t.LogicalExpression=LogicalExpression;t.ConditionalExpression=ConditionalExpression;t.SequenceExpression=SequenceExpression;t.AssignmentExpression=AssignmentExpression;t.UpdateExpression=UpdateExpression;t.StringLiteral=StringLiteral;t.NumericLiteral=NumericLiteral;t.BooleanLiteral=BooleanLiteral;t.NullLiteral=NullLiteral;t.RegExpLiteral=RegExpLiteral;t.ObjectExpression=ObjectExpression;t.ArrayExpression=ArrayExpression;t.RestElement=RestElement;t.CallExpression=CallExpression;t.TaggedTemplateExpression=TaggedTemplateExpression;var i=r(8011);var a=_interopRequireWildcard(i);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function VariableDeclarator(){var e=this.get("id");if(e.isIdentifier()){return this.get("init").getTypeAnnotation()}else{return}}function TypeCastExpression(e){return e.typeAnnotation}TypeCastExpression.validParent=true;function NewExpression(e){if(this.get("callee").isIdentifier()){return a.genericTypeAnnotation(e.callee)}}function TemplateLiteral(){return a.stringTypeAnnotation()}function UnaryExpression(e){var t=e.operator;if(t==="void"){return a.voidTypeAnnotation()}else if(a.NUMBER_UNARY_OPERATORS.indexOf(t)>=0){return a.numberTypeAnnotation()}else if(a.STRING_UNARY_OPERATORS.indexOf(t)>=0){return a.stringTypeAnnotation()}else if(a.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0){return a.booleanTypeAnnotation()}}function BinaryExpression(e){var t=e.operator;if(a.NUMBER_BINARY_OPERATORS.indexOf(t)>=0){return a.numberTypeAnnotation()}else if(a.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0){return a.booleanTypeAnnotation()}else if(t==="+"){var r=this.get("right");var n=this.get("left");if(n.isBaseType("number")&&r.isBaseType("number")){return a.numberTypeAnnotation()}else if(n.isBaseType("string")||r.isBaseType("string")){return a.stringTypeAnnotation()}return a.unionTypeAnnotation([a.stringTypeAnnotation(),a.numberTypeAnnotation()])}}function LogicalExpression(){return a.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])}function ConditionalExpression(){return a.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])}function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()}function AssignmentExpression(){return this.get("right").getTypeAnnotation()}function UpdateExpression(e){var t=e.operator;if(t==="++"||t==="--"){return a.numberTypeAnnotation()}}function StringLiteral(){return a.stringTypeAnnotation()}function NumericLiteral(){return a.numberTypeAnnotation()}function BooleanLiteral(){return a.booleanTypeAnnotation()}function NullLiteral(){return a.nullLiteralTypeAnnotation()}function RegExpLiteral(){return a.genericTypeAnnotation(a.identifier("RegExp"))}function ObjectExpression(){return a.genericTypeAnnotation(a.identifier("Object"))}function ArrayExpression(){return a.genericTypeAnnotation(a.identifier("Array"))}function RestElement(){return ArrayExpression()}RestElement.validParent=true;function Func(){return a.genericTypeAnnotation(a.identifier("Function"))}t.FunctionExpression=Func;t.ArrowFunctionExpression=Func;t.FunctionDeclaration=Func;t.ClassExpression=Func;t.ClassDeclaration=Func;function CallExpression(){return resolveCall(this.get("callee"))}function TaggedTemplateExpression(){return resolveCall(this.get("tag"))}function resolveCall(e){e=e.resolve();if(e.isFunction()){if(e.is("async")){if(e.is("generator")){return a.genericTypeAnnotation(a.identifier("AsyncIterator"))}else{return a.genericTypeAnnotation(a.identifier("Promise"))}}else{if(e.node.returnType){return e.node.returnType}else{}}}}},1347:function(e,t,r){"use strict";var n=r(5680)(true);r(5731)(String,"String",function(e){this._t=String(e);this._i=0},function(){var e=this._t;var t=this._i;var r;if(t>=e.length)return{value:undefined,done:true};r=n(e,t);this._i+=r.length;return{value:r,done:false}})},1364:function(e){"use strict";e.exports=((e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||nthis.scope.removeBinding(e))}function _callRemovalHooks(){for(const e of n.hooks){if(e(this,this.parentPath))return true}}function _remove(){if(Array.isArray(this.container)){this.container.splice(this.key,1);this.updateSiblingKeys(this.key,-1)}else{this._replaceWith(null)}}function _markRemoved(){this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED;if(this.parent)i.path.get(this.parent).delete(this.node);this.node=null}function _assertUnremoved(){if(this.removed){throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}},1367:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=run;function _traverse(){const e=r(5167);_traverse=function(){return e};return e}var n=r(4952);var i=r(3895);var a=r(4182);var s=r(6618);var o=r(8159);function*run(e,t,r){const n=yield*(0,s.default)(e.passes,(0,a.default)(e),t,r);const i=n.opts;try{yield*transformFile(n,e.passes)}catch(e){var c;e.message=`${(c=i.filename)!=null?c:"unknown"}: ${e.message}`;if(!e.code){e.code="BABEL_TRANSFORM_ERROR"}throw e}let u,l;try{if(i.code!==false){({outputCode:u,outputMap:l}=(0,o.default)(e.passes,n))}}catch(e){var p;e.message=`${(p=i.filename)!=null?p:"unknown"}: ${e.message}`;if(!e.code){e.code="BABEL_GENERATE_ERROR"}throw e}return{metadata:n.metadata,options:i,ast:i.ast===true?n.ast:null,code:u===undefined?null:u,map:l===undefined?null:l,sourceType:n.ast.program.sourceType}}function*transformFile(e,t){for(const r of t){const t=[];const a=[];const s=[];for(const o of r.concat([(0,i.default)()])){const r=new n.default(e,o.key,o.options);t.push([o,r]);a.push(r);s.push(o.visitor)}for(const[r,n]of t){const t=r.pre;if(t){const r=t.call(n,e);yield*[];if(isThenable(r)){throw new Error(`You appear to be using an plugin with an async .pre, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}}}const o=_traverse().default.visitors.merge(s,a,e.opts.wrapPluginVisitorMethod);(0,_traverse().default)(e.ast,o,e.scope);for(const[r,n]of t){const t=r.post;if(t){const r=t.call(n,e);yield*[];if(isThenable(r)){throw new Error(`You appear to be using an plugin with an async .post, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}}}}}function isThenable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!!e.then&&typeof e.then==="function"}},1375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getTypeAnnotation=getTypeAnnotation;t._getTypeAnnotation=_getTypeAnnotation;t.isBaseType=isBaseType;t.couldBeBaseType=couldBeBaseType;t.baseTypeStrictlyMatches=baseTypeStrictlyMatches;t.isGenericType=isGenericType;var n=r(7118);var i=r(9978);const{anyTypeAnnotation:a,isAnyTypeAnnotation:s,isBooleanTypeAnnotation:o,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:u,isGenericTypeAnnotation:l,isIdentifier:p,isMixedTypeAnnotation:d,isNumberTypeAnnotation:f,isStringTypeAnnotation:m,isTypeAnnotation:g,isUnionTypeAnnotation:_,isVoidTypeAnnotation:h,stringTypeAnnotation:y,voidTypeAnnotation:v}=i;function getTypeAnnotation(){if(this.typeAnnotation)return this.typeAnnotation;let e=this._getTypeAnnotation()||a();if(g(e))e=e.typeAnnotation;return this.typeAnnotation=e}const T=new WeakSet;function _getTypeAnnotation(){const e=this.node;if(!e){if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath;const t=e.parentPath;if(e.key==="left"&&t.isForInStatement()){return y()}if(e.key==="left"&&t.isForOfStatement()){return a()}return v()}else{return}}if(e.typeAnnotation){return e.typeAnnotation}if(T.has(e)){return}T.add(e);try{var t;let r=n[e.type];if(r){return r.call(this,e)}r=n[this.parentPath.type];if((t=r)!=null&&t.validParent){return this.parentPath.getTypeAnnotation()}}finally{T.delete(e)}}function isBaseType(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)}function _isBaseType(e,t,r){if(e==="string"){return m(t)}else if(e==="number"){return f(t)}else if(e==="boolean"){return o(t)}else if(e==="any"){return s(t)}else if(e==="mixed"){return d(t)}else if(e==="empty"){return c(t)}else if(e==="void"){return h(t)}else{if(r){return false}else{throw new Error(`Unknown base type ${e}`)}}}function couldBeBaseType(e){const t=this.getTypeAnnotation();if(s(t))return true;if(_(t)){for(const r of t.types){if(s(r)||_isBaseType(e,r,true)){return true}}return false}else{return _isBaseType(e,t,true)}}function baseTypeStrictlyMatches(e){const t=this.getTypeAnnotation();const r=e.getTypeAnnotation();if(!s(t)&&u(t)){return r.type===t.type}return false}function isGenericType(e){const t=this.getTypeAnnotation();return l(t)&&p(t.id,{name:e})}},1382:function(e,t,r){"use strict";const n=r(9225);e.exports=((e,t={})=>{let r=(e,i={})=>{let a=t.escapeInvalid&&n.isInvalidBrace(i);let s=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((a||s)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=r(t)}}return o};return r(e)})},1385:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true})},1397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9978);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}})}t["default"]=e;return Object.freeze(t)}var i=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:a,arrowFunctionExpression:s,assignmentExpression:o,binaryExpression:c,booleanLiteral:u,callExpression:l,cloneNode:p,conditionalExpression:d,identifier:f,isMemberExpression:m,isOptionalCallExpression:g,isOptionalMemberExpression:_,isUpdateExpression:h,logicalExpression:y,memberExpression:v,nullLiteral:T,numericLiteral:S,optionalCallExpression:b,optionalMemberExpression:E,sequenceExpression:x,unaryExpression:D}=i;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(_(r)){return v(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const{object:n}=r.node;const i=e.scope.maybeGenerateMemoised(n)||n;r.get("object").replaceWith(o("=",i,n));return l(v(t,f("call")),[i,...e.node.arguments])}return l(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const i=t.node;if(n){if(r!==i[n])return true}else{if(r!==i)return true}e=t}return false}const C={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:i,scope:v}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const a=e.find(({node:t,parent:r})=>{if(_(r)){return r.optional||r.object!==t}if(g(r)){return t!==e.node&&r.optional||r.callee!==t}return true});if(v.path.isPattern()){a.replaceWith(l(s([],a.node),[]));return}const h=willPathCastToBoolean(a);const S=a.parentPath;if(S.isUpdateExpression({argument:r})||S.isAssignmentExpression({left:r})){throw e.buildCodeFrameError(`can't handle assignment`)}const x=S.isUnaryExpression({operator:"delete"});if(x&&a.isOptionalMemberExpression()&&a.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let D=e;for(;;){if(D.isOptionalMemberExpression()){if(D.node.optional)break;D=D.get("object");continue}else if(D.isOptionalCallExpression()){if(D.node.optional)break;D=D.get("callee");continue}throw new Error(`Internal error: unexpected ${D.node.type}`)}const C=D.isOptionalMemberExpression()?"object":"callee";const A=D.node[C];const k=v.maybeGenerateMemoised(A);const P=k!=null?k:A;const N=i.isOptionalCallExpression({callee:r});const O=e=>N;const F=i.isCallExpression({callee:r});D.replaceWith(toNonOptional(D,P));if(O()){if(n.optional){i.replaceWith(this.optionalCall(e,n.arguments))}else{i.replaceWith(this.call(e,n.arguments))}}else if(F){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}let w=e.node;for(let t=e;t!==a;){const e=t.parentPath;if(e===a&&O()&&n.optional){w=e.node;break}w=toNonOptional(e,w);t=e}let I;const L=a.parentPath;if(m(w)&&L.isOptionalCallExpression({callee:a.node,optional:true})){const{object:t}=w;I=e.scope.maybeGenerateMemoised(t);if(I){w.object=o("=",I,t)}}let M=a;if(x){M=L;w=L.node}const R=k?o("=",p(P),p(A)):p(P);if(h){let e;if(t){e=c("!=",R,T())}else{e=y("&&",c("!==",R,T()),c("!==",p(P),v.buildUndefinedNode()))}M.replaceWith(y("&&",e,w))}else{let e;if(t){e=c("==",R,T())}else{e=y("||",c("===",R,T()),c("===",p(P),v.buildUndefinedNode()))}M.replaceWith(d(e,x?u(true):v.buildUndefinedNode(),w))}if(I){const e=L.node;L.replaceWith(b(E(e.callee,f("call"),false,true),[p(I),...e.arguments],false))}return}if(h(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const s=c(t[0],D("+",this.get(e)),S(1));if(a){i.replaceWith(this.set(e,s))}else{const{scope:t}=e;const n=t.generateUidIdentifierBasedOnNode(r);t.push({id:n});s.left=o("=",p(n),s.left);i.replaceWith(x([this.set(e,s),p(n)]))}return}if(i.isAssignmentExpression({left:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,right:r}=i.node;if(t==="="){i.replaceWith(this.set(e,r))}else{const n=t.slice(0,-1);if(a.includes(n)){this.memoise(e,1);i.replaceWith(y(n,this.get(e),this.set(e,r)))}else{this.memoise(e,2);i.replaceWith(this.set(e,c(n,this.get(e),r)))}}return}if(i.isCallExpression({callee:r})){i.replaceWith(this.call(e,i.node.arguments));return}if(i.isOptionalCallExpression({callee:r})){if(v.path.isPattern()){i.replaceWith(l(s([],i.node),[]));return}i.replaceWith(this.optionalCall(e,i.node.arguments));return}if(i.isForXStatement({left:r})||i.isObjectProperty({value:r})&&i.parentPath.isObjectPattern()||i.isAssignmentPattern({left:r})&&i.parentPath.isObjectProperty({value:n})&&i.parentPath.parentPath.isObjectPattern()||i.isArrayPattern()||i.isAssignmentPattern({left:r})&&i.parentPath.isArrayPattern()||i.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(i.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},C,r,{memoiser:new AssignmentMemoiser}))}t.default=memberExpressionToFunctions},1400:function(e,t,r){"use strict";t.__esModule=true;var n=r(2979);var i=_interopRequireDefault(n);t.default=function(e){if(!this.isReferenced())return;var t=this.scope.getBinding(e.name);if(t){if(t.identifier.typeAnnotation){return t.identifier.typeAnnotation}else{return getTypeAnnotationBindingConstantViolations(this,e.name)}}if(e.name==="undefined"){return s.voidTypeAnnotation()}else if(e.name==="NaN"||e.name==="Infinity"){return s.numberTypeAnnotation()}else if(e.name==="arguments"){}};var a=r(8011);var s=_interopRequireWildcard(a);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getTypeAnnotationBindingConstantViolations(e,t){var r=e.scope.getBinding(t);var n=[];e.typeAnnotation=s.unionTypeAnnotation(n);var a=[];var o=getConstantViolationsBefore(r,e,a);var c=getConditionalAnnotation(e,t);if(c){var u=getConstantViolationsBefore(r,c.ifStatement);o=o.filter(function(e){return u.indexOf(e)<0});n.push(c.typeAnnotation)}if(o.length){o=o.concat(a);for(var l=o,p=Array.isArray(l),d=0,l=p?l:(0,i.default)(l);;){var f;if(p){if(d>=l.length)break;f=l[d++]}else{d=l.next();if(d.done)break;f=d.value}var m=f;n.push(m.getTypeAnnotation())}}if(n.length){return s.createUnionTypeAnnotation(n)}}function getConstantViolationsBefore(e,t,r){var n=e.constantViolations.slice();n.unshift(e.path);return n.filter(function(e){e=e.resolve();var n=e._guessExecutionStatusRelativeTo(t);if(r&&n==="function")r.push(e);return n==="before"})}function inferAnnotationFromBinaryExpression(e,t){var r=t.node.operator;var n=t.get("right").resolve();var i=t.get("left").resolve();var a=void 0;if(i.isIdentifier({name:e})){a=n}else if(n.isIdentifier({name:e})){a=i}if(a){if(r==="==="){return a.getTypeAnnotation()}else if(s.BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(r)>=0){return s.numberTypeAnnotation()}else{return}}else{if(r!=="===")return}var o=void 0;var c=void 0;if(i.isUnaryExpression({operator:"typeof"})){o=i;c=n}else if(n.isUnaryExpression({operator:"typeof"})){o=n;c=i}if(!c&&!o)return;c=c.resolve();if(!c.isLiteral())return;var u=c.node.value;if(typeof u!=="string")return;if(!o.get("argument").isIdentifier({name:e}))return;return s.createTypeAnnotationBasedOnTypeof(c.node.value)}function getParentConditionalPath(e){var t=void 0;while(t=e.parentPath){if(t.isIfStatement()||t.isConditionalExpression()){if(e.key==="test"){return}else{return t}}else{e=t}}}function getConditionalAnnotation(e,t){var r=getParentConditionalPath(e);if(!r)return;var n=r.get("test");var i=[n];var a=[];do{var o=i.shift().resolve();if(o.isLogicalExpression()){i.push(o.get("left"));i.push(o.get("right"))}if(o.isBinaryExpression()){var c=inferAnnotationFromBinaryExpression(t,o);if(c)a.push(c)}}while(i.length);if(a.length){return{typeAnnotation:s.createUnionTypeAnnotation(a),ifStatement:r}}else{return getConditionalAnnotation(r,t)}}e.exports=t["default"]},1401:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(2357);var i=r(9978);var a=r(4752);var s=r(6916);const{numericLiteral:o,sequenceExpression:c}=i;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find(e=>e.isProgram());this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),false)}_applyDefaults(e,t,r=false){const i=[];if(typeof e==="string"){i.push({importedSource:e});i.push(t)}else{n(!t,"Unexpected secondary arguments.");i.push(e)}const a=Object.assign({},this._defaultOpts);for(const e of i){if(!e)continue;Object.keys(a).forEach(t=>{if(e[t]!==undefined)a[t]=e[t]});if(!r){if(e.nameHint!==undefined)a.nameHint=e.nameHint;if(e.blockHoist!==undefined)a.blockHoist=e.blockHoist}}return a}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const i=t===null;const{importedSource:u,importedType:l,importedInterop:p,importingInterop:d,ensureLiveReference:f,ensureNoContext:m,nameHint:g,importPosition:_,blockHoist:h}=e;let y=g||t;const v=(0,s.default)(this._programPath);const T=v&&d==="node";const S=v&&d==="babel";if(_==="after"&&!v){throw new Error(`"importPosition": "after" is only supported in modules`)}const b=new a.default(u,this._programScope,this._hub);if(l==="es6"){if(!T&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}b.import();if(i){b.namespace(g||u)}else if(r||n){b.named(y,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(T){y=y!=="default"?y:u;const e=`${u}$es6Default`;b.import();if(i){b.default(e).var(y||u).wildcardInterop()}else if(r){if(f){b.default(e).var(y||u).defaultInterop().read("default")}else{b.default(e).var(y).defaultInterop().prop(t)}}else if(n){b.default(e).read(t)}}else if(S){b.import();if(i){b.namespace(y||u)}else if(r||n){b.named(y,t)}}else{b.require();if(i){b.var(y||u).wildcardInterop()}else if((r||n)&&f){if(r){y=y!=="default"?y:u;b.var(y).read(t);b.defaultInterop()}else{b.var(u).read(t)}}else if(r){b.var(y).defaultInterop().prop(t)}else if(n){b.var(y).prop(t)}}}else if(p==="compiled"){if(T){b.import();if(i){b.default(y||u)}else if(r||n){b.default(u).read(y)}}else if(S){b.import();if(i){b.namespace(y||u)}else if(r||n){b.named(y,t)}}else{b.require();if(i){b.var(y||u)}else if(r||n){if(f){b.var(u).read(y)}else{b.prop(t).var(y)}}}}else if(p==="uncompiled"){if(r&&f){throw new Error("No live reference for commonjs default")}if(T){b.import();if(i){b.default(y||u)}else if(r){b.default(y)}else if(n){b.default(u).read(y)}}else if(S){b.import();if(i){b.default(y||u)}else if(r){b.default(y)}else if(n){b.named(y,t)}}else{b.require();if(i){b.var(y||u)}else if(r){b.var(y)}else if(n){if(f){b.var(u).read(y)}else{b.var(y).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:E,resultName:x}=b.done();this._insertStatements(E,_,h);if((r||n)&&m&&x.type!=="Identifier"){return c([o(0),x])}return x}_insertStatements(e,t="before",r=3){const n=this._programPath.get("body");if(t==="after"){for(let t=n.length-1;t>=0;t--){if(n[t].isImportDeclaration()){n[t].insertAfter(e);return}}}else{e.forEach(e=>{e._blockHoist=r});const t=n.find(e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4});if(t){t.insertBefore(e);return}}this._programPath.unshiftContainer("body",e)}}t.default=ImportInjector},1427:function(){},1433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toIdentifier;var n=r(6920);var i=r(420);function toIdentifier(e){e=e+"";let t="";for(const r of e){t+=(0,i.isIdentifierChar)(r.codePointAt(0))?r:"-"}t=t.replace(/^[-0-9]+/,"");t=t.replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""});if(!(0,n.default)(t)){t=`_${t}`}return t||"_"}},1441:function(e,t,r){"use strict";const n=r(2730);const i=r(1382);const a=r(9225);const s=(e="",t="",r=false)=>{let n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?a.flatten(t).map(e=>`{${e}}`):t}for(let i of e){if(Array.isArray(i)){for(let e of i){n.push(s(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?s(i,e,r):i+e)}}}return a.flatten(n)};const o=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let o=(e,c={})=>{e.queue=[];let u=c;let l=c.queue;while(u.type!=="brace"&&u.type!=="root"&&u.parent){u=u.parent;l=u.queue}if(e.invalid||e.dollar){l.push(s(l.pop(),i(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){l.push(s(l.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let c=n(...o,t);if(c.length===0){c=i(e,t)}l.push(s(l.pop(),c));e.nodes=[];return}let p=a.encloseBrace(e);let d=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;d=f.queue}for(let t=0;t(0,n.default)(e,r,t)}},1453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce((e,t)=>[].concat(e,t),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let n=0;for(const i of e){if(t(i)){n++;r[n]=[]}else{r[n].push(i)}}return r}t.splitWhen=splitWhen},1469:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const s=a(r(7262));const o=r(9521);t.context=new s.Context;function getOctokit(e,t){return new o.GitHub(o.getOctokitOptions(e,t))}t.getOctokit=getOctokit},1486:function(e,t,r){const n=r(962);const i=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=i},1503:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipAllButComputedKey=skipAllButComputedKey;t.default=t.environmentVisitor=void 0;var n=r(5167);var i=r(1397);var a=r(4962);var s=r(9978);const{VISITOR_KEYS:o,assignmentExpression:c,booleanLiteral:u,callExpression:l,cloneNode:p,identifier:d,memberExpression:f,sequenceExpression:m,staticBlock:g,stringLiteral:_,thisExpression:h}=s;function getPrototypeOfExpression(e,t,r,n){e=p(e);const i=t||n?e:f(e,d("prototype"));return l(r.addHelper("getPrototypeOf"),[i])}function skipAllButComputedKey(e){if(!e.node.computed){e.skip();return}const t=o[e.type];for(const r of t){if(r!=="key")e.skipKey(r)}}const y={[`${g?"StaticBlock|":""}ClassPrivateProperty|TypeAnnotation`](e){e.skip()},Function(e){if(e.isMethod())return;if(e.isArrowFunctionExpression())return;e.skip()},"Method|ClassProperty"(e){skipAllButComputedKey(e)}};t.environmentVisitor=y;const v=n.default.visitors.merge([y,{Super(e,t){const{node:r,parentPath:n}=e;if(!n.isMemberExpression({object:r}))return;t.handle(n)}}]);const T=n.default.visitors.merge([y,{Scopable(e,{refName:t}){const r=e.scope.getOwnBinding(t);if(r&&r.identifier.name===t){e.scope.rename(t)}}}]);const S={memoise(e,t){const{scope:r,node:n}=e;const{computed:i,property:a}=n;if(!i){return}const s=r.maybeGenerateMemoised(a);if(!s){return}this.memoiser.set(a,s,t)},prop(e){const{computed:t,property:r}=e.node;if(this.memoiser.has(r)){return p(this.memoiser.get(r))}if(t){return p(r)}return _(r.name)},get(e){return this._get(e,this._getThisRefs())},_get(e,t){const r=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return l(this.file.addHelper("get"),[t.memo?m([t.memo,r]):r,this.prop(e),t.this])},_getThisRefs(){if(!this.isDerivedConstructor){return{this:h()}}const e=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:c("=",e,h()),this:p(e)}},set(e,t){const r=this._getThisRefs();const n=getPrototypeOfExpression(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return l(this.file.addHelper("set"),[r.memo?m([r.memo,n]):n,this.prop(e),t,r.this,u(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError(`Destructuring to a super field is not supported yet.`)},call(e,t){const r=this._getThisRefs();return(0,a.default)(this._get(e,r),p(r.this),t,false)},optionalCall(e,t){const r=this._getThisRefs();return(0,a.default)(this._get(e,r),p(r.this),t,true)}};const b=Object.assign({},S,{prop(e){const{property:t}=e.node;if(this.memoiser.has(t)){return p(this.memoiser.get(t))}return p(t)},get(e){const{isStatic:t,getSuperRef:r}=this;const{computed:n}=e.node;const i=this.prop(e);let a;if(t){var s;a=(s=r())!=null?s:f(d("Function"),d("prototype"))}else{var o;a=f((o=r())!=null?o:d("Object"),d("prototype"))}return f(a,i,n)},set(e,t){const{computed:r}=e.node;const n=this.prop(e);return c("=",f(h(),n,r),t)},destructureSet(e){const{computed:t}=e.node;const r=this.prop(e);return f(h(),r,t)},call(e,t){return(0,a.default)(this.get(e),h(),t,false)},optionalCall(e,t){return(0,a.default)(this.get(e),h(),t,true)}});class ReplaceSupers{constructor(e){var t;const r=e.methodPath;this.methodPath=r;this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=r.isObjectMethod()||r.node.static||(r.isStaticBlock==null?void 0:r.isStaticBlock());this.isPrivateMethod=r.isPrivate()&&r.isMethod();this.file=e.file;this.constantSuper=(t=e.constantSuper)!=null?t:e.isLoose;this.opts=e}getObjectRef(){return p(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return p(this.opts.superRef);if(this.opts.getSuperRef)return p(this.opts.getSuperRef())}replace(){if(this.opts.refToPreserve){this.methodPath.traverse(T,{refName:this.opts.refToPreserve.name})}const e=this.constantSuper?b:S;(0,i.default)(this.methodPath,v,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:e.get},e))}}t.default=ReplaceSupers},1530:function(e,t,r){const n=r(1750);const i=(e,t,r)=>n(e,t,">",r);e.exports=i},1531:function(e){(function(){"use strict";function isExpression(e){if(e==null){return false}switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return true}return false}function isIterationStatement(e){if(e==null){return false}switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return true}return false}function isStatement(e){if(e==null){return false}switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return true}return false}function isSourceElement(e){return isStatement(e)||e!=null&&e.type==="FunctionDeclaration"}function trailingStatement(e){switch(e.type){case"IfStatement":if(e.alternate!=null){return e.alternate}return e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}function isProblematicIfStatement(e){var t;if(e.type!=="IfStatement"){return false}if(e.alternate==null){return false}t=e.consequent;do{if(t.type==="IfStatement"){if(t.alternate==null){return true}}t=trailingStatement(t)}while(t);return false}e.exports={isExpression:isExpression,isStatement:isStatement,isIterationStatement:isIterationStatement,isSourceElement:isSourceElement,isProblematicIfStatement:isProblematicIfStatement,trailingStatement:trailingStatement}})()},1533:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=cloneNode;var n=r(288);var i=r(4897);const a=Function.call.bind(Object.prototype.hasOwnProperty);function cloneIfNode(e,t,r){if(e&&typeof e.type==="string"){return cloneNode(e,t,r)}return e}function cloneIfNodeOrArray(e,t,r){if(Array.isArray(e)){return e.map(e=>cloneIfNode(e,t,r))}return cloneIfNode(e,t,r)}function cloneNode(e,t=true,r=false){if(!e)return e;const{type:s}=e;const o={type:e.type};if((0,i.isIdentifier)(e)){o.name=e.name;if(a(e,"optional")&&typeof e.optional==="boolean"){o.optional=e.optional}if(a(e,"typeAnnotation")){o.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,true,r):e.typeAnnotation}}else if(!a(n.NODE_FIELDS,s)){throw new Error(`Unknown node type: "${s}"`)}else{for(const c of Object.keys(n.NODE_FIELDS[s])){if(a(e,c)){if(t){o[c]=(0,i.isFile)(e)&&c==="comments"?maybeCloneComments(e.comments,t,r):cloneIfNodeOrArray(e[c],true,r)}else{o[c]=e[c]}}}}if(a(e,"loc")){if(r){o.loc=null}else{o.loc=e.loc}}if(a(e,"leadingComments")){o.leadingComments=maybeCloneComments(e.leadingComments,t,r)}if(a(e,"innerComments")){o.innerComments=maybeCloneComments(e.innerComments,t,r)}if(a(e,"trailingComments")){o.trailingComments=maybeCloneComments(e.trailingComments,t,r)}if(a(e,"extra")){o.extra=Object.assign({},e.extra)}return o}function maybeCloneComments(e,t,r){if(!e||!t){return e}return e.map(({type:e,value:t,loc:n})=>{if(r){return{type:e,value:t,loc:null}}return{type:e,value:t,loc:n}})}},1538:function(e,t,r){var n=r(3600),i=r(4e3),a=r(3269),s=r(3334),o=r(9439);var c="[object Boolean]",u="[object Date]",l="[object Map]",p="[object Number]",d="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]";var _="[object ArrayBuffer]",h="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",b="[object Int32Array]",E="[object Uint8Array]",x="[object Uint8ClampedArray]",D="[object Uint16Array]",C="[object Uint32Array]";function initCloneByTag(e,t,r){var A=e.constructor;switch(t){case _:return n(e);case c:case u:return new A(+e);case h:return i(e,r);case y:case v:case T:case S:case b:case E:case x:case D:case C:return o(e,r);case l:return new A;case p:case m:return new A(e);case d:return a(e);case f:return new A;case g:return s(e)}}e.exports=initCloneByTag},1600:function(e,t,r){var n=r(1098);e.exports=Array.isArray||function isArray(e){return n(e)=="Array"}},1611:function(e){function noop(){}e.exports=noop},1618:function(e,t,r){const n=r(5706);const i=(e,t,r)=>n(e,t,r)>=0;e.exports=i},1619:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(6920);var i=r(6405);var a=valueToNode;t.default=a;const s=Function.call.bind(Object.prototype.toString);function isRegExp(e){return s(e)==="[object RegExp]"}function isPlainObject(e){if(typeof e!=="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]"){return false}const t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function valueToNode(e){if(e===undefined){return(0,i.identifier)("undefined")}if(e===true||e===false){return(0,i.booleanLiteral)(e)}if(e===null){return(0,i.nullLiteral)()}if(typeof e==="string"){return(0,i.stringLiteral)(e)}if(typeof e==="number"){let t;if(Number.isFinite(e)){t=(0,i.numericLiteral)(Math.abs(e))}else{let r;if(Number.isNaN(e)){r=(0,i.numericLiteral)(0)}else{r=(0,i.numericLiteral)(1)}t=(0,i.binaryExpression)("/",r,(0,i.numericLiteral)(0))}if(e<0||Object.is(e,-0)){t=(0,i.unaryExpression)("-",t)}return t}if(isRegExp(e)){const t=e.source;const r=e.toString().match(/\/([a-z]+|)$/)[1];return(0,i.regExpLiteral)(t,r)}if(Array.isArray(e)){return(0,i.arrayExpression)(e.map(valueToNode))}if(isPlainObject(e)){const t=[];for(const r of Object.keys(e)){let a;if((0,n.default)(r)){a=(0,i.identifier)(r)}else{a=(0,i.stringLiteral)(r)}t.push((0,i.objectProperty)(a,valueToNode(e[r])))}return(0,i.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}},1625:function(e,t,r){"use strict";const n=r(5747);const i=r(4464);const a=r(7538);const s=r(7406);const o=r(9895);const c=r(2804);const{FilterStream:u,UniqueStream:l}=r(1162);const p=()=>false;const d=e=>e[0]==="!";const f=e=>{if(!e.every(e=>typeof e==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const m=(e={})=>{if(!e.cwd){return}let t;try{t=n.statSync(e.cwd)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const g=e=>e.stats instanceof n.Stats?e.path:e;const _=(e,t)=>{e=i([].concat(e));f(e);m(t);const r=[];t={ignore:[],expandDirectories:true,...t};for(const[n,i]of e.entries()){if(d(i)){continue}const a=e.slice(n).filter(e=>d(e)).map(e=>e.slice(1));const s={...t,ignore:t.ignore.concat(a)};r.push({pattern:i,options:s})}return r};const h=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r={...r,files:e.options.expandDirectories}}else if(typeof e.options.expandDirectories==="object"){r={...r,...e.options.expandDirectories}}return t(e.pattern,r)};const y=(e,t)=>e.options.expandDirectories?h(e,t):[e.pattern];const v=e=>{return e&&e.gitignore?c.sync({cwd:e.cwd,ignore:e.ignore}):p};const T=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=o.sync(r.ignore)}return{pattern:t,options:r}};e.exports=(async(e,t)=>{const r=_(e,t);const n=async()=>{return t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):p};const a=async()=>{const e=await Promise.all(r.map(async e=>{const t=await y(e,o);return Promise.all(t.map(T(e)))}));return i(...e)};const[u,l]=await Promise.all([n(),a()]);const d=await Promise.all(l.map(e=>s(e.pattern,e.options)));return i(...d).filter(e=>!u(g(e)))});e.exports.sync=((e,t)=>{const r=_(e,t);const n=[];for(const e of r){const t=y(e,o.sync).map(T(e));n.push(...t)}const a=v(t);let c=[];for(const e of n){c=i(c,s.sync(e.pattern,e.options))}return c.filter(e=>!a(e))});e.exports.stream=((e,t)=>{const r=_(e,t);const n=[];for(const e of r){const t=y(e,o.sync).map(T(e));n.push(...t)}const i=v(t);const c=new u(e=>!i(e));const p=new l;return a(n.map(e=>s.stream(e.pattern,e.options))).pipe(c).pipe(p)});e.exports.generateGlobTasks=_;e.exports.hasMagic=((e,t)=>[].concat(e).some(e=>s.isDynamicPattern(e,t)));e.exports.gitignore=c},1631:function(e){e.exports=require("net")},1636:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypeParameter=TSTypeParameter;t.TSParameterProperty=TSParameterProperty;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSQualifiedName=TSQualifiedName;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSPropertySignature=TSPropertySignature;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.TSMethodSignature=TSMethodSignature;t.TSIndexSignature=TSIndexSignature;t.TSAnyKeyword=TSAnyKeyword;t.TSBigIntKeyword=TSBigIntKeyword;t.TSUnknownKeyword=TSUnknownKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSVoidKeyword=TSVoidKeyword;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSNullKeyword=TSNullKeyword;t.TSNeverKeyword=TSNeverKeyword;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSThisType=TSThisType;t.TSFunctionType=TSFunctionType;t.TSConstructorType=TSConstructorType;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.TSTypeReference=TSTypeReference;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeLiteral=TSTypeLiteral;t.tsPrintTypeLiteralOrInterfaceBody=tsPrintTypeLiteralOrInterfaceBody;t.tsPrintBraced=tsPrintBraced;t.TSArrayType=TSArrayType;t.TSTupleType=TSTupleType;t.TSOptionalType=TSOptionalType;t.TSRestType=TSRestType;t.TSNamedTupleMember=TSNamedTupleMember;t.TSUnionType=TSUnionType;t.TSIntersectionType=TSIntersectionType;t.tsPrintUnionOrIntersectionType=tsPrintUnionOrIntersectionType;t.TSConditionalType=TSConditionalType;t.TSInferType=TSInferType;t.TSParenthesizedType=TSParenthesizedType;t.TSTypeOperator=TSTypeOperator;t.TSIndexedAccessType=TSIndexedAccessType;t.TSMappedType=TSMappedType;t.TSLiteralType=TSLiteralType;t.TSExpressionWithTypeArguments=TSExpressionWithTypeArguments;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSInterfaceBody=TSInterfaceBody;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSAsExpression=TSAsExpression;t.TSTypeAssertion=TSTypeAssertion;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSModuleDeclaration=TSModuleDeclaration;t.TSModuleBlock=TSModuleBlock;t.TSImportType=TSImportType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSExternalModuleReference=TSExternalModuleReference;t.TSNonNullExpression=TSNonNullExpression;t.TSExportAssignment=TSExportAssignment;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;function TSTypeAnnotation(e){this.token(":");this.space();if(e.optional)this.token("?");this.print(e.typeAnnotation,e)}function TSTypeParameterInstantiation(e){this.token("<");this.printList(e.params,e,{});this.token(">")}function TSTypeParameter(e){this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint,e)}if(e.default){this.space();this.token("=");this.space();this.print(e.default,e)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e){if(e.declare){this.word("declare");this.space()}this._functionHead(e);this.token(";")}function TSDeclareMethod(e){this._classMethodHead(e);this.token(";")}function TSQualifiedName(e){this.print(e.left,e);this.token(".");this.print(e.right,e)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSPropertySignature(e){const{readonly:t,initializer:r}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation,e);if(r){this.space();this.token("=");this.space();this.print(r,e)}this.token(";")}function tsPrintPropertyOrMethodName(e){if(e.computed){this.token("[")}this.print(e.key,e);if(e.computed){this.token("]")}if(e.optional){this.token("?")}}function TSMethodSignature(e){const{kind:t}=e;if(t==="set"||t==="get"){this.word(t);this.space()}this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);this.token(";")}function TSIndexSignature(e){const{readonly:t,static:r}=e;if(r){this.word("static");this.space()}if(t){this.word("readonly");this.space()}this.token("[");this._parameters(e.parameters,e);this.token("]");this.print(e.typeAnnotation,e);this.token(";")}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){if(e.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t,parameters:r}=e;this.print(t,e);this.token("(");this._parameters(r,e);this.token(")");this.space();this.token("=>");this.space();this.print(e.typeAnnotation.typeAnnotation,e)}function TSTypeReference(e){this.print(e.typeName,e);this.print(e.typeParameters,e)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName)}function TSTypeLiteral(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function tsPrintTypeLiteralOrInterfaceBody(e,t){this.tsPrintBraced(e,t)}function tsPrintBraced(e,t){this.token("{");if(e.length){this.indent();this.newline();for(const r of e){this.print(r,t);this.newline()}this.dedent();this.rightBrace()}else{this.token("}")}}function TSArrayType(e){this.print(e.elementType,e);this.token("[]")}function TSTupleType(e){this.token("[");this.printList(e.elementTypes,e);this.token("]")}function TSOptionalType(e){this.print(e.typeAnnotation,e);this.token("?")}function TSRestType(e){this.token("...");this.print(e.typeAnnotation,e)}function TSNamedTupleMember(e){this.print(e.label,e);if(e.optional)this.token("?");this.token(":");this.space();this.print(e.elementType,e)}function TSUnionType(e){this.tsPrintUnionOrIntersectionType(e,"|")}function TSIntersectionType(e){this.tsPrintUnionOrIntersectionType(e,"&")}function tsPrintUnionOrIntersectionType(e,t){this.printJoin(e.types,e,{separator(){this.space();this.token(t);this.space()}})}function TSConditionalType(e){this.print(e.checkType);this.space();this.word("extends");this.space();this.print(e.extendsType);this.space();this.token("?");this.space();this.print(e.trueType);this.space();this.token(":");this.space();this.print(e.falseType)}function TSInferType(e){this.token("infer");this.space();this.print(e.typeParameter)}function TSParenthesizedType(e){this.token("(");this.print(e.typeAnnotation,e);this.token(")")}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation,e)}function TSIndexedAccessType(e){this.print(e.objectType,e);this.token("[");this.print(e.indexType,e);this.token("]")}function TSMappedType(e){const{nameType:t,optional:r,readonly:n,typeParameter:i}=e;this.token("{");this.space();if(n){tokenIfPlusMinus(this,n);this.word("readonly");this.space()}this.token("[");this.word(i.name);this.space();this.word("in");this.space();this.print(i.constraint,i);if(t){this.space();this.word("as");this.space();this.print(t,e)}this.token("]");if(r){tokenIfPlusMinus(this,r);this.token("?")}this.token(":");this.space();this.print(e.typeAnnotation,e);this.space();this.token("}")}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSLiteralType(e){this.print(e.literal,e)}function TSExpressionWithTypeArguments(e){this.print(e.expression,e);this.print(e.typeParameters,e)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:n,extends:i,body:a}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r,e);this.print(n,e);if(i!=null&&i.length){this.space();this.word("extends");this.space();this.printList(i,e)}this.space();this.print(a,e)}function TSInterfaceBody(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r,e);this.print(n,e);this.space();this.token("=");this.space();this.print(i,e);this.token(";")}function TSAsExpression(e){const{expression:t,typeAnnotation:r}=e;this.print(t,e);this.space();this.word("as");this.space();this.print(r,e)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.token("<");this.print(t,e);this.token(">");this.space();this.print(r,e)}function TSEnumDeclaration(e){const{declare:t,const:r,id:n,members:i}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(n,e);this.space();this.tsPrintBraced(i,e)}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t,e);if(r){this.space();this.token("=");this.space();this.print(r,e)}this.token(",")}function TSModuleDeclaration(e){const{declare:t,id:r}=e;if(t){this.word("declare");this.space()}if(!e.global){this.word(r.type==="Identifier"?"namespace":"module");this.space()}this.print(r,e);if(!e.body){this.token(";");return}let n=e.body;while(n.type==="TSModuleDeclaration"){this.token(".");this.print(n.id,n);n=n.body}this.space();this.print(n,e)}function TSModuleBlock(e){this.tsPrintBraced(e.body,e)}function TSImportType(e){const{argument:t,qualifier:r,typeParameters:n}=e;this.word("import");this.token("(");this.print(t,e);this.token(")");if(r){this.token(".");this.print(r,e)}if(n){this.print(n,e)}}function TSImportEqualsDeclaration(e){const{isExport:t,id:r,moduleReference:n}=e;if(t){this.word("export");this.space()}this.word("import");this.space();this.print(r,e);this.space();this.token("=");this.space();this.print(n,e);this.token(";")}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression,e);this.token(")")}function TSNonNullExpression(e){this.print(e.expression,e);this.token("!")}function TSExportAssignment(e){this.word("export");this.space();this.token("=");this.space();this.print(e.expression,e);this.token(";")}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id,e)}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t,parameters:r}=e;this.print(t,e);this.token("(");this._parameters(r,e);this.token(")");this.print(e.typeAnnotation,e)}function tsPrintClassMemberModifiers(e,t){if(t&&e.declare){this.word("declare");this.space()}if(e.accessibility){this.word(e.accessibility);this.space()}if(e.static){this.word("static");this.space()}if(e.override){this.word("override");this.space()}if(e.abstract){this.word("abstract");this.space()}if(t&&e.readonly){this.word("readonly");this.space()}}},1638:function(e){function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=hashDelete},1641:function(e,t,r){"use strict";var n=r(7138);(0,n.default)("ArgumentPlaceholder",{});(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}});(0,n.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,n.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,n.assertNodeType)("StringLiteral")}}});(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:false}}});(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}});(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,n.default)("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent"]});(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]});(0,n.default)("TopicReference",{aliases:["Expression"]});(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]});(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]});(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})},1651:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isReferenced;function isReferenced(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e){return!!t.computed}return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return false;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e){return!!t.computed}return false;case"ObjectProperty":if(t.key===e){return!!t.computed}return!r||r.type!=="ObjectPattern";case"ClassProperty":if(t.key===e){return!!t.computed}return true;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return false;case"CatchClause":return false;case"RestElement":return false;case"BreakStatement":case"ContinueStatement":return false;case"FunctionDeclaration":case"FunctionExpression":return false;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return false;case"ExportSpecifier":if(r!=null&&r.source){return false}return t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return false;case"ImportAttribute":return false;case"JSXAttribute":return false;case"ObjectPattern":case"ArrayPattern":return false;case"MetaProperty":return false;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":if(t.key===e){return!!t.computed}return true}return true}},1655:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseAsync=t.parseSync=t.parse=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}var n=r(2520);var i=r(8554);var a=r(4182);const s=_gensync()(function*parse(e,t){const r=yield*(0,n.default)(t);if(r===null){return null}return yield*(0,i.default)(r.passes,(0,a.default)(r),e)});const o=function parse(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(r===undefined)return s.sync(e,t);s.errback(e,t,r)};t.parse=o;const c=s.sync;t.parseSync=c;const u=s.async;t.parseAsync=u},1665:function(e,t,r){e.exports={default:r(3240),__esModule:true}},1669:function(e){e.exports=require("util")},1678:function(e,t,r){const n=r(5369);const i=(e,t)=>new n(e,t).minor;e.exports=i},1744:function(e,t,r){e=r.nmd(e);var n=r(7824);var i=true&&t&&!t.nodeType&&t;var a=i&&"object"=="object"&&e&&!e.nodeType&&e;var s=a&&a.exports===i;var o=s?n.Buffer:undefined,c=o?o.allocUnsafe:undefined;function cloneBuffer(e,t){if(t){return e.slice()}var r=e.length,n=c?c(r):new e.constructor(r);e.copy(n);return n}e.exports=cloneBuffer},1748:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t.default=highlight;var n=r(5735);var i=r(420);var a=r(2406);const s=new Set(["as","async","from","get","of","set"]);function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const o=/\r\n|[\n\r\u2028\u2029]/;const c=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i;const t=function(t,r,n){if(t.type==="name"){if((0,i.isKeyword)(t.value)||(0,i.isStrictReservedWord)(t.value,true)||s.has(t.value)){return"keyword"}if(e.test(t.value)&&(n[r-1]==="<"||n.substr(r-2,2)=="t(e)).join("\n")}else{r+=i}}return r}function shouldHighlight(e){return!!a.supportsColor||e.forceColor}function getChalk(e){return e.forceColor?new a.constructor({enabled:true,level:1}):a}function highlight(e,t={}){if(shouldHighlight(t)){const r=getChalk(t);const n=getDefs(r);return highlightTokens(n,e)}else{return e}}},1750:function(e,t,r){const n=r(5369);const i=r(8123);const{ANY:a}=i;const s=r(962);const o=r(1486);const c=r(9316);const u=r(4342);const l=r(2495);const p=r(1618);const d=(e,t,r,d)=>{e=new n(e,d);t=new s(t,d);let f,m,g,_,h;switch(r){case">":f=c;m=l;g=u;_=">";h=">=";break;case"<":f=u;m=p;g=c;_="<";h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,d)){return false}for(let r=0;r{if(e.semver===a){e=new i(">=0.0.0")}s=s||e;o=o||e;if(f(e.semver,s.semver,d)){s=e}else if(g(e.semver,o.semver,d)){o=e}});if(s.operator===_||s.operator===h){return false}if((!o.operator||o.operator===_)&&m(e,o.semver)){return false}else if(o.operator===h&&g(e,o.semver)){return false}}return true};e.exports=d},1752:function(e){e.exports=function(e){return typeof e==="object"?e!==null:typeof e==="function"}},1753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(9385);var i=r(6796);var a=r(5356);var s=_interopDefault(r(4454));var o=r(7463);const c="5.6.1";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let n;let i;const c=e.request&&e.request.fetch||s;return c(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then(async a=>{i=a.url;n=a.status;for(const e of a.headers){r[e[0]]=e[1]}if("deprecation"in r){const n=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/);const i=n&&n.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${i?`. See ${i}`:""}`)}if(n===204||n===205){return}if(e.method==="HEAD"){if(n<400){return}throw new o.RequestError(a.statusText,n,{response:{url:i,status:n,headers:r,data:undefined},request:e})}if(n===304){throw new o.RequestError("Not modified",n,{response:{url:i,status:n,headers:r,data:await getResponseData(a)},request:e})}if(n>=400){const t=await getResponseData(a);const s=new o.RequestError(toErrorMessage(t),n,{response:{url:i,status:n,headers:r,data:t},request:e});throw s}return getResponseData(a)}).then(e=>{return{status:n,url:i,headers:r,data:e}}).catch(t=>{if(t instanceof o.RequestError)throw t;throw new o.RequestError(t.message,500,{request:e})})}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const n=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const i=(e,t)=>{return fetchWrapper(r.parse(r.merge(e,t)))};Object.assign(i,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(i,n)};return Object.assign(n,{endpoint:r,defaults:withDefaults.bind(null,r)})}const u=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${i.getUserAgent()}`}});t.request=u},1767:function(e,t,r){const n=r(5369);const i=(e,t,r,i)=>{if(typeof r==="string"){i=r;r=undefined}try{return new n(e,r).inc(t,i).version}catch(e){return null}};e.exports=i},1775:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2413);const i=r(608);const a=r(6002);class ProviderStream extends a.default{constructor(){super(...arguments);this._reader=new i.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const i=this.api(t,e,r);const a=new n.Readable({objectMode:true,read:()=>{}});i.once("error",e=>a.emit("error",e)).on("data",e=>a.emit("data",r.transform(e))).once("end",()=>a.emit("end"));a.once("close",()=>i.destroy());return a}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderStream},1788:function(e,t,r){"use strict";var n=r(6581);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("AnyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow"],fields:{}});(0,i.default)("BooleanTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("BooleanLiteralTypeAnnotation",{aliases:["Flow"],fields:{}});(0,i.default)("NullLiteralTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}});(0,i.default)("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed"],aliases:["Property"],fields:{computed:{validate:(0,n.assertValueType)("boolean"),default:false}}});(0,i.default)("DeclareClass",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareInterface",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareModule",{visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("ExistentialTypeParam",{aliases:["Flow"]});(0,i.default)("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow"],fields:{}});(0,i.default)("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{}});(0,i.default)("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}});(0,i.default)("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}});(0,i.default)("InterfaceDeclaration",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}});(0,i.default)("MixedTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]});(0,i.default)("EmptyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]});(0,i.default)("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}});(0,i.default)("NumericLiteralTypeAnnotation",{aliases:["Flow"],fields:{}});(0,i.default)("NumberTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("StringLiteralTypeAnnotation",{aliases:["Flow"],fields:{}});(0,i.default)("StringTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("ThisTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}});(0,i.default)("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}});(0,i.default)("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow"],fields:{}});(0,i.default)("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("OpaqueType",{visitor:["id","typeParameters","impltype","supertype"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}});(0,i.default)("TypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}});(0,i.default)("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{}});(0,i.default)("TypeParameter",{visitor:["bound"],aliases:["Flow"],fields:{}});(0,i.default)("TypeParameterDeclaration",{visitor:["params"],aliases:["Flow"],fields:{}});(0,i.default)("TypeParameterInstantiation",{visitor:["params"],aliases:["Flow"],fields:{}});(0,i.default)("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties"],aliases:["Flow"],fields:{}});(0,i.default)("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{}});(0,i.default)("ObjectTypeIndexer",{visitor:["id","key","value"],aliases:["Flow","UserWhitespacable"],fields:{}});(0,i.default)("ObjectTypeProperty",{visitor:["key","value"],aliases:["Flow","UserWhitespacable"],fields:{}});(0,i.default)("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["Flow","UserWhitespacable"],fields:{}});(0,i.default)("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{}});(0,i.default)("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}});(0,i.default)("VoidTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}})},1789:function(e,t,r){"use strict";const n=r(9914);const i=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let a={relaxZeros:true,...r};if(typeof a.strictZeros==="boolean"){a.relaxZeros=a.strictZeros===false}let s=String(a.relaxZeros);let o=String(a.shorthand);let c=String(a.capture);let u=String(a.wrap);let l=e+":"+t+"="+s+o+c+u;if(i.cache.hasOwnProperty(l)){return i.cache[l].result}let p=Math.min(e,t);let d=Math.max(e,t);if(Math.abs(p-d)===1){let r=e+"|"+t;if(a.capture){return`(${r})`}if(a.wrap===false){return r}return`(?:${r})`}let f=hasPadding(e)||hasPadding(t);let m={min:e,max:t,a:p,b:d};let g=[];let _=[];if(f){m.isPadded=f;m.maxLen=String(m.max).length}if(p<0){let e=d<0?Math.abs(d):1;_=splitToPatterns(e,Math.abs(p),m,a);p=m.a=0}if(d>=0){g=splitToPatterns(p,d,m,a)}m.negatives=_;m.positives=g;m.result=collatePatterns(_,g,a);if(a.capture===true){m.result=`(${m.result})`}else if(a.wrap!==false&&g.length+_.length>1){m.result=`(?:${m.result})`}i.cache[l]=m;return m.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let i=filterPatterns(t,e,"",false,r)||[];let a=filterPatterns(e,t,"-?",true,r)||[];let s=n.concat(a).concat(i);return s.join("|")}function splitToRanges(e,t){let r=1;let n=1;let i=countNines(e,r);let a=new Set([t]);while(e<=i&&i<=t){a.add(i);r+=1;i=countNines(e,r)}i=countZeros(t+1,n)-1;while(e1){o.count.pop()}o.count.push(c.count[0]);o.string=o.pattern+toQuantifier(o.count);s=t+1;continue}if(r.isPadded){u=padZeros(t,r,n)}c.string=u+c.pattern+toQuantifier(c.count);a.push(c);s=t+1;o=c}return a}function filterPatterns(e,t,r,n,i){let a=[];for(let i of e){let{string:e}=i;if(!n&&!contains(t,"string",e)){a.push(r+e)}if(n&&contains(t,"string",e)){a.push(r+e)}}return a}function zip(e,t){let r=[];for(let n=0;nt?1:t>e?-1:0}function contains(e,t,r){return e.some(e=>e[t]===r)}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let n=Math.abs(t.maxLen-String(e).length);let i=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:{return i?`0{0,${n}}`:`0{${n}}`}}}i.cache={};i.clearCache=(()=>i.cache={});e.exports=i},1807:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var n=r(7138);const i=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];t.PLACEHOLDERS=i;const a={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};t.PLACEHOLDERS_ALIAS=a;for(const e of i){const t=n.ALIAS_KEYS[e];if(t!=null&&t.length)a[e]=t}const s={};t.PLACEHOLDERS_FLIPPED_ALIAS=s;Object.keys(a).forEach(e=>{a[e].forEach(t=>{if(!Object.hasOwnProperty.call(s,t)){s[t]=[]}s[t].push(e)})})},1812:function(e,t,r){var n=r(1009),i=r(8670),a=r(4654);function mapCacheClear(){this.size=0;this.__data__={hash:new n,map:new(a||i),string:new n}}e.exports=mapCacheClear},1821:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=createFlowUnionType;var n=r(6405);var i=r(4115);function createFlowUnionType(e){const t=(0,i.default)(e);if(t.length===1){return t[0]}else{return(0,n.unionTypeAnnotation)(t)}}},1833:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(9394);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}t.default=SyncProvider},1853:function(e){e.exports={builtin:{Array:false,ArrayBuffer:false,Boolean:false,constructor:false,DataView:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Float32Array:false,Float64Array:false,Function:false,hasOwnProperty:false,Infinity:false,Int16Array:false,Int32Array:false,Int8Array:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Map:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,Promise:false,propertyIsEnumerable:false,Proxy:false,RangeError:false,ReferenceError:false,Reflect:false,RegExp:false,Set:false,String:false,Symbol:false,SyntaxError:false,System:false,toLocaleString:false,toString:false,TypeError:false,Uint16Array:false,Uint32Array:false,Uint8Array:false,Uint8ClampedArray:false,undefined:false,unescape:false,URIError:false,valueOf:false,WeakMap:false,WeakSet:false},es5:{Array:false,Boolean:false,constructor:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Function:false,hasOwnProperty:false,Infinity:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,propertyIsEnumerable:false,RangeError:false,ReferenceError:false,RegExp:false,String:false,SyntaxError:false,toLocaleString:false,toString:false,TypeError:false,undefined:false,unescape:false,URIError:false,valueOf:false},es6:{Array:false,ArrayBuffer:false,Boolean:false,constructor:false,DataView:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Float32Array:false,Float64Array:false,Function:false,hasOwnProperty:false,Infinity:false,Int16Array:false,Int32Array:false,Int8Array:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Map:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,Promise:false,propertyIsEnumerable:false,Proxy:false,RangeError:false,ReferenceError:false,Reflect:false,RegExp:false,Set:false,String:false,Symbol:false,SyntaxError:false,System:false,toLocaleString:false,toString:false,TypeError:false,Uint16Array:false,Uint32Array:false,Uint8Array:false,Uint8ClampedArray:false,undefined:false,unescape:false,URIError:false,valueOf:false,WeakMap:false,WeakSet:false},browser:{addEventListener:false,alert:false,AnalyserNode:false,Animation:false,AnimationEffectReadOnly:false,AnimationEffectTiming:false,AnimationEffectTimingReadOnly:false,AnimationEvent:false,AnimationPlaybackEvent:false,AnimationTimeline:false,applicationCache:false,ApplicationCache:false,ApplicationCacheErrorEvent:false,atob:false,Attr:false,Audio:false,AudioBuffer:false,AudioBufferSourceNode:false,AudioContext:false,AudioDestinationNode:false,AudioListener:false,AudioNode:false,AudioParam:false,AudioProcessingEvent:false,AutocompleteErrorEvent:false,BarProp:false,BatteryManager:false,BeforeUnloadEvent:false,BiquadFilterNode:false,Blob:false,blur:false,btoa:false,Cache:false,caches:false,CacheStorage:false,cancelAnimationFrame:false,cancelIdleCallback:false,CanvasGradient:false,CanvasPattern:false,CanvasRenderingContext2D:false,CDATASection:false,ChannelMergerNode:false,ChannelSplitterNode:false,CharacterData:false,clearInterval:false,clearTimeout:false,clientInformation:false,ClientRect:false,ClientRectList:false,ClipboardEvent:false,close:false,closed:false,CloseEvent:false,Comment:false,CompositionEvent:false,confirm:false,console:false,ConvolverNode:false,createImageBitmap:false,Credential:false,CredentialsContainer:false,crypto:false,Crypto:false,CryptoKey:false,CSS:false,CSSAnimation:false,CSSFontFaceRule:false,CSSImportRule:false,CSSKeyframeRule:false,CSSKeyframesRule:false,CSSMediaRule:false,CSSPageRule:false,CSSRule:false,CSSRuleList:false,CSSStyleDeclaration:false,CSSStyleRule:false,CSSStyleSheet:false,CSSSupportsRule:false,CSSTransition:false,CSSUnknownRule:false,CSSViewportRule:false,customElements:false,CustomEvent:false,DataTransfer:false,DataTransferItem:false,DataTransferItemList:false,Debug:false,defaultStatus:false,defaultstatus:false,DelayNode:false,DeviceMotionEvent:false,DeviceOrientationEvent:false,devicePixelRatio:false,dispatchEvent:false,document:false,Document:false,DocumentFragment:false,DocumentTimeline:false,DocumentType:false,DOMError:false,DOMException:false,DOMImplementation:false,DOMParser:false,DOMSettableTokenList:false,DOMStringList:false,DOMStringMap:false,DOMTokenList:false,DragEvent:false,DynamicsCompressorNode:false,Element:false,ElementTimeControl:false,ErrorEvent:false,event:false,Event:false,EventSource:false,EventTarget:false,external:false,FederatedCredential:false,fetch:false,File:false,FileError:false,FileList:false,FileReader:false,find:false,focus:false,FocusEvent:false,FontFace:false,FormData:false,frameElement:false,frames:false,GainNode:false,Gamepad:false,GamepadButton:false,GamepadEvent:false,getComputedStyle:false,getSelection:false,HashChangeEvent:false,Headers:false,history:false,History:false,HTMLAllCollection:false,HTMLAnchorElement:false,HTMLAppletElement:false,HTMLAreaElement:false,HTMLAudioElement:false,HTMLBaseElement:false,HTMLBlockquoteElement:false,HTMLBodyElement:false,HTMLBRElement:false,HTMLButtonElement:false,HTMLCanvasElement:false,HTMLCollection:false,HTMLContentElement:false,HTMLDataListElement:false,HTMLDetailsElement:false,HTMLDialogElement:false,HTMLDirectoryElement:false,HTMLDivElement:false,HTMLDListElement:false,HTMLDocument:false,HTMLElement:false,HTMLEmbedElement:false,HTMLFieldSetElement:false,HTMLFontElement:false,HTMLFormControlsCollection:false,HTMLFormElement:false,HTMLFrameElement:false,HTMLFrameSetElement:false,HTMLHeadElement:false,HTMLHeadingElement:false,HTMLHRElement:false,HTMLHtmlElement:false,HTMLIFrameElement:false,HTMLImageElement:false,HTMLInputElement:false,HTMLIsIndexElement:false,HTMLKeygenElement:false,HTMLLabelElement:false,HTMLLayerElement:false,HTMLLegendElement:false,HTMLLIElement:false,HTMLLinkElement:false,HTMLMapElement:false,HTMLMarqueeElement:false,HTMLMediaElement:false,HTMLMenuElement:false,HTMLMetaElement:false,HTMLMeterElement:false,HTMLModElement:false,HTMLObjectElement:false,HTMLOListElement:false,HTMLOptGroupElement:false,HTMLOptionElement:false,HTMLOptionsCollection:false,HTMLOutputElement:false,HTMLParagraphElement:false,HTMLParamElement:false,HTMLPictureElement:false,HTMLPreElement:false,HTMLProgressElement:false,HTMLQuoteElement:false,HTMLScriptElement:false,HTMLSelectElement:false,HTMLShadowElement:false,HTMLSourceElement:false,HTMLSpanElement:false,HTMLStyleElement:false,HTMLTableCaptionElement:false,HTMLTableCellElement:false,HTMLTableColElement:false,HTMLTableElement:false,HTMLTableRowElement:false,HTMLTableSectionElement:false,HTMLTemplateElement:false,HTMLTextAreaElement:false,HTMLTitleElement:false,HTMLTrackElement:false,HTMLUListElement:false,HTMLUnknownElement:false,HTMLVideoElement:false,IDBCursor:false,IDBCursorWithValue:false,IDBDatabase:false,IDBEnvironment:false,IDBFactory:false,IDBIndex:false,IDBKeyRange:false,IDBObjectStore:false,IDBOpenDBRequest:false,IDBRequest:false,IDBTransaction:false,IDBVersionChangeEvent:false,Image:false,ImageBitmap:false,ImageData:false,indexedDB:false,innerHeight:false,innerWidth:false,InputEvent:false,InputMethodContext:false,IntersectionObserver:false,IntersectionObserverEntry:false,Intl:false,KeyboardEvent:false,KeyframeEffect:false,KeyframeEffectReadOnly:false,length:false,localStorage:false,location:false,Location:false,locationbar:false,matchMedia:false,MediaElementAudioSourceNode:false,MediaEncryptedEvent:false,MediaError:false,MediaKeyError:false,MediaKeyEvent:false,MediaKeyMessageEvent:false,MediaKeys:false,MediaKeySession:false,MediaKeyStatusMap:false,MediaKeySystemAccess:false,MediaList:false,MediaQueryList:false,MediaQueryListEvent:false,MediaSource:false,MediaRecorder:false,MediaStream:false,MediaStreamAudioDestinationNode:false,MediaStreamAudioSourceNode:false,MediaStreamEvent:false,MediaStreamTrack:false,menubar:false,MessageChannel:false,MessageEvent:false,MessagePort:false,MIDIAccess:false,MIDIConnectionEvent:false,MIDIInput:false,MIDIInputMap:false,MIDIMessageEvent:false,MIDIOutput:false,MIDIOutputMap:false,MIDIPort:false,MimeType:false,MimeTypeArray:false,MouseEvent:false,moveBy:false,moveTo:false,MutationEvent:false,MutationObserver:false,MutationRecord:false,name:false,NamedNodeMap:false,navigator:false,Navigator:false,Node:false,NodeFilter:false,NodeIterator:false,NodeList:false,Notification:false,OfflineAudioCompletionEvent:false,OfflineAudioContext:false,offscreenBuffering:false,onbeforeunload:true,onblur:true,onerror:true,onfocus:true,onload:true,onresize:true,onunload:true,open:false,openDatabase:false,opener:false,opera:false,Option:false,OscillatorNode:false,outerHeight:false,outerWidth:false,PageTransitionEvent:false,pageXOffset:false,pageYOffset:false,parent:false,PasswordCredential:false,Path2D:false,performance:false,Performance:false,PerformanceEntry:false,PerformanceMark:false,PerformanceMeasure:false,PerformanceNavigation:false,PerformanceResourceTiming:false,PerformanceTiming:false,PeriodicWave:false,Permissions:false,PermissionStatus:false,personalbar:false,Plugin:false,PluginArray:false,PopStateEvent:false,postMessage:false,print:false,ProcessingInstruction:false,ProgressEvent:false,PromiseRejectionEvent:false,prompt:false,PushManager:false,PushSubscription:false,RadioNodeList:false,Range:false,ReadableByteStream:false,ReadableStream:false,removeEventListener:false,Request:false,requestAnimationFrame:false,requestIdleCallback:false,resizeBy:false,resizeTo:false,Response:false,RTCIceCandidate:false,RTCSessionDescription:false,RTCPeerConnection:false,screen:false,Screen:false,screenLeft:false,ScreenOrientation:false,screenTop:false,screenX:false,screenY:false,ScriptProcessorNode:false,scroll:false,scrollbars:false,scrollBy:false,scrollTo:false,scrollX:false,scrollY:false,SecurityPolicyViolationEvent:false,Selection:false,self:false,ServiceWorker:false,ServiceWorkerContainer:false,ServiceWorkerRegistration:false,sessionStorage:false,setInterval:false,setTimeout:false,ShadowRoot:false,SharedKeyframeList:false,SharedWorker:false,showModalDialog:false,SiteBoundCredential:false,speechSynthesis:false,SpeechSynthesisEvent:false,SpeechSynthesisUtterance:false,status:false,statusbar:false,stop:false,Storage:false,StorageEvent:false,styleMedia:false,StyleSheet:false,StyleSheetList:false,SubtleCrypto:false,SVGAElement:false,SVGAltGlyphDefElement:false,SVGAltGlyphElement:false,SVGAltGlyphItemElement:false,SVGAngle:false,SVGAnimateColorElement:false,SVGAnimatedAngle:false,SVGAnimatedBoolean:false,SVGAnimatedEnumeration:false,SVGAnimatedInteger:false,SVGAnimatedLength:false,SVGAnimatedLengthList:false,SVGAnimatedNumber:false,SVGAnimatedNumberList:false,SVGAnimatedPathData:false,SVGAnimatedPoints:false,SVGAnimatedPreserveAspectRatio:false,SVGAnimatedRect:false,SVGAnimatedString:false,SVGAnimatedTransformList:false,SVGAnimateElement:false,SVGAnimateMotionElement:false,SVGAnimateTransformElement:false,SVGAnimationElement:false,SVGCircleElement:false,SVGClipPathElement:false,SVGColor:false,SVGColorProfileElement:false,SVGColorProfileRule:false,SVGComponentTransferFunctionElement:false,SVGCSSRule:false,SVGCursorElement:false,SVGDefsElement:false,SVGDescElement:false,SVGDiscardElement:false,SVGDocument:false,SVGElement:false,SVGElementInstance:false,SVGElementInstanceList:false,SVGEllipseElement:false,SVGEvent:false,SVGExternalResourcesRequired:false,SVGFEBlendElement:false,SVGFEColorMatrixElement:false,SVGFEComponentTransferElement:false,SVGFECompositeElement:false,SVGFEConvolveMatrixElement:false,SVGFEDiffuseLightingElement:false,SVGFEDisplacementMapElement:false,SVGFEDistantLightElement:false,SVGFEDropShadowElement:false,SVGFEFloodElement:false,SVGFEFuncAElement:false,SVGFEFuncBElement:false,SVGFEFuncGElement:false,SVGFEFuncRElement:false,SVGFEGaussianBlurElement:false,SVGFEImageElement:false,SVGFEMergeElement:false,SVGFEMergeNodeElement:false,SVGFEMorphologyElement:false,SVGFEOffsetElement:false,SVGFEPointLightElement:false,SVGFESpecularLightingElement:false,SVGFESpotLightElement:false,SVGFETileElement:false,SVGFETurbulenceElement:false,SVGFilterElement:false,SVGFilterPrimitiveStandardAttributes:false,SVGFitToViewBox:false,SVGFontElement:false,SVGFontFaceElement:false,SVGFontFaceFormatElement:false,SVGFontFaceNameElement:false,SVGFontFaceSrcElement:false,SVGFontFaceUriElement:false,SVGForeignObjectElement:false,SVGGElement:false,SVGGeometryElement:false,SVGGlyphElement:false,SVGGlyphRefElement:false,SVGGradientElement:false,SVGGraphicsElement:false,SVGHKernElement:false,SVGICCColor:false,SVGImageElement:false,SVGLangSpace:false,SVGLength:false,SVGLengthList:false,SVGLinearGradientElement:false,SVGLineElement:false,SVGLocatable:false,SVGMarkerElement:false,SVGMaskElement:false,SVGMatrix:false,SVGMetadataElement:false,SVGMissingGlyphElement:false,SVGMPathElement:false,SVGNumber:false,SVGNumberList:false,SVGPaint:false,SVGPathElement:false,SVGPathSeg:false,SVGPathSegArcAbs:false,SVGPathSegArcRel:false,SVGPathSegClosePath:false,SVGPathSegCurvetoCubicAbs:false,SVGPathSegCurvetoCubicRel:false,SVGPathSegCurvetoCubicSmoothAbs:false,SVGPathSegCurvetoCubicSmoothRel:false,SVGPathSegCurvetoQuadraticAbs:false,SVGPathSegCurvetoQuadraticRel:false,SVGPathSegCurvetoQuadraticSmoothAbs:false,SVGPathSegCurvetoQuadraticSmoothRel:false,SVGPathSegLinetoAbs:false,SVGPathSegLinetoHorizontalAbs:false,SVGPathSegLinetoHorizontalRel:false,SVGPathSegLinetoRel:false,SVGPathSegLinetoVerticalAbs:false,SVGPathSegLinetoVerticalRel:false,SVGPathSegList:false,SVGPathSegMovetoAbs:false,SVGPathSegMovetoRel:false,SVGPatternElement:false,SVGPoint:false,SVGPointList:false,SVGPolygonElement:false,SVGPolylineElement:false,SVGPreserveAspectRatio:false,SVGRadialGradientElement:false,SVGRect:false,SVGRectElement:false,SVGRenderingIntent:false,SVGScriptElement:false,SVGSetElement:false,SVGStopElement:false,SVGStringList:false,SVGStylable:false,SVGStyleElement:false,SVGSVGElement:false,SVGSwitchElement:false,SVGSymbolElement:false,SVGTests:false,SVGTextContentElement:false,SVGTextElement:false,SVGTextPathElement:false,SVGTextPositioningElement:false,SVGTitleElement:false,SVGTransform:false,SVGTransformable:false,SVGTransformList:false,SVGTRefElement:false,SVGTSpanElement:false,SVGUnitTypes:false,SVGURIReference:false,SVGUseElement:false,SVGViewElement:false,SVGViewSpec:false,SVGVKernElement:false,SVGZoomAndPan:false,SVGZoomEvent:false,Text:false,TextDecoder:false,TextEncoder:false,TextEvent:false,TextMetrics:false,TextTrack:false,TextTrackCue:false,TextTrackCueList:false,TextTrackList:false,TimeEvent:false,TimeRanges:false,toolbar:false,top:false,Touch:false,TouchEvent:false,TouchList:false,TrackEvent:false,TransitionEvent:false,TreeWalker:false,UIEvent:false,URL:false,URLSearchParams:false,ValidityState:false,VTTCue:false,WaveShaperNode:false,WebGLActiveInfo:false,WebGLBuffer:false,WebGLContextEvent:false,WebGLFramebuffer:false,WebGLProgram:false,WebGLRenderbuffer:false,WebGLRenderingContext:false,WebGLShader:false,WebGLShaderPrecisionFormat:false,WebGLTexture:false,WebGLUniformLocation:false,WebSocket:false,WheelEvent:false,window:false,Window:false,Worker:false,XDomainRequest:false,XMLDocument:false,XMLHttpRequest:false,XMLHttpRequestEventTarget:false,XMLHttpRequestProgressEvent:false,XMLHttpRequestUpload:false,XMLSerializer:false,XPathEvaluator:false,XPathException:false,XPathExpression:false,XPathNamespace:false,XPathNSResolver:false,XPathResult:false,XSLTProcessor:false},worker:{applicationCache:false,atob:false,Blob:false,BroadcastChannel:false,btoa:false,Cache:false,caches:false,clearInterval:false,clearTimeout:false,close:true,console:false,fetch:false,FileReaderSync:false,FormData:false,Headers:false,IDBCursor:false,IDBCursorWithValue:false,IDBDatabase:false,IDBFactory:false,IDBIndex:false,IDBKeyRange:false,IDBObjectStore:false,IDBOpenDBRequest:false,IDBRequest:false,IDBTransaction:false,IDBVersionChangeEvent:false,ImageData:false,importScripts:true,indexedDB:false,location:false,MessageChannel:false,MessagePort:false,name:false,navigator:false,Notification:false,onclose:true,onconnect:true,onerror:true,onlanguagechange:true,onmessage:true,onoffline:true,ononline:true,onrejectionhandled:true,onunhandledrejection:true,performance:false,Performance:false,PerformanceEntry:false,PerformanceMark:false,PerformanceMeasure:false,PerformanceNavigation:false,PerformanceResourceTiming:false,PerformanceTiming:false,postMessage:true,Promise:false,Request:false,Response:false,self:true,ServiceWorkerRegistration:false,setInterval:false,setTimeout:false,TextDecoder:false,TextEncoder:false,URL:false,URLSearchParams:false,WebSocket:false,Worker:false,XMLHttpRequest:false},node:{__dirname:false,__filename:false,arguments:false,Buffer:false,clearImmediate:false,clearInterval:false,clearTimeout:false,console:false,exports:true,GLOBAL:false,global:false,Intl:false,module:false,process:false,require:false,root:false,setImmediate:false,setInterval:false,setTimeout:false},commonjs:{exports:true,module:false,require:false,global:false},amd:{define:false,require:false},mocha:{after:false,afterEach:false,before:false,beforeEach:false,context:false,describe:false,it:false,mocha:false,run:false,setup:false,specify:false,suite:false,suiteSetup:false,suiteTeardown:false,teardown:false,test:false,xcontext:false,xdescribe:false,xit:false,xspecify:false},jasmine:{afterAll:false,afterEach:false,beforeAll:false,beforeEach:false,describe:false,expect:false,fail:false,fdescribe:false,fit:false,it:false,jasmine:false,pending:false,runs:false,spyOn:false,spyOnProperty:false,waits:false,waitsFor:false,xdescribe:false,xit:false},jest:{afterAll:false,afterEach:false,beforeAll:false,beforeEach:false,check:false,describe:false,expect:false,gen:false,it:false,fdescribe:false,fit:false,jest:false,pit:false,require:false,test:false,xdescribe:false,xit:false,xtest:false},qunit:{asyncTest:false,deepEqual:false,equal:false,expect:false,module:false,notDeepEqual:false,notEqual:false,notOk:false,notPropEqual:false,notStrictEqual:false,ok:false,propEqual:false,QUnit:false,raises:false,start:false,stop:false,strictEqual:false,test:false,throws:false},phantomjs:{console:true,exports:true,phantom:true,require:true,WebPage:true},couch:{emit:false,exports:false,getRow:false,log:false,module:false,provides:false,require:false,respond:false,send:false,start:false,sum:false},rhino:{defineClass:false,deserialize:false,gc:false,help:false,importClass:false,importPackage:false,java:false,load:false,loadClass:false,Packages:false,print:false,quit:false,readFile:false,readUrl:false,runCommand:false,seal:false,serialize:false,spawn:false,sync:false,toint32:false,version:false},nashorn:{__DIR__:false,__FILE__:false,__LINE__:false,com:false,edu:false,exit:false,Java:false,java:false,javafx:false,JavaImporter:false,javax:false,JSAdapter:false,load:false,loadWithNewGlobal:false,org:false,Packages:false,print:false,quit:false},wsh:{ActiveXObject:true,Enumerator:true,GetObject:true,ScriptEngine:true,ScriptEngineBuildVersion:true,ScriptEngineMajorVersion:true,ScriptEngineMinorVersion:true,VBArray:true,WScript:true,WSH:true,XDomainRequest:true},jquery:{$:false,jQuery:false},yui:{Y:false,YUI:false,YUI_config:false},shelljs:{cat:false,cd:false,chmod:false,config:false,cp:false,dirs:false,echo:false,env:false,error:false,exec:false,exit:false,find:false,grep:false,ls:false,ln:false,mkdir:false,mv:false,popd:false,pushd:false,pwd:false,rm:false,sed:false,set:false,target:false,tempdir:false,test:false,touch:false,which:false},prototypejs:{$:false,$$:false,$A:false,$break:false,$continue:false,$F:false,$H:false,$R:false,$w:false,Abstract:false,Ajax:false,Autocompleter:false,Builder:false,Class:false,Control:false,Draggable:false,Draggables:false,Droppables:false,Effect:false,Element:false,Enumerable:false,Event:false,Field:false,Form:false,Hash:false,Insertion:false,ObjectRange:false,PeriodicalExecuter:false,Position:false,Prototype:false,Scriptaculous:false,Selector:false,Sortable:false,SortableObserver:false,Sound:false,Template:false,Toggle:false,Try:false},meteor:{$:false,_:false,Accounts:false,AccountsClient:false,AccountsServer:false,AccountsCommon:false,App:false,Assets:false,Blaze:false,check:false,Cordova:false,DDP:false,DDPServer:false,DDPRateLimiter:false,Deps:false,EJSON:false,Email:false,HTTP:false,Log:false,Match:false,Meteor:false,Mongo:false,MongoInternals:false,Npm:false,Package:false,Plugin:false,process:false,Random:false,ReactiveDict:false,ReactiveVar:false,Router:false,ServiceConfiguration:false,Session:false,share:false,Spacebars:false,Template:false,Tinytest:false,Tracker:false,UI:false,Utils:false,WebApp:false,WebAppInternals:false},mongo:{_isWindows:false,_rand:false,BulkWriteResult:false,cat:false,cd:false,connect:false,db:false,getHostName:false,getMemInfo:false,hostname:false,ISODate:false,listFiles:false,load:false,ls:false,md5sumFile:false,mkdir:false,Mongo:false,NumberInt:false,NumberLong:false,ObjectId:false,PlanCache:false,print:false,printjson:false,pwd:false,quit:false,removeFile:false,rs:false,sh:false,UUID:false,version:false,WriteResult:false},applescript:{$:false,Application:false,Automation:false,console:false,delay:false,Library:false,ObjC:false,ObjectSpecifier:false,Path:false,Progress:false,Ref:false},serviceworker:{caches:false,Cache:false,CacheStorage:false,Client:false,clients:false,Clients:false,ExtendableEvent:false,ExtendableMessageEvent:false,FetchEvent:false,importScripts:false,registration:false,self:false,ServiceWorker:false,ServiceWorkerContainer:false,ServiceWorkerGlobalScope:false,ServiceWorkerMessageEvent:false,ServiceWorkerRegistration:false,skipWaiting:false,WindowClient:false},atomtest:{advanceClock:false,fakeClearInterval:false,fakeClearTimeout:false,fakeSetInterval:false,fakeSetTimeout:false,resetTimeouts:false,waitsForPromise:false},embertest:{andThen:false,click:false,currentPath:false,currentRouteName:false,currentURL:false,fillIn:false,find:false,findWithAssert:false,keyEvent:false,pauseTest:false,resumeTest:false,triggerEvent:false,visit:false},protractor:{$:false,$$:false,browser:false,By:false,by:false,DartObject:false,element:false,protractor:false},"shared-node-browser":{clearInterval:false,clearTimeout:false,console:false,setInterval:false,setTimeout:false},webextensions:{browser:false,chrome:false,opr:false},greasemonkey:{GM_addStyle:false,GM_deleteValue:false,GM_getResourceText:false,GM_getResourceURL:false,GM_getValue:false,GM_info:false,GM_listValues:false,GM_log:false,GM_openInTab:false,GM_registerMenuCommand:false,GM_setClipboard:false,GM_setValue:false,GM_xmlhttpRequest:false,unsafeWindow:false}}},1863:function(e,t,r){var n=r(389),i=r(4351),a=r(9146);function keys(e){return a(e)?n(e):i(e)}e.exports=keys},1903:function(e,t,r){var n=r(820);function listCacheHas(e){return n(this.__data__,e)>-1}e.exports=listCacheHas},1908:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.File=File;t.Program=Program;t.BlockStatement=BlockStatement;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;function File(e){if(e.program){this.print(e.program.interpreter,e)}this.print(e.program,e)}function Program(e){this.printInnerComments(e,false);this.printSequence(e.directives,e);if(e.directives&&e.directives.length)this.newline();this.printSequence(e.body,e)}function BlockStatement(e){var t;this.token("{");this.printInnerComments(e);const r=(t=e.directives)==null?void 0:t.length;if(e.body.length||r){this.newline();this.printSequence(e.directives,e,{indent:true});if(r)this.newline();this.printSequence(e.body,e,{indent:true});this.removeTrailingNewline();this.source("end",e.loc);if(!this.endsWith(10))this.newline();this.rightBrace()}else{this.source("end",e.loc);this.token("}")}}function Directive(e){this.print(e.value,e);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const n=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(t!=null){this.token(t);return}const{value:i}=e;if(!n.test(i)){this.token(`"${i}"`)}else if(!r.test(i)){this.token(`'${i}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}\n`)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},1912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isImmutable;var n=r(8893);var i=r(4897);function isImmutable(e){if((0,n.default)(e.type,"Immutable"))return true;if((0,i.isIdentifier)(e)){if(e.name==="undefined"){return true}else{return false}}return false}},1926:function(e){let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):e=>(t||(t=Promise.resolve())).then(e).catch(e=>setTimeout(()=>{throw e},0))},1933:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const n=r(4210);t.fs=n},1941:function(e,t,r){"use strict";const n=r(6918).browsers;function unpackRegion(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];t[n[r]]=Object.keys(i).reduce((e,t)=>{let r=i[t];if(t==="_"){r.split(" ").forEach(t=>e[t]=null)}else{e[t]=r}return e},{});return t},{})}e.exports=unpackRegion;e.exports.default=unpackRegion},1960:function(){},1961:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createIsolatedProgram=void 0;const o=s(r(4784));const c=a(r(3186));const u=r(9208);const l=(0,o.default)("typescript-eslint:typescript-estree:createIsolatedProgram");function createIsolatedProgram(e,t){l("Getting isolated program in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);const r={fileExists(){return true},getCanonicalFileName(){return t.filePath},getCurrentDirectory(){return""},getDirectories(){return[]},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(r){return c.createSourceFile(r,e,c.ScriptTarget.Latest,true,(0,u.getScriptKind)(t,r))},readFile(){return undefined},useCaseSensitiveFileNames(){return true},writeFile(){return null}};const n=c.createProgram([t.filePath],Object.assign({noResolve:true,target:c.ScriptTarget.Latest,jsx:t.jsx?c.JsxEmit.Preserve:undefined},(0,u.createDefaultCompilerOptionsFromExtra)(t)),r);const i=n.getSourceFile(t.filePath);if(!i){throw new Error("Expected an ast to be returned for the single-file isolated program.")}return{ast:i,program:n}}t.createIsolatedProgram=createIsolatedProgram},1971:function(e,t,r){var n=r(389),i=r(851),a=r(9146);function keysIn(e){return a(e)?n(e,true):i(e)}e.exports=keysIn},1978:function(e,t,r){var n=r(1812),i=r(1078),a=r(6604),s=r(9121),o=r(2073);function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t0){r=Math.min(10,Math.floor(r));c=" ".substr(0,r)}}else if(typeof r==="string"){c=r.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){let r=t[e];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(e)}else if(typeof r.toJSON==="function"){r=r.toJSON(e)}}if(o){r=o.call(t,e,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if(typeof r==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(e){const t={"'":.1,'"':.2};const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let i="";for(let a=0;at[e]=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);let t=a;a=a+c;let r=s||Object.keys(e);let n=[];for(const t of r){const r=serializeProperty(t,e);if(r!==undefined){let e=serializeKey(t)+":";if(c!==""){e+=" "}e+=r;n.push(e)}}let o;if(n.length===0){o="{}"}else{let e;if(c===""){e=n.join(",");o="{"+e+"}"}else{let r=",\n"+a;e=n.join(r);o="{\n"+a+e+",\n"+t+"}"}}i.pop();a=t;return o}function serializeKey(e){if(e.length===0){return quoteString(e,true)}const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t)){return quoteString(e,true)}for(let r=t.length;r=0){throw TypeError("Converting circular structure to JSON5")}i.push(e);let t=a;a=a+c;let r=[];for(let t=0;t=n){return false}a=e.charCodeAt(r);if(!(56320<=a&&a<=57343)){return false}i=decodeUtf16(i,a)}if(!s(i)){return false}s=t.isIdentifierPartES6}return true}function isIdentifierES5(e,t){return isIdentifierNameES5(e)&&!isReservedWordES5(e,t)}function isIdentifierES6(e,t){return isIdentifierNameES6(e)&&!isReservedWordES6(e,t)}e.exports={isKeywordES5:isKeywordES5,isKeywordES6:isKeywordES6,isReservedWordES5:isReservedWordES5,isReservedWordES6:isReservedWordES6,isRestrictedWord:isRestrictedWord,isIdentifierNameES5:isIdentifierNameES5,isIdentifierNameES6:isIdentifierNameES6,isIdentifierES5:isIdentifierES5,isIdentifierES6:isIdentifierES6}})()},2066:function(e,t,r){var n=r(9782),i=r(8931),a=r(4514);function initCloneObject(e){return typeof e.constructor=="function"&&!a(e)?n(i(e)):{}}e.exports=initCloneObject},2073:function(e,t,r){var n=r(9343);function mapCacheSet(e,t){var r=n(this,e),i=r.size;r.set(e,t);this.size+=r.size==i?0:1;return this}e.exports=mapCacheSet},2079:function(e){e.exports={0:"40",1:"41",2:"42",3:"43",4:"44",5:"45",6:"46",7:"47",8:"48",9:"49",A:"10",B:"11",C:"12",D:"15",E:"7",F:"8",G:"9",H:"93",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"79",Q:"92",R:"64",S:"80",T:"81",U:"83",V:"84",W:"85",X:"86",Y:"87",Z:"88",a:"89",b:"90",c:"91",d:"94",e:"5",f:"19",g:"20",h:"21",i:"22",j:"23",k:"24",l:"25",m:"26",n:"27",o:"28",p:"29",q:"30",r:"31",s:"32",t:"33",u:"34",v:"35",w:"36",x:"37",y:"38",z:"39",AB:"50",BB:"51",CB:"52",DB:"53",EB:"54",FB:"55",GB:"56",HB:"57",IB:"58",JB:"60",KB:"62",LB:"63",MB:"65",NB:"66",OB:"67",PB:"68",QB:"69",RB:"70",SB:"71",TB:"72",UB:"73",VB:"74",WB:"75",XB:"76",YB:"77",ZB:"78",aB:"11.1",bB:"12.1",cB:"3",dB:"59",eB:"61",fB:"3.2",gB:"10.1",hB:"11.5",iB:"4.2-4.3",jB:"5.5",kB:"2",lB:"82",mB:"3.5",nB:"3.6",oB:"95",pB:"96",qB:"97",rB:"3.1",sB:"5.1",tB:"6.1",uB:"7.1",vB:"9.1",wB:"13.1",xB:"14.1",yB:"TP",zB:"9.5-9.6","0B":"10.0-10.1","1B":"10.5","2B":"10.6","3B":"11.6","4B":"4.0-4.1","5B":"5.0-5.1","6B":"6.0-6.1","7B":"7.0-7.1","8B":"8.1-8.4","9B":"9.0-9.2",AC:"9.3",BC:"10.0-10.2",CC:"10.3",DC:"11.0-11.2",EC:"11.3-11.4",FC:"12.0-12.1",GC:"12.2-12.4",HC:"13.0-13.1",IC:"13.2",JC:"13.3",KC:"13.4-13.7",LC:"14.0-14.4",MC:"14.5-14.7",NC:"all",OC:"2.1",PC:"2.2",QC:"2.3",RC:"4.1",SC:"4.4",TC:"4.4.3-4.4.4",UC:"12.12",VC:"5.0-5.4",WC:"6.2-6.4",XC:"7.2-7.4",YC:"8.2",ZC:"9.2",aC:"11.1-11.2",bC:"12.0",cC:"13.0",dC:"14.0",eC:"10.4",fC:"7.12",gC:"2.5"}},2087:function(e){e.exports=require("os")},2099:function(e,t,r){"use strict";var n=r(6581);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("Noop",{visitor:[]});(0,i.default)("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}})},2102:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=a(r(5747));const o=a(r(2087));const c=r(5082);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${c.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},2107:function(e,t,r){r(1347);r(4358);e.exports=r(7617).f("iterator")},2113:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"OptionValidator",{enumerable:true,get:function(){return n.OptionValidator}});Object.defineProperty(t,"findSuggestion",{enumerable:true,get:function(){return i.findSuggestion}});var n=r(9598);var i=r(3417)},2117:function(e,t,r){var n=r(5622);var i=process.platform==="win32";var a=r(5747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(s){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,s={},o={};var l;var p;var d;var f;start();function start(){var t=u.exec(e);l=t[0].length;p=t[0];d=t[0];f="";if(i&&!o[d]){a.lstatSync(d);o[d]=true}}while(l=e.length){if(t)t[s]=e;return r(null,e)}c.lastIndex=p;var n=c.exec(e);m=d;d+=n[0];f=m+n[1];p=c.lastIndex;if(l[f]||t&&t[f]===f){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,f)){return gotResolvedLink(t[f])}return a.lstat(f,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[f]=true;if(t)t[f]=f;return process.nextTick(LOOP)}if(!i){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],f)}}a.stat(f,function(e){if(e)return r(e);a.readlink(f,function(e,t){if(!i)o[s]=t;gotTarget(e,t)})})}function gotTarget(e,i,a){if(e)return r(e);var s=n.resolve(m,i);if(t)t[a]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(p));start()}}},2178:function(e,t,r){(function(){"use strict";t.ast=r(1531);t.code=r(2613);t.keyword=r(2058)})()},2182:function(e,t,r){r(7163);r(4358);r(5589);r(3248);r(3303);e.exports=r(5496).WeakMap},2199:function(e){e.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},2208:function(e,t,r){var n=r(4051),i=r(4337);var a="[object Arguments]";function baseIsArguments(e){return i(e)&&n(e)==a}e.exports=baseIsArguments},2215:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isImportTypeNode=void 0;const n=r(3422);n.__exportStar(r(8215),t);const i=r(3186);function isImportTypeNode(e){return e.kind===i.SyntaxKind.ImportType}t.isImportTypeNode=isImportTypeNode},2217:function(e,t,r){const n=r(5369);const i=r(962);const a=(e,t,r)=>{let a=null;let s=null;let o=null;try{o=new i(t,r)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!a||s.compare(e)===1){a=e;s=new n(a,r)}}});return a};e.exports=a},2219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=_default;function _v(){const e=r(8987);_v=function(){return e};return e}var n=r(7242);function _default(e){if(_v().deserialize&&_v().serialize){return _v().deserialize(_v().serialize(e))}return(0,n.default)(e)}},2248:function(e,t,r){var n=r(3010),i=r(1159),a=r(2988),s=r(7473);var o=/[\\^$.*+?()[\]{}|]/g;var c=/^\[object .+?Constructor\]$/;var u=Function.prototype,l=Object.prototype;var p=u.toString;var d=l.hasOwnProperty;var f=RegExp("^"+p.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!a(e)||i(e)){return false}var t=n(e)?f:c;return t.test(s(e))}e.exports=baseIsNative},2254:function(e,t,r){var n=r(109);var i=r(6429);var a=r(350);e.exports=r(917)?Object.defineProperties:function defineProperties(e,t){i(e);var r=a(t);var s=r.length;var o=0;var c;while(s>o)n.f(e,c=r[o++],t[c]);return e}},2265:function(e,t,r){"use strict";const n=r(5622);const i=process.platform==="win32";const{REGEX_BACKSLASH:a,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(6199);t.isObject=(e=>e!==null&&typeof e==="object"&&!Array.isArray(e));t.hasRegexChars=(e=>o.test(e));t.isRegexChar=(e=>e.length===1&&t.hasRegexChars(e));t.escapeRegex=(e=>e.replace(c,"\\$1"));t.toPosixSlashes=(e=>e.replace(a,"/"));t.removeBackslashes=(e=>{return e.replace(s,e=>{return e==="\\"?"":e})});t.supportsLookbehinds=(()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false});t.isWindows=(e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return i===true||n.sep==="\\"});t.escapeLast=((e,r,n)=>{const i=e.lastIndexOf(r,n);if(i===-1)return e;if(e[i-1]==="\\")return t.escapeLast(e,r,i-1);return`${e.slice(0,i)}\\${e.slice(i)}`});t.removePrefix=((e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r});t.wrapOutput=((e,t={},r={})=>{const n=r.contains?"":"^";const i=r.contains?"":"$";let a=`${n}(?:${e})${i}`;if(t.negated===true){a=`(?:^(?!${a}).*$)`}return a})},2282:function(e){e.exports=require("module")},2297:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=_default;var n=r(477);var i=r(3936);var a=r(9978);const{NOT_LOCAL_BINDING:s,cloneNode:o,identifier:c,isAssignmentExpression:u,isFunction:l,isIdentifier:p,isLiteral:d,isNullLiteral:f,isObjectMethod:m,isObjectProperty:g,isRegExpLiteral:_,isTemplateLiteral:h,isVariableDeclarator:y,toBindingIdentifierName:v}=a;const T=(0,i.default)(`\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const S=(0,i.default)(`\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n`);const b={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;const r=e.scope.getBindingIdentifier(t.name);if(r!==t.outerDeclar)return;t.selfReference=true;e.stop()}};function getNameFromLiteralId(e){if(f(e)){return"null"}if(_(e)){return`_${e.pattern}_${e.flags}`}if(h(e)){return e.quasis.map(e=>e.value.raw).join("")}if(e.value!==undefined){return e.value+""}return""}function wrap(e,t,r,i){if(e.selfReference){if(i.hasBinding(r.name)&&!i.hasGlobal(r.name)){i.rename(r.name)}else{if(!l(t))return;let e=T;if(t.generator){e=S}const a=e({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:i.generateUidIdentifier(r.name)}).expression;const s=a.callee.body.body[0].params;for(let e=0,r=(0,n.default)(t);en(e,t,r)!==0;e.exports=i},2352:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isNode;var n=r(288);function isNode(e){return!!(e&&n.VISITOR_KEYS[e.type])}},2357:function(e){e.exports=require("assert")},2358:function(e,t,r){var n=r(749);var i=r(2392).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,i)}},2384:function(e){var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!s){return}var o=parseFloat(s[1]);var c=(s[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return o*a;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=i},2392:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},2396:function(e,t,r){var n=r(7824);var i=n["__core-js_shared__"];e.exports=i},2403:function(e,t,r){e.exports=r(891)},2406:function(e,t,r){"use strict";const n=r(9377);const i=r(4750);const a=r(4037).stdout;const s=r(9264);const o=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=a?a.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(o){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const p=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=p;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n=e.length){this._t=undefined;return i(1)}if(t=="keys")return i(0,r);if(t=="values")return i(0,e[r]);return i(0,[r,e[r]])},"values");a.Arguments=a.Array;n("keys");n("values");n("entries")},2430:function(e){var t=Object.prototype;var r=t.hasOwnProperty;function initCloneArray(e){var t=e.length,n=new e.constructor(t);if(t&&typeof e[0]=="string"&&r.call(e,"index")){n.index=e.index;n.input=e.input}return n}e.exports=initCloneArray},2431:function(e){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g}},2435:function(e,t,r){"use strict";const n=r(2730);const i=r(9225);const a=(e,t={})=>{let r=(e,a={})=>{let s=i.isInvalidBrace(a);let o=e.invalid===true&&t.escapeInvalid===true;let c=s===true||o===true;let u=t.escapeInvalid===true?"\\":"";let l="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){return u+e.value}if(e.type==="open"){return c?u+e.value:"("}if(e.type==="close"){return c?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":c?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=i.reduce(e.nodes);let a=n(...r,{...t,wrap:false,toRegex:true});if(a.length!==0){return r.length>1&&a.length>1?`(${a})`:a}}if(e.nodes){for(let t of e.nodes){l+=r(t,e)}}return l};return r(e)};e.exports=a},2439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ForAwaitStatement=t.NumericLiteralTypeAnnotation=t.ExistentialTypeParam=t.SpreadProperty=t.RestProperty=t.Flow=t.Pure=t.Generated=t.User=t.Var=t.BlockScoped=t.Referenced=t.Scope=t.Expression=t.Statement=t.BindingIdentifier=t.ReferencedMemberExpression=t.ReferencedIdentifier=void 0;var n=r(9978);const{isBinding:i,isBlockScoped:a,isExportDeclaration:s,isExpression:o,isFlow:c,isForStatement:u,isForXStatement:l,isIdentifier:p,isImportDeclaration:d,isImportSpecifier:f,isJSXIdentifier:m,isJSXMemberExpression:g,isMemberExpression:_,isReferenced:h,isScope:y,isStatement:v,isVar:T,isVariableDeclaration:S,react:b}=n;const{isCompatTag:E}=b;const x={types:["Identifier","JSXIdentifier"],checkPath(e,t){const{node:r,parent:n}=e;if(!p(r,t)&&!g(n,t)){if(m(r,t)){if(E(r.name))return false}else{return false}}return h(r,n,e.parentPath.parent)}};t.ReferencedIdentifier=x;const D={types:["MemberExpression"],checkPath({node:e,parent:t}){return _(e)&&h(e,t)}};t.ReferencedMemberExpression=D;const C={types:["Identifier"],checkPath(e){const{node:t,parent:r}=e;const n=e.parentPath.parent;return p(t)&&i(t,r,n)}};t.BindingIdentifier=C;const A={types:["Statement"],checkPath({node:e,parent:t}){if(v(e)){if(S(e)){if(l(t,{left:e}))return false;if(u(t,{init:e}))return false}return true}else{return false}}};t.Statement=A;const k={types:["Expression"],checkPath(e){if(e.isIdentifier()){return e.isReferencedIdentifier()}else{return o(e.node)}}};t.Expression=k;const P={types:["Scopable","Pattern"],checkPath(e){return y(e.node,e.parent)}};t.Scope=P;const N={checkPath(e){return h(e.node,e.parent)}};t.Referenced=N;const O={checkPath(e){return a(e.node)}};t.BlockScoped=O;const F={types:["VariableDeclaration"],checkPath(e){return T(e.node)}};t.Var=F;const w={checkPath(e){return e.node&&!!e.node.loc}};t.User=w;const I={checkPath(e){return!e.isUser()}};t.Generated=I;const L={checkPath(e,t){return e.scope.isPure(e.node,t)}};t.Pure=L;const M={types:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],checkPath({node:e}){if(c(e)){return true}else if(d(e)){return e.importKind==="type"||e.importKind==="typeof"}else if(s(e)){return e.exportKind==="type"}else if(f(e)){return e.importKind==="type"||e.importKind==="typeof"}else{return false}}};t.Flow=M;const R={types:["RestElement"],checkPath(e){return e.parentPath&&e.parentPath.isObjectPattern()}};t.RestProperty=R;const B={types:["RestElement"],checkPath(e){return e.parentPath&&e.parentPath.isObjectExpression()}};t.SpreadProperty=B;const j={types:["ExistsTypeAnnotation"]};t.ExistentialTypeParam=j;const J={types:["NumberLiteralTypeAnnotation"]};t.NumericLiteralTypeAnnotation=J;const U={types:["ForOfStatement"],checkPath({node:e}){return e.await===true}};t.ForAwaitStatement=U},2444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const n=r(1453);t.array=n;const i=r(3115);t.errno=i;const a=r(7043);t.fs=a;const s=r(5418);t.path=s;const o=r(5724);t.pattern=o;const c=r(7042);t.stream=c;const u=r(884);t.string=u},2454:function(e,t,r){var n=r(6277);var i=r(9338);var a=r(969).ArraySet;var s=r(9451).MappingList;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new a;this._names=new a;this._mappings=new s;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){r.setSourceContent(t,n)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var a=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,a)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(a!=null){a=String(a);if(!this._names.has(a)){this._names.add(a)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:a})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var s=this._sourceRoot;if(s!=null){n=i.relative(s,n)}var o=new a;var c=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(a.source!=null){t.source=a.source;if(r!=null){t.source=i.join(r,t.source)}if(s!=null){t.source=i.relative(s,t.source)}t.originalLine=a.line;t.originalColumn=a.column;if(a.name!=null){t.name=a.name}}}var u=t.source;if(u!=null&&!o.has(u)){o.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=o;this._names=c;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(s!=null){t=i.relative(s,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var a=0;var s=0;var o=0;var c="";var u;var l;var p;var d;var f=this._mappings.toArray();for(var m=0,g=f.length;m0){if(!i.compareByGeneratedPositionsInflated(l,f[m-1])){continue}u+=","}}u+=n.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){d=this._sources.indexOf(l.source);u+=n.encode(d-o);o=d;u+=n.encode(l.originalLine-1-a);a=l.originalLine-1;u+=n.encode(l.originalColumn-r);r=l.originalColumn;if(l.name!=null){p=this._names.indexOf(l.name);u+=n.encode(p-s);s=p}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},2462:function(e,t,r){const n=r(5852);const i=r(8333);const{getStringValue:a,getUpdatePoint:s,hasStringOrTemplateArgument:o,getLineNumber:c,getEndLineNumber:u,getCode:l}=r(3094);e.exports=((e,t="",r="")=>{const p=[];let d=[];function addSuite(e){d=d.filter(t=>t.end>e.start);d.push(e)}n.default(e,{enter(e){if(e.isIdentifier({name:"describe"})){if(!o(e.parent))return;addSuite(e.parent)}if(e.isIdentifier({name:"only"})){const r=e.parent.object.name||e.parent.object.callee.object.name;if(["describe","it","context","test"].includes(r)){const r=c(e);throw new i("Exclusive tests detected. `.only` call found in "+`${t}:${r}\n`+"Remove `.only` to restore test checks")}}if(e.isIdentifier({name:"skip"})){if(!e.parent||!e.parent.object){return}const n=e.parent.object.name||e.parent.object.callee.object.name;if(n==="test"||n==="it"){if(!o(e.parentPath.container))return;const n=a(e.parentPath.container);p.push({name:n,suites:d.map(e=>a(e)),line:c(e),code:l(r,c(e),u(e)),file:t,skipped:true})}if(n==="describe"){if(!o(e.parentPath.container))return;const t=e.parentPath.container;t.skipped=true;addSuite(t)}}if(e.isIdentifier({name:"todo"})){if(e.parent.object.name==="test"){if(!o(e.parentPath.container))return;const n=a(e.parentPath.container);p.push({name:n,suites:d.map(e=>a(e)),line:c(e),code:l(r,c(e),u(e)),file:t,skipped:true})}}if(e.isIdentifier({name:"test"})||e.isIdentifier({name:"it"})){if(!o(e.parent))return;const n=a(e.parent);p.push({name:n,suites:d.map(e=>a(e)),updatePoint:s(e.parent),line:c(e),code:l(r,c(e),u(e)),file:t,skipped:!!d.filter(e=>e.skipped).length})}if(e.isIdentifier({name:"each"})){const n=e.parentPath.parentPath;if(!o(n.parent))return;const i=a(n.parent);p.push({name:i,suites:d.map(e=>a(e)),updatePoint:s(e.parent),line:c(n),code:l(r,c(n),u(n)),file:t,skipped:!!d.filter(e=>e.skipped).length})}}});return p})},2486:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=ensureBlock;var n=r(5606);function ensureBlock(e,t="body"){return e[t]=(0,n.default)(e[t],e)}},2495:function(e,t,r){const n=r(5706);const i=(e,t,r)=>n(e,t,r)<=0;e.exports=i},2510:function(e){e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then(function(e){r=e;return i(r,t)}).then(function(){return r})}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch(function(e){return i(e,t)})}}e.registry[r].push({hook:n,orig:i})}},2520:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigItem=createConfigItem;Object.defineProperty(t,"default",{enumerable:true,get:function(){return n.default}});t.createConfigItemAsync=t.createConfigItemSync=t.loadOptionsAsync=t.loadOptionsSync=t.loadOptions=t.loadPartialConfigAsync=t.loadPartialConfigSync=t.loadPartialConfig=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}var n=r(1072);var i=r(9016);var a=r(131);const s=_gensync()(function*(e){var t;const r=yield*(0,n.default)(e);return(t=r==null?void 0:r.options)!=null?t:null});const o=_gensync()(a.createConfigItem);const c=e=>(t,r)=>{if(r===undefined&&typeof t==="function"){r=t;t=undefined}return r?e.errback(t,r):e.sync(t)};const u=c(i.loadPartialConfig);t.loadPartialConfig=u;const l=i.loadPartialConfig.sync;t.loadPartialConfigSync=l;const p=i.loadPartialConfig.async;t.loadPartialConfigAsync=p;const d=c(s);t.loadOptions=d;const f=s.sync;t.loadOptionsSync=f;const m=s.async;t.loadOptionsAsync=m;const g=o.sync;t.createConfigItemSync=g;const _=o.async;t.createConfigItemAsync=_;function createConfigItem(e,t,r){if(r!==undefined){return o.errback(e,t,r)}else if(typeof t==="function"){return o.errback(e,undefined,r)}else{return o.sync(e,t)}}},2530:function(e,t,r){"use strict";var n=r(4213);var i=r(6967);var a={TRANSITIONAL:0,NONTRANSITIONAL:1};function normalize(e){return e.split("\0").map(function(e){return e.normalize("NFC")}).join("\0")}function findStatus(e){var t=0;var r=i.length-1;while(t<=r){var n=Math.floor((t+r)/2);var a=i[n];if(a[0][0]<=e&&a[0][1]>=e){return a}else if(a[0][0]>e){r=n-1}else{t=n+1}}return null}var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function countSymbols(e){return e.replace(s,"_").length}function mapChars(e,t,r){var n=false;var i="";var s=countSymbols(e);for(var o=0;o253||o.length===0){a.error=true}for(var c=0;c63||s.length===0){a.error=true;break}}}if(a.error)return null;return s.join(".")};e.exports.toUnicode=function(e,t){var r=processing(e,t,a.NONTRANSITIONAL);return{domain:r.string,error:r.error}};e.exports.PROCESSING_OPTIONS=a},2546:function(e,t,r){e=r.nmd(e);var n=r(7824),i=r(9010);var a=true&&t&&!t.nodeType&&t;var s=a&&"object"=="object"&&e&&!e.nodeType&&e;var o=s&&s.exports===a;var c=o?n.Buffer:undefined;var u=c?c.isBuffer:undefined;var l=u||i;e.exports=l},2585:function(e){"use strict";const t=Symbol.for("gensync:v1:start");const r=Symbol.for("gensync:v1:suspend");const n="GENSYNC_EXPECTED_START";const i="GENSYNC_EXPECTED_SUSPEND";const a="GENSYNC_OPTIONS_ERROR";const s="GENSYNC_RACE_NONEMPTY";const o="GENSYNC_ERRBACK_NO_CALLBACK";e.exports=Object.assign(function gensync(e){let t=e;if(typeof e!=="function"){t=newGenerator(e)}else{t=wrapGenerator(e)}return Object.assign(t,makeFunctionAPI(t))},{all:buildOperation({name:"all",arity:1,sync:function(e){const t=Array.from(e[0]);return t.map(e=>evaluateSync(e))},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){Promise.resolve().then(()=>t([]));return}let i=0;const a=n.map(()=>undefined);n.forEach((e,n)=>{evaluateAsync(e,e=>{a[n]=e;i+=1;if(i===a.length)t(a)},r)})}}),race:buildOperation({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(t.length===0){throw makeError("Must race at least 1 item",s)}return evaluateSync(t[0])},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){throw makeError("Must race at least 1 item",s)}for(const e of n){evaluateAsync(e,t,r)}}})});function makeFunctionAPI(e){const t={sync:function(...t){return evaluateSync(e.apply(this,t))},async:function(...t){return new Promise((r,n)=>{evaluateAsync(e.apply(this,t),r,n)})},errback:function(...t){const r=t.pop();if(typeof r!=="function"){throw makeError("Asynchronous function called without callback",o)}let n;try{n=e.apply(this,t)}catch(e){r(e);return}evaluateAsync(n,e=>r(undefined,e),e=>r(e))}};return t}function assertTypeof(e,t,r,n){if(typeof r===e||n&&typeof r==="undefined"){return}let i;if(n){i=`Expected opts.${t} to be either a ${e}, or undefined.`}else{i=`Expected opts.${t} to be a ${e}.`}throw makeError(i,a)}function makeError(e,t){return Object.assign(new Error(e),{code:t})}function newGenerator({name:e,arity:t,sync:r,async:n,errback:i}){assertTypeof("string","name",e,true);assertTypeof("number","arity",t,true);assertTypeof("function","sync",r);assertTypeof("function","async",n,true);assertTypeof("function","errback",i,true);if(n&&i){throw makeError("Expected one of either opts.async or opts.errback, but got _both_.",a)}if(typeof e!=="string"){let t;if(i&&i.name&&i.name!=="errback"){t=i.name}if(n&&n.name&&n.name!=="async"){t=n.name.replace(/Async$/,"")}if(r&&r.name&&r.name!=="sync"){t=r.name.replace(/Sync$/,"")}if(typeof t==="string"){e=t}}if(typeof t!=="number"){t=r.length}return buildOperation({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,a){if(n){n.apply(this,e).then(t,a)}else if(i){i.call(this,...e,(e,r)=>{if(e==null)t(r);else a(e)})}else{t(r.apply(this,e))}}})}function wrapGenerator(e){return setFunctionMetadata(e.name,e.length,function(...t){return e.apply(this,t)})}function buildOperation({name:e,arity:n,sync:i,async:a}){return setFunctionMetadata(e,n,function*(...e){const n=yield t;if(!n){const t=i.call(this,e);return t}let s;try{a.call(this,e,e=>{if(s)return;s={value:e};n()},e=>{if(s)return;s={err:e};n()})}catch(e){s={err:e};n()}yield r;if(s.hasOwnProperty("err")){throw s.err}return s.value})}function evaluateSync(e){let t;while(!({value:t}=e.next()).done){assertStart(t,e)}return t}function evaluateAsync(e,t,r){(function step(){try{let n;while(!({value:n}=e.next()).done){assertStart(n,e);let t=true;let r=false;const i=e.next(()=>{if(t){r=true}else{step()}});t=false;assertSuspend(i,e);if(!r){return}}return t(n)}catch(e){return r(e)}})()}function assertStart(e,r){if(e===t)return;throwError(r,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,n))}function assertSuspend({value:e,done:t},n){if(!t&&e===r)return;throwError(n,makeError(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,i))}function throwError(e,t){if(e.throw)e.throw(t);throw t}function isIterable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!e[Symbol.iterator]}function setFunctionMetadata(e,t,r){if(typeof e==="string"){const t=Object.getOwnPropertyDescriptor(r,"name");if(!t||t.configurable){Object.defineProperty(r,"name",Object.assign(t||{},{configurable:true,value:e}))}}if(typeof t==="number"){const e=Object.getOwnPropertyDescriptor(r,"length");if(!e||e.configurable){Object.defineProperty(r,"length",Object.assign(e||{},{configurable:true,value:t}))}}return r}},2593:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const n=t.fs.statSync(e);if(t.markSymbolicLink){n.isSymbolicLink=(()=>true)}return n}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},2601:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=parseAndBuildMetadata;var n=r(9978);var i=r(2603);var a=r(8801);const{isCallExpression:s,isExpressionStatement:o,isFunction:c,isIdentifier:u,isJSXIdentifier:l,isNewExpression:p,isPlaceholder:d,isStatement:f,isStringLiteral:m,removePropertiesDeep:g,traverse:_}=n;const h=/^[_$A-Z0-9]+$/;function parseAndBuildMetadata(e,t,r){const{placeholderWhitelist:n,placeholderPattern:i,preserveComments:a,syntacticPlaceholders:s}=r;const o=parseWithCodeFrame(t,r.parser,s);g(o,{preserveComments:a});e.validate(o);const c={placeholders:[],placeholderNames:new Set};const u={placeholders:[],placeholderNames:new Set};const l={value:undefined};_(o,placeholderVisitorHandler,{syntactic:c,legacy:u,isLegacyRef:l,placeholderWhitelist:n,placeholderPattern:i,syntacticPlaceholders:s});return Object.assign({ast:o},l.value?u:c)}function placeholderVisitorHandler(e,t,r){var n;let i;if(d(e)){if(r.syntacticPlaceholders===false){throw new Error("%%foo%%-style placeholders can't be used when "+"'.syntacticPlaceholders' is false.")}else{i=e.name.name;r.isLegacyRef.value=false}}else if(r.isLegacyRef.value===false||r.syntacticPlaceholders){return}else if(u(e)||l(e)){i=e.name;r.isLegacyRef.value=true}else if(m(e)){i=e.value;r.isLegacyRef.value=true}else{return}if(!r.isLegacyRef.value&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}if(r.isLegacyRef.value&&(r.placeholderPattern===false||!(r.placeholderPattern||h).test(i))&&!((n=r.placeholderWhitelist)!=null&&n.has(i))){return}t=t.slice();const{node:a,key:g}=t[t.length-1];let _;if(m(e)||d(e,{expectedNode:"StringLiteral"})){_="string"}else if(p(a)&&g==="arguments"||s(a)&&g==="arguments"||c(a)&&g==="params"){_="param"}else if(o(a)&&!d(e)){_="statement";t=t.slice(0,-1)}else if(f(e)&&d(e)){_="statement"}else{_="other"}const{placeholders:y,placeholderNames:v}=r.isLegacyRef.value?r.legacy:r.syntactic;y.push({name:i,type:_,resolve:e=>resolveAncestors(e,t),isDuplicate:v.has(i)});v.add(i)}function resolveAncestors(e,t){let r=e;for(let e=0;e0){n=t[--i]}if(n===null||n.start>r.start){setInnerComments(e,r.comments)}else{setTrailingComments(n,r.comments)}}class CommentsParser extends BaseParser{addComment(e){if(this.filename)e.loc.filename=this.filename;this.state.comments.push(e)}processComment(e){const{commentStack:t}=this.state;const r=t.length;if(r===0)return;let n=r-1;const i=t[n];if(i.start===e.end){i.leadingNode=e;n--}const{start:a}=e;for(;n>=0;n--){const r=t[n];const i=r.end;if(i>a){r.containingNode=e;this.finalizeComment(r);t.splice(n,1)}else{if(i===a){r.trailingNode=e}break}}}finalizeComment(e){const{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null){setTrailingComments(e.leadingNode,t)}if(e.trailingNode!==null){e.trailingNode.leadingComments=t}}else{const{containingNode:r,start:n}=e;if(this.input.charCodeAt(n-1)===44){switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(r,r.specifiers,e);break;default:{setInnerComments(r,t)}}}else{setInnerComments(r,t)}}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--){this.finalizeComment(e[t])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;const n=t[r-1];if(n.leadingNode===e){n.leadingNode=null}}}const o=Object.freeze({SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"});const c=makeErrorTemplates({AccessorIsGenerator:"A %0ter 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.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accesor must not have any formal parameters.",BadSetterArity:"A 'set' accesor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accesor 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:"'%0' require an initialization value.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",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:"`%0` 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:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '%0' as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:"'%0' loop variable declaration may not have an initializer.",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:"Unsyntactic %0.",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:"`import()` requires exactly %0.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidDecimal:"Invalid decimal.",InvalidDigit:"Expected number in radix %0.",InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:"Escape sequence in keyword %0.",InvalidIdentifier:"Invalid identifier %0.",InvalidLhs:"Invalid left-hand side in %0.",InvalidLhsBinding:"Binding invalid left-hand side in %0.",InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:"Unexpected character '%0'.",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:"Private name #%0 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:"Label '%0' is already declared.",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",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.",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:'Duplicate key "%0" is not allowed in module attributes.',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'.",ModuleExportUndefined:"Export '%0' 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.",PipeBodyIsTighter:"Unexpected %0 after pipeline body; any %0 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:'Invalid topic token %0. In order to use %0 as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "%0" }.',PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:"Hack-style pipe body cannot be an unparenthesized %0 expression; 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.',PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`).",PrivateNameRedeclaration:"Duplicate private name #%0.",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, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:"Assigning to '%0' in strict mode.",StrictEvalArgumentsBinding:"Binding '%0' 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.",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:"Unexpected keyword '%0'.",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:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'.",UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:"Unexpected token '%0'.",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",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:"The only valid meta property for %0 is %0.%1.",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.",VarRedeclaration:"Identifier '%0' has already been declared.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},o.SyntaxError);const u=makeErrorTemplates({ImportMetaOutsideModule:`import.meta may appear only with 'sourceType: "module"'`,ImportOutsideModule:`'import' and 'export' may appear only with 'sourceType: "module"'`},o.SourceTypeModuleError);function keepReasonCodeCompat(e,t){{if(t==="flow"&&e==="PatternIsOptional"){return"OptionalBindingPattern"}}return e}function makeErrorTemplates(e,t,r){const n={};Object.keys(e).forEach(i=>{n[i]=Object.freeze({code:t,reasonCode:keepReasonCodeCompat(i,r),template:e[i]})});return Object.freeze(n)}class ParserError extends CommentsParser{getLocationForPosition(e){let t;if(e===this.state.start)t=this.state.startLoc;else if(e===this.state.lastTokStart)t=this.state.lastTokStartLoc;else if(e===this.state.end)t=this.state.endLoc;else if(e===this.state.lastTokEnd)t=this.state.lastTokEndLoc;else t=getLineInfo(this.input,e);return t}raise(e,{code:t,reasonCode:r,template:n},...i){return this.raiseWithData(e,{code:t,reasonCode:r},n,...i)}raiseOverwrite(e,{code:t,template:r},...n){const i=this.getLocationForPosition(e);const a=r.replace(/%(\d+)/g,(e,t)=>n[t])+` (${i.line}:${i.column})`;if(this.options.errorRecovery){const t=this.state.errors;for(let r=t.length-1;r>=0;r--){const n=t[r];if(n.pos===e){return Object.assign(n,{message:a})}else if(n.posn[t])+` (${i.line}:${i.column})`;return this._raise(Object.assign({loc:i,pos:e},t),a)}_raise(e,t){const r=new SyntaxError(t);Object.assign(r,e);if(this.options.errorRecovery){if(!this.isLookahead)this.state.errors.push(r);return r}else{throw r}}}var l=e=>(class extends e{parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);n.regex={pattern:e,flags:t};return n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);r.bigint=String(r.value||e);return r}parseDecimalLiteral(e){const t=null;const r=this.estreeParseLiteral(t);r.decimal=String(r.value||e);return r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;const r=this.startNodeAt(e.start,e.loc.start);const n=this.startNodeAt(t.start,t.loc.start);n.value=t.extra.expressionValue;n.raw=t.extra.raw;r.expression=this.finishNodeAt(n,"Literal",t.end,t.loc.end);r.directive=t.extra.raw.slice(1,-1);return this.finishNodeAt(r,"ExpressionStatement",e.end,e.loc.end)}initFunction(e,t){super.initFunction(e,t);e.expression=false}checkDeclaration(e){if(e!=null&&this.isObjectProperty(e)){this.checkDeclaration(e.value)}else{super.checkDeclaration(e)}}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}stmtToDirective(e){const t=e.expression.value;const r=super.stmtToDirective(e);this.addExtra(r.value,"expressionValue",t);return r}parseBlockBody(e,...t){super.parseBlockBody(e,...t);const r=e.directives.map(e=>this.directiveToStmt(e));e.body=r.concat(e.body);delete e.directives}pushClassMethod(e,t,r,n,i,a){this.parseMethod(t,r,n,i,a,"ClassMethod",true);if(t.typeParameters){t.value.typeParameters=t.typeParameters;delete t.typeParameters}e.body.push(t)}parsePrivateName(){const e=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures")){return e}return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);e=e;delete e.id;e.name=t;e.type="PrivateIdentifier";return e}isPrivateName(e){if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(e)}return e.type==="PrivateIdentifier"}getPrivateNameSV(e){if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(e)}return e.name}parseLiteral(e,t){const r=super.parseLiteral(e,t);r.raw=r.extra.raw;delete r.extra;return r}parseFunctionBody(e,t,r=false){super.parseFunctionBody(e,t,r);e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,r,n,i,a,s=false){let o=this.startNode();o.kind=e.kind;o=super.parseMethod(o,t,r,n,i,a,s);o.type="FunctionExpression";delete o.kind;e.value=o;if(a==="ClassPrivateMethod"){e.computed=false}a="MethodDefinition";return this.finishNode(e,a)}parseClassProperty(...e){const t=super.parseClassProperty(...e);if(this.getPluginOption("estree","classFeatures")){t.type="PropertyDefinition"}return t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);if(this.getPluginOption("estree","classFeatures")){t.type="PropertyDefinition";t.computed=false}return t}parseObjectMethod(e,t,r,n,i){const a=super.parseObjectMethod(e,t,r,n,i);if(a){a.type="Property";if(a.kind==="method")a.kind="init";a.shorthand=false}return a}parseObjectProperty(e,t,r,n,i){const a=super.parseObjectProperty(e,t,r,n,i);if(a){a.kind="init";a.type="Property"}return a}isAssignable(e,t){if(e!=null&&this.isObjectProperty(e)){return this.isAssignable(e.value,t)}return super.isAssignable(e,t)}toAssignable(e,t=false){if(e!=null&&this.isObjectProperty(e)){this.toAssignable(e.value,t);return e}return super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,...t){if(e.kind==="get"||e.kind==="set"){this.raise(e.key.start,c.PatternHasAccessor)}else if(e.method){this.raise(e.key.start,c.PatternHasMethod)}else{super.toAssignableObjectExpressionProp(e,...t)}}finishCallExpression(e,t){super.finishCallExpression(e,t);if(e.callee.type==="Import"){e.type="ImportExpression";e.source=e.arguments[0];if(this.hasPlugin("importAssertions")){var r;e.attributes=(r=e.arguments[1])!=null?r:null}delete e.arguments;delete e.callee}return e}toReferencedArguments(e){if(e.type==="ImportExpression"){return}super.toReferencedArguments(e)}parseExport(e){super.parseExport(e);switch(e.type){case"ExportAllDeclaration":e.exported=null;break;case"ExportNamedDeclaration":if(e.specifiers.length===1&&e.specifiers[0].type==="ExportNamespaceSpecifier"){e.type="ExportAllDeclaration";e.exported=e.specifiers[0].exported;delete e.specifiers}break}return e}parseSubscript(e,t,r,n,i){const a=super.parseSubscript(e,t,r,n,i);if(i.optionalChainMember){if(a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression"){a.type=a.type.substring(8)}if(i.stop){const e=this.startNodeAtNode(a);e.expression=a;return this.finishNode(e,"ChainExpression")}}else if(a.type==="MemberExpression"||a.type==="CallExpression"){a.optional=false}return a}hasPropertyAsPrivateName(e){if(e.type==="ChainExpression"){e=e.expression}return super.hasPropertyAsPrivateName(e)}isOptionalChain(e){return e.type==="ChainExpression"}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.method||e.kind==="get"||e.kind==="set"}});class TokContext{constructor(e,t){this.token=void 0;this.preserveSpace=void 0;this.token=e;this.preserveSpace=!!t}}const p={brace:new TokContext("{"),template:new TokContext("`",true)};const d=true;const f=true;const m=true;const g=true;const _=true;const h=true;class ExportedTokenType{constructor(e,t={}){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=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.rightAssociative=!!t.rightAssociative;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop!=null?t.binop:null;{this.updateContext=null}}}const y=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);y.set(e,r);return r}function createBinop(e,t){return createToken(e,{beforeExpr:d,binop:t})}let v=-1;const T=[];const S=[];const b=[];const E=[];const x=[];const D=[];function createToken(e,t={}){var r,n,i,a;++v;S.push(e);b.push((r=t.binop)!=null?r:-1);E.push((n=t.beforeExpr)!=null?n:false);x.push((i=t.startsExpr)!=null?i:false);D.push((a=t.prefix)!=null?a:false);T.push(new ExportedTokenType(e,t));return v}const C={num:createToken("num",{startsExpr:f}),bigint:createToken("bigint",{startsExpr:f}),decimal:createToken("decimal",{startsExpr:f}),regexp:createToken("regexp",{startsExpr:f}),string:createToken("string",{startsExpr:f}),name:createToken("name",{startsExpr:f}),privateName:createToken("#name",{startsExpr:f}),eof:createToken("eof"),bracketL:createToken("[",{beforeExpr:d,startsExpr:f}),bracketHashL:createToken("#[",{beforeExpr:d,startsExpr:f}),bracketBarL:createToken("[|",{beforeExpr:d,startsExpr:f}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:d,startsExpr:f}),braceBarL:createToken("{|",{beforeExpr:d,startsExpr:f}),braceHashL:createToken("#{",{beforeExpr:d,startsExpr:f}),braceR:createToken("}",{beforeExpr:d}),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:d,startsExpr:f}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:d}),semi:createToken(";",{beforeExpr:d}),colon:createToken(":",{beforeExpr:d}),doubleColon:createToken("::",{beforeExpr:d}),dot:createToken("."),question:createToken("?",{beforeExpr:d}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:d}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:d}),backQuote:createToken("`",{startsExpr:f}),dollarBraceL:createToken("${",{beforeExpr:d,startsExpr:f}),at:createToken("@"),hash:createToken("#",{startsExpr:f}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:d,isAssign:g}),assign:createToken("_=",{beforeExpr:d,isAssign:g}),slashAssign:createToken("_=",{beforeExpr:d,isAssign:g}),moduloAssign:createToken("_=",{beforeExpr:d,isAssign:g}),incDec:createToken("++/--",{prefix:_,postfix:h,startsExpr:f}),bang:createToken("!",{beforeExpr:d,prefix:_,startsExpr:f}),tilde:createToken("~",{beforeExpr:d,prefix:_,startsExpr:f}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),relational:createBinop("/<=/>=",7),bitShift:createBinop("<>/>>>",8),plusMin:createToken("+/-",{beforeExpr:d,binop:9,prefix:_,startsExpr:f}),modulo:createToken("%",{binop:10,startsExpr:f}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:d,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:d,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:d,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:d}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:d}),_else:createKeyword("else",{beforeExpr:d}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:f}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:d}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:d,prefix:_,startsExpr:f}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:d,startsExpr:f}),_this:createKeyword("this",{startsExpr:f}),_super:createKeyword("super",{startsExpr:f}),_class:createKeyword("class",{startsExpr:f}),_extends:createKeyword("extends",{beforeExpr:d}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:f}),_null:createKeyword("null",{startsExpr:f}),_true:createKeyword("true",{startsExpr:f}),_false:createKeyword("false",{startsExpr:f}),_typeof:createKeyword("typeof",{beforeExpr:d,prefix:_,startsExpr:f}),_void:createKeyword("void",{beforeExpr:d,prefix:_,startsExpr:f}),_delete:createKeyword("delete",{beforeExpr:d,prefix:_,startsExpr:f}),_do:createKeyword("do",{isLoop:m,beforeExpr:d}),_for:createKeyword("for",{isLoop:m}),_while:createKeyword("while",{isLoop:m}),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:true}),jsxTagStart:createToken("jsxTagStart",{startsExpr:true}),jsxTagEnd:createToken("jsxTagEnd"),placeholder:createToken("%%",{startsExpr:true})};function tokenComesBeforeExpression(e){return E[e]}function tokenCanStartExpression(e){return x[e]}function tokenIsAssignment(e){return e>=35&&e<=38}function tokenIsLoop(e){return e>=89&&e<=91}function tokenIsKeyword(e){return e>=57&&e<=91}function tokenIsOperator(e){return e>=42&&e<=58}function tokenIsPostfix(e){return e===39}function tokenIsPrefix(e){return D[e]}function tokenLabelName(e){return S[e]}function tokenOperatorPrecedence(e){return b[e]}function tokenIsRightAssociative(e){return e===56}function getExportedToken(e){return T[e]}function isTokenType(e){return typeof e==="number"}{T[16].updateContext=(e=>{e.pop()});T[13].updateContext=T[15].updateContext=T[31].updateContext=(e=>{e.push(p.brace)});T[30].updateContext=(e=>{if(e[e.length-1]===p.template){e.pop()}else{e.push(p.template)}});T[94].updateContext=(e=>{e.push(p.j_expr,p.j_oTag)})}let A="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let k="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const P=new RegExp("["+A+"]");const N=new RegExp("["+A+k+"]");A=k=null;const O=[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,68,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,349,41,7,1,79,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,85,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,159,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,264,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938];const F=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,i=t.length;ne)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&P.test(String.fromCharCode(e))}return isInAstralSet(e,O)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&N.test(String.fromCharCode(e))}return isInAstralSet(e,O)||isInAstralSet(e,F)}const w={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const I=new Set(w.keyword);const L=new Set(w.strict);const M=new Set(w.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return M.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return I.has(e)}function isIteratorStart(e,t){return e===64&&t===64}const R=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"]);function canBeReservedWord(e){return R.has(e)}const B=0,j=1,J=2,U=4,V=8,W=16,K=32,G=64,z=128,H=256,q=j|J|H;const $=1,Y=2,X=4,Q=8,Z=16,ee=64,te=128,re=256,ne=512,ie=1024,ae=2048;const se=$|Y|Q|te,oe=$|0|Q|0,ce=$|0|X|0,ue=$|0|Z|0,le=0|Y|0|te,pe=0|Y|0|0,de=$|Y|Q|re,fe=0|0|0|ie,me=0|0|0|ee,ge=$|0|0|ee,_e=de|ne,he=0|0|0|ie,ye=ae;const ve=4,Te=2,Se=1,be=Te|Se;const Ee=Te|ve,xe=Se|ve,De=Te,Ce=Se,Ae=0;class Scope{constructor(e){this.var=new Set;this.lexical=new Set;this.functions=new Set;this.flags=e}}class ScopeHandler{constructor(e,t){this.scopeStack=[];this.undefinedExports=new Map;this.undefinedPrivateNames=new Map;this.raise=e;this.inModule=t}get inFunction(){return(this.currentVarScopeFlags()&J)>0}get allowSuper(){return(this.currentThisScopeFlags()&W)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&K)>0}get inClass(){return(this.currentThisScopeFlags()&G)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&G)>0&&(e&J)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&z){return true}if(t&(q|G)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&J)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(e){return!!(e.flags&J||!this.inModule&&e.flags&j)}declareName(e,t,r){let n=this.currentScope();if(t&Q||t&Z){this.checkRedeclarationInScope(n,e,t,r);if(t&Z){n.functions.add(e)}else{n.lexical.add(e)}if(t&Q){this.maybeExportDefined(n,e)}}else if(t&X){for(let i=this.scopeStack.length-1;i>=0;--i){n=this.scopeStack[i];this.checkRedeclarationInScope(n,e,t,r);n.var.add(e);this.maybeExportDefined(n,e);if(n.flags&q)break}}if(this.inModule&&n.flags&j){this.undefinedExports.delete(e)}}maybeExportDefined(e,t){if(this.inModule&&e.flags&j){this.undefinedExports.delete(t)}}checkRedeclarationInScope(e,t,r,n){if(this.isRedeclaredInScope(e,t,r)){this.raise(n,c.VarRedeclaration,t)}}isRedeclaredInScope(e,t,r){if(!(r&$))return false;if(r&Q){return e.lexical.has(t)||e.functions.has(t)||e.var.has(t)}if(r&Z){return e.lexical.has(t)||!this.treatFunctionsAsVarInScope(e)&&e.var.has(t)}return e.lexical.has(t)&&!(e.flags&V&&e.lexical.values().next().value===t)||!this.treatFunctionsAsVarInScope(e)&&e.functions.has(t)}checkLocalExport(e){const{name:t}=e;const r=this.scopeStack[0];if(!r.lexical.has(t)&&!r.var.has(t)&&!r.functions.has(t)){this.undefinedExports.set(t,e.start)}}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&q){return t}}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(q|G)&&!(t&U)){return t}}}}class FlowScope extends Scope{constructor(...e){super(...e);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const n=this.currentScope();if(t&ae){this.checkRedeclarationInScope(n,e,t,r);this.maybeExportDefined(n,e);n.declareFunctions.add(e);return}super.declareName(...arguments)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(...arguments))return true;if(r&ae){return!e.declareFunctions.has(t)&&(e.lexical.has(t)||e.functions.has(t))}return false}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name)){super.checkLocalExport(e)}}}class State{constructor(){this.strict=void 0;this.curLine=void 0;this.startLoc=void 0;this.endLoc=void 0;this.errors=[];this.potentialArrowAt=-1;this.noArrowAt=[];this.noArrowParamsConversionAt=[];this.maybeInArrowParameters=false;this.inType=false;this.noAnonFunctionType=false;this.inPropertyName=false;this.hasFlowComment=false;this.isAmbientContext=false;this.inAbstractClass=false;this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};this.soloAwait=false;this.inFSharpPipelineDirectBody=false;this.labels=[];this.decoratorStack=[[]];this.comments=[];this.commentStack=[];this.pos=0;this.lineStart=0;this.type=7;this.value=null;this.start=0;this.end=0;this.lastTokEndLoc=null;this.lastTokStartLoc=null;this.lastTokStart=0;this.lastTokEnd=0;this.context=[p.brace];this.exprAllowed=true;this.containsEsc=false;this.strictErrors=new Map;this.tokensLength=0}init(e){this.strict=e.strictMode===false?false:e.strictMode===true?true:e.sourceType==="module";this.curLine=e.startLine;this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new Position(this.curLine,this.pos-this.lineStart)}clone(e){const t=new State;const r=Object.keys(this);for(let n=0,i=r.length;n=48&&e<=57};const Pe=new Set([103,109,115,105,121,117,100]);const Ne={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]};const Oe={};Oe.bin=[48,49];Oe.oct=[...Oe.bin,50,51,52,53,54,55];Oe.dec=[...Oe.oct,56,57];Oe.hex=[...Oe.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Token{constructor(e){this.type=e.type;this.value=e.value;this.start=e.start;this.end=e.end;this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends ParserError{constructor(e,t){super();this.isLookahead=void 0;this.tokens=[];this.state=new State;this.state.init(e);this.input=t;this.length=t.length;this.isLookahead=false}pushToken(e){this.tokens.length=this.state.tokensLength;this.tokens.push(e);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.options.tokens){this.pushToken(new Token(this.state))}this.state.lastTokEnd=this.state.end;this.state.lastTokStart=this.state.start;this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(e){if(this.match(e)){this.next();return true}else{return false}}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,lastTokEnd:e.end,context:[this.curContext()],inType:e.inType}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e);this.isLookahead=true;this.nextToken();this.isLookahead=false;const t=this.state;this.state=e;return t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){i.lastIndex=e;return i.test(this.input)?i.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++ethis.raise(t,e));this.state.strictErrors.clear()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const e=this.curContext();if(!e.preserveSpace)this.skipSpace();this.state.start=this.state.pos;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(7);return}if(e===p.template){this.readTmplToken()}else{this.getTokenFromCode(this.codePointAtPos(this.state.pos))}}skipBlockComment(){let e;if(!this.isLookahead)e=this.state.curPosition();const t=this.state.pos;const r=this.input.indexOf("*/",t+2);if(r===-1)throw this.raise(t,c.UnterminatedComment);this.state.pos=r+2;n.lastIndex=t+2;while(n.test(this.input)&&n.lastIndex<=r){++this.state.curLine;this.state.lineStart=n.lastIndex}if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(t+2,r),start:t,end:r+2,loc:new SourceLocation(e,this.state.curPosition())};if(this.options.tokens)this.pushToken(i);return i}skipLineComment(e){const t=this.state.pos;let r;if(!this.isLookahead)r=this.state.curPosition();let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose)){const e=this.skipLineComment(3);if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}}else{break e}}else if(r===60&&!this.inModule){const e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){const e=this.skipLineComment(4);if(e!==undefined){this.addComment(e);if(this.options.attachComment)t.push(e)}}else{break e}}else{break e}}}if(t.length>0){const r=this.state.pos;const n={start:e,end:r,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos;const r=this.state.type;this.state.type=e;this.state.value=t;if(!this.isLookahead){this.state.endLoc=this.state.curPosition();this.updateContext(r)}}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const e=this.state.pos+1;const t=this.codePointAtPos(e);if(t>=48&&t<=57){throw this.raise(this.state.pos,c.UnexpectedDigitAfterHash)}if(t===123||t===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")!=="hash"){throw this.raise(this.state.pos,t===123?c.RecordExpressionHashIncorrectStartSyntaxType:c.TupleExpressionHashIncorrectStartSyntaxType)}this.state.pos+=2;if(t===123){this.finishToken(15)}else{this.finishToken(9)}}else if(isIdentifierStart(t)){++this.state.pos;this.finishToken(6,this.readWord1(t))}else if(t===92){++this.state.pos;this.finishToken(6,this.readWord1())}else{this.finishOp(33,1)}}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(true);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(29)}else{++this.state.pos;this.finishToken(24)}}readToken_slash(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(37,2)}else{this.finishOp(55,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return false;const t=this.state.pos;this.state.pos+=1;while(!isNewLine(e)&&++this.state.pos=48&&t<=57)){this.state.pos+=2;this.finishToken(26)}else{++this.state.pos;this.finishToken(25)}}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(18);return;case 41:++this.state.pos;this.finishToken(19);return;case 59:++this.state.pos;this.finishToken(21);return;case 44:++this.state.pos;this.finishToken(20);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(this.state.pos,c.TupleExpressionBarIncorrectStartSyntaxType)}this.state.pos+=2;this.finishToken(10)}else{++this.state.pos;this.finishToken(8)}return;case 93:++this.state.pos;this.finishToken(11);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(this.state.pos,c.RecordExpressionBarIncorrectStartSyntaxType)}this.state.pos+=2;this.finishToken(14)}else{++this.state.pos;this.finishToken(13)}return;case 125:++this.state.pos;this.finishToken(16);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(23,2)}else{++this.state.pos;this.finishToken(22)}return;case 63:this.readToken_question();return;case 96:++this.state.pos;this.finishToken(30);return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:case 62:this.readToken_lt_gt(e);return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(41,1);return;case 64:++this.state.pos;this.finishToken(32);return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(isIdentifierStart(e)){this.readWord(e);return}}throw this.raise(this.state.pos,c.InvalidOrUnexpectedToken,String.fromCodePoint(e))}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t;this.finishToken(e,r)}readRegexp(){const e=this.state.start+1;let t,r;let{pos:n}=this.state;for(;;++n){if(n>=this.length){throw this.raise(e,c.UnterminatedRegExp)}const i=this.input.charCodeAt(n);if(isNewLine(i)){throw this.raise(e,c.UnterminatedRegExp)}if(t){t=false}else{if(i===91){r=true}else if(i===93&&r){r=false}else if(i===47&&!r){break}t=i===92}}const i=this.input.slice(e,n);++n;let a="";while(n-1||a.indexOf(t)>-1||Number.isNaN(t)){this.raise(this.state.pos,c.UnexpectedNumericSeparator)}if(!n){this.raise(this.state.pos,c.NumericSeparatorInEscapeSequence)}++this.state.pos;continue}if(t>=97){l=t-97+10}else if(t>=65){l=t-65+10}else if(ke(t)){l=t-48}else{l=Infinity}if(l>=e){if(this.options.errorRecovery&&l<=9){l=0;this.raise(this.state.start+i+2,c.InvalidDigit,e)}else if(r){l=0;o=true}else{break}}++this.state.pos;u=u*e+l}if(this.state.pos===i||t!=null&&this.state.pos-i!==t||o){return null}return u}readRadixNumber(e){const t=this.state.pos;let r=false;this.state.pos+=2;const n=this.readInt(e);if(n==null){this.raise(this.state.start+2,c.InvalidDigit,e)}const i=this.input.charCodeAt(this.state.pos);if(i===110){++this.state.pos;r=true}else if(i===109){throw this.raise(t,c.InvalidDecimal)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(this.state.pos,c.NumberIdentifier)}if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(1,e);return}this.finishToken(0,n)}readNumber(e){const t=this.state.pos;let r=false;let n=false;let i=false;let a=false;let s=false;if(!e&&this.readInt(10)===null){this.raise(t,c.InvalidNumber)}const o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){const e=this.input.slice(t,this.state.pos);this.recordStrictModeErrors(t,c.StrictOctalLiteral);if(!this.state.strict){const r=e.indexOf("_");if(r>0){this.raise(r+t,c.ZeroDigitNumericSeparator)}}s=o&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!s){++this.state.pos;this.readInt(10);r=true;u=this.input.charCodeAt(this.state.pos)}if((u===69||u===101)&&!s){u=this.input.charCodeAt(++this.state.pos);if(u===43||u===45){++this.state.pos}if(this.readInt(10)===null){this.raise(t,c.InvalidOrMissingExponent)}r=true;a=true;u=this.input.charCodeAt(this.state.pos)}if(u===110){if(r||o){this.raise(t,c.InvalidBigIntLiteral)}++this.state.pos;n=true}if(u===109){this.expectPlugin("decimal",this.state.pos);if(a||o){this.raise(t,c.InvalidDecimal)}++this.state.pos;i=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(this.state.pos,c.NumberIdentifier)}const l=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(1,l);return}if(i){this.finishToken(2,l);return}const p=s?parseInt(l,8):parseFloat(l);this.finishToken(0,p)}readCodePoint(e){const t=this.input.charCodeAt(this.state.pos);let r;if(t===123){const t=++this.state.pos;r=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,true,e);++this.state.pos;if(r!==null&&r>1114111){if(e){this.raise(t,c.InvalidCodePoint)}else{return null}}}else{r=this.readHexChar(4,false,e)}return r}readString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(this.state.start,c.UnterminatedString)}const n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(n===92){t+=this.input.slice(r,this.state.pos);t+=this.readEscapedChar(false);r=this.state.pos}else if(n===8232||n===8233){++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos}else if(isNewLine(n)){throw this.raise(this.state.start,c.UnterminatedString)}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);this.finishToken(4,t)}readTmplToken(){let e="",t=this.state.pos,r=false;for(;;){if(this.state.pos>=this.length){throw this.raise(this.state.start,c.UnterminatedTemplate)}const n=this.input.charCodeAt(this.state.pos);if(n===96||n===36&&this.input.charCodeAt(this.state.pos+1)===123){if(this.state.pos===this.state.start&&this.match(28)){if(n===36){this.state.pos+=2;this.finishToken(31);return}else{++this.state.pos;this.finishToken(30);return}}e+=this.input.slice(t,this.state.pos);this.finishToken(28,r?null:e);return}if(n===92){e+=this.input.slice(t,this.state.pos);const n=this.readEscapedChar(true);if(n===null){r=true}else{e+=n}t=this.state.pos}else if(isNewLine(n)){e+=this.input.slice(t,this.state.pos);++this.state.pos;switch(n){case 13:if(this.input.charCodeAt(this.state.pos)===10){++this.state.pos}case 10:e+="\n";break;default:e+=String.fromCharCode(n);break}++this.state.curLine;this.state.lineStart=this.state.pos;t=this.state.pos}else{++this.state.pos}}}recordStrictModeErrors(e,t){if(this.state.strict&&!this.state.strictErrors.has(e)){this.raise(e,t)}else{this.state.strictErrors.set(e,t)}}readEscapedChar(e){const t=!e;const r=this.input.charCodeAt(++this.state.pos);++this.state.pos;switch(r){case 110:return"\n";case 114:return"\r";case 120:{const e=this.readHexChar(2,false,t);return e===null?null:String.fromCharCode(e)}case 117:{const e=this.readCodePoint(t);return e===null?null:String.fromCodePoint(e)}case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.state.pos)===10){++this.state.pos}case 10:this.state.lineStart=this.state.pos;++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(e){return null}else{this.recordStrictModeErrors(this.state.pos-1,c.StrictNumericEscape)}default:if(r>=48&&r<=55){const t=this.state.pos-1;const r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/);let n=r[0];let i=parseInt(n,8);if(i>255){n=n.slice(0,-1);i=parseInt(n,8)}this.state.pos+=n.length-1;const a=this.input.charCodeAt(this.state.pos);if(n!=="0"||a===56||a===57){if(e){return null}else{this.recordStrictModeErrors(t,c.StrictNumericEscape)}}return String.fromCharCode(i)}return String.fromCharCode(r)}}readHexChar(e,t,r){const n=this.state.pos;const i=this.readInt(16,e,t,false);if(i===null){if(r){this.raise(n,c.InvalidEscapeSequence)}else{this.state.pos=n-1}}return i}readWord1(e){this.state.containsEsc=false;let t="";const r=this.state.pos;let n=this.state.pos;if(e!==undefined){this.state.pos+=e<=65535?1:2}while(this.state.pos{this.raise(r,t);let n=e.length-2;let i=e[n];while(i.canBeArrowParameterDeclaration()){i.clearDeclarationError(r);i=e[--n]}})}}function newParameterDeclarationScope(){return new ExpressionScope(Le)}function newArrowHeadScope(){return new ArrowHeadParsingScope(we)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(Ie)}function newExpressionScope(){return new ExpressionScope}const Me=0,Re=1,Be=2,je=4,Je=8;class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&Be)>0}get hasYield(){return(this.currentFlags()&Re)>0}get hasReturn(){return(this.currentFlags()&je)>0}get hasIn(){return(this.currentFlags()&Je)>0}}function functionFlags(e,t){return(e?Be:0)|(t?Re:0)}class UtilParser extends Tokenizer{addExtra(e,t,r){if(!e)return;const n=e.extra=e.extra||{};n[t]=r}isRelational(e){return this.match(50)&&this.state.value===e}expectRelational(e){if(this.isRelational(e)){this.next()}else{this.unexpected(null,50)}}isContextual(e){return this.match(5)&&this.state.value===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(isIdentifierChar(e)||(e&64512)===55296)}return false}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)&&this.eat(5)}expectContextual(e,t){if(!this.eatContextual(e))this.unexpected(null,t)}canInsertSemicolon(){return this.match(7)||this.match(16)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return r.test(this.input.slice(this.state.lastTokEnd,this.state.start))}hasFollowingLineBreak(){s.lastIndex=this.state.end;return s.test(this.input)}isLineTerminator(){return this.eat(21)||this.canInsertSemicolon()}semicolon(e=true){if(e?this.isLineTerminator():this.eat(21))return;this.raise(this.state.lastTokEnd,c.MissingSemicolon)}expect(e,t){this.eat(e)||this.unexpected(t,e)}assertNoSpace(e="Unexpected space."){if(this.state.start>this.state.lastTokEnd){this.raise(this.state.lastTokEnd,{code:o.SyntaxError,reasonCode:"UnexpectedSpace",template:e})}}unexpected(e,t={code:o.SyntaxError,reasonCode:"UnexpectedToken",template:"Unexpected token"}){if(isTokenType(t)){t={code:o.SyntaxError,reasonCode:"UnexpectedToken",template:`Unexpected token, expected "${tokenLabelName(t)}"`}}throw this.raise(e!=null?e:this.state.start,t)}expectPlugin(e,t){if(!this.hasPlugin(e)){throw this.raiseWithData(t!=null?t:this.state.start,{missingPlugin:[e]},`This experimental syntax requires enabling the parser plugin: '${e}'`)}return true}expectOnePlugin(e,t){if(!e.some(e=>this.hasPlugin(e))){throw this.raiseWithData(t!=null?t:this.state.start,{missingPlugin:e},`This experimental syntax requires enabling one of the following parser plugin(s): '${e.join(", ")}'`)}}tryParse(e,t=this.state.clone()){const r={node:null};try{const n=e((e=null)=>{r.node=e;throw r});if(this.state.errors.length>t.errors.length){const e=this.state;this.state=t;this.state.tokensLength=e.tokensLength;return{node:n,error:e.errors[t.errors.length],thrown:false,aborted:false,failState:e}}return{node:n,error:null,thrown:false,aborted:false,failState:null}}catch(e){const n=this.state;this.state=t;if(e instanceof SyntaxError){return{node:null,error:e,thrown:true,aborted:false,failState:n}}if(e===r){return{node:r.node,error:null,thrown:false,aborted:true,failState:n}}throw e}}checkExpressionErrors(e,t){if(!e)return false;const{shorthandAssign:r,doubleProto:n,optionalParameters:i}=e;if(!t){return r>=0||n>=0||i>=0}if(r>=0){this.unexpected(r)}if(n>=0){this.raise(n,c.DuplicateProto)}if(i>=0){this.unexpected(i)}}isLiteralPropertyName(){return this.match(5)||tokenIsKeyword(this.state.type)||this.match(4)||this.match(0)||this.match(1)||this.match(2)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isOptionalChain(e){return e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression"}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=e;const i=this.scope;const a=this.getScopeHandler();this.scope=new a(this.raise.bind(this),this.inModule);const s=this.prodParam;this.prodParam=new ProductionParameterHandler;const o=this.classScope;this.classScope=new ClassScopeHandler(this.raise.bind(this));const c=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this.raise.bind(this));return()=>{this.state.labels=t;this.exportedIdentifiers=r;this.inModule=n;this.scope=i;this.prodParam=s;this.classScope=o;this.expressionScope=c}}enterInitialScopes(){let e=Me;if(this.inModule){e|=Be}this.scope.enter(j);this.prodParam.enter(e)}}class ExpressionErrors{constructor(){this.shorthandAssign=-1;this.doubleProto=-1;this.optionalParameters=-1}}class Node{constructor(e,t,r){this.type="";this.start=t;this.end=0;this.loc=new SourceLocation(r);if(e!=null&&e.options.ranges)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}const Ue=Node.prototype;{Ue.__clone=function(){const e=new Node;const t=Object.keys(this);for(let r=0,n=t.length;r async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead.",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."},o.SyntaxError,"flow");function isEsModuleType(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(e){return e.importKind==="type"||e.importKind==="typeof"}function isMaybeDefaultImport(e){return(e.type===5||tokenIsKeyword(e.type))&&e.value!=="from"}const Ke={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(e,t){const r=[];const n=[];for(let i=0;i(class extends e{constructor(...e){super(...e);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(e,t){if(e!==4&&e!==21&&e!==34){if(this.flowPragma===undefined){this.flowPragma=null}}return super.finishToken(e,t)}addComment(e){if(this.flowPragma===undefined){const t=Ge.exec(e.value);if(!t) ;else if(t[1]==="flow"){this.flowPragma="flow"}else if(t[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}return super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=true;this.expect(e||22);const r=this.flowParseType();this.state.inType=t;return r}flowParsePredicate(){const e=this.startNode();const t=this.state.start;this.next();this.expectContextual("checks");if(this.state.lastTokStart>t+1){this.raise(t,We.UnexpectedSpaceBetweenModuloChecks)}if(this.eat(18)){e.value=this.parseExpression();this.expect(19);return this.finishNode(e,"DeclaredPredicate")}else{return this.finishNode(e,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=true;this.expect(22);let t=null;let r=null;if(this.match(53)){this.state.inType=e;r=this.flowParsePredicate()}else{t=this.flowParseType();this.state.inType=e;if(this.match(53)){r=this.flowParsePredicate()}}return[t,r]}flowParseDeclareClass(e){this.next();this.flowParseInterfaceish(e,true);return this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier();const r=this.startNode();const n=this.startNode();if(this.isRelational("<")){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}this.expect(18);const i=this.flowParseFunctionTypeParams();r.params=i.params;r.rest=i.rest;r.this=i._this;this.expect(19);[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser();n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation");t.typeAnnotation=this.finishNode(n,"TypeAnnotation");this.resetEndLocation(t);this.semicolon();this.scope.declareName(e.id.name,ye,e.id.start);return this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(79)){return this.flowParseDeclareClass(e)}else if(this.match(67)){return this.flowParseDeclareFunction(e)}else if(this.match(73)){return this.flowParseDeclareVariable(e)}else if(this.eatContextual("module")){if(this.match(24)){return this.flowParseDeclareModuleExports(e)}else{if(t){this.raise(this.state.lastTokStart,We.NestedDeclareModule)}return this.flowParseDeclareModule(e)}}else if(this.isContextual("type")){return this.flowParseDeclareTypeAlias(e)}else if(this.isContextual("opaque")){return this.flowParseDeclareOpaqueType(e)}else if(this.isContextual("interface")){return this.flowParseDeclareInterface(e)}else if(this.match(81)){return this.flowParseDeclareExportDeclaration(e,t)}else{throw this.unexpected()}}flowParseDeclareVariable(e){this.next();e.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(e.id.name,ce,e.id.start);this.semicolon();return this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(B);if(this.match(4)){e.id=this.parseExprAtom()}else{e.id=this.parseIdentifier()}const t=e.body=this.startNode();const r=t.body=[];this.expect(13);while(!this.match(16)){let e=this.startNode();if(this.match(82)){this.next();if(!this.isContextual("type")&&!this.match(86)){this.raise(this.state.lastTokStart,We.InvalidNonTypeImportInDeclareModule)}this.parseImport(e)}else{this.expectContextual("declare",We.UnsupportedStatementInDeclareModule);e=this.flowParseDeclare(e,true)}r.push(e)}this.scope.exit();this.expect(16);this.finishNode(t,"BlockStatement");let n=null;let i=false;r.forEach(e=>{if(isEsModuleType(e)){if(n==="CommonJS"){this.raise(e.start,We.AmbiguousDeclareModuleKind)}n="ES"}else if(e.type==="DeclareModuleExports"){if(i){this.raise(e.start,We.DuplicateDeclareModuleExports)}if(n==="ES"){this.raise(e.start,We.AmbiguousDeclareModuleKind)}n="CommonJS";i=true}});e.kind=n||"CommonJS";return this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){this.expect(81);if(this.eat(64)){if(this.match(67)||this.match(79)){e.declaration=this.flowParseDeclare(this.startNode())}else{e.declaration=this.flowParseType();this.semicolon()}e.default=true;return this.finishNode(e,"DeclareExportDeclaration")}else{if(this.match(74)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!t){const e=this.state.value;const t=Ke[e];throw this.raise(this.state.start,We.UnsupportedDeclareExportKind,e,t)}if(this.match(73)||this.match(67)||this.match(79)||this.isContextual("opaque")){e.declaration=this.flowParseDeclare(this.startNode());e.default=false;return this.finishNode(e,"DeclareExportDeclaration")}else if(this.match(54)||this.match(13)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque")){e=this.parseExport(e);if(e.type==="ExportNamedDeclaration"){e.type="ExportDeclaration";e.default=false;delete e.exportKind}e.type="Declare"+e.type;return e}}throw this.unexpected()}flowParseDeclareModuleExports(e){this.next();this.expectContextual("exports");e.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();this.flowParseTypeAlias(e);e.type="DeclareTypeAlias";return e}flowParseDeclareOpaqueType(e){this.next();this.flowParseOpaqueType(e,true);e.type="DeclareOpaqueType";return e}flowParseDeclareInterface(e){this.next();this.flowParseInterfaceish(e);return this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t=false){e.id=this.flowParseRestrictedIdentifier(!t,true);this.scope.declareName(e.id.name,t?ue:oe,e.id.start);if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.extends=[];e.implements=[];e.mixins=[];if(this.eat(80)){do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(20))}if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(20))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(20))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:false,allowSpread:false,allowProto:t,allowInexact:false})}flowParseInterfaceExtends(){const e=this.startNode();e.id=this.flowParseQualifiedTypeIdentifier();if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}return this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){this.flowParseInterfaceish(e);return this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if(e==="_"){this.raise(this.state.start,We.UnexpectedReservedUnderscore)}}checkReservedType(e,t,r){if(!Ve.has(e))return;this.raise(t,r?We.AssignReservedType:We.UnexpectedReservedType,e)}flowParseRestrictedIdentifier(e,t){this.checkReservedType(this.state.value,this.state.start,t);return this.parseIdentifier(e)}flowParseTypeAlias(e){e.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(e.id.name,oe,e.id.start);if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.right=this.flowParseTypeInitialiser(35);this.semicolon();return this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){this.expectContextual("type");e.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(e.id.name,oe,e.id.start);if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.supertype=null;if(this.match(22)){e.supertype=this.flowParseTypeInitialiser(22)}e.impltype=null;if(!t){e.impltype=this.flowParseTypeInitialiser(35)}this.semicolon();return this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=false){const t=this.state.start;const r=this.startNode();const n=this.flowParseVariance();const i=this.flowParseTypeAnnotatableIdentifier();r.name=i.name;r.variance=n;r.bound=i.typeAnnotation;if(this.match(35)){this.eat(35);r.default=this.flowParseType()}else{if(e){this.raise(t,We.MissingTypeParamDefault)}}return this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType;const t=this.startNode();t.params=[];this.state.inType=true;if(this.isRelational("<")||this.match(94)){this.next()}else{this.unexpected()}let r=false;do{const e=this.flowParseTypeParameter(r);t.params.push(e);if(e.default){r=true}if(!this.isRelational(">")){this.expect(20)}}while(!this.isRelational(">"));this.expectRelational(">");this.state.inType=e;return this.finishNode(t,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expectRelational("<");const r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.isRelational(">")){e.params.push(this.flowParseType());if(!this.isRelational(">")){this.expect(20)}}this.state.noAnonFunctionType=r;this.expectRelational(">");this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expectRelational("<");while(!this.isRelational(">")){e.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.isRelational(">")){this.expect(20)}}this.expectRelational(">");this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();this.expectContextual("interface");e.extends=[];if(this.eat(80)){do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(20))}e.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(0)||this.match(4)?this.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(e,t,r){e.static=t;if(this.lookahead().type===22){e.id=this.flowParseObjectPropertyKey();e.key=this.flowParseTypeInitialiser()}else{e.id=null;e.key=this.flowParseType()}this.expect(11);e.value=this.flowParseTypeInitialiser();e.variance=r;return this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){e.static=t;e.id=this.flowParseObjectPropertyKey();this.expect(11);this.expect(11);if(this.isRelational("<")||this.match(18)){e.method=true;e.optional=false;e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))}else{e.method=false;if(this.eat(25)){e.optional=true}e.value=this.flowParseTypeInitialiser()}return this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){e.params=[];e.rest=null;e.typeParameters=null;e.this=null;if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(18);if(this.match(77)){e.this=this.flowParseFunctionTypeParam(true);e.this.name=null;if(!this.match(19)){this.expect(20)}}while(!this.match(19)&&!this.match(29)){e.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(19)){this.expect(20)}}if(this.eat(29)){e.rest=this.flowParseFunctionTypeParam(false)}this.expect(19);e.returnType=this.flowParseTypeInitialiser();return this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();e.static=t;e.value=this.flowParseObjectTypeMethodish(r);return this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:i}){const a=this.state.inType;this.state.inType=true;const s=this.startNode();s.callProperties=[];s.properties=[];s.indexers=[];s.internalSlots=[];let o;let c;let u=false;if(t&&this.match(14)){this.expect(14);o=17;c=true}else{this.expect(13);o=16;c=false}s.exact=c;while(!this.match(o)){let t=false;let a=null;let o=null;const l=this.startNode();if(n&&this.isContextual("proto")){const t=this.lookahead();if(t.type!==22&&t.type!==25){this.next();a=this.state.start;e=false}}if(e&&this.isContextual("static")){const e=this.lookahead();if(e.type!==22&&e.type!==25){this.next();t=true}}const p=this.flowParseVariance();if(this.eat(8)){if(a!=null){this.unexpected(a)}if(this.eat(8)){if(p){this.unexpected(p.start)}s.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,t))}else{s.indexers.push(this.flowParseObjectTypeIndexer(l,t,p))}}else if(this.match(18)||this.isRelational("<")){if(a!=null){this.unexpected(a)}if(p){this.unexpected(p.start)}s.callProperties.push(this.flowParseObjectTypeCallProperty(l,t))}else{let e="init";if(this.isContextual("get")||this.isContextual("set")){const t=this.lookahead();if(t.type===5||t.type===4||t.type===0){e=this.state.value;this.next()}}const n=this.flowParseObjectTypeProperty(l,t,a,p,e,r,i!=null?i:!c);if(n===null){u=true;o=this.state.lastTokStart}else{s.properties.push(n)}}this.flowObjectTypeSemicolon();if(o&&!this.match(16)&&!this.match(17)){this.raise(o,We.UnexpectedExplicitInexactInObject)}}this.expect(o);if(r){s.inexact=u}const l=this.finishNode(s,"ObjectTypeAnnotation");this.state.inType=a;return l}flowParseObjectTypeProperty(e,t,r,n,i,a,s){if(this.eat(29)){const t=this.match(20)||this.match(21)||this.match(16)||this.match(17);if(t){if(!a){this.raise(this.state.lastTokStart,We.InexactInsideNonObject)}else if(!s){this.raise(this.state.lastTokStart,We.InexactInsideExact)}if(n){this.raise(n.start,We.InexactVariance)}return null}if(!a){this.raise(this.state.lastTokStart,We.UnexpectedSpreadType)}if(r!=null){this.unexpected(r)}if(n){this.raise(n.start,We.SpreadVariance)}e.argument=this.flowParseType();return this.finishNode(e,"ObjectTypeSpreadProperty")}else{e.key=this.flowParseObjectPropertyKey();e.static=t;e.proto=r!=null;e.kind=i;let s=false;if(this.isRelational("<")||this.match(18)){e.method=true;if(r!=null){this.unexpected(r)}if(n){this.unexpected(n.start)}e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start));if(i==="get"||i==="set"){this.flowCheckGetterSetterParams(e)}if(!a&&e.key.name==="constructor"&&e.value.this){this.raise(e.value.this.start,We.ThisParamBannedInConstructor)}}else{if(i!=="init")this.unexpected();e.method=false;if(this.eat(25)){s=true}e.value=this.flowParseTypeInitialiser();e.variance=n}e.optional=s;return this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1;const r=e.start;const n=e.value.params.length+(e.value.rest?1:0);if(e.value.this){this.raise(e.value.this.start,e.kind==="get"?We.GetterMayNotHaveThisParam:We.SetterMayNotHaveThisParam)}if(n!==t){if(e.kind==="get"){this.raise(r,c.BadGetterArity)}else{this.raise(r,c.BadSetterArity)}}if(e.kind==="set"&&e.value.rest){this.raise(r,c.BadSetterRestParameter)}}flowObjectTypeSemicolon(){if(!this.eat(21)&&!this.eat(20)&&!this.match(16)&&!this.match(17)){this.unexpected()}}flowParseQualifiedTypeIdentifier(e,t,r){e=e||this.state.start;t=t||this.state.startLoc;let n=r||this.flowParseRestrictedIdentifier(true);while(this.eat(24)){const r=this.startNodeAt(e,t);r.qualification=n;r.id=this.flowParseRestrictedIdentifier(true);n=this.finishNode(r,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t,r){const n=this.startNodeAt(e,t);n.typeParameters=null;n.id=this.flowParseQualifiedTypeIdentifier(e,t,r);if(this.isRelational("<")){n.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();this.expect(86);e.argument=this.flowParsePrimaryType();return this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();e.types=[];this.expect(8);while(this.state.possuper.parseFunctionBody(e,true,r))}return super.parseFunctionBody(e,false,r)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(22)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(e,t,r)}parseStatement(e,t){if(this.state.strict&&this.match(5)&&this.state.value==="interface"){const e=this.lookahead();if(e.type===5||isKeyword(e.value)){const e=this.startNode();this.next();return this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}const r=super.parseStatement(e,t);if(this.flowPragma===undefined&&!this.isValidDirective(r)){this.flowPragma=null}return r}parseExpressionStatement(e,t){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(79)||this.match(5)||this.match(67)||this.match(73)||this.match(81)){return this.flowParseDeclare(e)}}else if(this.match(5)){if(t.name==="interface"){return this.flowParseInterface(e)}else if(t.name==="type"){return this.flowParseTypeAlias(e)}else if(t.name==="opaque"){return this.flowParseOpaqueType(e,false)}}}return super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){if(this.match(5)&&(this.state.value==="type"||this.state.value==="interface"||this.state.value==="opaque"||this.shouldParseEnums()&&this.state.value==="enum")){return false}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r,n){if(!this.match(25))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(n);return e}}this.expect(25);const i=this.state.clone();const a=this.state.noArrowAt;const s=this.startNodeAt(t,r);let{consequent:o,failed:c}=this.tryParseConditionalConsequent();let[u,l]=this.getArrowLikeExpressions(o);if(c||l.length>0){const e=[...a];if(l.length>0){this.state=i;this.state.noArrowAt=e;for(let t=0;t1){this.raise(i.start,We.AmbiguousConditionalArrow)}if(c&&u.length===1){this.state=i;e.push(u[0].start);this.state.noArrowAt=e;({consequent:o,failed:c}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(o,true);this.state.noArrowAt=a;this.expect(22);s.test=e;s.consequent=o;s.alternate=this.forwardNoArrowParamsConversionAt(s,()=>this.parseMaybeAssign(undefined,undefined));return this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn();const t=!this.match(22);this.state.noArrowParamsConversionAt.pop();return{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e];const n=[];while(r.length!==0){const e=r.pop();if(e.type==="ArrowFunctionExpression"){if(e.typeParameters||!e.returnType){this.finishArrowValidation(e)}else{n.push(e)}r.push(e.body)}else if(e.type==="ConditionalExpression"){r.push(e.consequent);r.push(e.alternate)}}if(t){n.forEach(e=>this.finishArrowValidation(e));return[n,[]]}return partition(n,e=>e.params.every(e=>this.isAssignable(e,true)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingComma,false);this.scope.enter(J|U);super.checkParams(e,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;if(this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1){this.state.noArrowParamsConversionAt.push(this.state.start);r=t();this.state.noArrowParamsConversionAt.pop()}else{r=t()}return r}parseParenItem(e,t,r){e=super.parseParenItem(e,t,r);if(this.eat(25)){e.optional=true;this.resetEndLocation(e)}if(this.match(22)){const n=this.startNodeAt(t,r);n.expression=e;n.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(n,"TypeCastExpression")}return e}assertModuleNodeAllowed(e){if(e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"){return}super.assertModuleNodeAllowed(e)}parseExport(e){const t=super.parseExport(e);if(t.type==="ExportNamedDeclaration"||t.type==="ExportAllDeclaration"){t.exportKind=t.exportKind||"value"}return t}parseExportDeclaration(e){if(this.isContextual("type")){e.exportKind="type";const t=this.startNode();this.next();if(this.match(13)){e.specifiers=this.parseExportSpecifiers();this.parseExportFrom(e);return null}else{return this.flowParseTypeAlias(t)}}else if(this.isContextual("opaque")){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseOpaqueType(t,false)}else if(this.isContextual("interface")){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseInterface(t)}else if(this.shouldParseEnums()&&this.isContextual("enum")){e.exportKind="value";const t=this.startNode();this.next();return this.flowParseEnumDeclaration(t)}else{return super.parseExportDeclaration(e)}}eatExportStar(e){if(super.eatExportStar(...arguments))return true;if(this.isContextual("type")&&this.lookahead().type===54){e.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(e){const t=this.state.start;const r=super.maybeParseExportNamespaceSpecifier(e);if(r&&e.exportKind==="type"){this.unexpected(t)}return r}parseClassId(e,t,r){super.parseClassId(e,t,r);if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(e,t,r){const n=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(e,t)){return}t.declare=true}super.parseClassMember(e,t,r);if(t.declare){if(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"){this.raise(n,We.DeclareClassElement)}else if(t.value){this.raise(t.value.start,We.DeclareClassFieldInitializer)}}}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1();const t="@@"+e;if(!this.isIterator(e)||!this.state.inType){this.raise(this.state.pos,c.InvalidIdentifier,t)}this.finishToken(5,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===123&&t===124){return this.finishOp(14,2)}else if(this.state.inType&&(e===62||e===60)){return this.finishOp(50,1)}else if(this.state.inType&&e===63){if(t===46){return this.finishOp(26,2)}return this.finishOp(25,1)}else if(isIteratorStart(e,t)){this.state.pos+=2;return this.readIterator()}else{return super.getTokenFromCode(e)}}isAssignable(e,t){if(e.type==="TypeCastExpression"){return this.isAssignable(e.expression,t)}else{return super.isAssignable(e,t)}}toAssignable(e,t=false){if(e.type==="TypeCastExpression"){return super.toAssignable(this.typeCastToParameter(e),t)}else{return super.toAssignable(e,t)}}toAssignableList(e,t,r){for(let t=0;t1||!t)){this.raise(i.typeAnnotation.start,We.TypeCastInPattern)}}return e}parseArrayLike(e,t,r,n){const i=super.parseArrayLike(e,t,r,n);if(t&&!this.state.maybeInArrowParameters){this.toReferencedList(i.elements)}return i}checkLVal(e,...t){if(e.type!=="TypeCastExpression"){return super.checkLVal(e,...t)}}parseClassProperty(e){if(this.match(22)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(this.match(22)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassPrivateProperty(e)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(22)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(22)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,i,a){if(t.variance){this.unexpected(t.variance.start)}delete t.variance;if(this.isRelational("<")){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(e,t,r,n,i,a);if(t.params&&i){const e=t.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(t.start,We.ThisParamBannedInConstructor)}}else if(t.type==="MethodDefinition"&&i&&t.value.params){const e=t.value.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(t.start,We.ThisParamBannedInConstructor)}}}pushClassPrivateMethod(e,t,r,n){if(t.variance){this.unexpected(t.variance.start)}delete t.variance;if(this.isRelational("<")){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&this.isRelational("<")){e.superTypeParameters=this.flowParseTypeParameterInstantiation()}if(this.isContextual("implements")){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(true);if(this.isRelational("<")){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(20))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];if(this.isThisParam(r)&&e.kind==="get"){this.raise(r.start,We.GetterMayNotHaveThisParam)}else if(this.isThisParam(r)){this.raise(r.start,We.SetterMayNotHaveThisParam)}}}parsePropertyName(e,t){const r=this.flowParseVariance();const n=super.parsePropertyName(e,t);e.variance=r;return n}parseObjPropValue(e,t,r,n,i,a,s,o){if(e.variance){this.unexpected(e.variance.start)}delete e.variance;let c;if(this.isRelational("<")&&!s){c=this.flowParseTypeParameterDeclaration();if(!this.match(18))this.unexpected()}super.parseObjPropValue(e,t,r,n,i,a,s,o);if(c){(e.value||e).typeParameters=c}}parseAssignableListItemTypes(e){if(this.eat(25)){if(e.type!=="Identifier"){this.raise(e.start,We.PatternIsOptional)}if(this.isThisParam(e)){this.raise(e.start,We.ThisParamMayNotBeOptional)}e.optional=true}if(this.match(22)){e.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(e)){this.raise(e.start,We.ThisParamAnnotationRequired)}if(this.match(35)&&this.isThisParam(e)){this.raise(e.start,We.ThisParamNoDefault)}this.resetEndLocation(e);return e}parseMaybeDefault(e,t,r){const n=super.parseMaybeDefault(e,t,r);if(n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(e,t),n);if(!i.error)return i.node;const{context:r}=this.state;const a=r[r.length-1];if(a===p.j_oTag){r.length-=2}else if(a===p.j_expr){r.length-=1}}if((r=i)!=null&&r.error||this.isRelational("<")){var a,s;n=n||this.state.clone();let r;const o=this.tryParse(n=>{var i;r=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(r,()=>{const n=super.parseMaybeAssign(e,t);this.resetStartLocationFromNode(n,r);return n});if((i=a.extra)!=null&&i.parenthesized)n();const s=this.maybeUnwrapTypeCastExpression(a);if(s.type!=="ArrowFunctionExpression")n();s.typeParameters=r;this.resetStartLocationFromNode(s,r);return a},n);let c=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted){if(o.node.async){this.raise(r.start,We.UnexpectedTypeParameterBeforeAsyncArrowFunction)}return o.node}c=o.node}if((a=i)!=null&&a.node){this.state=i.failState;return i.node}if(c){this.state=o.failState;return c}if((s=i)!=null&&s.thrown)throw i.error;if(o.thrown)throw o.error;throw this.raise(r.start,We.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(22)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=t;if(this.canInsertSemicolon())this.unexpected();if(!this.match(27))this.unexpected();return r});if(t.thrown)return null;if(t.error)this.state=t.failState;e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(22)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){if(this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1){e.params=t}else{super.setArrowFunctionParameters(e,t)}}checkParams(e,t,r){if(r&&this.state.noArrowParamsConversionAt.indexOf(e.start)!==-1){return}for(let t=0;t0){this.raise(e.params[t].start,We.ThisParamMustBeFirst)}}return super.checkParams(...arguments)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(e,t,r,n){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.indexOf(t)!==-1){this.next();const n=this.startNodeAt(t,r);n.callee=e;n.arguments=this.parseCallExpressionArguments(19,false);e=this.finishNode(n,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.isRelational("<")){const i=this.state.clone();const a=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t,r)||e(),i);if(!a.error&&!a.aborted)return a.node;const s=this.tryParse(()=>super.parseSubscripts(e,t,r,n),i);if(s.node&&!s.error)return s.node;if(a.node){this.state=a.failState;return a.node}if(s.node){this.state=s.failState;return s.node}throw a.error||s.error}return super.parseSubscripts(e,t,r,n)}parseSubscript(e,t,r,n,i){if(this.match(26)&&this.isLookaheadToken_lt()){i.optionalChainMember=true;if(n){i.stop=true;return e}this.next();const a=this.startNodeAt(t,r);a.callee=e;a.typeArguments=this.flowParseTypeParameterInstantiation();this.expect(18);a.arguments=this.parseCallExpressionArguments(19,false);a.optional=true;return this.finishCallExpression(a,true)}else if(!n&&this.shouldParseTypes()&&this.isRelational("<")){const n=this.startNodeAt(t,r);n.callee=e;const a=this.tryParse(()=>{n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(18);n.arguments=this.parseCallExpressionArguments(19,false);if(i.optionalChainMember)n.optional=false;return this.finishCallExpression(n,i.optionalChainMember)});if(a.node){if(a.error)this.state=a.failState;return a.node}}return super.parseSubscript(e,t,r,n,i)}parseNewArguments(e){let t=null;if(this.shouldParseTypes()&&this.isRelational("<")){t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node}e.typeArguments=t;super.parseNewArguments(e)}parseAsyncArrowWithTypeParameters(e,t){const r=this.startNodeAt(e,t);this.parseFunctionParams(r);if(!this.parseArrow(r))return;return this.parseArrowExpression(r,undefined,true)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(17,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);if(this.state.hasFlowComment){this.raise(this.state.pos,We.UnterminatedFlowComment)}return r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){this.unexpected(null,We.NestedFlowComment)}this.hasFlowCommentCompletion();this.state.pos+=this.skipFlowComment();this.state.hasFlowComment=true;return}if(this.state.hasFlowComment){const e=this.input.indexOf("*-/",this.state.pos+=2);if(e===-1){throw this.raise(this.state.pos-2,c.UnterminatedComment)}this.state.pos=e+3;return}return super.skipBlockComment()}skipFlowComment(){const{pos:e}=this.state;let t=2;while([32,9].includes(this.input.charCodeAt(e+t))){t++}const r=this.input.charCodeAt(t+e);const n=this.input.charCodeAt(t+e+1);if(r===58&&n===58){return t+2}if(this.input.slice(t+e,t+e+12)==="flow-include"){return t+12}if(r===58&&n!==58){return t}return false}hasFlowCommentCompletion(){const e=this.input.indexOf("*/",this.state.pos);if(e===-1){throw this.raise(this.state.pos,c.UnterminatedComment)}}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,We.EnumBooleanMemberNotInitialized,r,t)}flowEnumErrorInvalidMemberName(e,{enumName:t,memberName:r}){const n=r[0].toUpperCase()+r.slice(1);this.raise(e,We.EnumInvalidMemberName,r,n,t)}flowEnumErrorDuplicateMemberName(e,{enumName:t,memberName:r}){this.raise(e,We.EnumDuplicateMemberName,r,t)}flowEnumErrorInconsistentMemberValues(e,{enumName:t}){this.raise(e,We.EnumInconsistentMemberValues,t)}flowEnumErrorInvalidExplicitType(e,{enumName:t,suppliedType:r}){return this.raise(e,r===null?We.EnumInvalidExplicitTypeUnknownSupplied:We.EnumInvalidExplicitType,t,r)}flowEnumErrorInvalidMemberInitializer(e,{enumName:t,explicitType:r,memberName:n}){let i=null;switch(r){case"boolean":case"number":case"string":i=We.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":i=We.EnumInvalidMemberInitializerSymbolType;break;default:i=We.EnumInvalidMemberInitializerUnknownType}return this.raise(e,i,t,n,r)}flowEnumErrorNumberMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(e,We.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitailized(e,{enumName:t}){this.raise(e,We.EnumStringMemberInconsistentlyInitailized,t)}flowEnumMemberInit(){const e=this.state.start;const t=()=>this.match(20)||this.match(16);switch(this.state.type){case 0:{const r=this.parseNumericLiteral(this.state.value);if(t()){return{type:"number",pos:r.start,value:r}}return{type:"invalid",pos:e}}case 4:{const r=this.parseStringLiteral(this.state.value);if(t()){return{type:"string",pos:r.start,value:r}}return{type:"invalid",pos:e}}case 84:case 85:{const r=this.parseBooleanLiteral(this.match(84));if(t()){return{type:"boolean",pos:r.start,value:r}}return{type:"invalid",pos:e}}default:return{type:"invalid",pos:e}}}flowEnumMemberRaw(){const e=this.state.start;const t=this.parseIdentifier(true);const r=this.eat(35)?this.flowEnumMemberInit():{type:"none",pos:e};return{id:t,init:r}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;if(n===null){return}if(n!==r){this.flowEnumErrorInvalidMemberInitializer(e,t)}}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set;const n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=false;while(!this.match(16)){if(this.eat(29)){i=true;break}const a=this.startNode();const{id:s,init:o}=this.flowEnumMemberRaw();const c=s.name;if(c===""){continue}if(/^[a-z]/.test(c)){this.flowEnumErrorInvalidMemberName(s.start,{enumName:e,memberName:c})}if(r.has(c)){this.flowEnumErrorDuplicateMemberName(s.start,{enumName:e,memberName:c})}r.add(c);const u={enumName:e,explicitType:t,memberName:c};a.id=s;switch(o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"boolean");a.init=o.value;n.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"number");a.init=o.value;n.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.pos,u,"string");a.init=o.value;n.stringMembers.push(this.finishNode(a,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(o.pos,u)}case"none":{switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,u);break;default:n.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}}if(!this.match(16)){this.expect(20)}}return{members:n,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:r}){if(e.length===0){return t}else if(t.length===0){return e}else if(t.length>e.length){for(const t of e){this.flowEnumErrorStringMemberInconsistentlyInitailized(t.start,{enumName:r})}return t}else{for(const e of t){this.flowEnumErrorStringMemberInconsistentlyInitailized(e.start,{enumName:r})}return e}}flowEnumParseExplicitType({enumName:e}){if(this.eatContextual("of")){if(!this.match(5)){throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:null})}const{value:t}=this.state;this.next();if(t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"){this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:e,suppliedType:t})}return t}return null}flowEnumBody(e,{enumName:t,nameLoc:r}){const n=this.flowEnumParseExplicitType({enumName:t});this.expect(13);const{members:i,hasUnknownMembers:a}=this.flowEnumMembers({enumName:t,explicitType:n});e.hasUnknownMembers=a;switch(n){case"boolean":e.explicitType=true;e.members=i.booleanMembers;this.expect(16);return this.finishNode(e,"EnumBooleanBody");case"number":e.explicitType=true;e.members=i.numberMembers;this.expect(16);return this.finishNode(e,"EnumNumberBody");case"string":e.explicitType=true;e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:t});this.expect(16);return this.finishNode(e,"EnumStringBody");case"symbol":e.members=i.defaultedMembers;this.expect(16);return this.finishNode(e,"EnumSymbolBody");default:{const n=()=>{e.members=[];this.expect(16);return this.finishNode(e,"EnumStringBody")};e.explicitType=false;const a=i.booleanMembers.length;const s=i.numberMembers.length;const o=i.stringMembers.length;const c=i.defaultedMembers.length;if(!a&&!s&&!o&&!c){return n()}else if(!a&&!s){e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:t});this.expect(16);return this.finishNode(e,"EnumStringBody")}else if(!s&&!o&&a>=c){for(const e of i.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name})}e.members=i.booleanMembers;this.expect(16);return this.finishNode(e,"EnumBooleanBody")}else if(!a&&!o&&s>=c){for(const e of i.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(e.start,{enumName:t,memberName:e.id.name})}e.members=i.numberMembers;this.expect(16);return this.finishNode(e,"EnumNumberBody")}else{this.flowEnumErrorInconsistentMemberValues(r,{enumName:t});return n()}}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();e.id=t;e.body=this.flowEnumBody(this.startNode(),{enumName:t.name,nameLoc:t.start});return this.finishNode(e,"EnumDeclaration")}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return false}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}});const He={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:"♦"};const qe=/^[\da-fA-F]+$/;const $e=/^\d+$/;const Ye=makeErrorTemplates({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>.",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",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 <>...?"},o.SyntaxError,"jsx");p.j_oTag=new TokContext("...",true);function isFragment(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}function getQualifiedJSXName(e){if(e.type==="JSXIdentifier"){return e.name}if(e.type==="JSXNamespacedName"){return e.namespace.name+":"+e.name.name}if(e.type==="JSXMemberExpression"){return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property)}throw new Error("Node had unexpected type: "+e.type)}var Xe=e=>(class extends e{jsxReadToken(){let e="";let t=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(this.state.start,Ye.UnterminatedJsxContent)}const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){if(r===60&&this.state.exprAllowed){++this.state.pos;return this.finishToken(94)}return super.getTokenFromCode(r)}e+=this.input.slice(t,this.state.pos);return this.finishToken(93,e);case 38:e+=this.input.slice(t,this.state.pos);e+=this.jsxReadEntity();t=this.state.pos;break;case 62:case 125:default:if(isNewLine(r)){e+=this.input.slice(t,this.state.pos);e+=this.jsxReadNewLine(true);t=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;++this.state.pos;if(t===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;r=e?"\n":"\r\n"}else{r=String.fromCharCode(t)}++this.state.curLine;this.state.lineStart=this.state.pos;return r}jsxReadString(e){let t="";let r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(this.state.start,c.UnterminatedString)}const n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(n===38){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadEntity();r=this.state.pos}else if(isNewLine(n)){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadNewLine(false);r=this.state.pos}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);return this.finishToken(4,t)}jsxReadEntity(){let e="";let t=0;let r;let n=this.input[this.state.pos];const i=++this.state.pos;while(this.state.pos(class extends e{getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return this.match(5)}tsTokenCanFollowModifier(){return(this.match(8)||this.match(13)||this.match(54)||this.match(29)||this.match(6)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){this.next();return this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!this.match(5)){return undefined}const r=this.state.value;if(e.indexOf(r)!==-1){if(t&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return r}}return undefined}tsParseModifiers(e,t,r,n,i){const a=(t,r,n,i)=>{if(r===n&&e[i]){this.raise(t,Qe.InvalidModifiersOrder,n,i)}};const s=(t,r,n,i)=>{if(e[n]&&r===i||e[i]&&r===n){this.raise(t,Qe.IncompatibleModifiers,n,i)}};for(;;){const o=this.state.start;const c=this.tsParseModifier(t.concat(r!=null?r:[]),i);if(!c)break;if(tsIsAccessModifier(c)){if(e.accessibility){this.raise(o,Qe.DuplicateAccessibilityModifier)}else{a(o,c,c,"override");a(o,c,c,"static");a(o,c,c,"readonly");e.accessibility=c}}else{if(Object.hasOwnProperty.call(e,c)){this.raise(o,Qe.DuplicateModifier,c)}else{a(o,c,"static","readonly");a(o,c,"static","override");a(o,c,"override","readonly");a(o,c,"abstract","override");s(o,c,"declare","override");s(o,c,"static","abstract")}e[c]=true}if(r!=null&&r.includes(c)){this.raise(o,n,c)}}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(16);case"HeritageClauseElement":return this.match(13);case"TupleElementTypes":return this.match(11);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(e,t){const r=[];while(!this.tsIsListTerminator(e)){r.push(t())}return r}tsParseDelimitedList(e,t){return nonNull(this.tsParseDelimitedListWorker(e,t,true))}tsParseDelimitedListWorker(e,t,r){const n=[];for(;;){if(this.tsIsListTerminator(e)){break}const i=t();if(i==null){return undefined}n.push(i);if(this.eat(20)){continue}if(this.tsIsListTerminator(e)){break}if(r){this.expect(20)}return undefined}return n}tsParseBracketedList(e,t,r,n){if(!n){if(r){this.expect(8)}else{this.expectRelational("<")}}const i=this.tsParseDelimitedList(e,t);if(r){this.expect(11)}else{this.expectRelational(">")}return i}tsParseImportType(){const e=this.startNode();this.expect(82);this.expect(18);if(!this.match(4)){this.raise(this.state.start,Qe.UnsupportedImportTypeArgument)}e.argument=this.parseExprAtom();this.expect(19);if(this.eat(24)){e.qualifier=this.tsParseEntityName(true)}if(this.isRelational("<")){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t=this.parseIdentifier();while(this.eat(24)){const r=this.startNodeAtNode(t);r.left=t;r.right=this.parseIdentifier(e);t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();e.typeName=this.tsParseEntityName(false);if(!this.hasPrecedingLineBreak()&&this.isRelational("<")){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);t.parameterName=e;t.typeAnnotation=this.tsParseTypeAnnotation(false);t.asserts=false;return this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();this.next();return this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();this.expect(86);if(this.match(82)){e.exprName=this.tsParseImportType()}else{e.exprName=this.tsParseEntityName(true)}return this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(){const e=this.startNode();e.name=this.tsParseTypeParameterName();e.constraint=this.tsEatThenParseType(80);e.default=this.tsEatThenParseType(35);return this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<")){return this.tsParseTypeParameters()}}tsParseTypeParameters(){const e=this.startNode();if(this.isRelational("<")||this.match(94)){this.next()}else{this.unexpected()}e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),false,true);if(e.params.length===0){this.raise(e.start,Qe.EmptyTypeParameters)}return this.finishNode(e,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){if(this.lookahead().type===74){this.next();return this.tsParseTypeReference()}return null}tsFillSignature(e,t){const r=e===27;t.typeParameters=this.tsTryParseTypeParameters();this.expect(18);t.parameters=this.tsParseBindingListForSignature();if(r){t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e)}else if(this.match(e)){t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e)}}tsParseBindingListForSignature(){return this.parseBindingList(19,41).map(e=>{if(e.type!=="Identifier"&&e.type!=="RestElement"&&e.type!=="ObjectPattern"&&e.type!=="ArrayPattern"){this.raise(e.start,Qe.UnsupportedSignatureParameterKind,e.type)}return e})}tsParseTypeMemberSemicolon(){if(!this.eat(20)&&!this.isLineTerminator()){this.expect(21)}}tsParseSignatureMember(e,t){this.tsFillSignature(22,t);this.tsParseTypeMemberSemicolon();return this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){this.next();return this.eat(5)&&this.match(22)}tsTryParseIndexSignature(e){if(!(this.match(8)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return undefined}this.expect(8);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(t);this.expect(11);e.parameters=[t];const r=this.tsTryParseTypeAnnotation();if(r)e.typeAnnotation=r;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(25))e.optional=true;const r=e;if(this.match(18)||this.isRelational("<")){if(t){this.raise(e.start,Qe.ReadonlyForMethodSignature)}const n=r;if(n.kind&&this.isRelational("<")){this.raise(this.state.pos,Qe.AccesorCannotHaveTypeParameters)}this.tsFillSignature(22,n);this.tsParseTypeMemberSemicolon();if(n.kind==="get"){if(n.parameters.length>0){this.raise(this.state.pos,c.BadGetterArity);if(this.isThisParam(n.parameters[0])){this.raise(this.state.pos,Qe.AccesorCannotDeclareThisParameter)}}}else if(n.kind==="set"){if(n.parameters.length!==1){this.raise(this.state.pos,c.BadSetterArity)}else{const e=n.parameters[0];if(this.isThisParam(e)){this.raise(this.state.pos,Qe.AccesorCannotDeclareThisParameter)}if(e.type==="Identifier"&&e.optional){this.raise(this.state.pos,Qe.SetAccesorCannotHaveOptionalParameter)}if(e.type==="RestElement"){this.raise(this.state.pos,Qe.SetAccesorCannotHaveRestParameter)}}if(n.typeAnnotation){this.raise(n.typeAnnotation.start,Qe.SetAccesorCannotHaveReturnType)}}else{n.kind="method"}return this.finishNode(n,"TSMethodSignature")}else{const e=r;if(t)e.readonly=true;const n=this.tsTryParseTypeAnnotation();if(n)e.typeAnnotation=n;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(18)||this.isRelational("<")){return this.tsParseSignatureMember("TSCallSignatureDeclaration",e)}if(this.match(76)){const t=this.startNode();this.next();if(this.match(18)||this.isRelational("<")){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",e)}else{e.key=this.createIdentifier(t,"new");return this.tsParsePropertyOrMethodSignature(e,false)}}this.tsParseModifiers(e,["readonly"],["declare","abstract","private","protected","public","static","override"],Qe.InvalidModifierOnTypeMember);const t=this.tsTryParseIndexSignature(e);if(t){return t}this.parsePropertyName(e,false);if(!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()){e.kind=e.key.name;this.parsePropertyName(e,false)}return this.tsParsePropertyOrMethodSignature(e,!!e.readonly)}tsParseTypeLiteral(){const e=this.startNode();e.members=this.tsParseObjectTypeMembers();return this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(13);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(16);return e}tsIsStartOfMappedType(){this.next();if(this.eat(52)){return this.isContextual("readonly")}if(this.isContextual("readonly")){this.next()}if(!this.match(8)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(57)}tsParseMappedTypeParameter(){const e=this.startNode();e.name=this.tsParseTypeParameterName();e.constraint=this.tsExpectThenParseType(57);return this.finishNode(e,"TSTypeParameter")}tsParseMappedType(){const e=this.startNode();this.expect(13);if(this.match(52)){e.readonly=this.state.value;this.next();this.expectContextual("readonly")}else if(this.eatContextual("readonly")){e.readonly=true}this.expect(8);e.typeParameter=this.tsParseMappedTypeParameter();e.nameType=this.eatContextual("as")?this.tsParseType():null;this.expect(11);if(this.match(52)){e.optional=this.state.value;this.next();this.expect(25)}else if(this.eat(25)){e.optional=true}e.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(16);return this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let t=false;let r=null;e.elementTypes.forEach(e=>{var n;let{type:i}=e;if(t&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&e.optional)){this.raise(e.start,Qe.OptionalTypeBeforeRequired)}t=t||i==="TSNamedTupleMember"&&e.optional||i==="TSOptionalType";if(i==="TSRestType"){e=e.typeAnnotation;i=e.type}const a=i==="TSNamedTupleMember";r=(n=r)!=null?n:a;if(r!==a){this.raise(e.start,Qe.MixedLabeledAndUnlabeledElements)}});return this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const{start:e,startLoc:t}=this.state;const r=this.eat(29);let n=this.tsParseType();const i=this.eat(25);const a=this.eat(22);if(a){const e=this.startNodeAtNode(n);e.optional=i;if(n.type==="TSTypeReference"&&!n.typeParameters&&n.typeName.type==="Identifier"){e.label=n.typeName}else{this.raise(n.start,Qe.InvalidTupleMemberLabel);e.label=n}e.elementType=this.tsParseType();n=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAtNode(n);e.typeAnnotation=n;n=this.finishNode(e,"TSOptionalType")}if(r){const r=this.startNodeAt(e,t);r.typeAnnotation=n;n=this.finishNode(r,"TSRestType")}return n}tsParseParenthesizedType(){const e=this.startNode();this.expect(18);e.typeAnnotation=this.tsParseType();this.expect(19);return this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();if(e==="TSConstructorType"){r.abstract=!!t;if(t)this.next();this.next()}this.tsFillSignature(27,r);return this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();e.literal=(()=>{switch(this.state.type){case 0:case 1:case 4:case 84:case 85:return this.parseExprAtom();default:throw this.unexpected()}})();return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();e.literal=this.parseTemplate(false);return this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(e)}else{return e}}tsParseNonArrayType(){switch(this.state.type){case 5:case 87:case 83:{const e=this.match(87)?"TSVoidKeyword":this.match(83)?"TSNullKeyword":keywordTypeFromName(this.state.value);if(e!==undefined&&this.lookaheadCharCode()!==46){const t=this.startNode();this.next();return this.finishNode(t,e)}return this.tsParseTypeReference()}case 4:case 0:case 1:case 84:case 85:return this.tsParseLiteralTypeNode();case 52:if(this.state.value==="-"){const e=this.startNode();const t=this.lookahead();if(t.type!==0&&t.type!==1){throw this.unexpected()}e.literal=this.parseMaybeUnary();return this.finishNode(e,"TSLiteralType")}break;case 77:return this.tsParseThisTypeOrThisTypePredicate();case 86:return this.tsParseTypeQuery();case 82:return this.tsParseImportType();case 13:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 8:return this.tsParseTupleType();case 18:return this.tsParseParenthesizedType();case 30:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(8)){if(this.match(11)){const t=this.startNodeAtNode(e);t.elementType=e;this.expect(11);e=this.finishNode(t,"TSArrayType")}else{const t=this.startNodeAtNode(e);t.objectType=e;t.indexType=this.tsParseType();this.expect(11);e=this.finishNode(t,"TSIndexedAccessType")}}return e}tsParseTypeOperator(e){const t=this.startNode();this.expectContextual(e);t.operator=e;t.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(e==="readonly"){this.tsCheckTypeAnnotationForReadOnly(t)}return this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,Qe.UnexpectedReadonly)}}tsParseInferType(){const e=this.startNode();this.expectContextual("infer");const t=this.startNode();t.name=this.tsParseTypeParameterName();e.typeParameter=this.finishNode(t,"TSTypeParameter");return this.finishNode(e,"TSInferType")}tsParseTypeOperatorOrHigher(){const e=["keyof","unique","readonly"].find(e=>this.isContextual(e));return e?this.tsParseTypeOperator(e):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(e,t,r){const n=this.startNode();const i=this.eat(r);const a=[];do{a.push(t())}while(this.eat(r));if(a.length===1&&!i){return a[0]}n.types=a;return this.finishNode(n,e)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),48)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),46)}tsIsStartOfFunctionType(){if(this.isRelational("<")){return true}return this.match(18)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(5)||this.match(77)){this.next();return true}if(this.match(13)){let e=1;this.next();while(e>0){if(this.match(13)){++e}else if(this.match(16)){--e}this.next()}return true}if(this.match(8)){let e=1;this.next();while(e>0){if(this.match(8)){++e}else if(this.match(11)){--e}this.next()}return true}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(19)||this.match(29)){return true}if(this.tsSkipParameterStart()){if(this.match(22)||this.match(20)||this.match(25)||this.match(35)){return true}if(this.match(19)){this.next();if(this.match(27)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const r=this.startNode();const n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(77)){let e=this.tsParseThisTypeOrThisTypePredicate();if(e.type==="TSThisType"){r.parameterName=e;r.asserts=true;r.typeAnnotation=null;e=this.finishNode(r,"TSTypePredicate")}else{this.resetStartLocationFromNode(e,r);e.asserts=true}t.typeAnnotation=e;return this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i){if(!n){return this.tsParseTypeAnnotation(false,t)}r.parameterName=this.parseIdentifier();r.asserts=n;r.typeAnnotation=null;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}const a=this.tsParseTypeAnnotation(false);r.parameterName=i;r.typeAnnotation=a;r.asserts=n;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(22)?this.tsParseTypeOrTypePredicateAnnotation(22):undefined}tsTryParseTypeAnnotation(){return this.match(22)?this.tsParseTypeAnnotation():undefined}tsTryParseType(){return this.tsEatThenParseType(22)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak()){this.next();return e}}tsParseTypePredicateAsserts(){if(!this.match(5)||this.state.value!=="asserts"){return false}const e=this.state.containsEsc;this.next();if(!this.match(5)&&!this.match(77)){return false}if(e){this.raise(this.state.lastTokStart,c.InvalidEscapedReservedWord,"asserts")}return true}tsParseTypeAnnotation(e=true,t=this.startNode()){this.tsInType(()=>{if(e)this.expect(22);t.typeAnnotation=this.tsParseType()});return this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(80)){return e}const t=this.startNodeAtNode(e);t.checkType=e;t.extendsType=this.tsParseNonConditionalType();this.expect(25);t.trueType=this.tsParseType();this.expect(22);t.falseType=this.tsParseType();return this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual("abstract")&&this.lookahead().type===76}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(76)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const e=this.startNode();const t=this.tsTryNextParseConstantContext();e.typeAnnotation=t||this.tsNextThenParseType();this.expectRelational(">");e.expression=this.parseMaybeUnary();return this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.start;const r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));if(!r.length){this.raise(t,Qe.EmptyHeritageClauseType,e)}return r}tsParseExpressionWithTypeArguments(){const e=this.startNode();e.expression=this.tsParseEntityName(false);if(this.isRelational("<")){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(e){if(this.match(5)){e.id=this.parseIdentifier();this.checkLVal(e.id,"typescript interface declaration",le)}else{e.id=null;this.raise(this.state.start,Qe.MissingInterfaceName)}e.typeParameters=this.tsTryParseTypeParameters();if(this.eat(80)){e.extends=this.tsParseHeritageClause("extends")}const t=this.startNode();t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));e.body=this.finishNode(t,"TSInterfaceBody");return this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){e.id=this.parseIdentifier();this.checkLVal(e.id,"typescript type alias",pe);e.typeParameters=this.tsTryParseTypeParameters();e.typeAnnotation=this.tsInType(()=>{this.expect(35);if(this.isContextual("intrinsic")&&this.lookahead().type!==24){const e=this.startNode();this.next();return this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()});this.semicolon();return this.finishNode(e,"TSTypeAliasDeclaration")}tsInNoContext(e){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){const t=this.state.inType;this.state.inType=true;try{return e()}finally{this.state.inType=t}}tsEatThenParseType(e){return!this.match(e)?undefined:this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsDoThenParseType(()=>this.expect(e))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(e){return this.tsInType(()=>{e();return this.tsParseType()})}tsParseEnumMember(){const e=this.startNode();e.id=this.match(4)?this.parseExprAtom():this.parseIdentifier(true);if(this.eat(35)){e.initializer=this.parseMaybeAssignAllowIn()}return this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t){if(t)e.const=true;e.id=this.parseIdentifier();this.checkLVal(e.id,"typescript enum declaration",t?_e:de);this.expect(13);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(16);return this.finishNode(e,"TSEnumDeclaration")}tsParseModuleBlock(){const e=this.startNode();this.scope.enter(B);this.expect(13);this.parseBlockOrModuleBlockBody(e.body=[],undefined,true,16);this.scope.exit();return this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=false){e.id=this.parseIdentifier();if(!t){this.checkLVal(e.id,"module or namespace declaration",he)}if(this.eat(24)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,true);e.body=t}else{this.scope.enter(H);this.prodParam.enter(Me);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){if(this.isContextual("global")){e.global=true;e.id=this.parseIdentifier()}else if(this.match(4)){e.id=this.parseExprAtom()}else{this.unexpected()}if(this.match(13)){this.scope.enter(H);this.prodParam.enter(Me);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.isExport=t||false;e.id=this.parseIdentifier();this.checkLVal(e.id,"import equals declaration",oe);this.expect(35);const r=this.tsParseModuleReference();if(e.importKind==="type"&&r.type!=="TSExternalModuleReference"){this.raise(r.start,Qe.ImportAliasHasImportType)}e.moduleReference=r;this.semicolon();return this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(false)}tsParseExternalModuleReference(){const e=this.startNode();this.expectContextual("require");this.expect(18);if(!this.match(4)){throw this.unexpected()}e.expression=this.parseExprAtom();this.expect(19);return this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone();const r=e();this.state=t;return r}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(t.aborted||!t.node)return undefined;if(t.error)this.state=t.failState;return t.node}tsTryParse(e){const t=this.state.clone();const r=e();if(r!==undefined&&r!==false){return r}else{this.state=t;return undefined}}tsTryParseDeclare(e){if(this.isLineTerminator()){return}let t=this.state.type;let r;if(this.isContextual("let")){t=73;r="let"}return this.tsInAmbientContext(()=>{switch(t){case 67:e.declare=true;return this.parseFunctionStatement(e,false,true);case 79:e.declare=true;return this.parseClass(e,true,false);case 74:if(this.match(74)&&this.isLookaheadContextual("enum")){this.expect(74);this.expectContextual("enum");return this.tsParseEnumDeclaration(e,true)}case 73:r=r||this.state.value;return this.parseVarStatement(e,r);case 5:{const t=this.state.value;if(t==="global"){return this.tsParseAmbientExternalModuleDeclaration(e)}else{return this.tsParseDeclaration(e,t,true)}}}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true)}tsParseExpressionStatement(e,t){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t){t.declare=true;return t}break}case"global":if(this.match(13)){this.scope.enter(H);this.prodParam.enter(Me);const r=e;r.global=true;r.id=t;r.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,false)}}tsParseDeclaration(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(79)||this.match(5))){return this.tsParseAbstractDeclaration(e)}break;case"enum":if(r||this.match(5)){if(r)this.next();return this.tsParseEnumDeclaration(e,false)}break;case"interface":if(this.tsCheckLineTerminator(r)&&this.match(5)){return this.tsParseInterfaceDeclaration(e)}break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(4)){return this.tsParseAmbientExternalModuleDeclaration(e)}else if(this.match(5)){return this.tsParseModuleOrNamespaceDeclaration(e)}}break;case"namespace":if(this.tsCheckLineTerminator(r)&&this.match(5)){return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"type":if(this.tsCheckLineTerminator(r)&&this.match(5)){return this.tsParseTypeAliasDeclaration(e)}break}}tsCheckLineTerminator(e){if(e){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e,t){if(!this.isRelational("<")){return undefined}const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const n=this.tsTryParseAndCatch(()=>{const r=this.startNodeAt(e,t);r.typeParameters=this.tsParseTypeParameters();super.parseFunctionParams(r);r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(27);return r});this.state.maybeInArrowParameters=r;if(!n){return undefined}return this.parseArrowExpression(n,null,true)}tsParseTypeArguments(){const e=this.startNode();e.params=this.tsInType(()=>this.tsInNoContext(()=>{this.expectRelational("<");return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}));if(e.params.length===0){this.raise(e.start,Qe.EmptyTypeArguments)}this.expectRelational(">");return this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(5)){switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return true}}return false}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){const r=this.state.start;const n=this.state.startLoc;let i;let a=false;let s=false;if(e!==undefined){const t={};this.tsParseModifiers(t,["public","private","protected","override","readonly"]);i=t.accessibility;s=t.override;a=t.readonly;if(e===false&&(i||a||s)){this.raise(r,Qe.UnexpectedParameterModifier)}}const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const c=this.parseMaybeDefault(o.start,o.loc.start,o);if(i||a||s){const e=this.startNodeAt(r,n);if(t.length){e.decorators=t}if(i)e.accessibility=i;if(a)e.readonly=a;if(s)e.override=s;if(c.type!=="Identifier"&&c.type!=="AssignmentPattern"){this.raise(e.start,Qe.UnsupportedParameterPropertyKind)}e.parameter=c;return this.finishNode(e,"TSParameterProperty")}if(t.length){o.decorators=t}return c}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(22)){e.returnType=this.tsParseTypeOrTypePredicateAnnotation(22)}const n=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"?"TSDeclareMethod":undefined;if(n&&!this.match(13)&&this.isLineTerminator()){this.finishNode(e,n);return}if(n==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(e.start,Qe.DeclareFunctionHasImplementation);if(e.declare){super.parseFunctionBodyAndFinish(e,n,r);return}}super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){if(!e.body&&e.id){this.checkLVal(e.id,"function name",fe)}else{super.registerFunctionStatementId(...arguments)}}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{if((e==null?void 0:e.type)==="TSTypeCastExpression"){this.raise(e.typeAnnotation.start,Qe.UnexpectedTypeAnnotation)}})}toReferencedList(e,t){this.tsCheckForInvalidTypeCasts(e);return e}parseArrayLike(...e){const t=super.parseArrayLike(...e);if(t.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(t.elements)}return t}parseSubscript(e,t,r,n,i){if(!this.hasPrecedingLineBreak()&&this.match(40)){this.state.exprAllowed=false;this.next();const n=this.startNodeAt(t,r);n.expression=e;return this.finishNode(n,"TSNonNullExpression")}let a=false;if(this.match(26)&&this.lookaheadCharCode()===60){if(n){i.stop=true;return e}i.optionalChainMember=a=true;this.next()}if(this.isRelational("<")){let s;const o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t,r);if(e){return e}}const o=this.startNodeAt(t,r);o.callee=e;const c=this.tsParseTypeArguments();if(c){if(a&&!this.match(18)){s=this.state.pos;this.unexpected()}if(!n&&this.eat(18)){o.arguments=this.parseCallExpressionArguments(19,false);this.tsCheckForInvalidTypeCasts(o.arguments);o.typeParameters=c;if(i.optionalChainMember){o.optional=a}return this.finishCallExpression(o,i.optionalChainMember)}else if(this.match(30)){const n=this.parseTaggedTemplateExpression(e,t,r,i);n.typeParameters=c;return n}}this.unexpected()});if(s){this.unexpected(s,18)}if(o)return o}return super.parseSubscript(e,t,r,n,i)}parseNewArguments(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch(()=>{const e=this.tsParseTypeArguments();if(!this.match(18))this.unexpected();return e});if(t){e.typeParameters=t}}super.parseNewArguments(e)}parseExprOp(e,t,r,n){if(tokenOperatorPrecedence(57)>n&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const i=this.startNodeAt(t,r);i.expression=e;const a=this.tsTryNextParseConstantContext();if(a){i.typeAnnotation=a}else{i.typeAnnotation=this.tsNextThenParseType()}this.finishNode(i,"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(i,t,r,n)}return super.parseExprOp(e,t,r,n)}checkReservedWord(e,t,r,n){}checkDuplicateExports(){}parseImport(e){e.importKind="value";if(this.match(5)||this.match(54)||this.match(13)){let t=this.lookahead();if(this.isContextual("type")&&t.type!==20&&!(t.type===5&&t.value==="from")&&t.type!==35){e.importKind="type";this.next();t=this.lookahead()}if(this.match(5)&&t.type===35){return this.tsParseImportEqualsDeclaration(e)}}const t=super.parseImport(e);if(t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(t.start,Qe.TypeImportCannotSpecifyDefaultAndNamed)}return t}parseExport(e){if(this.match(82)){this.next();if(this.isContextual("type")&&this.lookaheadCharCode()!==61){e.importKind="type";this.next()}else{e.importKind="value"}return this.tsParseImportEqualsDeclaration(e,true)}else if(this.eat(35)){const t=e;t.expression=this.parseExpression();this.semicolon();return this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual("as")){const t=e;this.expectContextual("namespace");t.id=this.parseIdentifier();this.semicolon();return this.finishNode(t,"TSNamespaceExportDeclaration")}else{if(this.isContextual("type")&&this.lookahead().type===13){this.next();e.exportKind="type"}else{e.exportKind="value"}return super.parseExport(e)}}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===79}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();this.next();e.abstract=true;this.parseClass(e,true,true);return e}if(this.state.value==="interface"){const e=this.startNode();this.next();const t=this.tsParseInterfaceDeclaration(e);if(t)return t}return super.parseExportDefaultExpression()}parseStatementContent(e,t){if(this.state.type===74){const e=this.lookahead();if(e.type===5&&e.value==="enum"){const e=this.startNode();this.expect(74);this.expectContextual("enum");return this.tsParseEnumDeclaration(e,true)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>{if(tsIsAccessModifier(t)){return e.accessibility===t}return!!e[t]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}parseClassMember(e,t,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers(t,n,undefined,undefined,true);const i=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(t,n)){this.raise(this.state.pos,Qe.StaticBlockCannotHaveModifier)}this.parseClassStaticBlock(e,t)}else{this.parseClassMemberWithIsStatic(e,t,r,!!t.static)}};if(t.declare){this.tsInAmbientContext(i)}else{i()}}parseClassMemberWithIsStatic(e,t,r,n){const i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i);if(t.abstract){this.raise(t.start,Qe.IndexSignatureHasAbstract)}if(t.accessibility){this.raise(t.start,Qe.IndexSignatureHasAccessibility,t.accessibility)}if(t.declare){this.raise(t.start,Qe.IndexSignatureHasDeclare)}if(t.override){this.raise(t.start,Qe.IndexSignatureHasOverride)}return}if(!this.state.inAbstractClass&&t.abstract){this.raise(t.start,Qe.NonAbstractClassHasAbstractMethod)}if(t.override){if(!r.hadSuperClass){this.raise(t.start,Qe.OverrideNotInSubClass)}}super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){const t=this.eat(25);if(t)e.optional=true;if(e.readonly&&this.match(18)){this.raise(e.start,Qe.ClassMethodHasReadonly)}if(e.declare&&this.match(18)){this.raise(e.start,Qe.ClassMethodHasDeclare)}}parseExpressionStatement(e,t){const r=t.type==="Identifier"?this.tsParseExpressionStatement(e,t):undefined;return r||super.parseExpressionStatement(e,t)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(e,t,r,n){if(!this.state.maybeInArrowParameters||!this.match(25)){return super.parseConditional(e,t,r,n)}const i=this.tryParse(()=>super.parseConditional(e,t,r));if(!i.node){if(i.error){super.setOptionalParametersError(n,i.error)}return e}if(i.error)this.state=i.failState;return i.node}parseParenItem(e,t,r){e=super.parseParenItem(e,t,r);if(this.eat(25)){e.optional=true;this.resetEndLocation(e)}if(this.match(22)){const n=this.startNodeAt(t,r);n.expression=e;n.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){const t=this.state.start;const r=this.state.startLoc;const n=this.eatContextual("declare");if(n&&(this.isContextual("declare")||!this.shouldParseExportDeclaration())){throw this.raise(this.state.start,Qe.ExpectedAmbientAfterExportDeclare)}let i;if(this.match(5)){i=this.tsTryParseExportDeclaration()}if(!i){i=super.parseExportDeclaration(e)}if(i&&(i.type==="TSInterfaceDeclaration"||i.type==="TSTypeAliasDeclaration"||n)){e.exportKind="type"}if(i&&n){this.resetStartLocation(i,t,r);i.declare=true}return i}parseClassId(e,t,r){if((!t||r)&&this.isContextual("implements")){return}super.parseClassId(e,t,r,e.declare?fe:se);const n=this.tsTryParseTypeParameters();if(n)e.typeParameters=n}parseClassPropertyAnnotation(e){if(!e.optional&&this.eat(40)){e.definite=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t}parseClassProperty(e){this.parseClassPropertyAnnotation(e);if(this.state.isAmbientContext&&this.match(35)){this.raise(this.state.start,Qe.DeclareClassFieldHasInitializer)}if(e.abstract&&this.match(35)){const{key:t}=e;this.raise(this.state.start,Qe.AbstractPropertyHasInitializer,t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(t.start,t.end)}]`)}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(e.abstract){this.raise(e.start,Qe.PrivateElementHasAbstract)}if(e.accessibility){this.raise(e.start,Qe.PrivateElementHasAccessibility,e.accessibility)}this.parseClassPropertyAnnotation(e);return super.parseClassPrivateProperty(e)}pushClassMethod(e,t,r,n,i,a){const s=this.tsTryParseTypeParameters();if(s&&i){this.raise(s.start,Qe.ConstructorHasTypeParameters)}if(t.declare&&(t.kind==="get"||t.kind==="set")){this.raise(t.start,Qe.DeclareAccessor,t.kind)}if(s)t.typeParameters=s;super.pushClassMethod(e,t,r,n,i,a)}pushClassPrivateMethod(e,t,r,n){const i=this.tsTryParseTypeParameters();if(i)t.typeParameters=i;super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&this.isRelational("<")){e.superTypeParameters=this.tsParseTypeArguments()}if(this.eatContextual("implements")){e.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(e,...t){const r=this.tsTryParseTypeParameters();if(r)e.typeParameters=r;super.parseObjPropValue(e,...t)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters();if(r)e.typeParameters=r;super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(e.id.type==="Identifier"&&this.eat(40)){e.definite=true}const r=this.tsTryParseTypeAnnotation();if(r){e.id.typeAnnotation=r;this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(22)){e.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(...e){var t,r,n,i,a,s,o;let c;let u;let l;if(this.hasPlugin("jsx")&&(this.match(94)||this.isRelational("<"))){c=this.state.clone();u=this.tryParse(()=>super.parseMaybeAssign(...e),c);if(!u.error)return u.node;const{context:t}=this.state;if(t[t.length-1]===p.j_oTag){t.length-=2}else if(t[t.length-1]===p.j_expr){t.length-=1}}if(!((t=u)!=null&&t.error)&&!this.isRelational("<")){return super.parseMaybeAssign(...e)}let d;c=c||this.state.clone();const f=this.tryParse(t=>{var r,n;d=this.tsParseTypeParameters();const i=super.parseMaybeAssign(...e);if(i.type!=="ArrowFunctionExpression"||(r=i.extra)!=null&&r.parenthesized){t()}if(((n=d)==null?void 0:n.params.length)!==0){this.resetStartLocationFromNode(i,d)}i.typeParameters=d;return i},c);if(!f.error&&!f.aborted)return f.node;if(!u){assert(!this.hasPlugin("jsx"));l=this.tryParse(()=>super.parseMaybeAssign(...e),c);if(!l.error)return l.node}if((r=u)!=null&&r.node){this.state=u.failState;return u.node}if(f.node){this.state=f.failState;return f.node}if((n=l)!=null&&n.node){this.state=l.failState;return l.node}if((i=u)!=null&&i.thrown)throw u.error;if(f.thrown)throw f.error;if((a=l)!=null&&a.thrown)throw l.error;throw((s=u)==null?void 0:s.error)||f.error||((o=l)==null?void 0:o.error)}parseMaybeUnary(e){if(!this.hasPlugin("jsx")&&this.isRelational("<")){return this.tsParseTypeAssertion()}else{return super.parseMaybeUnary(e)}}parseArrow(e){if(this.match(22)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(22);if(this.canInsertSemicolon()||!this.match(27))e();return t});if(t.aborted)return;if(!t.thrown){if(t.error)this.state=t.failState;e.returnType=t.node}}return super.parseArrow(e)}parseAssignableListItemTypes(e){if(this.eat(25)){if(e.type!=="Identifier"&&!this.state.isAmbientContext&&!this.state.inType){this.raise(e.start,Qe.PatternIsOptional)}e.optional=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t;this.resetEndLocation(e);return e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return true;default:return super.isAssignable(e,t)}}toAssignable(e,t=false){switch(e.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(e),t);case"TSParameterProperty":return super.toAssignable(e,t);case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(e,t);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":e.expression=this.toAssignable(e.expression,t);return e;default:return super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":e.expression=this.toAssignable(e.expression,t);return e;default:return super.toAssignable(e,t)}}checkLVal(e,t,...r){var n;switch(e.type){case"TSTypeCastExpression":return;case"TSParameterProperty":this.checkLVal(e.parameter,"parameter property",...r);return;case"TSAsExpression":case"TSTypeAssertion":if(!r[0]&&t!=="parenthesized expression"&&!((n=e.extra)!=null&&n.parenthesized)){this.raise(e.start,c.InvalidLhs,t);break}this.checkLVal(e.expression,"parenthesized expression",...r);return;case"TSNonNullExpression":this.checkLVal(e.expression,t,...r);return;default:super.checkLVal(e,t,...r);return}}parseBindingAtom(){switch(this.state.type){case 77:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(e){if(this.isRelational("<")){const t=this.tsParseTypeArguments();if(this.match(18)){const r=super.parseMaybeDecoratorArguments(e);r.typeParameters=t;return r}this.unexpected(this.state.start,18)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){if(this.state.isAmbientContext&&this.match(20)&&this.lookaheadCharCode()===e){this.next()}else{super.checkCommaAfterRest(e)}}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(40)||this.match(22)||super.isClassProperty()}parseMaybeDefault(...e){const t=super.parseMaybeDefault(...e);if(t.type==="AssignmentPattern"&&t.typeAnnotation&&t.right.startthis.isAssignable(e,true))}return super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(22)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.isRelational("<")){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArguments());if(t)e.typeParameters=t}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e);const r=this.getObjectOrClassMethodParams(e);const n=r[0];const i=n&&this.isThisParam(n);return i?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam();const t=this.tsTryParseTypeAnnotation();if(t){e.typeAnnotation=t;this.resetEndLocation(e)}return e}tsInAmbientContext(e){const t=this.state.isAmbientContext;this.state.isAmbientContext=true;try{return e()}finally{this.state.isAmbientContext=t}}parseClass(e,...t){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,...t)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e){if(this.match(79)){e.abstract=true;return this.parseClass(e,true,false)}else if(this.isContextual("interface")){if(!this.hasFollowingLineBreak()){e.abstract=true;this.raise(e.start,Qe.NonClassMethodPropertyHasAbstractModifer);this.next();return this.tsParseInterfaceDeclaration(e)}}else{this.unexpected(null,79)}}parseMethod(...e){const t=super.parseMethod(...e);if(t.abstract){const e=this.hasPlugin("estree")?!!t.value.body:!!t.body;if(e){const{key:e}=t;this.raise(t.start,Qe.AbstractMethodHasImplementation,e.type==="Identifier"&&!t.computed?e.name:`[${this.input.slice(e.start,e.end)}]`)}}return t}tsParseTypeParameterName(){const e=this.parseIdentifier();return e.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}});const et=makeErrorTemplates({ClassNameIsRequired:"A class name is required."},o.SyntaxError);var tt=e=>(class extends e{parsePlaceholder(e){if(this.match(96)){const t=this.startNode();this.next();this.assertNoSpace("Unexpected space in placeholder.");t.name=super.parseIdentifier(true);this.assertNoSpace("Unexpected space in placeholder.");this.expect(96);return this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){const r=!!(e.expectedNode&&e.type==="Placeholder");e.expectedNode=t;return r?e:this.finishNode(e,"Placeholder")}getTokenFromCode(e){if(e===37&&this.input.charCodeAt(this.state.pos+1)===37){return this.finishOp(96,2)}return super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(e){if(e!==undefined)super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(e){if(e.type!=="Placeholder")super.checkLVal(...arguments)}toAssignable(e){if(e&&e.type==="Placeholder"&&e.expectedNode==="Expression"){e.expectedNode="Pattern";return e}return super.toAssignable(...arguments)}isLet(e){if(super.isLet(e)){return true}if(!this.isContextual("let")){return false}if(e)return false;const t=this.lookahead();if(t.type===96){return true}return false}verifyBreakContinue(e){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(...arguments)}parseExpressionStatement(e,t){if(t.type!=="Placeholder"||t.extra&&t.extra.parenthesized){return super.parseExpressionStatement(...arguments)}if(this.match(22)){const r=e;r.label=this.finishPlaceholder(t,"Identifier");this.next();r.body=this.parseStatement("label");return this.finishNode(r,"LabeledStatement")}this.semicolon();e.name=t.name;return this.finishPlaceholder(e,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(e,t,r){const n=t?"ClassDeclaration":"ClassExpression";this.next();this.takeDecorators(e);const i=this.state.strict;const a=this.parsePlaceholder("Identifier");if(a){if(this.match(80)||this.match(96)||this.match(13)){e.id=a}else if(r||!t){e.id=null;e.body=this.finishPlaceholder(a,"ClassBody");return this.finishNode(e,n)}else{this.unexpected(null,et.ClassNameIsRequired)}}else{this.parseClassId(e,t,r)}this.parseClassSuper(e);e.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!e.superClass,i);return this.finishNode(e,n)}parseExport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(20)){e.specifiers=[];e.source=null;e.declaration=this.finishPlaceholder(t,"Declaration");return this.finishNode(e,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const r=this.startNode();r.exported=t;e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")];return super.parseExport(e)}isExportDefaultSpecifier(){if(this.match(64)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")){if(this.input.startsWith(tokenLabelName(96),this.nextTokenStartSince(e+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e){if(e.specifiers&&e.specifiers.length>0){return true}return super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(e){const{specifiers:t}=e;if(t!=null&&t.length){e.specifiers=t.filter(e=>e.exported.type==="Placeholder")}super.checkExport(e);e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(...arguments);e.specifiers=[];if(!this.isContextual("from")&&!this.match(20)){e.source=this.finishPlaceholder(t,"StringLiteral");this.semicolon();return this.finishNode(e,"ImportDeclaration")}const r=this.startNodeAtNode(t);r.local=t;this.finishNode(r,"ImportDefaultSpecifier");e.specifiers.push(r);if(this.eat(20)){const t=this.maybeParseStarImportSpecifier(e);if(!t)this.parseNamedImportSpecifiers(e)}this.expectContextual("from");e.source=this.parseImportSource();this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}});var rt=e=>(class extends e{parseV8Intrinsic(){if(this.match(53)){const e=this.state.start;const t=this.startNode();this.eat(53);if(this.match(5)){const e=this.parseIdentifierName(this.state.start);const r=this.createIdentifier(t,e);r.type="V8IntrinsicIdentifier";if(this.match(18)){return r}}this.unexpected(e)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}});function hasPlugin(e,t){return e.some(e=>{if(Array.isArray(e)){return e[0]===t}else{return e===t}})}function getPluginOption(e,t,r){const n=e.find(e=>{if(Array.isArray(e)){return e[0]===t}else{return e===t}});if(n&&Array.isArray(n)){return n[1][r]}return null}const nt=["minimal","fsharp","hack","smart"];const it=["%","#"];const at=["hash","bar"];function validatePlugins(e){if(hasPlugin(e,"decorators")){if(hasPlugin(e,"decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const t=getPluginOption(e,"decorators","decoratorsBeforeExport");if(t==null){throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option,"+" whose value must be a boolean. If you are migrating from"+" Babylon/Babel 6 or want to use the old decorators proposal, you"+" should use the 'decorators-legacy' plugin instead of 'decorators'.")}else if(typeof t!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean.")}}if(hasPlugin(e,"flow")&&hasPlugin(e,"typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(hasPlugin(e,"placeholders")&&hasPlugin(e,"v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(hasPlugin(e,"pipelineOperator")){const t=getPluginOption(e,"pipelineOperator","proposal");if(!nt.includes(t)){const e=nt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const r=hasPlugin(e,"recordAndTuple")&&getPluginOption(e,"recordAndTuple","syntaxType")==="hash";if(t==="hack"){if(hasPlugin(e,"placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(hasPlugin(e,"v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const t=getPluginOption(e,"pipelineOperator","topicToken");if(!it.includes(t)){const e=it.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t==="#"&&r){throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}}else if(t==="smart"&&r){throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}}if(hasPlugin(e,"moduleAttributes")){{if(hasPlugin(e,"importAssertions")){throw new Error("Cannot combine importAssertions and moduleAttributes plugins.")}const t=getPluginOption(e,"moduleAttributes","version");if(t!=="may-2020"){throw new Error("The 'moduleAttributes' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is 'may-2020'.")}}}if(hasPlugin(e,"recordAndTuple")&&!at.includes(getPluginOption(e,"recordAndTuple","syntaxType"))){throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+at.map(e=>`'${e}'`).join(", "))}if(hasPlugin(e,"asyncDoExpressions")&&!hasPlugin(e,"doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");e.missingPlugins="doExpressions";throw e}}const st={estree:l,jsx:Xe,flow:ze,typescript:Ze,v8intrinsic:rt,placeholders:tt};const ot=Object.keys(st);const ct={sourceType:"script",sourceFilename:undefined,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,plugins:[],strictMode:null,ranges:false,tokens:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true};function getOptions(e){const t={};for(const r of Object.keys(ct)){t[r]=e&&e[r]!=null?e[r]:ct[r]}return t}const ut=e=>{return e.type==="ParenthesizedExpression"?ut(e.expression):e};class LValParser extends NodeUtils{toAssignable(e,t=false){var r,n;let i=undefined;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized){i=ut(e);if(t){if(i.type==="Identifier"){this.expressionScope.recordParenthesizedIdentifierError(e.start,c.InvalidParenthesizedAssignment)}else if(i.type!=="MemberExpression"){this.raise(e.start,c.InvalidParenthesizedAssignment)}}else{this.raise(e.start,c.InvalidParenthesizedAssignment)}}switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,i=n-1;r{return e.type!=="ObjectMethod"&&(r===t||e.type!=="SpreadElement")&&this.isAssignable(e)})}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>e===null||this.isAssignable(e));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return false}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e){if((t==null?void 0:t.type)==="ArrayExpression"){this.toReferencedListDeep(t.elements)}}}parseSpread(e,t){const r=this.startNode();this.next();r.argument=this.parseMaybeAssignAllowIn(e,undefined,t);return this.finishNode(r,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 8:{const e=this.startNode();this.next();e.elements=this.parseBindingList(11,93,true);return this.finishNode(e,"ArrayPattern")}case 13:return this.parseObjectLike(16,true)}return this.parseIdentifier()}parseBindingList(e,t,r,n){const i=[];let a=true;while(!this.eat(e)){if(a){a=false}else{this.expect(20)}if(r&&this.match(20)){i.push(null)}else if(this.eat(e)){break}else if(this.match(29)){i.push(this.parseAssignableListItemTypes(this.parseRestBinding()));this.checkCommaAfterRest(t);this.expect(e);break}else{const e=[];if(this.match(32)&&this.hasPlugin("decorators")){this.raise(this.state.start,c.UnsupportedParameterDecorator)}while(this.match(32)){e.push(this.parseDecorator())}i.push(this.parseAssignableListItem(n,e))}}return i}parseAssignableListItem(e,t){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const n=this.parseMaybeDefault(r.start,r.loc.start,r);if(t.length){r.decorators=t}return n}parseAssignableListItemTypes(e){return e}parseMaybeDefault(e,t,r){var n,i,a;t=(n=t)!=null?n:this.state.startLoc;e=(i=e)!=null?i:this.state.start;r=(a=r)!=null?a:this.parseBindingAtom();if(!this.eat(35))return r;const s=this.startNodeAt(e,t);s.left=r;s.right=this.parseMaybeAssignAllowIn();return this.finishNode(s,"AssignmentPattern")}checkLVal(e,t,r=me,n,i,a=false){switch(e.type){case"Identifier":{const{name:t}=e;if(this.state.strict&&(a?isStrictBindReservedWord(t,this.inModule):isStrictBindOnlyReservedWord(t))){this.raise(e.start,r===me?c.StrictEvalArguments:c.StrictEvalArgumentsBinding,t)}if(n){if(n.has(t)){this.raise(e.start,c.ParamDupe)}else{n.add(t)}}if(i&&t==="let"){this.raise(e.start,c.LetInLexicalBinding)}if(!(r&me)){this.scope.declareName(t,r,e.start)}break}case"MemberExpression":if(r!==me){this.raise(e.start,c.InvalidPropertyBindingPattern)}break;case"ObjectPattern":for(let t of e.properties){if(this.isObjectProperty(t))t=t.value;else if(this.isObjectMethod(t))continue;this.checkLVal(t,"object destructuring pattern",r,n,i)}break;case"ArrayPattern":for(const t of e.elements){if(t){this.checkLVal(t,"array destructuring pattern",r,n,i)}}break;case"AssignmentPattern":this.checkLVal(e.left,"assignment pattern",r,n);break;case"RestElement":this.checkLVal(e.argument,"rest element",r,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,"parenthesized expression",r,n);break;default:{this.raise(e.start,r===me?c.InvalidLhs:c.InvalidLhsBinding,t)}}}checkToRestConversion(e){if(e.argument.type!=="Identifier"&&e.argument.type!=="MemberExpression"){this.raise(e.argument.start,c.InvalidRestAssignmentPattern)}}checkCommaAfterRest(e){if(this.match(20)){if(this.lookaheadCharCode()===e){this.raiseTrailingCommaAfterRest(this.state.start)}else{this.raiseRestNotLast(this.state.start)}}}raiseRestNotLast(e){throw this.raise(e,c.ElementAfterRest)}raiseTrailingCommaAfterRest(e){this.raise(e,c.RestTrailingComma)}}const lt=new Map([["ArrowFunctionExpression","arrow function"],["AssignmentExpression","assignment"],["ConditionalExpression","conditional"],["YieldExpression","yield"]]);class ExpressionParser extends LValParser{checkProto(e,t,r,n){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand){return}const i=e.key;const a=i.type==="Identifier"?i.name:i.value;if(a==="__proto__"){if(t){this.raise(i.start,c.RecordNoProto);return}if(r.used){if(n){if(n.doubleProto===-1){n.doubleProto=i.start}}else{this.raise(i.start,c.DuplicateProto)}}r.used=true}}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&e.start===t}getExpression(){this.enterInitialScopes();this.nextToken();const e=this.parseExpression();if(!this.match(7)){this.unexpected()}this.finalizeRemainingComments();e.comments=this.state.comments;e.errors=this.state.errors;if(this.options.tokens){e.tokens=this.tokens}return e}parseExpression(e,t){if(e){return this.disallowInAnd(()=>this.parseExpressionBase(t))}return this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.start;const r=this.state.startLoc;const n=this.parseMaybeAssign(e);if(this.match(20)){const i=this.startNodeAt(t,r);i.expressions=[n];while(this.eat(20)){i.expressions.push(this.parseMaybeAssign(e))}this.toReferencedList(i.expressions);return this.finishNode(i,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){var r;e.optionalParameters=(r=t==null?void 0:t.pos)!=null?r:this.state.start}parseMaybeAssign(e,t){const r=this.state.start;const n=this.state.startLoc;if(this.isContextual("yield")){if(this.prodParam.hasYield){let e=this.parseYield();if(t){e=t.call(this,e,r,n)}return e}}let i;if(e){i=false}else{e=new ExpressionErrors;i=true}if(this.match(18)||this.match(5)){this.state.potentialArrowAt=this.state.start}let a=this.parseMaybeConditional(e);if(t){a=t.call(this,a,r,n)}if(tokenIsAssignment(this.state.type)){const t=this.startNodeAt(r,n);const i=this.state.value;t.operator=i;if(this.match(35)){t.left=this.toAssignable(a,true);e.doubleProto=-1}else{t.left=a}if(e.shorthandAssign>=t.left.start){e.shorthandAssign=-1}this.checkLVal(a,"assignment expression");this.next();t.right=this.parseMaybeAssign();return this.finishNode(t,"AssignmentExpression")}else if(i){this.checkExpressionErrors(e,true)}return a}parseMaybeConditional(e){const t=this.state.start;const r=this.state.startLoc;const n=this.state.potentialArrowAt;const i=this.parseExprOps(e);if(this.shouldExitDescending(i,n)){return i}return this.parseConditional(i,t,r,e)}parseConditional(e,t,r,n){if(this.eat(25)){const n=this.startNodeAt(t,r);n.test=e;n.consequent=this.parseMaybeAssignAllowIn();this.expect(22);n.alternate=this.parseMaybeAssign();return this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(6)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.start;const r=this.state.startLoc;const n=this.state.potentialArrowAt;const i=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(i,n)){return i}return this.parseExprOp(i,t,r,-1)}parseExprOp(e,t,r,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);const{start:r}=e;if(n>=tokenOperatorPrecedence(57)||!this.prodParam.hasIn||!this.match(57)){this.raise(r,c.PrivateInExpectedIn,t)}this.classScope.usePrivateName(t,r)}const i=this.state.type;if(tokenIsOperator(i)&&(this.prodParam.hasIn||!this.match(57))){let a=tokenOperatorPrecedence(i);if(a>n){if(i===42){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return e}this.checkPipelineAtInfixOperator(e,t)}const s=this.startNodeAt(t,r);s.left=e;s.operator=this.state.value;const o=i===44||i===45;const u=i===43;if(u){a=tokenOperatorPrecedence(45)}this.next();if(i===42&&this.getPluginOption("pipelineOperator","proposal")==="minimal"){if(this.match(5)&&this.state.value==="await"&&this.prodParam.hasAwait){throw this.raise(this.state.start,c.UnexpectedAwaitAfterPipelineBody)}}s.right=this.parseExprOpRightExpr(i,a);this.finishNode(s,o||u?"LogicalExpression":"BinaryExpression");const l=this.state.type;if(u&&(l===44||l===45)||o&&l===43){throw this.raise(this.state.start,c.MixingCoalesceWithLogical)}return this.parseExprOp(s,t,r,n)}}return e}parseExprOpRightExpr(e,t){const r=this.state.start;const n=this.state.startLoc;switch(e){case 42:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual("yield")){throw this.raise(this.state.start,c.PipeBodyIsTighter,this.state.value)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r,n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody(t)})}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.start;const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,n,tokenIsRightAssociative(e)?t-1:t)}parseHackPipeBody(){var e;const{start:t}=this.state;const r=this.parseMaybeAssign();if(lt.has(r.type)&&!((e=r.extra)!=null&&e.parenthesized)){this.raise(t,c.PipeUnparenthesizedBody,lt.get(r.type))}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(t,c.PipeTopicUnused)}return r}checkExponentialAfterUnary(e){if(this.match(56)){this.raise(e.argument.start,c.UnexpectedTokenUnaryExponentiation)}}parseMaybeUnary(e,t){const r=this.state.start;const n=this.state.startLoc;const i=this.isContextual("await");if(i&&this.isAwaitAllowed()){this.next();const e=this.parseAwait(r,n);if(!t)this.checkExponentialAfterUnary(e);return e}const a=this.match(39);const s=this.startNode();if(tokenIsPrefix(this.state.type)){s.operator=this.state.value;s.prefix=true;if(this.match(71)){this.expectPlugin("throwExpressions")}const r=this.match(88);this.next();s.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(this.state.strict&&r){const e=s.argument;if(e.type==="Identifier"){this.raise(s.start,c.StrictDelete)}else if(this.hasPropertyAsPrivateName(e)){this.raise(s.start,c.DeletePrivateField)}}if(!a){if(!t)this.checkExponentialAfterUnary(s);return this.finishNode(s,"UnaryExpression")}}const o=this.parseUpdate(s,a,e);if(i){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(53);if(t&&!this.isAmbiguousAwait()){this.raiseOverwrite(r,c.AwaitNotInAsyncContext);return this.parseAwait(r,n)}}return o}parseUpdate(e,t,r){if(t){this.checkLVal(e.argument,"prefix operation");return this.finishNode(e,"UpdateExpression")}const n=this.state.start;const i=this.state.startLoc;let a=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,false))return a;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const e=this.startNodeAt(n,i);e.operator=this.state.value;e.prefix=false;e.argument=a;this.checkLVal(a,"postfix operation");this.next();a=this.finishNode(e,"UpdateExpression")}return a}parseExprSubscripts(e){const t=this.state.start;const r=this.state.startLoc;const n=this.state.potentialArrowAt;const i=this.parseExprAtom(e);if(this.shouldExitDescending(i,n)){return i}return this.parseSubscripts(i,t,r)}parseSubscripts(e,t,r,n){const i={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:false};do{e=this.parseSubscript(e,t,r,n,i);i.maybeAsyncArrow=false}while(!i.stop);return e}parseSubscript(e,t,r,n,i){if(!n&&this.eat(23)){return this.parseBind(e,t,r,n,i)}else if(this.match(30)){return this.parseTaggedTemplateExpression(e,t,r,i)}let a=false;if(this.match(26)){if(n&&this.lookaheadCharCode()===40){i.stop=true;return e}i.optionalChainMember=a=true;this.next()}if(!n&&this.match(18)){return this.parseCoverCallAndAsyncArrowHead(e,t,r,i,a)}else{const n=this.eat(8);if(n||a||this.eat(24)){return this.parseMember(e,t,r,i,n,a)}else{i.stop=true;return e}}}parseMember(e,t,r,n,i,a){const s=this.startNodeAt(t,r);s.object=e;s.computed=i;const o=!i&&this.match(6)&&this.state.value;const u=i?this.parseExpression():o?this.parsePrivateName():this.parseIdentifier(true);if(o!==false){if(s.object.type==="Super"){this.raise(t,c.SuperPrivateField)}this.classScope.usePrivateName(o,u.start)}s.property=u;if(i){this.expect(11)}if(n.optionalChainMember){s.optional=a;return this.finishNode(s,"OptionalMemberExpression")}else{return this.finishNode(s,"MemberExpression")}}parseBind(e,t,r,n,i){const a=this.startNodeAt(t,r);a.object=e;a.callee=this.parseNoCallExpr();i.stop=true;return this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r,n)}parseCoverCallAndAsyncArrowHead(e,t,r,n,i){const a=this.state.maybeInArrowParameters;let s=null;this.state.maybeInArrowParameters=true;this.next();let o=this.startNodeAt(t,r);o.callee=e;if(n.maybeAsyncArrow){this.expressionScope.enter(newAsyncArrowScope());s=new ExpressionErrors}if(n.optionalChainMember){o.optional=i}if(i){o.arguments=this.parseCallExpressionArguments(19)}else{o.arguments=this.parseCallExpressionArguments(19,e.type==="Import",e.type!=="Super",o,s)}this.finishCallExpression(o,n.optionalChainMember);if(n.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!i){n.stop=true;this.expressionScope.validateAsPattern();this.expressionScope.exit();o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),o)}else{if(n.maybeAsyncArrow){this.checkExpressionErrors(s,true);this.expressionScope.exit()}this.toReferencedArguments(o)}this.state.maybeInArrowParameters=a;return o}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r,n){const i=this.startNodeAt(t,r);i.tag=e;i.quasi=this.parseTemplate(true);if(n.optionalChainMember){this.raise(t,c.OptionalChainingNoTemplate)}return this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===2){{if(!this.hasPlugin("moduleAttributes")){this.expectPlugin("importAssertions")}}}if(e.arguments.length===0||e.arguments.length>2){this.raise(e.start,c.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument")}else{for(const t of e.arguments){if(t.type==="SpreadElement"){this.raise(t.start,c.ImportCallSpreadArgument)}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n,i){const a=[];let s=true;const o=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(e)){if(s){s=false}else{this.expect(20);if(this.match(e)){if(t&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")){this.raise(this.state.lastTokStart,c.ImportCallArgumentTrailingComma)}if(n){this.addExtra(n,"trailingComma",this.state.lastTokStart)}this.next();break}}a.push(this.parseExprListItem(false,i,r))}this.state.inFSharpPipelineDirectBody=o;return a}shouldParseAsyncArrow(){return this.match(27)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;this.resetPreviousNodeTrailingComments(t);this.expect(27);this.parseArrowExpression(e,t.arguments,true,(r=t.extra)==null?void 0:r.trailingComma);setInnerComments(e,t.innerComments);setInnerComments(e,t.callee.trailingComments);return e}parseNoCallExpr(){const e=this.state.start;const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,true)}parseExprAtom(e){let t;switch(this.state.type){case 78:return this.parseSuper();case 82:t=this.startNode();this.next();if(this.match(24)){return this.parseImportMetaProperty(t)}if(!this.match(18)){this.raise(this.state.lastTokStart,c.UnsupportedImport)}return this.finishNode(t,"Import");case 77:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case 5:{if(this.isContextual("module")&&this.lookaheadCharCode()===123&&!this.hasFollowingLineBreak()){return this.parseModuleExpression()}const e=this.state.potentialArrowAt===this.state.start;const t=this.state.containsEsc;const r=this.parseIdentifier();if(!t&&r.name==="async"&&!this.canInsertSemicolon()){if(this.match(67)){this.resetPreviousNodeTrailingComments(r);this.next();return this.parseFunction(this.startNodeAtNode(r),undefined,true)}else if(this.match(5)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r))}else{return r}}else if(this.match(89)){this.resetPreviousNodeTrailingComments(r);return this.parseDo(this.startNodeAtNode(r),true)}}if(e&&this.match(27)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(r),[r],false)}return r}case 89:{return this.parseDo(this.startNode(),false)}case 55:case 37:{this.readRegexp();return this.parseRegExpLiteral(this.state.value)}case 0:return this.parseNumericLiteral(this.state.value);case 1:return this.parseBigIntLiteral(this.state.value);case 2:return this.parseDecimalLiteral(this.state.value);case 4:return this.parseStringLiteral(this.state.value);case 83:return this.parseNullLiteral();case 84:return this.parseBooleanLiteral(true);case 85:return this.parseBooleanLiteral(false);case 18:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 10:case 9:{return this.parseArrayLike(this.state.type===10?12:11,false,true,e)}case 8:{return this.parseArrayLike(11,true,false,e)}case 14:case 15:{return this.parseObjectLike(this.state.type===14?17:16,false,true,e)}case 13:{return this.parseObjectLike(16,false,false,e)}case 67:return this.parseFunctionOrFunctionSent();case 32:this.parseDecorators();case 79:t=this.startNode();this.takeDecorators(t);return this.parseClass(t,false);case 76:return this.parseNewOrNewTarget();case 30:return this.parseTemplate(false);case 23:{t=this.startNode();this.next();t.object=null;const e=t.callee=this.parseNoCallExpr();if(e.type==="MemberExpression"){return this.finishNode(t,"BindExpression")}else{throw this.raise(e.start,c.UnsupportedBind)}}case 6:{this.raise(this.state.start,c.PrivateInExpectedIn,this.state.value);return this.parsePrivateName()}case 38:if(this.getPluginOption("pipelineOperator","proposal")==="hack"&&this.getPluginOption("pipelineOperator","topicToken")==="%"){this.state.value="%";this.state.type=53;this.state.pos--;this.state.end--;this.state.endLoc.column--}else{throw this.unexpected()}case 53:case 33:{const e=this.getPluginOption("pipelineOperator","proposal");if(e){t=this.startNode();const r=this.state.start;const n=this.state.type;this.next();return this.finishTopicReference(t,r,e,n)}}case 50:{if(this.state.value==="<"){const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||e===62){this.expectOnePlugin(["jsx","flow","typescript"])}}}default:throw this.unexpected()}}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){let n;if(r==="smart"){n="PipelinePrimaryTopicReference"}else{n="TopicReference"}if(!this.topicReferenceIsAllowedInCurrentContext()){if(r==="smart"){this.raise(t,c.PrimaryTopicNotAllowed)}else{this.raise(t,c.PipeTopicUnbound)}}this.registerTopicReference();return this.finishNode(e,n)}else{throw this.raise(t,c.PipeTopicUnconfiguredToken,tokenLabelName(n))}}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":{const e=this.getPluginOption("pipelineOperator","topicToken");return tokenLabelName(r)===e}case"smart":return r===33;default:throw this.raise(t,c.PipeTopicRequiresHackPipes)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const t=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(this.state.pos,c.LineTerminatorBeforeArrow)}this.expect(27);this.parseArrowExpression(e,t,true);return e}parseDo(e,t){this.expectPlugin("doExpressions");if(t){this.expectPlugin("asyncDoExpressions")}e.async=t;this.next();const r=this.state.labels;this.state.labels=[];if(t){this.prodParam.enter(Be);e.body=this.parseBlock();this.prodParam.exit()}else{e.body=this.parseBlock()}this.state.labels=r;return this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();this.next();if(this.match(18)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod){this.raise(e.start,c.SuperNotAllowed)}else if(!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod){this.raise(e.start,c.UnexpectedSuper)}if(!this.match(18)&&!this.match(8)&&!this.match(24)){this.raise(e.start,c.UnsupportedSuper)}return this.finishNode(e,"Super")}parseMaybePrivateName(e){const t=this.match(6);if(t){if(!e){this.raise(this.state.start+1,c.UnexpectedPrivateField)}return this.parsePrivateName()}else{return this.parseIdentifier(true)}}parsePrivateName(){const e=this.startNode();const t=this.startNodeAt(this.state.start+1,new Position(this.state.curLine,this.state.start+1-this.state.lineStart));const r=this.state.value;this.next();e.id=this.createIdentifier(t,r);return this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(24)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");this.next();return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;if(t.name==="function"&&r==="sent"){if(this.isContextual(r)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}}const n=this.state.containsEsc;e.property=this.parseIdentifier(true);if(e.property.name!==r||n){this.raise(e.property.start,c.UnsupportedMetaProperty,t.name,r)}return this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");this.next();if(this.isContextual("meta")){if(!this.inModule){this.raise(t.start,u.ImportMetaOutsideModule)}this.sawUnambiguousESM=true}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){this.addExtra(r,"rawValue",e);this.addExtra(r,"raw",this.input.slice(r.start,this.state.end));r.value=e;this.next();return this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.parseLiteral(e.value,"RegExpLiteral");t.pattern=e.pattern;t.flags=e.flags;return t}parseBooleanLiteral(e){const t=this.startNode();t.value=e;this.next();return this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();this.next();return this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.start;const r=this.state.startLoc;let n;this.next();this.expressionScope.enter(newArrowHeadScope());const i=this.state.maybeInArrowParameters;const a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const s=this.state.start;const o=this.state.startLoc;const c=[];const u=new ExpressionErrors;let l=true;let p;let d;while(!this.match(19)){if(l){l=false}else{this.expect(20,u.optionalParameters===-1?null:u.optionalParameters);if(this.match(19)){d=this.state.start;break}}if(this.match(29)){const e=this.state.start;const t=this.state.startLoc;p=this.state.start;c.push(this.parseParenItem(this.parseRestBinding(),e,t));this.checkCommaAfterRest(41);break}else{c.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem))}}const f=this.state.lastTokEnd;const m=this.state.lastTokEndLoc;this.expect(19);this.state.maybeInArrowParameters=i;this.state.inFSharpPipelineDirectBody=a;let g=this.startNodeAt(t,r);if(e&&this.shouldParseArrow(c)&&(g=this.parseArrow(g))){this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(g,c,false);return g}this.expressionScope.exit();if(!c.length){this.unexpected(this.state.lastTokStart)}if(d)this.unexpected(d);if(p)this.unexpected(p);this.checkExpressionErrors(u,true);this.toReferencedListDeep(c,true);if(c.length>1){n=this.startNodeAt(s,o);n.expressions=c;this.finishNode(n,"SequenceExpression");this.resetEndLocation(n,f,m)}else{n=c[0]}if(!this.options.createParenthesizedExpressions){this.addExtra(n,"parenthesized",true);this.addExtra(n,"parenStart",t);return n}const _=this.startNodeAt(t,r);_.expression=n;this.finishNode(_,"ParenthesizedExpression");return _}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(27)){return e}}parseParenItem(e,t,r){return e}parseNewOrNewTarget(){const e=this.startNode();this.next();if(this.match(24)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){this.raise(r.start,c.UnexpectedNewTarget)}return r}return this.parseNew(e)}parseNew(e){e.callee=this.parseNoCallExpr();if(e.callee.type==="Import"){this.raise(e.callee.start,c.ImportCallNotNewExpression)}else if(this.isOptionalChain(e.callee)){this.raise(this.state.lastTokEnd,c.OptionalChainingNoNew)}else if(this.eat(26)){this.raise(this.state.start,c.OptionalChainingNoNew)}this.parseNewArguments(e);return this.finishNode(e,"NewExpression")}parseNewArguments(e){if(this.eat(18)){const t=this.parseExprList(19);this.toReferencedList(t);e.arguments=t}else{e.arguments=[]}}parseTemplateElement(e){const t=this.startNode();if(this.state.value===null){if(!e){this.raise(this.state.start+1,c.InvalidEscapeSequenceTemplate)}}t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value};this.next();t.tail=this.match(30);return this.finishNode(t,"TemplateElement")}parseTemplate(e){const t=this.startNode();this.next();t.expressions=[];let r=this.parseTemplateElement(e);t.quasis=[r];while(!r.tail){this.expect(31);t.expressions.push(this.parseTemplateSubstitution());this.expect(16);t.quasis.push(r=this.parseTemplateElement(e))}this.next();return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){if(r){this.expectPlugin("recordAndTuple")}const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const a=Object.create(null);let s=true;const o=this.startNode();o.properties=[];this.next();while(!this.match(e)){if(s){s=false}else{this.expect(20);if(this.match(e)){this.addExtra(o,"trailingComma",this.state.lastTokStart);break}}const i=this.parsePropertyDefinition(t,n);if(!t){this.checkProto(i,r,a,n)}if(r&&!this.isObjectProperty(i)&&i.type!=="SpreadElement"){this.raise(i.start,c.InvalidRecordProperty)}if(i.shorthand){this.addExtra(i,"shorthand",true)}o.properties.push(i)}this.next();this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";if(t){u="ObjectPattern"}else if(r){u="RecordExpression"}return this.finishNode(o,u)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(8)||this.match(54))}parsePropertyDefinition(e,t){let r=[];if(this.match(32)){if(this.hasPlugin("decorators")){this.raise(this.state.start,c.UnsupportedPropertyDecorator)}while(this.match(32)){r.push(this.parseDecorator())}}const n=this.startNode();let i=false;let a=false;let s=false;let o;let u;if(this.match(29)){if(r.length)this.unexpected();if(e){this.next();n.argument=this.parseIdentifier();this.checkCommaAfterRest(125);return this.finishNode(n,"RestElement")}return this.parseSpread()}if(r.length){n.decorators=r;r=[]}n.method=false;if(e||t){o=this.state.start;u=this.state.startLoc}if(!e){i=this.eat(54)}const l=this.state.containsEsc;const p=this.parsePropertyName(n,false);if(!e&&!i&&!l&&this.maybeAsyncOrAccessorProp(n)){const e=p.name;if(e==="async"&&!this.hasPrecedingLineBreak()){a=true;this.resetPreviousNodeTrailingComments(p);i=this.eat(54);this.parsePropertyName(n,false)}if(e==="get"||e==="set"){s=true;this.resetPreviousNodeTrailingComments(p);n.kind=e;if(this.match(54)){i=true;this.raise(this.state.pos,c.AccessorIsGenerator,e);this.next()}this.parsePropertyName(n,false)}}this.parseObjPropValue(n,o,u,i,a,e,s,t);return n}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e);const n=this.getObjectOrClassMethodParams(e);const i=e.start;if(n.length!==r){if(e.kind==="get"){this.raise(i,c.BadGetterArity)}else{this.raise(i,c.BadSetterArity)}}if(e.kind==="set"&&((t=n[n.length-1])==null?void 0:t.type)==="RestElement"){this.raise(i,c.BadSetterRestParameter)}}parseObjectMethod(e,t,r,n,i){if(i){this.parseMethod(e,t,false,false,false,"ObjectMethod");this.checkGetterSetterParams(e);return e}if(r||t||this.match(18)){if(n)this.unexpected();e.kind="method";e.method=true;return this.parseMethod(e,t,r,false,false,"ObjectMethod")}}parseObjectProperty(e,t,r,n,i){e.shorthand=false;if(this.eat(22)){e.value=n?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i);return this.finishNode(e,"ObjectProperty")}if(!e.computed&&e.key.type==="Identifier"){this.checkReservedWord(e.key.name,e.key.start,true,false);if(n){e.value=this.parseMaybeDefault(t,r,cloneIdentifier(e.key))}else if(this.match(35)&&i){if(i.shorthandAssign===-1){i.shorthandAssign=this.state.start}e.value=this.parseMaybeDefault(t,r,cloneIdentifier(e.key))}else{e.value=cloneIdentifier(e.key)}e.shorthand=true;return this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,i,a,s,o){const c=this.parseObjectMethod(e,n,i,a,s)||this.parseObjectProperty(e,t,r,a,o);if(!c)this.unexpected();return c}parsePropertyName(e,t){if(this.eat(8)){e.computed=true;e.key=this.parseMaybeAssignAllowIn();this.expect(11)}else{const r=this.state.inPropertyName;this.state.inPropertyName=true;const n=this.state.type;e.key=n===0||n===4||n===1||n===2?this.parseExprAtom():this.parseMaybePrivateName(t);if(n!==6){e.computed=false}this.state.inPropertyName=r}return e.key}initFunction(e,t){e.id=null;e.generator=false;e.async=!!t}parseMethod(e,t,r,n,i,a,s=false){this.initFunction(e,r);e.generator=!!t;const o=n;this.scope.enter(J|W|(s?G:0)|(i?K:0));this.prodParam.enter(functionFlags(r,e.generator));this.parseFunctionParams(e,o);this.parseFunctionBodyAndFinish(e,a,true);this.prodParam.exit();this.scope.exit();return e}parseArrayLike(e,t,r,n){if(r){this.expectPlugin("recordAndTuple")}const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const a=this.startNode();this.next();a.elements=this.parseExprList(e,!r,n,a);this.state.inFSharpPipelineDirectBody=i;return this.finishNode(a,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(J|U);let i=functionFlags(r,false);if(!this.match(8)&&this.prodParam.hasIn){i|=Je}this.prodParam.enter(i);this.initFunction(e,r);const a=this.state.maybeInArrowParameters;if(t){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(e,t,n)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(e,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=a;return this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){e.params=this.toAssignableList(t,r,false)}parseFunctionBodyAndFinish(e,t,r=false){this.parseFunctionBody(e,false,r);this.finishNode(e,t)}parseFunctionBody(e,t,r=false){const n=t&&!this.match(13);this.expressionScope.enter(newExpressionScope());if(n){e.body=this.parseMaybeAssign();this.checkParams(e,false,t,false)}else{const n=this.state.strict;const i=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|je);e.body=this.parseBlock(true,false,i=>{const a=!this.isSimpleParamList(e.params);if(i&&a){const t=(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.end:e.start;this.raise(t,c.IllegalLanguageModeDirective)}const s=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!a,t,s);if(this.state.strict&&e.id){this.checkLVal(e.id,"function name",ge,undefined,undefined,s)}});this.prodParam.exit();this.expressionScope.exit();this.state.labels=i}}isSimpleParamList(e){for(let t=0,r=e.length;t10){return}if(!canBeReservedWord(e)){return}if(e==="yield"){if(this.prodParam.hasYield){this.raise(t,c.YieldBindingIdentifier);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(t,c.AwaitBindingIdentifier);return}else if(this.scope.inStaticBlock){this.raise(t,c.AwaitBindingIdentifierInStaticBlock);return}else{this.expressionScope.recordAsyncArrowParametersError(t,c.AwaitBindingIdentifier)}}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(t,c.ArgumentsInClass);return}}if(r&&isKeyword(e)){this.raise(t,c.UnexpectedKeyword,e);return}const i=!this.state.strict?isReservedWord:n?isStrictBindReservedWord:isStrictReservedWord;if(i(e,this.inModule)){this.raise(t,c.UnexpectedReservedWord,e)}}isAwaitAllowed(){if(this.prodParam.hasAwait)return true;if(this.options.allowAwaitOutsideFunction&&!this.scope.inFunction){return true}return false}parseAwait(e,t){const r=this.startNodeAt(e,t);this.expressionScope.recordParameterInitializerError(r.start,c.AwaitExpressionFormalParameter);if(this.eat(54)){this.raise(r.start,c.ObsoleteAwaitStar)}if(!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction){if(this.isAmbiguousAwait()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){r.argument=this.parseMaybeUnary(null,true)}return this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){return this.hasPrecedingLineBreak()||this.match(52)||this.match(18)||this.match(8)||this.match(30)||this.match(3)||this.match(55)||this.hasPlugin("v8intrinsic")&&this.match(53)}parseYield(){const e=this.startNode();this.expressionScope.recordParameterInitializerError(e.start,c.YieldInParameter);this.next();let t=false;let r=null;if(!this.hasPrecedingLineBreak()){t=this.eat(54);switch(this.state.type){case 21:case 7:case 16:case 19:case 11:case 17:case 22:case 20:if(!t)break;default:r=this.parseMaybeAssign()}}e.delegate=t;e.argument=r;return this.finishNode(e,"YieldExpression")}checkPipelineAtInfixOperator(e,t){if(this.getPluginOption("pipelineOperator","proposal")==="smart"){if(e.type==="SequenceExpression"){this.raise(t,c.PipelineHeadSequenceExpression)}}}checkHackPipeBodyEarlyErrors(e){if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(e,c.PipeTopicUnused)}}parseSmartPipelineBodyInStyle(e,t,r){const n=this.startNodeAt(t,r);if(this.isSimpleReference(e)){n.callee=e;return this.finishNode(n,"PipelineBareFunction")}else{this.checkSmartPipeTopicBodyEarlyErrors(t);n.expression=e;return this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(27)){throw this.raise(this.state.start,c.PipelineBodyNoArrow)}else if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(e,c.PipelineTopicUnused)}}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){const t=this.getPluginOption("pipelineOperator","proposal");if(t==="smart"){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else{return e()}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=true;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();const r=Je&~t;if(r){this.prodParam.enter(t|Je);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();const r=Je&t;if(r){this.prodParam.enter(t&~Je);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.start;const r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,r,e);this.state.inFSharpPipelineDirectBody=n;return i}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next();this.eat(13);const t=this.initializeScopes(true);this.enterInitialScopes();const r=this.startNode();try{e.body=this.parseProgram(r,16,"module")}finally{t()}this.eat(16);return this.finishNode(e,"ModuleExpression")}}const pt={kind:"loop"},dt={kind:"switch"};const ft=0,mt=1,gt=2,_t=4;const ht=/[\uD800-\uDFFF]/u;const yt=/in(?:stanceof)?/y;function babel7CompatTokens(e){for(let t=0;t0){for(const[e]of Array.from(this.scope.undefinedExports)){const t=this.scope.undefinedExports.get(e);this.raise(t,c.ModuleExportUndefined,e)}}return this.finishNode(e,"Program")}stmtToDirective(e){const t=e;t.type="Directive";t.value=t.expression;delete t.expression;const r=t.value;const n=this.input.slice(r.start,r.end);const i=r.value=n.slice(1,-1);this.addExtra(r,"raw",n);this.addExtra(r,"rawValue",i);r.type="DirectiveLiteral";return t}parseInterpreterDirective(){if(!this.match(34)){return null}const e=this.startNode();e.value=this.state.value;this.next();return this.finishNode(e,"InterpreterDirective")}isLet(e){if(!this.isContextual("let")){return false}return this.isLetKeyword(e)}isLetKeyword(e){const t=this.nextTokenStart();const r=this.codePointAtPos(t);if(r===92||r===91){return true}if(e)return false;if(r===123)return true;if(isIdentifierStart(r)){yt.lastIndex=t;if(yt.test(this.input)){const e=this.codePointAtPos(yt.lastIndex);if(!isIdentifierChar(e)&&e!==92){return false}}return true}return false}parseStatement(e,t){if(this.match(32)){this.parseDecorators(true)}return this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type;const n=this.startNode();let i;if(this.isLet(e)){r=73;i="let"}switch(r){case 59:return this.parseBreakContinueStatement(n,true);case 62:return this.parseBreakContinueStatement(n,false);case 63:return this.parseDebuggerStatement(n);case 89:return this.parseDoStatement(n);case 90:return this.parseForStatement(n);case 67:if(this.lookaheadCharCode()===46)break;if(e){if(this.state.strict){this.raise(this.state.start,c.StrictFunction)}else if(e!=="if"&&e!=="label"){this.raise(this.state.start,c.SloppyFunction)}}return this.parseFunctionStatement(n,false,!e);case 79:if(e)this.unexpected();return this.parseClass(n,true);case 68:return this.parseIfStatement(n);case 69:return this.parseReturnStatement(n);case 70:return this.parseSwitchStatement(n);case 71:return this.parseThrowStatement(n);case 72:return this.parseTryStatement(n);case 74:case 73:i=i||this.state.value;if(e&&i!=="var"){this.raise(this.state.start,c.UnexpectedLexicalDeclaration)}return this.parseVarStatement(n,i);case 91:return this.parseWhileStatement(n);case 75:return this.parseWithStatement(n);case 13:return this.parseBlock();case 21:return this.parseEmptyStatement(n);case 82:{const e=this.lookaheadCharCode();if(e===40||e===46){break}}case 81:{if(!this.options.allowImportExportEverywhere&&!t){this.raise(this.state.start,c.UnexpectedImportExport)}this.next();let e;if(r===82){e=this.parseImport(n);if(e.type==="ImportDeclaration"&&(!e.importKind||e.importKind==="value")){this.sawUnambiguousESM=true}}else{e=this.parseExport(n);if(e.type==="ExportNamedDeclaration"&&(!e.exportKind||e.exportKind==="value")||e.type==="ExportAllDeclaration"&&(!e.exportKind||e.exportKind==="value")||e.type==="ExportDefaultDeclaration"){this.sawUnambiguousESM=true}}this.assertModuleNodeAllowed(n);return e}default:{if(this.isAsyncFunction()){if(e){this.raise(this.state.start,c.AsyncFunctionInSingleStatementContext)}this.next();return this.parseFunctionStatement(n,true,!e)}}}const a=this.state.value;const s=this.parseExpression();if(r===5&&s.type==="Identifier"&&this.eat(22)){return this.parseLabeledStatement(n,a,s,e)}else{return this.parseExpressionStatement(n,s)}}assertModuleNodeAllowed(e){if(!this.options.allowImportExportEverywhere&&!this.inModule){this.raise(e.start,u.ImportOutsideModule)}}takeDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];if(t.length){e.decorators=t;this.resetStartLocationFromNode(e,t[0]);this.state.decoratorStack[this.state.decoratorStack.length-1]=[]}}canHaveLeadingDecorator(){return this.match(79)}parseDecorators(e){const t=this.state.decoratorStack[this.state.decoratorStack.length-1];while(this.match(32)){const e=this.parseDecorator();t.push(e)}if(this.match(81)){if(!e){this.unexpected()}if(this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")){this.raise(this.state.start,c.DecoratorExportClass)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(this.state.start,c.UnexpectedLeadingDecorator)}}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const e=this.startNode();this.next();if(this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const t=this.state.start;const r=this.state.startLoc;let n;if(this.eat(18)){n=this.parseExpression();this.expect(19)}else{n=this.parseIdentifier(false);while(this.eat(24)){const e=this.startNodeAt(t,r);e.object=n;e.property=this.parseIdentifier(true);e.computed=false;n=this.finishNode(e,"MemberExpression")}}e.expression=this.parseMaybeDecoratorArguments(n);this.state.decoratorStack.pop()}else{e.expression=this.parseExprSubscripts()}return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(18)){const t=this.startNodeAtNode(e);t.callee=e;t.arguments=this.parseCallExpressionArguments(19,false);this.toReferencedList(t.arguments);return this.finishNode(t,"CallExpression")}return e}parseBreakContinueStatement(e,t){this.next();if(this.isLineTerminator()){e.label=null}else{e.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(e,t);return this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;rthis.parseStatement("do"));this.state.labels.pop();this.expect(91);e.test=this.parseHeaderExpression();this.eat(21);return this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next();this.state.labels.push(pt);let t=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")){t=this.state.lastTokStart}this.scope.enter(B);this.expect(18);if(this.match(21)){if(t>-1){this.unexpected(t)}return this.parseFor(e,null)}const r=this.isContextual("let");const n=r&&this.isLetKeyword();if(this.match(73)||this.match(74)||n){const r=this.startNode();const i=n?"let":this.state.value;this.next();this.parseVar(r,true,i);this.finishNode(r,"VariableDeclaration");if((this.match(57)||this.isContextual("of"))&&r.declarations.length===1){return this.parseForIn(e,r,t)}if(t>-1){this.unexpected(t)}return this.parseFor(e,r)}const i=this.match(5)&&!this.state.containsEsc;const a=new ExpressionErrors;const s=this.parseExpression(true,a);const o=this.isContextual("of");if(o){if(r){this.raise(s.start,c.ForOfLet)}else if(t===-1&&i&&s.type==="Identifier"&&s.name==="async"){this.raise(s.start,c.ForOfAsync)}}if(o||this.match(57)){this.toAssignable(s,true);const r=o?"for-of statement":"for-in statement";this.checkLVal(s,r);return this.parseForIn(e,s,t)}else{this.checkExpressionErrors(a,true)}if(t>-1){this.unexpected(t)}return this.parseFor(e,s)}parseFunctionStatement(e,t,r){this.next();return this.parseFunction(e,mt|(r?0:gt),t)}parseIfStatement(e){this.next();e.test=this.parseHeaderExpression();e.consequent=this.parseStatement("if");e.alternate=this.eat(65)?this.parseStatement("if"):null;return this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction){this.raise(this.state.start,c.IllegalReturn)}this.next();if(this.isLineTerminator()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next();e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(13);this.state.labels.push(dt);this.scope.enter(B);let r;for(let e;!this.match(16);){if(this.match(60)||this.match(64)){const n=this.match(60);if(r)this.finishNode(r,"SwitchCase");t.push(r=this.startNode());r.consequent=[];this.next();if(n){r.test=this.parseExpression()}else{if(e){this.raise(this.state.lastTokStart,c.MultipleDefaultsInSwitch)}e=true;r.test=null}this.expect(22)}else{if(r){r.consequent.push(this.parseStatement(null))}else{this.unexpected()}}}this.scope.exit();if(r)this.finishNode(r,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){this.next();if(this.hasPrecedingLineBreak()){this.raise(this.state.lastTokEnd,c.NewlineAfterThrow)}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();const t=e.type==="Identifier";this.scope.enter(t?V:0);this.checkLVal(e,"catch clause",oe);return e}parseTryStatement(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.match(61)){const t=this.startNode();this.next();if(this.match(18)){this.expect(18);t.param=this.parseCatchClauseParam();this.expect(19)}else{t.param=null;this.scope.enter(B)}t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(false,false));this.scope.exit();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(66)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(e.start,c.NoCatchOrFinally)}return this.finishNode(e,"TryStatement")}parseVarStatement(e,t){this.next();this.parseVar(e,false,t);this.semicolon();return this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){this.next();e.test=this.parseHeaderExpression();this.state.labels.push(pt);e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while"));this.state.labels.pop();return this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict){this.raise(this.state.start,c.StrictWith)}this.next();e.object=this.parseHeaderExpression();e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with"));return this.finishNode(e,"WithStatement")}parseEmptyStatement(e){this.next();return this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(const e of this.state.labels){if(e.name===t){this.raise(r.start,c.LabelRedeclaration,t)}}const i=tokenIsLoop(this.state.type)?"loop":this.match(70)?"switch":null;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart===e.start){r.statementStart=this.state.start;r.kind=i}else{break}}this.state.labels.push({name:t,kind:i,statementStart:this.state.start});e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label");this.state.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")}parseBlock(e=false,t=true,r){const n=this.startNode();if(e){this.state.strictErrors.clear()}this.expect(13);if(t){this.scope.enter(B)}this.parseBlockBody(n,e,false,16,r);if(t){this.scope.exit()}return this.finishNode(n,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){const a=e.body=[];const s=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?s:undefined,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){const a=this.state.strict;let s=false;let o=false;while(!this.match(n)){const n=this.parseStatement(null,r);if(t&&!o){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e);if(!s&&e.value.value==="use strict"){s=true;this.setStrict(true)}continue}o=true;this.state.strictErrors.clear()}e.push(n)}if(i){i.call(this,s)}if(!a){this.setStrict(false)}this.next()}parseFor(e,t){e.init=t;this.semicolon(false);e.test=this.match(21)?null:this.parseExpression();this.semicolon(false);e.update=this.match(19)?null:this.parseExpression();this.expect(19);e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for"));this.scope.exit();this.state.labels.pop();return this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(57);this.next();if(n){if(r>-1)this.unexpected(r)}else{e.await=r>-1}if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(t.start,c.ForInOfLoopInitializer,n?"for-in":"for-of")}else if(t.type==="AssignmentPattern"){this.raise(t.start,c.InvalidLhs,"for-loop")}e.left=t;e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(19);e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for"));this.scope.exit();this.state.labels.pop();return this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){const n=e.declarations=[];const i=this.hasPlugin("typescript");e.kind=r;for(;;){const e=this.startNode();this.parseVarId(e,r);if(this.eat(35)){e.init=t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn()}else{if(r==="const"&&!(this.match(57)||this.isContextual("of"))){if(!i){this.raise(this.state.lastTokEnd,c.DeclarationMissingInitializer,"Const declarations")}}else if(e.id.type!=="Identifier"&&!(t&&(this.match(57)||this.isContextual("of")))){this.raise(this.state.lastTokEnd,c.DeclarationMissingInitializer,"Complex binding patterns")}e.init=null}n.push(this.finishNode(e,"VariableDeclarator"));if(!this.eat(20))break}return e}parseVarId(e,t){e.id=this.parseBindingAtom();this.checkLVal(e.id,"variable declaration",t==="var"?ce:oe,undefined,t!=="var")}parseFunction(e,t=ft,r=false){const n=t&mt;const i=t>const a=!!n&&!(t&_t);this.initFunction(e,r);if(this.match(54)&&i){this.raise(this.state.start,c.GeneratorInSingleStatementContext)}e.generator=this.eat(54);if(n){e.id=this.parseFunctionId(a)}const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(J);this.prodParam.enter(functionFlags(r,e.generator));if(!n){e.id=this.parseFunctionId()}this.parseFunctionParams(e,false);this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")});this.prodParam.exit();this.scope.exit();if(n&&!i){this.registerFunctionStatementId(e)}this.state.maybeInArrowParameters=s;return e}parseFunctionId(e){return e||this.match(5)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(18);this.expressionScope.enter(newParameterDeclarationScope());e.params=this.parseBindingList(19,41,false,t);this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?ce:oe:ue,e.id.start)}parseClass(e,t,r){this.next();this.takeDecorators(e);const n=this.state.strict;this.state.strict=true;this.parseClassId(e,t,r);this.parseClassSuper(e);e.body=this.parseClassBody(!!e.superClass,n);return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(35)||this.match(21)||this.match(16)}isClassMethod(){return this.match(18)}isNonstaticConstructor(e){return!e.computed&&!e.static&&(e.key.name==="constructor"||e.key.value==="constructor")}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:false,hadSuperClass:e};let n=[];const i=this.startNode();i.body=[];this.expect(13);this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(16)){if(this.eat(21)){if(n.length>0){throw this.raise(this.state.lastTokEnd,c.DecoratorSemicolon)}continue}if(this.match(32)){n.push(this.parseDecorator());continue}const e=this.startNode();if(n.length){e.decorators=n;this.resetStartLocationFromNode(e,n[0]);n=[]}this.parseClassMember(i,e,r);if(e.kind==="constructor"&&e.decorators&&e.decorators.length>0){this.raise(e.start,c.DecoratorConstructor)}}});this.state.strict=t;this.next();if(n.length){throw this.raise(this.state.start,c.TrailingDecorator)}this.classScope.exit();return this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(true);if(this.isClassMethod()){const n=t;n.kind="method";n.computed=false;n.key=r;n.static=false;this.pushClassMethod(e,n,false,false,false,false);return true}else if(this.isClassProperty()){const n=t;n.computed=false;n.key=r;n.static=false;e.body.push(this.parseClassProperty(n));return true}this.resetPreviousNodeTrailingComments(r);return false}parseClassMember(e,t,r){const n=this.isContextual("static");if(n){if(this.parseClassMemberFromModifier(e,t)){return}if(this.eat(13)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const i=t;const a=t;const s=t;const o=t;const u=i;const l=i;t.static=n;if(this.eat(54)){u.kind="method";const t=this.match(6);this.parseClassElementName(u);if(t){this.pushClassPrivateMethod(e,a,true,false);return}if(this.isNonstaticConstructor(i)){this.raise(i.key.start,c.ConstructorIsGenerator)}this.pushClassMethod(e,i,true,false,false,false);return}const p=this.match(5)&&!this.state.containsEsc;const d=this.match(6);const f=this.parseClassElementName(t);const m=this.state.start;this.parsePostMemberNameModifiers(l);if(this.isClassMethod()){u.kind="method";if(d){this.pushClassPrivateMethod(e,a,false,false);return}const n=this.isNonstaticConstructor(i);let s=false;if(n){i.kind="constructor";if(r.hadConstructor&&!this.hasPlugin("typescript")){this.raise(f.start,c.DuplicateConstructor)}if(n&&this.hasPlugin("typescript")&&t.override){this.raise(f.start,c.OverrideOnConstructor)}r.hadConstructor=true;s=r.hadSuperClass}this.pushClassMethod(e,i,false,false,n,s)}else if(this.isClassProperty()){if(d){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,s)}}else if(p&&f.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(54);if(l.optional){this.unexpected(m)}u.kind="method";const r=this.match(6);this.parseClassElementName(u);this.parsePostMemberNameModifiers(l);if(r){this.pushClassPrivateMethod(e,a,t,true)}else{if(this.isNonstaticConstructor(i)){this.raise(i.key.start,c.ConstructorIsAsync)}this.pushClassMethod(e,i,t,true,false,false)}}else if(p&&(f.name==="get"||f.name==="set")&&!(this.match(54)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f);u.kind=f.name;const t=this.match(6);this.parseClassElementName(i);if(t){this.pushClassPrivateMethod(e,a,false,false)}else{if(this.isNonstaticConstructor(i)){this.raise(i.key.start,c.ConstructorIsAccessor)}this.pushClassMethod(e,i,false,false,false,false)}this.checkGetterSetterParams(i)}else if(this.isLineTerminator()){if(d){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,s)}}else{this.unexpected()}}parseClassElementName(e){const{type:t,value:r,start:n}=this.state;if((t===5||t===4)&&e.static&&r==="prototype"){this.raise(n,c.StaticPrototype)}if(t===6&&r==="constructor"){this.raise(n,c.ConstructorClassPrivateField)}return this.parsePropertyName(e,true)}parseClassStaticBlock(e,t){var r;this.expectPlugin("classStaticBlock",t.start);this.scope.enter(G|z|W);const n=this.state.labels;this.state.labels=[];this.prodParam.enter(Me);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,undefined,false,16);this.prodParam.exit();this.scope.exit();this.state.labels=n;e.body.push(this.finishNode(t,"StaticBlock"));if((r=t.decorators)!=null&&r.length){this.raise(t.start,c.DecoratorStaticBlock)}}pushClassProperty(e,t){if(!t.computed&&(t.key.name==="constructor"||t.key.value==="constructor")){this.raise(t.key.start,c.ConstructorClassField)}e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r);this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),Ae,r.key.start)}pushClassMethod(e,t,r,n,i,a){e.body.push(this.parseMethod(t,r,n,i,a,"ClassMethod",true))}pushClassPrivateMethod(e,t,r,n){const i=this.parseMethod(t,r,n,false,false,"ClassPrivateMethod",true);e.body.push(i);const a=i.kind==="get"?i.static?Ee:De:i.kind==="set"?i.static?xe:Ce:Ae;this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),a,i.key.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassProperty")}parseInitializer(e){this.scope.enter(G|W);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(Me);e.value=this.eat(35)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(e,t,r,n=se){if(this.match(5)){e.id=this.parseIdentifier();if(t){this.checkLVal(e.id,"class name",n)}}else{if(r||!t){e.id=null}else{this.unexpected(null,c.MissingClassName)}}}parseClassSuper(e){e.superClass=this.eat(80)?this.parseExprSubscripts():null}parseExport(e){const t=this.maybeParseExportDefaultSpecifier(e);const r=!t||this.eat(20);const n=r&&this.eatExportStar(e);const i=n&&this.maybeParseExportNamespaceSpecifier(e);const a=r&&(!i||this.eat(20));const s=t||n;if(n&&!i){if(t)this.unexpected();this.parseExportFrom(e,true);return this.finishNode(e,"ExportAllDeclaration")}const o=this.maybeParseExportNamedSpecifiers(e);if(t&&r&&!n&&!o||i&&a&&!o){throw this.unexpected(null,13)}let c;if(s||o){c=false;this.parseExportFrom(e,s)}else{c=this.maybeParseExportDeclaration(e)}if(s||o||c){this.checkExport(e,true,false,!!e.source);return this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(64)){e.declaration=this.parseExportDefaultExpression();this.checkExport(e,true,true);return this.finishNode(e,"ExportDefaultDeclaration")}throw this.unexpected(null,13)}eatExportStar(e){return this.eat(54)}maybeParseExportDefaultSpecifier(e){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const t=this.startNode();t.exported=this.parseIdentifier(true);e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(e){if(this.isContextual("as")){if(!e.specifiers)e.specifiers=[];const t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next();t.exported=this.parseModuleExportName();e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(e){if(this.match(13)){if(!e.specifiers)e.specifiers=[];e.specifiers.push(...this.parseExportSpecifiers());e.source=null;e.declaration=null;return true}return false}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){e.specifiers=[];e.source=null;e.declaration=this.parseExportDeclaration(e);return true}return false}isAsyncFunction(){if(!this.isContextual("async"))return false;const e=this.nextTokenStart();return!r.test(this.input.slice(this.state.pos,e))&&this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();const t=this.isAsyncFunction();if(this.match(67)||t){this.next();if(t){this.next()}return this.parseFunction(e,mt|_t,t)}else if(this.match(79)){return this.parseClass(e,true,true)}else if(this.match(32)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")){this.raise(this.state.start,c.DecoratorBeforeExport)}this.parseDecorators(false);return this.parseClass(e,true,true)}else if(this.match(74)||this.match(73)||this.isLet()){throw this.raise(this.state.start,c.UnsupportedDefaultExport)}else{const e=this.parseMaybeAssignAllowIn();this.semicolon();return e}}parseExportDeclaration(e){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(5)){const e=this.state.value;if(e==="async"&&!this.state.containsEsc||e==="let"){return false}if((e==="type"||e==="interface")&&!this.state.containsEsc){const e=this.lookahead();if(e.type===5&&e.value!=="from"||e.type===13){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(64)){return false}const e=this.nextTokenStart();const t=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||this.match(5)&&t){return true}if(this.match(64)&&t){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return t===34||t===39}return false}parseExportFrom(e,t){if(this.eatContextual("from")){e.source=this.parseImportSource();this.checkExport(e);const t=this.maybeParseImportAssertions();if(t){e.assertions=t}}else{if(t){this.unexpected()}else{e.source=null}}this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===32){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")){this.unexpected(this.state.start,c.DecoratorBeforeExport)}else{return true}}}return e===73||e===74||e===67||e===79||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){if(r){this.checkDuplicateExports(e,"default");if(this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;if(t.type==="Identifier"&&t.name==="from"&&t.end-t.start===4&&!((i=t.extra)!=null&&i.parenthesized)){this.raise(t.start,c.ExportDefaultFromAsIdentifier)}}}else if(e.specifiers&&e.specifiers.length){for(const t of e.specifiers){const{exported:e}=t;const r=e.type==="Identifier"?e.name:e.value;this.checkDuplicateExports(t,r);if(!n&&t.local){const{local:e}=t;if(e.type!=="Identifier"){this.raise(t.start,c.ExportBindingIsString,e.value,r)}else{this.checkReservedWord(e.name,e.start,true,false);this.scope.checkLocalExport(e)}}}}else if(e.declaration){if(e.declaration.type==="FunctionDeclaration"||e.declaration.type==="ClassDeclaration"){const t=e.declaration.id;if(!t)throw new Error("Assertion failure");this.checkDuplicateExports(e,t.name)}else if(e.declaration.type==="VariableDeclaration"){for(const t of e.declaration.declarations){this.checkDeclaration(t.id)}}}}const a=this.state.decoratorStack[this.state.decoratorStack.length-1];if(a.length){throw this.raise(e.start,c.UnsupportedDecoratorExport)}}checkDeclaration(e){if(e.type==="Identifier"){this.checkDuplicateExports(e,e.name)}else if(e.type==="ObjectPattern"){for(const t of e.properties){this.checkDeclaration(t)}}else if(e.type==="ArrayPattern"){for(const t of e.elements){if(t){this.checkDeclaration(t)}}}else if(e.type==="ObjectProperty"){this.checkDeclaration(e.value)}else if(e.type==="RestElement"){this.checkDeclaration(e.argument)}else if(e.type==="AssignmentPattern"){this.checkDeclaration(e.left)}}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t)){this.raise(e.start,t==="default"?c.DuplicateDefaultExport:c.DuplicateExport,t)}this.exportedIdentifiers.add(t)}parseExportSpecifiers(){const e=[];let t=true;this.expect(13);while(!this.eat(16)){if(t){t=false}else{this.expect(20);if(this.eat(16))break}const r=this.startNode();const n=this.match(4);const i=this.parseModuleExportName();r.local=i;if(this.eatContextual("as")){r.exported=this.parseModuleExportName()}else if(n){r.exported=cloneStringLiteral(i)}else{r.exported=cloneIdentifier(i)}e.push(this.finishNode(r,"ExportSpecifier"))}return e}parseModuleExportName(){if(this.match(4)){const e=this.parseStringLiteral(this.state.value);const t=e.value.match(ht);if(t){this.raise(e.start,c.ModuleExportNameHasLoneSurrogate,t[0].charCodeAt(0).toString(16))}return e}return this.parseIdentifier(true)}parseImport(e){e.specifiers=[];if(!this.match(4)){const t=this.maybeParseDefaultImportSpecifier(e);const r=!t||this.eat(20);const n=r&&this.maybeParseStarImportSpecifier(e);if(r&&!n)this.parseNamedImportSpecifiers(e);this.expectContextual("from")}e.source=this.parseImportSource();const t=this.maybeParseImportAssertions();if(t){e.assertions=t}else{const t=this.maybeParseModuleAttributes();if(t){e.attributes=t}}this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(4))this.unexpected();return this.parseExprAtom()}shouldParseDefaultImport(e){return this.match(5)}parseImportSpecifierLocal(e,t,r,n){t.local=this.parseIdentifier();this.checkLVal(t.local,n,oe);e.specifiers.push(this.finishNode(t,r))}parseAssertEntries(){const e=[];const t=new Set;do{if(this.match(16)){break}const r=this.startNode();const n=this.state.value;if(t.has(n)){this.raise(this.state.start,c.ModuleAttributesWithDuplicateKeys,n)}t.add(n);if(this.match(4)){r.key=this.parseStringLiteral(n)}else{r.key=this.parseIdentifier(true)}this.expect(22);if(!this.match(4)){throw this.unexpected(this.state.start,c.ModuleAttributeInvalidValue)}r.value=this.parseStringLiteral(this.state.value);this.finishNode(r,"ImportAttribute");e.push(r)}while(this.eat(20));return e}maybeParseModuleAttributes(){if(this.match(75)&&!this.hasPrecedingLineBreak()){this.expectPlugin("moduleAttributes");this.next()}else{if(this.hasPlugin("moduleAttributes"))return[];return null}const e=[];const t=new Set;do{const r=this.startNode();r.key=this.parseIdentifier(true);if(r.key.name!=="type"){this.raise(r.key.start,c.ModuleAttributeDifferentFromType,r.key.name)}if(t.has(r.key.name)){this.raise(r.key.start,c.ModuleAttributesWithDuplicateKeys,r.key.name)}t.add(r.key.name);this.expect(22);if(!this.match(4)){throw this.unexpected(this.state.start,c.ModuleAttributeInvalidValue)}r.value=this.parseStringLiteral(this.state.value);this.finishNode(r,"ImportAttribute");e.push(r)}while(this.eat(20));return e}maybeParseImportAssertions(){if(this.isContextual("assert")&&!this.hasPrecedingLineBreak()){this.expectPlugin("importAssertions");this.next()}else{if(this.hasPlugin("importAssertions"))return[];return null}this.eat(13);const e=this.parseAssertEntries();this.eat(16);return e}maybeParseDefaultImportSpecifier(e){if(this.shouldParseDefaultImport(e)){this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier");return true}return false}maybeParseStarImportSpecifier(e){if(this.match(54)){const t=this.startNode();this.next();this.expectContextual("as");this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier","import namespace specifier");return true}return false}parseNamedImportSpecifiers(e){let t=true;this.expect(13);while(!this.eat(16)){if(t){t=false}else{if(this.eat(22)){throw this.raise(this.state.start,c.DestructureNamedImport)}this.expect(20);if(this.eat(16))break}this.parseImportSpecifier(e)}}parseImportSpecifier(e){const t=this.startNode();const r=this.match(4);t.imported=this.parseModuleExportName();if(this.eatContextual("as")){t.local=this.parseIdentifier()}else{const{imported:e}=t;if(r){throw this.raise(t.start,c.ImportBindingIsString,e.value)}this.checkReservedWord(e.name,t.start,true,true);t.local=cloneIdentifier(e)}this.checkLVal(t.local,"import specifier",oe);e.specifiers.push(this.finishNode(t,"ImportSpecifier"))}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class Parser extends StatementParser{constructor(e,t){e=getOptions(e);super(e,t);this.options=e;this.initializeScopes();this.plugins=pluginsMap(this.options.plugins);this.filename=e.sourceFilename}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode();const t=this.startNode();this.nextToken();e.errors=null;this.parseTopLevel(e,t);e.errors=this.state.errors;return e}}function pluginsMap(e){const t=new Map;for(const r of e){const[e,n]=Array.isArray(r)?r:[r,{}];if(!t.has(e))t.set(e,n||{})}return t}function parse(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e);const n=r.parse();if(r.sawUnambiguousESM){return n}if(r.ambiguousScriptDifferentAst){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}}else{n.program.sourceType="script"}return n}catch(r){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}throw r}}else{return getParser(t,e).parse()}}function parseExpression(e,t){const r=getParser(t,e);if(r.options.strictMode){r.state.strict=true}return r.getExpression()}function generateExportedTokenTypes(e){const t={};for(const r of Object.keys(e)){t[r]=getExportedToken(e[r])}return t}const vt=generateExportedTokenTypes(C);function getParser(e,t){let r=Parser;if(e!=null&&e.plugins){validatePlugins(e.plugins);r=getParserClass(e.plugins)}return new r(e,t)}const Tt={};function getParserClass(e){const t=ot.filter(t=>hasPlugin(e,t));const r=t.join("/");let n=Tt[r];if(!n){n=Parser;for(const e of t){n=st[e](n)}Tt[r]=n}return n}t.parse=parse;t.parseExpression=parseExpression;t.tokTypes=vt},2605:function(e,t,r){if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(4347)}else{e.exports=r(9226)}},2611:function(e,t,r){"use strict";var n=r(6581);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("JSXAttribute",{visitor:["name","value"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:true,validate:(0,n.assertNodeType)("JSXElement","StringLiteral","JSXExpressionContainer")}}});(0,i.default)("JSXClosingElement",{visitor:["name"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression")}}});(0,i.default)("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["JSX","Immutable","Expression"],fields:{openingElement:{validate:(0,n.assertNodeType)("JSXOpeningElement")},closingElement:{optional:true,validate:(0,n.assertNodeType)("JSXClosingElement")},children:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement")))}}});(0,i.default)("JSXEmptyExpression",{aliases:["JSX","Expression"]});(0,i.default)("JSXExpressionContainer",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("JSXSpreadChild",{visitor:["expression"],aliases:["JSX","Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("JSXIdentifier",{builder:["name"],aliases:["JSX","Expression"],fields:{name:{validate:(0,n.assertValueType)("string")}}});(0,i.default)("JSXMemberExpression",{visitor:["object","property"],aliases:["JSX","Expression"],fields:{object:{validate:(0,n.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,n.assertNodeType)("JSXIdentifier")}}});(0,i.default)("JSXNamespacedName",{visitor:["namespace","name"],aliases:["JSX"],fields:{namespace:{validate:(0,n.assertNodeType)("JSXIdentifier")},name:{validate:(0,n.assertNodeType)("JSXIdentifier")}}});(0,i.default)("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["JSX","Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression")},selfClosing:{default:false,validate:(0,n.assertValueType)("boolean")},attributes:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))}}});(0,i.default)("JSXSpreadAttribute",{visitor:["argument"],aliases:["JSX"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("JSXText",{aliases:["JSX","Immutable"],builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}}})},2613:function(e){(function(){"use strict";var t,r,n,i,a,s;r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/};t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function isDecimalDigit(e){return 48<=e&&e<=57}function isHexDigit(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function isOctalDigit(e){return e>=48&&e<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isWhiteSpace(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&n.indexOf(e)>=0}function isLineTerminator(e){return e===10||e===13||e===8232||e===8233}function fromCodePoint(e){if(e<=65535){return String.fromCharCode(e)}var t=String.fromCharCode(Math.floor((e-65536)/1024)+55296);var r=String.fromCharCode((e-65536)%1024+56320);return t+r}i=new Array(128);for(s=0;s<128;++s){i[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95}a=new Array(128);for(s=0;s<128;++s){a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95}function isIdentifierStartES5(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES5(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(fromCodePoint(e))}function isIdentifierStartES6(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(fromCodePoint(e))}function isIdentifierPartES6(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(fromCodePoint(e))}e.exports={isDecimalDigit:isDecimalDigit,isHexDigit:isHexDigit,isOctalDigit:isOctalDigit,isWhiteSpace:isWhiteSpace,isLineTerminator:isLineTerminator,isIdentifierStartES5:isIdentifierStartES5,isIdentifierPartES5:isIdentifierPartES5,isIdentifierStartES6:isIdentifierStartES6,isIdentifierPartES6:isIdentifierPartES6}})()},2617:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},2618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=inheritLeadingComments;var n=r(7723);function inheritLeadingComments(e,t){(0,n.default)("leadingComments",e,t)}},2644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.visitorKeys=t.getKeys=void 0;var n=r(4461);Object.defineProperty(t,"getKeys",{enumerable:true,get:function(){return n.getKeys}});var i=r(9491);Object.defineProperty(t,"visitorKeys",{enumerable:true,get:function(){return i.visitorKeys}})},2663:function(e,t,r){var n=r(5338),i=r(9146),a=r(5160),s=r(2988);function isIterateeCall(e,t,r){if(!s(r)){return false}var o=typeof t;if(o=="number"?i(r)&&a(t,r.length):o=="string"&&t in r){return n(r[t],e)}return false}e.exports=isIterateeCall},2674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierStart=isIdentifierStart;t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const i=new RegExp("["+r+"]");const a=new RegExp("["+r+n+"]");r=n=null;const s=[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,68,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,349,41,7,1,79,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,85,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,159,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,264,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,190,0,80,921,103,110,18,195,2637,96,16,1070,4050,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,46,2,18,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,482,44,11,6,17,0,322,29,19,43,1269,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,4152,8,221,3,5761,15,7472,3104,541,1507,4938];const o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,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,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,19306,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,262,6,10,9,357,0,62,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,i=t.length;ne)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,s)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,s)||isInAstralSet(e,o)}function isIdentifierName(e){let t=true;for(let r=0;r{e.requeue(t)};for(const[e,n]of t.source){for(const[t,i]of n.imports){r.set(t,[e,i,null])}for(const t of n.importsNamespace){r.set(t,[e,null,t])}}for(const[e,r]of t.local){let t=n.get(e);if(!t){t=[];n.set(e,t)}t.push(...r.names)}const a={metadata:t,requeueInParent:i,scope:e.scope,exported:n};e.traverse(E,a);(0,s.default)(e,new Set([...Array.from(r.keys()),...Array.from(n.keys())]));const o={seen:new WeakSet,metadata:t,requeueInParent:i,scope:e.scope,imported:r,exported:n,buildImportReference:([e,r,n],i)=>{const a=t.source.get(e);if(n){if(a.lazy)i=c(i,[]);return i}let s=d(a.name);if(a.lazy)s=c(s,[]);if(r==="default"&&a.interop==="node-default"){return s}const o=t.stringSpecifiers.has(r);return h(s,o?T(r):d(r),o)}};e.traverse(C,o)}const E={Scope(e){e.skip()},ClassDeclaration(e){const{requeueInParent:t,exported:r,metadata:n}=this;const{id:i}=e.node;if(!i)throw new Error("Expected class to have a name");const a=i.name;const s=r.get(a)||[];if(s.length>0){const r=l(x(n,s,d(a)));r._blockHoist=e.node._blockHoist;t(e.insertAfter(r)[0])}},VariableDeclaration(e){const{requeueInParent:t,exported:r,metadata:n}=this;Object.keys(e.getOuterBindingIdentifiers()).forEach(i=>{const a=r.get(i)||[];if(a.length>0){const r=l(x(n,a,d(i)));r._blockHoist=e.node._blockHoist;t(e.insertAfter(r)[0])}})}};const x=(e,t,r)=>{return(t||[]).reduce((t,r)=>{const{stringSpecifiers:n}=e;const i=n.has(r);return o("=",h(d(e.exportName),i?T(r):d(r),i),t)},r)};const D=e=>{return a.default.expression.ast` - (function() { - throw new Error('"' + '${e}' + '" is read-only.'); - })() - `};const C={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:n,imported:i,requeueInParent:a}=this;if(t.has(e.node))return;t.add(e.node);const s=e.node.name;const o=i.get(s);if(o){if(isInType(e)){throw e.buildCodeFrameError(`Cannot transform the imported binding "${s}" since it's also used in a type annotation. `+`Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`)}const t=e.scope.getBinding(s);const i=n.getBinding(s);if(i!==t)return;const c=r(o,e.node);c.loc=e.node.loc;if((e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&f(c)){e.replaceWith(v([y(0),c]))}else if(e.isJSXIdentifier()&&f(c)){const{object:t,property:r}=c;e.replaceWith(_(g(t.name),g(r.name)))}else{e.replaceWith(c)}a(e);e.skip()}},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:i,exported:a,requeueInParent:s,buildImportReference:o}=this;if(r.has(e.node))return;r.add(e.node);const c=e.get("left");if(c.isMemberExpression())return;if(c.isIdentifier()){const r=c.node.name;if(t.getBinding(r)!==e.scope.getBinding(r)){return}const u=a.get(r);const l=i.get(r);if((u==null?void 0:u.length)>0||l){n(e.node.operator==="=","Path was not simplified");const t=e.node;if(l){t.left=o(l,t.left);t.right=v([t.right,D(r)])}e.replaceWith(x(this.metadata,u,t));s(e)}}else{const r=c.getOuterBindingIdentifiers();const n=Object.keys(r).filter(r=>t.getBinding(r)===e.scope.getBinding(r));const o=n.find(e=>i.has(e));if(o){e.node.right=v([e.node.right,D(o)])}const u=[];n.forEach(e=>{const t=a.get(e)||[];if(t.length>0){u.push(x(this.metadata,t,d(e)))}});if(u.length>0){let t=v(u);if(e.parentPath.isExpressionStatement()){t=l(t);t._blockHoist=e.parentPath.node._blockHoist}const r=e.insertAfter(t)[0];s(r)}}}},"ForOfStatement|ForInStatement"(e){const{scope:t,node:r}=e;const{left:n}=r;const{exported:i,imported:a,scope:s}=this;if(!m(n)){let r=false,c;const d=e.get("body").scope;for(const e of Object.keys(p(n))){if(s.getBinding(e)===t.getBinding(e)){if(i.has(e)){r=true;if(d.hasOwnBinding(e)){d.rename(e)}}if(a.has(e)&&!c){c=e}}}if(!r&&!c){return}e.ensureBlock();const f=e.get("body");const m=t.generateUidIdentifierBasedOnNode(n);e.get("left").replaceWith(S("let",[b(u(m))]));t.registerDeclaration(e.get("left"));if(r){f.unshiftContainer("body",l(o("=",n,m)))}if(c){f.unshiftContainer("body",l(D(c)))}}}}},2715:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clear=clear;t.clearPath=clearPath;t.clearScope=clearScope;t.scope=t.path=void 0;let r=new WeakMap;t.path=r;let n=new WeakMap;t.scope=n;function clear(){clearPath();clearScope()}function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=n=new WeakMap}},2728:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){callFailureCallback(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){callSuccessCallback(r,i);return}t.fs.stat(e,(e,n)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){callFailureCallback(r,e);return}callSuccessCallback(r,i);return}if(t.markSymbolicLink){n.isSymbolicLink=(()=>true)}callSuccessCallback(r,n)})})}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},2730:function(e,t,r){"use strict";const n=r(1669);const i=r(1789);const a=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const s=e=>{return t=>e===true?Number(t):String(t)};const o=e=>{return typeof e==="number"||typeof e==="string"&&e!==""};const c=e=>Number.isInteger(+e);const u=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const l=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const p=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const d=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length{e.negatives.sort((e,t)=>et?1:0);e.positives.sort((e,t)=>et?1:0);let r=t.capture?"":"?:";let n="";let i="";let a;if(e.positives.length){n=e.positives.join("|")}if(e.negatives.length){i=`-(${r}${e.negatives.join("|")})`}if(n&&i){a=`${n}|${i}`}else{a=n||i}if(t.wrap){return`(${r}${a})`}return a};const m=(e,t,r,n)=>{if(r){return i(e,t,{wrap:false,...n})}let a=String.fromCharCode(e);if(e===t)return a;let s=String.fromCharCode(t);return`[${a}-${s}]`};const g=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)};const _=(...e)=>{return new RangeError("Invalid range arguments: "+n.inspect(...e))};const h=(e,t,r)=>{if(r.strictRanges===true)throw _([e,t]);return[]};const y=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const v=(e,t,r=1,n={})=>{let i=Number(e);let a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(n.strictRanges===true)throw _([e,t]);return[]}if(i===0)i=0;if(a===0)a=0;let o=i>a;let c=String(e);let h=String(t);let y=String(r);r=Math.max(Math.abs(r),1);let v=u(c)||u(h)||u(y);let T=v?Math.max(c.length,h.length,y.length):0;let S=v===false&&l(e,t,n)===false;let b=n.transform||s(S);if(n.toRegex&&r===1){return m(d(e,T),d(t,T),true,n)}let E={negatives:[],positives:[]};let x=e=>E[e<0?"negatives":"positives"].push(Math.abs(e));let D=[];let C=0;while(o?i>=a:i<=a){if(n.toRegex===true&&r>1){x(i)}else{D.push(p(b(i,C),T,S))}i=o?i-r:i+r;C++}if(n.toRegex===true){return r>1?f(E,n):g(D,null,{wrap:false,...n})}return D};const T=(e,t,r=1,n={})=>{if(!c(e)&&e.length>1||!c(t)&&t.length>1){return h(e,t,n)}let i=n.transform||(e=>String.fromCharCode(e));let a=`${e}`.charCodeAt(0);let s=`${t}`.charCodeAt(0);let o=a>s;let u=Math.min(a,s);let l=Math.max(a,s);if(n.toRegex&&r===1){return m(u,l,false,n)}let p=[];let d=0;while(o?a>=s:a<=s){p.push(i(a,d));a=o?a-r:a+r;d++}if(n.toRegex===true){return g(p,null,{wrap:false,options:n})}return p};const S=(e,t,r,n={})=>{if(t==null&&o(e)){return[e]}if(!o(e)||!o(t)){return h(e,t,n)}if(typeof r==="function"){return S(e,t,1,{transform:r})}if(a(r)){return S(e,t,0,r)}let i={...n};if(i.capture===true)i.wrap=true;r=r||i.step||1;if(!c(r)){if(r!=null&&!a(r))return y(r,i);return S(e,t,1,r)}if(c(e)&&c(t)){return v(e,t,r,i)}return T(e,t,Math.max(Math.abs(r),1),i)};e.exports=S},2744:function(e,t,r){var n=r(8888);var i={"{":"}","(":")","[":"]"};var a=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var a=-2;var s=-2;var o=-2;while(tt){if(o===-1||o>n){return true}o=e.indexOf("\\",t);if(o===-1||o>n){return true}}}if(a!==-1&&e[t]==="{"&&e[t+1]!=="}"){a=e.indexOf("}",t);if(a>t){o=e.indexOf("\\",t);if(o===-1||o>a){return true}}}if(s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){s=e.indexOf(")",t);if(s>t){o=e.indexOf("\\",t);if(o===-1||o>s){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(rr){o=e.indexOf("\\",r);if(o===-1||o>s){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var u=i[c];if(u){var l=e.indexOf(u,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var s=function(e){if(e[0]==="!"){return true}var t=0;while(tt=>{if(t.startsWith("!")){return"!"+a.posix.join(e,t.slice(1))}return a.posix.join(e,t)};const d=(e,t)=>{const r=c(a.relative(t.cwd,a.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(e=>!e.startsWith("#")).map(p(r))};const f=e=>{const t=o();for(const r of e){t.add(d(r.content,{cwd:r.cwd,fileName:r.filePath}))}return t};const m=(e,t)=>{e=c(e);if(a.isAbsolute(t)){if(c(t).startsWith(e)){return t}throw new Error(`Path ${t} is not in cwd ${e}`)}return a.join(e,t)};const g=(e,t)=>{return r=>e.ignores(c(a.relative(t,m(t,r.path||r))))};const _=async(e,t)=>{const r=a.join(t,e);const n=await l(r,"utf8");return{cwd:t,filePath:r,content:n}};const h=(e,t)=>{const r=a.join(t,e);const n=i.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}};const y=({ignore:e=[],cwd:t=c(process.cwd())}={})=>{return{ignore:e,cwd:t}};e.exports=(async e=>{e=y(e);const t=await s("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=await Promise.all(t.map(t=>_(t,e.cwd)));const n=f(r);return g(n,e.cwd)});e.exports.sync=(e=>{e=y(e);const t=s.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map(t=>h(t,e.cwd));const n=f(r);return g(n,e.cwd)})},2851:function(e){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},2880:function(e,t,r){"use strict";const n=r(8751);const i=r(7120);const a=r(5197);const s=i.implSymbol;function URL(t){if(!this||this[s]||!(this instanceof URL)){throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.")}if(arguments.length<1){throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.")}const r=[];for(let e=0;ee.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},2972:function(e,t){t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,a,s){var o=Math.floor((r-e)/2)+e;var c=a(n,i[o],true);if(c===0){return o}else if(c>0){if(r-o>1){return recursiveSearch(o,r,n,i,a,s)}if(s==t.LEAST_UPPER_BOUND){return r1){return recursiveSearch(e,o,n,i,a,s)}if(s==t.LEAST_UPPER_BOUND){return o}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var a=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0){return-1}while(a-1>=0){if(n(r[a],r[a-1],true)!==0){break}--a}return a}},2973:function(e,t,r){var n=r(5571),i=r(9146),a=r(3935),s=r(813),o=r(8114);var c=Math.max;function includes(e,t,r,u){e=i(e)?e:o(e);r=r&&!u?s(r):0;var l=e.length;if(r<0){r=c(l+r,0)}return a(e)?r<=l&&e.indexOf(t,r)>-1:!!l&&n(e,t,r)>-1}e.exports=includes},2979:function(e,t,r){e.exports={default:r(6697),__esModule:true}},2985:function(e,t,r){r(252)("Map")},2988:function(e){function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},3001:function(e,t){function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(5247);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const a=` ${i};1m${r} `;t[0]=a+t[0].split("\n").join("\n"+a);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim()).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},3083:function(e){function identity(e){return e}e.exports=identity},3085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=buildChildren;var n=r(4897);var i=r(4272);function buildChildren(e){const t=[];for(let r=0;r)/s);const n=e.match(/(?<=-->\s*)((.|\n)*)(?=\s*[📎|📝|✔️])/);if(r&&n){t[r]=n[0].replace("*","").replace(/\n/g,"")}}}return t}function replaceAtPoint(e,t,r){if(!t)return e;const n=e.split("\n");const i=n[t.line-1];if(i.includes("|")){n[t.line-1]=i.replace(" |",`${r} |`)}else{n[t.line-1]=i.substring(0,t.column)+r+i.substring(t.column)}return n.join("\n")}function cleanAtPoint(e,t,r){if(!t)return e;const n=e.split("\n");n[t.line-1]=n[t.line-1].replace(` ${r}`,"");return n.join("\n")}e.exports={hasStringArgument:hasStringArgument,hasTemplateQuasi:hasTemplateQuasi,getLineNumber:getLineNumber,getEndLineNumber:getEndLineNumber,getCode:getCode,hasTemplateArgument:hasTemplateArgument,getQuasiArgument:getQuasiArgument,parseComments:parseComments,getStringValue:getStringValue,hasStringOrTemplateArgument:hasStringOrTemplateArgument,getUpdatePoint:getUpdatePoint,replaceAtPoint:replaceAtPoint,cleanAtPoint:cleanAtPoint}},3095:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSBASETYPE_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.JSX_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.FLOWTYPE_TYPES=t.FLOW_TYPES=t.PRIVATE_TYPES=t.MODULESPECIFIER_TYPES=t.EXPORTDECLARATION_TYPES=t.MODULEDECLARATION_TYPES=t.CLASS_TYPES=t.PATTERN_TYPES=t.UNARYLIKE_TYPES=t.PROPERTY_TYPES=t.OBJECTMEMBER_TYPES=t.METHOD_TYPES=t.USERWHITESPACABLE_TYPES=t.IMMUTABLE_TYPES=t.LITERAL_TYPES=t.TSENTITYNAME_TYPES=t.LVAL_TYPES=t.PATTERNLIKE_TYPES=t.DECLARATION_TYPES=t.PUREISH_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTION_TYPES=t.FORXSTATEMENT_TYPES=t.FOR_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.WHILE_TYPES=t.LOOP_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.SCOPABLE_TYPES=t.BINARY_TYPES=t.EXPRESSION_TYPES=void 0;var n=r(288);const i=n.FLIPPED_ALIAS_KEYS["Expression"];t.EXPRESSION_TYPES=i;const a=n.FLIPPED_ALIAS_KEYS["Binary"];t.BINARY_TYPES=a;const s=n.FLIPPED_ALIAS_KEYS["Scopable"];t.SCOPABLE_TYPES=s;const o=n.FLIPPED_ALIAS_KEYS["BlockParent"];t.BLOCKPARENT_TYPES=o;const c=n.FLIPPED_ALIAS_KEYS["Block"];t.BLOCK_TYPES=c;const u=n.FLIPPED_ALIAS_KEYS["Statement"];t.STATEMENT_TYPES=u;const l=n.FLIPPED_ALIAS_KEYS["Terminatorless"];t.TERMINATORLESS_TYPES=l;const p=n.FLIPPED_ALIAS_KEYS["CompletionStatement"];t.COMPLETIONSTATEMENT_TYPES=p;const d=n.FLIPPED_ALIAS_KEYS["Conditional"];t.CONDITIONAL_TYPES=d;const f=n.FLIPPED_ALIAS_KEYS["Loop"];t.LOOP_TYPES=f;const m=n.FLIPPED_ALIAS_KEYS["While"];t.WHILE_TYPES=m;const g=n.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];t.EXPRESSIONWRAPPER_TYPES=g;const _=n.FLIPPED_ALIAS_KEYS["For"];t.FOR_TYPES=_;const h=n.FLIPPED_ALIAS_KEYS["ForXStatement"];t.FORXSTATEMENT_TYPES=h;const y=n.FLIPPED_ALIAS_KEYS["Function"];t.FUNCTION_TYPES=y;const v=n.FLIPPED_ALIAS_KEYS["FunctionParent"];t.FUNCTIONPARENT_TYPES=v;const T=n.FLIPPED_ALIAS_KEYS["Pureish"];t.PUREISH_TYPES=T;const S=n.FLIPPED_ALIAS_KEYS["Declaration"];t.DECLARATION_TYPES=S;const b=n.FLIPPED_ALIAS_KEYS["PatternLike"];t.PATTERNLIKE_TYPES=b;const E=n.FLIPPED_ALIAS_KEYS["LVal"];t.LVAL_TYPES=E;const x=n.FLIPPED_ALIAS_KEYS["TSEntityName"];t.TSENTITYNAME_TYPES=x;const D=n.FLIPPED_ALIAS_KEYS["Literal"];t.LITERAL_TYPES=D;const C=n.FLIPPED_ALIAS_KEYS["Immutable"];t.IMMUTABLE_TYPES=C;const A=n.FLIPPED_ALIAS_KEYS["UserWhitespacable"];t.USERWHITESPACABLE_TYPES=A;const k=n.FLIPPED_ALIAS_KEYS["Method"];t.METHOD_TYPES=k;const P=n.FLIPPED_ALIAS_KEYS["ObjectMember"];t.OBJECTMEMBER_TYPES=P;const N=n.FLIPPED_ALIAS_KEYS["Property"];t.PROPERTY_TYPES=N;const O=n.FLIPPED_ALIAS_KEYS["UnaryLike"];t.UNARYLIKE_TYPES=O;const F=n.FLIPPED_ALIAS_KEYS["Pattern"];t.PATTERN_TYPES=F;const w=n.FLIPPED_ALIAS_KEYS["Class"];t.CLASS_TYPES=w;const I=n.FLIPPED_ALIAS_KEYS["ModuleDeclaration"];t.MODULEDECLARATION_TYPES=I;const L=n.FLIPPED_ALIAS_KEYS["ExportDeclaration"];t.EXPORTDECLARATION_TYPES=L;const M=n.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];t.MODULESPECIFIER_TYPES=M;const R=n.FLIPPED_ALIAS_KEYS["Private"];t.PRIVATE_TYPES=R;const B=n.FLIPPED_ALIAS_KEYS["Flow"];t.FLOW_TYPES=B;const j=n.FLIPPED_ALIAS_KEYS["FlowType"];t.FLOWTYPE_TYPES=j;const J=n.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];t.FLOWBASEANNOTATION_TYPES=J;const U=n.FLIPPED_ALIAS_KEYS["FlowDeclaration"];t.FLOWDECLARATION_TYPES=U;const V=n.FLIPPED_ALIAS_KEYS["FlowPredicate"];t.FLOWPREDICATE_TYPES=V;const W=n.FLIPPED_ALIAS_KEYS["EnumBody"];t.ENUMBODY_TYPES=W;const K=n.FLIPPED_ALIAS_KEYS["EnumMember"];t.ENUMMEMBER_TYPES=K;const G=n.FLIPPED_ALIAS_KEYS["JSX"];t.JSX_TYPES=G;const z=n.FLIPPED_ALIAS_KEYS["TSTypeElement"];t.TSTYPEELEMENT_TYPES=z;const H=n.FLIPPED_ALIAS_KEYS["TSType"];t.TSTYPE_TYPES=H;const q=n.FLIPPED_ALIAS_KEYS["TSBaseType"];t.TSBASETYPE_TYPES=q},3104:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.default}});var n=r(1401);var i=r(6916);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,i){return new n.default(e).addNamed(t,r,i)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},3115:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},3125:function(e,t,r){"use strict";t.__esModule=true;var n=r(2979);var i=_interopRequireDefault(n);t.findParent=findParent;t.find=find;t.getFunctionParent=getFunctionParent;t.getStatementParent=getStatementParent;t.getEarliestCommonAncestorFrom=getEarliestCommonAncestorFrom;t.getDeepestCommonAncestorFrom=getDeepestCommonAncestorFrom;t.getAncestry=getAncestry;t.isAncestor=isAncestor;t.isDescendant=isDescendant;t.inType=inType;t.inShadow=inShadow;var a=r(8011);var s=_interopRequireWildcard(a);var o=r(4644);var c=_interopRequireDefault(o);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function findParent(e){var t=this;while(t=t.parentPath){if(e(t))return t}return null}function find(e){var t=this;do{if(e(t))return t}while(t=t.parentPath);return null}function getFunctionParent(){return this.findParent(function(e){return e.isFunction()||e.isProgram()})}function getStatementParent(){var e=this;do{if(Array.isArray(e.container)){return e}}while(e=e.parentPath)}function getEarliestCommonAncestorFrom(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,r){var n=void 0;var a=s.VISITOR_KEYS[e.type];for(var o=r,c=Array.isArray(o),u=0,o=c?o:(0,i.default)(o);;){var l;if(c){if(u>=o.length)break;l=o[u++]}else{u=o.next();if(u.done)break;l=u.value}var p=l;var d=p[t+1];if(!n){n=d;continue}if(d.listKey&&n.listKey===d.listKey){if(d.keym){n=d}}return n})}function getDeepestCommonAncestorFrom(e,t){var r=this;if(!e.length){return this}if(e.length===1){return e[0]}var n=Infinity;var a=void 0,s=void 0;var o=e.map(function(e){var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==r);if(t.length=p.length)break;m=p[f++]}else{f=p.next();if(f.done)break;m=f.value}var g=m;if(g[u]!==l){break e}}a=u;s=l}if(s){if(t){return t(s,a,o)}else{return s}}else{throw new Error("Couldn't find intersection")}}function getAncestry(){var e=this;var t=[];do{t.push(e)}while(e=e.parentPath);return t}function isAncestor(e){return e.isDescendant(this)}function isDescendant(e){return!!this.findParent(function(t){return t===e})}function inType(){var e=this;while(e){for(var t=arguments,r=Array.isArray(t),n=0,t=r?t:(0,i.default)(t);;){var a;if(r){if(n>=t.length)break;a=t[n++]}else{n=t.next();if(n.done)break;a=n.value}var s=a;if(e.node.type===s)return true}e=e.parentPath}return false}function inShadow(e){var t=this.isFunction()?this:this.findParent(function(e){return e.isFunction()});if(!t)return;if(t.isFunctionExpression()||t.isFunctionDeclaration()){var r=t.node.shadow;if(r&&(!e||r[e]!==false)){return t}}else if(t.isArrowFunctionExpression()){return t}return null}},3127:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=a(r(6539));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new s.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3129:function(e){e.exports=require("child_process")},3130:function(e){function stubArray(){return[]}e.exports=stubArray},3140:function(e,t){t.f=Object.getOwnPropertySymbols},3150:function(e,t,r){const n=r(805);const i=(e,t)=>e.sort((e,r)=>n(r,e,t));e.exports=i},3165:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=removeTypeDuplicates;var n=r(4897);function removeTypeDuplicates(e){const t={};const r={};const i=new Set;const a=[];for(let t=0;t=0){continue}if((0,n.isTSAnyKeyword)(s)){return[s]}if((0,n.isTSBaseType)(s)){r[s.type]=s;continue}if((0,n.isTSUnionType)(s)){if(!i.has(s.types)){e.push(...s.types);i.add(s.types)}continue}a.push(s)}for(const e of Object.keys(r)){a.push(r[e])}for(const e of Object.keys(t)){a.push(t[e])}return a}},3168:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.get=get;t.minVersion=minVersion;t.getDependencies=getDependencies;t.ensure=ensure;t.default=t.list=void 0;var n=r(5167);var i=r(9978);var a=r(7618);const{assignmentExpression:s,cloneNode:o,expressionStatement:c,file:u,identifier:l,variableDeclaration:p,variableDeclarator:d}=i;function makePath(e){const t=[];for(;e.parentPath;e=e.parentPath){t.push(e.key);if(e.inList)t.push(e.listKey)}return t.reverse().join(".")}let f=undefined;function getHelperMetadata(e){const t=new Set;const r=new Set;const i=new Map;let s;let o;const c=[];const u=[];const l=[];const p={ImportDeclaration(e){const t=e.node.source.value;if(!a.default[t]){throw e.buildCodeFrameError(`Unknown helper ${t}`)}if(e.get("specifiers").length!==1||!e.get("specifiers.0").isImportDefaultSpecifier()){throw e.buildCodeFrameError("Helpers can only import a default value")}const r=e.node.specifiers[0].local;i.set(r,t);u.push(makePath(e))},ExportDefaultDeclaration(e){const t=e.get("declaration");if(t.isFunctionDeclaration()){if(!t.node.id){throw t.buildCodeFrameError("Helpers should give names to their exported func declaration")}s=t.node.id.name}o=makePath(e)},ExportAllDeclaration(e){throw e.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(e){throw e.buildCodeFrameError("Helpers can only export default")},Statement(e){if(e.isModuleDeclaration())return;e.skip()}};const d={Program(e){const t=e.scope.getAllBindings();Object.keys(t).forEach(e=>{if(e===s)return;if(i.has(t[e].identifier))return;r.add(e)})},ReferencedIdentifier(e){const r=e.node.name;const n=e.scope.getBinding(r);if(!n){t.add(r)}else if(i.has(n.identifier)){l.push(makePath(e))}},AssignmentExpression(e){const t=e.get("left");if(!(s in t.getBindingIdentifiers()))return;if(!t.isIdentifier()){throw t.buildCodeFrameError("Only simple assignments to exports are allowed in helpers")}const r=e.scope.getBinding(s);if(r!=null&&r.scope.path.isProgram()){c.push(makePath(e))}}};(0,n.default)(e.ast,p,e.scope);(0,n.default)(e.ast,d,e.scope);if(!o)throw new Error("Helpers must default-export something.");c.reverse();return{globals:Array.from(t),localBindingNames:Array.from(r),dependencies:i,exportBindingAssignments:c,exportPath:o,exportName:s,importBindingsReferences:l,importPaths:u}}function permuteHelperAST(e,t,r,i,a){if(i&&!r){throw new Error("Unexpected local bindings for module-based helpers.")}if(!r)return;const{localBindingNames:u,dependencies:f,exportBindingAssignments:m,exportPath:g,exportName:_,importBindingsReferences:h,importPaths:y}=t;const v={};f.forEach((e,t)=>{v[t.name]=typeof a==="function"&&a(e)||t});const T={};const S=new Set(i||[]);u.forEach(e=>{let t=e;while(S.has(t))t="_"+t;if(t!==e)T[e]=t});if(r.type==="Identifier"&&_!==r.name){T[_]=r.name}const b={Program(e){const t=e.get(g);const n=y.map(t=>e.get(t));const i=h.map(t=>e.get(t));const a=t.get("declaration");if(r.type==="Identifier"){if(a.isFunctionDeclaration()){t.replaceWith(a)}else{t.replaceWith(p("var",[d(r,a.node)]))}}else if(r.type==="MemberExpression"){if(a.isFunctionDeclaration()){m.forEach(t=>{const n=e.get(t);n.replaceWith(s("=",r,n.node))});t.replaceWith(a);e.pushContainer("body",c(s("=",r,l(_))))}else{t.replaceWith(c(s("=",r,a.node)))}}else{throw new Error("Unexpected helper format.")}Object.keys(T).forEach(t=>{e.scope.rename(t,T[t])});for(const e of n)e.remove();for(const e of i){const t=o(v[e.node.name]);e.replaceWith(t)}e.stop()}};(0,n.default)(e.ast,b,e.scope)}const m=Object.create(null);function loadHelper(e){if(!m[e]){const t=a.default[e];if(!t){throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e})}const r=()=>{const r={ast:u(t.ast())};if(f){return new f({filename:`babel-helper://${e}`},r)}return r};const n=getHelperMetadata(r());m[e]={build(e,t,i){const a=r();permuteHelperAST(a,n,t,i,e);return{nodes:a.ast.program.body,globals:n.globals}},minVersion(){return t.minVersion},dependencies:n.dependencies}}return m[e]}function get(e,t,r,n){return loadHelper(e).build(t,r,n)}function minVersion(e){return loadHelper(e).minVersion()}function getDependencies(e){return Array.from(loadHelper(e).dependencies.values())}function ensure(e,t){if(!f){f=t}loadHelper(e)}const g=Object.keys(a.default).map(e=>e.replace(/^_/,"")).filter(e=>e!=="__esModule");t.list=g;var _=get;t.default=_},3169:function(e,t,r){r(7163);r(1347);r(4358);r(4124);r(7753);r(8610);r(2985);e.exports=r(5496).Map},3178:function(e,t,r){e.exports=!r(917)&&!r(3461)(function(){return Object.defineProperty(r(5316)("div"),"a",{get:function(){return 7}}).a!=7})},3185:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},3186:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=0;r--){var n=t(e[r],r);if(n){return n}}}return undefined}e.forEachRight=forEachRight;function firstDefined(e,t){if(e===undefined){return undefined}for(var r=0;r=0;r--){var n=e[r];if(t(n,r)){return n}}return undefined}e.findLast=findLast;function findIndex(e,t,r){for(var n=r||0;n=0;n--){if(t(e[n],n)){return n}}return-1}e.findLastIndex=findLastIndex;function findMap(t,r){for(var n=0;n0}}return false}e.some=some;function getRangesWhere(e,t,r){var n;for(var i=0;i0){e.Debug.assertGreaterThanOrEqual(n(r[s],r[s-1]),0)}t:for(var o=a;ao){e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0)}switch(n(r[s],t[a])){case-1:i.push(r[s]);continue e;case 0:continue e;case 1:continue t}}}return i}e.relativeComplement=relativeComplement;function sum(e,t){var r=0;for(var n=0,i=e;n>1);var c=r(e[o],o);switch(n(c,t)){case-1:a=o+1;break;case 0:return o;case 1:s=o-1;break}}return~a}e.binarySearchKey=binarySearchKey;function reduceLeft(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var s=n===undefined||n<0?0:n;var o=i===undefined||s+i>a-1?a-1:s+i;var c=void 0;if(arguments.length<=2){c=e[s];s++}else{c=r}while(s<=o){c=t(c,e[s],s);s++}return c}}return r}e.reduceLeft=reduceLeft;var t=Object.prototype.hasOwnProperty;function hasProperty(e,r){return t.call(e,r)}e.hasProperty=hasProperty;function getProperty(e,r){return t.call(e,r)?e[r]:undefined}e.getProperty=getProperty;function getOwnKeys(e){var r=[];for(var n in e){if(t.call(e,n)){r.push(n)}}return r}e.getOwnKeys=getOwnKeys;function getAllKeys(e){var t=[];do{var r=Object.getOwnPropertyNames(e);for(var n=0,i=r;nt?1:0}e.compareStringsCaseInsensitive=compareStringsCaseInsensitive;function compareStringsCaseSensitive(e,t){return compareComparableValues(e,t)}e.compareStringsCaseSensitive=compareStringsCaseSensitive;function getStringComparer(e){return e?compareStringsCaseInsensitive:compareStringsCaseSensitive}e.getStringComparer=getStringComparer;var s=function(){var e;var t;var r=getStringComparerFactory();return createStringComparer;function compareWithCallback(e,t,r){if(e===t)return 0;if(e===undefined)return-1;if(t===undefined)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function createIntlCollatorStringComparer(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return compareWithCallback(e,r,t)}}function createLocaleCompareStringComparer(e){if(e!==undefined)return createFallbackStringComparer();return function(e,t){return compareWithCallback(e,t,compareStrings)};function compareStrings(e,t){return e.localeCompare(t)}}function createFallbackStringComparer(){return function(e,t){return compareWithCallback(e,t,compareDictionaryOrder)};function compareDictionaryOrder(e,t){return compareStrings(e.toUpperCase(),t.toUpperCase())||compareStrings(e,t)}function compareStrings(e,t){return et?1:0}}function getStringComparerFactory(){if(typeof Intl==="object"&&typeof Intl.Collator==="function"){return createIntlCollatorStringComparer}if(typeof String.prototype.localeCompare==="function"&&typeof String.prototype.toLocaleUpperCase==="function"&&"a".localeCompare("B")<0){return createLocaleCompareStringComparer}return createFallbackStringComparer}function createStringComparer(n){if(n===undefined){return e||(e=r(n))}else if(n==="en-US"){return t||(t=r(n))}else{return r(n)}}}();var o;var c;function getUILocale(){return c}e.getUILocale=getUILocale;function setUILocale(e){if(c!==e){c=e;o=undefined}}e.setUILocale=setUILocale;function compareStringsCaseSensitiveUI(e,t){var r=o||(o=s(c));return r(e,t)}e.compareStringsCaseSensitiveUI=compareStringsCaseSensitiveUI;function compareProperties(e,t,r,n){return e===t?0:e===undefined?-1:t===undefined?1:n(e[r],t[r])}e.compareProperties=compareProperties;function compareBooleans(e,t){return compareValues(e?1:0,t?1:0)}e.compareBooleans=compareBooleans;function getSpellingSuggestion(t,r,n){var i=Math.min(2,Math.floor(t.length*.34));var a=Math.floor(t.length*.4)+1;var s;for(var o=0,c=r;or?s-r:1);var u=Math.floor(t.length>r+s?r+s:t.length);i[0]=s;var l=s;for(var p=1;pr){return undefined}var m=n;n=i;i=m}var g=n[t.length];return g>r?undefined:g}function endsWith(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}e.endsWith=endsWith;function removeSuffix(e,t){return endsWith(e,t)?e.slice(0,e.length-t.length):e}e.removeSuffix=removeSuffix;function tryRemoveSuffix(e,t){return endsWith(e,t)?e.slice(0,e.length-t.length):undefined}e.tryRemoveSuffix=tryRemoveSuffix;function stringContains(e,t){return e.indexOf(t)!==-1}e.stringContains=stringContains;function removeMinAndVersionNumbers(e){var t=e.length;for(var r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57){do{--r;n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57)}else if(r>4&&(n===110||n===78)){--r;n=e.charCodeAt(r);if(n!==105&&n!==73){break}--r;n=e.charCodeAt(r);if(n!==109&&n!==77){break}--r;n=e.charCodeAt(r)}else{break}if(n!==45&&n!==46){break}t=r}return t===e.length?e:e.slice(0,t)}e.removeMinAndVersionNumbers=removeMinAndVersionNumbers;function orderedRemoveItem(e,t){for(var r=0;ri){i=c.prefix.length;n=o}}return n}e.findBestPatternMatch=findBestPatternMatch;function startsWith(e,t){return e.lastIndexOf(t,0)===0}e.startsWith=startsWith;function removePrefix(e,t){return startsWith(e,t)?e.substr(t.length):e}e.removePrefix=removePrefix;function tryRemovePrefix(e,t,r){if(r===void 0){r=identity}return startsWith(r(e),r(t))?e.substring(t.length):undefined}e.tryRemovePrefix=tryRemovePrefix;function isPatternMatch(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&startsWith(t,r)&&endsWith(t,n)}function and(e,t){return function(r){return e(r)&&t(r)}}e.and=and;function or(){var e=[];for(var t=0;t=0){if(!e.isWhiteSpaceLike(t.charCodeAt(r)))break;r--}return t.slice(0,r+1)}})(u||(u={}));var u;(function(e){var t;(function(e){e[e["Off"]=0]="Off";e[e["Error"]=1]="Error";e[e["Warning"]=2]="Warning";e[e["Info"]=3]="Info";e[e["Verbose"]=4]="Verbose"})(t=e.LogLevel||(e.LogLevel={}));var r;(function(r){var n;var i=0;r.currentLogLevel=t.Warning;r.isDebugging=false;function getTypeScriptVersion(){return n!==null&&n!==void 0?n:n=new e.Version(e.version)}r.getTypeScriptVersion=getTypeScriptVersion;function shouldLog(e){return r.currentLogLevel<=e}r.shouldLog=shouldLog;function logMessage(e,t){if(r.loggingHost&&shouldLog(e)){r.loggingHost.log(e,t)}}function log(e){logMessage(t.Info,e)}r.log=log;(function(e){function error(e){logMessage(t.Error,e)}e.error=error;function warn(e){logMessage(t.Warning,e)}e.warn=warn;function log(e){logMessage(t.Info,e)}e.log=log;function trace(e){logMessage(t.Verbose,e)}e.trace=trace})(log=r.log||(r.log={}));var a={};function getAssertionLevel(){return i}r.getAssertionLevel=getAssertionLevel;function setAssertionLevel(t){var n=i;i=t;if(t>n){for(var s=0,o=e.getOwnKeys(a);s=u.level){r[c]=u;a[c]=undefined}}}}r.setAssertionLevel=setAssertionLevel;function shouldAssert(e){return i>=e}r.shouldAssert=shouldAssert;function shouldAssertFunction(t,n){if(!shouldAssert(t)){a[n]={level:t,assertion:r[n]};r[n]=e.noop;return false}return true}function fail(e,t){debugger;var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");if(Error.captureStackTrace){Error.captureStackTrace(r,t||fail)}throw r}r.fail=fail;function failBadSyntaxKind(e,t,r){return fail((t||"Unexpected node.")+"\r\nNode "+formatSyntaxKind(e.kind)+" was unexpected.",r||failBadSyntaxKind)}r.failBadSyntaxKind=failBadSyntaxKind;function assert(e,t,r,n){if(!e){t=t?"False expression: "+t:"False expression.";if(r){t+="\r\nVerbose Debug Information: "+(typeof r==="string"?r:r())}fail(t,n||assert)}}r.assert=assert;function assertEqual(e,t,r,n,i){if(e!==t){var a=r?n?r+" "+n:r:"";fail("Expected "+e+" === "+t+". "+a,i||assertEqual)}}r.assertEqual=assertEqual;function assertLessThan(e,t,r,n){if(e>=t){fail("Expected "+e+" < "+t+". "+(r||""),n||assertLessThan)}}r.assertLessThan=assertLessThan;function assertLessThanOrEqual(e,t,r){if(e>t){fail("Expected "+e+" <= "+t,r||assertLessThanOrEqual)}}r.assertLessThanOrEqual=assertLessThanOrEqual;function assertGreaterThanOrEqual(e,t,r){if(e= "+t,r||assertGreaterThanOrEqual)}}r.assertGreaterThanOrEqual=assertGreaterThanOrEqual;function assertIsDefined(e,t,r){if(e===undefined||e===null){fail(t,r||assertIsDefined)}}r.assertIsDefined=assertIsDefined;function checkDefined(e,t,r){assertIsDefined(e,t,r||checkDefined);return e}r.checkDefined=checkDefined;r.assertDefined=checkDefined;function assertEachIsDefined(e,t,r){for(var n=0,i=e;n0&&n[0][0]===0?n[0][1]:"0"}if(r){var i="";var a=e;for(var s=0,o=n;se){break}if(u!==0&&u&e){i=""+i+(i?"|":"")+l;a&=~u}}if(a===0){return i}}else{for(var p=0,d=n;p=0;return u?createErrorDeprecation(t,s,c,r.message):l?createWarningDeprecation(t,s,c,r.message):e.noop}function wrapFunction(e,t){return function(){e();return t.apply(this,arguments)}}function deprecate(e,t){var r=createDeprecation(getFunctionName(e),t);return wrapFunction(r,e)}r.deprecate=deprecate})(r=e.Debug||(e.Debug={}))})(u||(u={}));var u;(function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i;var r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i;var n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i;var i=/^(0|[1-9]\d*)$/;var a=function(){function Version(t,i,a,s,o){if(i===void 0){i=0}if(a===void 0){a=0}if(s===void 0){s=""}if(o===void 0){o=""}if(typeof t==="string"){var c=e.Debug.checkDefined(tryParseComponents(t),"Invalid version");t=c.major,i=c.minor,a=c.patch,s=c.prerelease,o=c.build}e.Debug.assert(t>=0,"Invalid argument: major");e.Debug.assert(i>=0,"Invalid argument: minor");e.Debug.assert(a>=0,"Invalid argument: patch");e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease");e.Debug.assert(!o||n.test(o),"Invalid argument: build");this.major=t;this.minor=i;this.patch=a;this.prerelease=s?s.split("."):e.emptyArray;this.build=o?o.split("."):e.emptyArray}Version.tryParse=function(e){var t=tryParseComponents(e);if(!t)return undefined;var r=t.major,n=t.minor,i=t.patch,a=t.prerelease,s=t.build;return new Version(r,n,i,a,s)};Version.prototype.compareTo=function(t){if(this===t)return 0;if(t===undefined)return 1;return e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||comparePrereleaseIdentifiers(this.prerelease,t.prerelease)};Version.prototype.increment=function(t){switch(t){case"major":return new Version(this.major+1,0,0);case"minor":return new Version(this.major,this.minor+1,0);case"patch":return new Version(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}};Version.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;if(e.some(this.prerelease))t+="-"+this.prerelease.join(".");if(e.some(this.build))t+="+"+this.build.join(".");return t};Version.zero=new Version(0,0,0);return Version}();e.Version=a;function tryParseComponents(e){var i=t.exec(e);if(!i)return undefined;var a=i[1],s=i[2],o=s===void 0?"0":s,c=i[3],u=c===void 0?"0":c,l=i[4],p=l===void 0?"":l,d=i[5],f=d===void 0?"":d;if(p&&!r.test(p))return undefined;if(f&&!n.test(f))return undefined;return{major:parseInt(a,10),minor:parseInt(o,10),patch:parseInt(u,10),prerelease:p,build:f}}function comparePrereleaseIdentifiers(t,r){if(t===r)return 0;if(t.length===0)return r.length===0?0:1;if(r.length===0)return-1;var n=Math.min(t.length,r.length);for(var a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function parseRange(t){var r=[];for(var n=0,i=e.trimString(t).split(o);n=",n.version))}if(!isWildcard(i.major)){r.push(isWildcard(i.minor)?createComparator("<",i.version.increment("major")):isWildcard(i.patch)?createComparator("<",i.version.increment("minor")):createComparator("<=",i.version))}return true}function parseComparator(e,t,r){var n=parsePartial(t);if(!n)return false;var i=n.version,s=n.major,o=n.minor,c=n.patch;if(!isWildcard(s)){switch(e){case"~":r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(isWildcard(o)?"major":"minor")));break;case"^":r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(i.major>0||isWildcard(o)?"major":i.minor>0||isWildcard(c)?"minor":"patch")));break;case"<":case">=":r.push(createComparator(e,i));break;case"<=":case">":r.push(isWildcard(o)?createComparator(e==="<="?"<":">=",i.increment("major")):isWildcard(c)?createComparator(e==="<="?"<":">=",i.increment("minor")):createComparator(e,i));break;case"=":case undefined:if(isWildcard(o)||isWildcard(c)){r.push(createComparator(">=",i));r.push(createComparator("<",i.increment(isWildcard(o)?"major":"minor")))}else{r.push(createComparator("=",i))}break;default:return false}}else if(e==="<"||e===">"){r.push(createComparator("<",a.zero))}return true}function isWildcard(e){return e==="*"||e==="x"||e==="X"}function createComparator(e,t){return{operator:e,operand:t}}function testDisjunction(e,t){if(t.length===0)return true;for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return i===0;default:return e.Debug.assertNever(r)}}function formatDisjunction(t){return e.map(t,formatAlternative).join(" || ")||"*"}function formatAlternative(t){return e.map(t,formatComparator).join(" ")}function formatComparator(e){return""+e.operator+e.operand}})(u||(u={}));var u;(function(e){function hasRequiredAPI(e,t){return typeof e==="object"&&typeof e.timeOrigin==="number"&&typeof e.mark==="function"&&typeof e.measure==="function"&&typeof e.now==="function"&&typeof t==="function"}function tryGetWebPerformanceHooks(){if(typeof performance==="object"&&typeof PerformanceObserver==="function"&&hasRequiredAPI(performance,PerformanceObserver)){return{shouldWriteNativeEvents:true,performance:performance,PerformanceObserver:PerformanceObserver}}}function tryGetNodePerformanceHooks(){if(typeof process!=="undefined"&&process.nextTick&&!process.browser&&"object"==="object"&&"function"==="function"){try{var t;var n=r(630),i=n.performance,a=n.PerformanceObserver;if(hasRequiredAPI(i,a)){t=i;var s=new e.Version(process.versions.node);var o=new e.VersionRange("<12.16.3 || 13 <13.13");if(o.test(s)){t={get timeOrigin(){return i.timeOrigin},now:function(){return i.now()},mark:function(e){return i.mark(e)},measure:function(e,t,r){if(t===void 0){t="nodeStart"}if(r===undefined){r="__performance.measure-fix__";i.mark(r)}i.measure(e,t,r);if(r==="__performance.measure-fix__"){i.clearMarks("__performance.measure-fix__")}}}}return{shouldWriteNativeEvents:false,performance:t,PerformanceObserver:a}}}catch(e){}}}var t=tryGetWebPerformanceHooks()||tryGetNodePerformanceHooks();var n=t===null||t===void 0?void 0:t.performance;function tryGetNativePerformanceHooks(){return t}e.tryGetNativePerformanceHooks=tryGetNativePerformanceHooks;e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}})(u||(u={}));var u;(function(e){var t;(function(t){var r;var n;function createTimerIf(e,r,n,i){return e?createTimer(r,n,i):t.nullTimer}t.createTimerIf=createTimerIf;function createTimer(t,r,n){var i=0;return{enter:enter,exit:exit};function enter(){if(++i===1){mark(r)}}function exit(){if(--i===0){mark(n);measure(t,r,n)}else if(i<0){e.Debug.fail("enter/exit count does not match.")}}}t.createTimer=createTimer;t.nullTimer={enter:e.noop,exit:e.noop};var i=false;var a=e.timestamp();var s=new e.Map;var o=new e.Map;var c=new e.Map;function mark(t){var r;if(i){var a=(r=o.get(t))!==null&&r!==void 0?r:0;o.set(t,a+1);s.set(t,e.timestamp());n===null||n===void 0?void 0:n.mark(t)}}t.mark=mark;function measure(t,r,o){var u,l;if(i){var p=(u=o!==undefined?s.get(o):undefined)!==null&&u!==void 0?u:e.timestamp();var d=(l=r!==undefined?s.get(r):undefined)!==null&&l!==void 0?l:a;var f=c.get(t)||0;c.set(t,f+(p-d));n===null||n===void 0?void 0:n.measure(t,r,o)}}t.measure=measure;function getCount(e){return o.get(e)||0}t.getCount=getCount;function getDuration(e){return c.get(e)||0}t.getDuration=getDuration;function forEachMeasure(e){c.forEach(function(t,r){return e(r,t)})}t.forEachMeasure=forEachMeasure;function isEnabled(){return i}t.isEnabled=isEnabled;function enable(t){var s;if(t===void 0){t=e.sys}if(!i){i=true;r||(r=e.tryGetNativePerformanceHooks());if(r){a=r.performance.timeOrigin;if(r.shouldWriteNativeEvents||((s=t===null||t===void 0?void 0:t.cpuProfilingEnabled)===null||s===void 0?void 0:s.call(t))||(t===null||t===void 0?void 0:t.debugMode)){n=r.performance}}}return true}t.enable=enable;function disable(){if(i){s.clear();o.clear();c.clear();n=undefined;i=false}}t.disable=disable})(t=e.performance||(e.performance={}))})(u||(u={}));var u;(function(e){var t;var r={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};var n;try{var i=(t=process.env.TS_ETW_MODULE_PATH)!==null&&t!==void 0?t:"./node_modules/@microsoft/typescript-etw";n=require(i)}catch(e){n=undefined}e.perfLogger=n&&n.logEvent?n:r})(u||(u={}));var u;(function(e){var t;(function(t){var n;var a=0;var s=0;var o;var c=[];var u;var l=[];function startTracing(p,d,f){e.Debug.assert(!e.tracing,"Tracing already started");if(n===undefined){try{n=r(5747)}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}}o=p;c.length=0;if(u===undefined){u=e.combinePaths(d,"legend.json")}if(!n.existsSync(d)){n.mkdirSync(d,{recursive:true})}var m=o==="build"?"."+process.pid+"-"+ ++a:o==="server"?"."+process.pid:"";var g=e.combinePaths(d,"trace"+m+".json");var _=e.combinePaths(d,"types"+m+".json");l.push({configFilePath:f,tracePath:g,typesPath:_});s=n.openSync(g,"w");e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(s,"[\n"+[i({name:"process_name",args:{name:"tsc"}},h),i({name:"thread_name",args:{name:"Main"}},h),i(i({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map(function(e){return JSON.stringify(e)}).join(",\n"))}t.startTracing=startTracing;function stopTracing(){e.Debug.assert(e.tracing,"Tracing is not in progress");e.Debug.assert(!!c.length===(o!=="server"));n.writeSync(s,"\n]\n");n.closeSync(s);e.tracing=undefined;if(c.length){dumpTypes(c)}else{l[l.length-1].typesPath=undefined}}t.stopTracing=stopTracing;function recordType(e){if(o!=="server"){c.push(e)}}t.recordType=recordType;var p;(function(e){e["Parse"]="parse";e["Program"]="program";e["Bind"]="bind";e["Check"]="check";e["CheckTypes"]="checkTypes";e["Emit"]="emit";e["Session"]="session"})(p=t.Phase||(t.Phase={}));function instant(e,t,r){writeEvent("I",e,t,r,'"s":"g"')}t.instant=instant;var d=[];function push(t,r,n,i){if(i===void 0){i=false}if(i){writeEvent("B",t,r,n)}d.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})}t.push=push;function pop(){e.Debug.assert(d.length>0);writeStackEvent(d.length-1,1e3*e.timestamp());d.length--}t.pop=pop;function popAll(){var t=1e3*e.timestamp();for(var r=d.length-1;r>=0;r--){writeStackEvent(r,t)}d.length=0}t.popAll=popAll;var f=1e3*10;function writeStackEvent(e,t){var r=d[e],n=r.phase,i=r.name,a=r.args,s=r.time,o=r.separateBeginAndEnd;if(o){writeEvent("E",n,i,a,undefined,t)}else if(f-s%f<=t-s){writeEvent("X",n,i,a,'"dur":'+(t-s),s)}}function writeEvent(t,r,i,a,c,u){if(u===void 0){u=1e3*e.timestamp()}if(o==="server"&&r==="checkTypes")return;e.performance.mark("beginTracing");n.writeSync(s,',\n{"pid":1,"tid":1,"ph":"'+t+'","cat":"'+r+'","ts":'+u+',"name":"'+i+'"');if(c)n.writeSync(s,","+c);if(a)n.writeSync(s,',"args":'+JSON.stringify(a));n.writeSync(s,"}");e.performance.mark("endTracing");e.performance.measure("Tracing","beginTracing","endTracing")}function getLocation(t){var r=e.getSourceFileOfNode(t);return!r?undefined:{path:r.path,start:indexFromOne(e.getLineAndCharacterOfPosition(r,t.pos)),end:indexFromOne(e.getLineAndCharacterOfPosition(r,t.end))};function indexFromOne(e){return{line:e.line+1,character:e.character+1}}}function dumpTypes(t){var r,a,s,o,c,u,p,d,f,m,g,_,h,y,v,T,S,b,E,x,D,C;e.performance.mark("beginDumpTypes");var A=l[l.length-1].typesPath;var k=n.openSync(A,"w");var P=new e.Map;n.writeSync(k,"[");var N=t.length;for(var O=0;O0}e.isRootedDiskPath=isRootedDiskPath;function isDiskPathRoot(e){var t=getEncodedRootLength(e);return t>0&&t===e.length}e.isDiskPathRoot=isDiskPathRoot;function pathIsAbsolute(e){return getEncodedRootLength(e)!==0}e.pathIsAbsolute=pathIsAbsolute;function pathIsRelative(e){return/^\.\.?($|[\\/])/.test(e)}e.pathIsRelative=pathIsRelative;function pathIsBareSpecifier(e){return!pathIsAbsolute(e)&&!pathIsRelative(e)}e.pathIsBareSpecifier=pathIsBareSpecifier;function hasExtension(t){return e.stringContains(getBaseFileName(t),".")}e.hasExtension=hasExtension;function fileExtensionIs(t,r){return t.length>r.length&&e.endsWith(t,r)}e.fileExtensionIs=fileExtensionIs;function fileExtensionIsOneOf(e,t){for(var r=0,n=t;r0&&isAnyDirectorySeparator(e.charCodeAt(e.length-1))}e.hasTrailingDirectorySeparator=hasTrailingDirectorySeparator;function isVolumeCharacter(e){return e>=97&&e<=122||e>=65&&e<=90}function getFileUrlVolumeSeparatorEnd(e,t){var r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){var n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function getEncodedRootLength(r){if(!r)return 0;var n=r.charCodeAt(0);if(n===47||n===92){if(r.charCodeAt(1)!==n)return 1;var i=r.indexOf(n===47?e.directorySeparator:e.altDirectorySeparator,2);if(i<0)return r.length;return i+1}if(isVolumeCharacter(n)&&r.charCodeAt(1)===58){var a=r.charCodeAt(2);if(a===47||a===92)return 3;if(r.length===2)return 2}var s=r.indexOf(t);if(s!==-1){var o=s+t.length;var c=r.indexOf(e.directorySeparator,o);if(c!==-1){var u=r.slice(0,s);var l=r.slice(o,c);if(u==="file"&&(l===""||l==="localhost")&&isVolumeCharacter(r.charCodeAt(c+1))){var p=getFileUrlVolumeSeparatorEnd(r,c+2);if(p!==-1){if(r.charCodeAt(p)===47){return~(p+1)}if(p===r.length){return~p}}}return~(c+1)}return~r.length}return 0}function getRootLength(e){var t=getEncodedRootLength(e);return t<0?~t:t}e.getRootLength=getRootLength;function getDirectoryPath(t){t=normalizeSlashes(t);var r=getRootLength(t);if(r===t.length)return t;t=removeTrailingDirectorySeparator(t);return t.slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}e.getDirectoryPath=getDirectoryPath;function getBaseFileName(t,r,n){t=normalizeSlashes(t);var i=getRootLength(t);if(i===t.length)return"";t=removeTrailingDirectorySeparator(t);var a=t.slice(Math.max(getRootLength(t),t.lastIndexOf(e.directorySeparator)+1));var s=r!==undefined&&n!==undefined?getAnyExtensionFromPath(a,r,n):undefined;return s?a.slice(0,a.length-s.length):a}e.getBaseFileName=getBaseFileName;function tryGetExtensionFromPath(t,r,n){if(!e.startsWith(r,"."))r="."+r;if(t.length>=r.length&&t.charCodeAt(t.length-r.length)===46){var i=t.slice(t.length-r.length);if(n(i,r)){return i}}}function getAnyExtensionFromPathWorker(e,t,r){if(typeof t==="string"){return tryGetExtensionFromPath(e,t,r)||""}for(var n=0,i=t;n=0){return i.substring(a)}return""}e.getAnyExtensionFromPath=getAnyExtensionFromPath;function pathComponents(t,r){var i=t.substring(0,r);var a=t.substring(r).split(e.directorySeparator);if(a.length&&!e.lastOrUndefined(a))a.pop();return n([i],a,true)}function getPathComponents(e,t){if(t===void 0){t=""}e=combinePaths(t,e);return pathComponents(e,getRootLength(e))}e.getPathComponents=getPathComponents;function getPathFromPathComponents(t){if(t.length===0)return"";var r=t[0]&&ensureTrailingDirectorySeparator(t[0]);return r+t.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=getPathFromPathComponents;function normalizeSlashes(t){var n=t.indexOf("\\");if(n===-1){return t}r.lastIndex=n;return t.replace(r,e.directorySeparator)}e.normalizeSlashes=normalizeSlashes;function reducePathComponents(t){if(!e.some(t))return[];var r=[t[0]];for(var n=1;n1){if(r[r.length-1]!==".."){r.pop();continue}}else if(r[0])continue}r.push(i)}return r}e.reducePathComponents=reducePathComponents;function combinePaths(e){var t=[];for(var r=1;r0===getRootLength(r)>0,"Paths must either both be absolute or both be relative");var i=typeof n==="function"?n:e.identity;var a=typeof n==="boolean"?n:false;var s=getPathComponentsRelativeTo(t,r,a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i);return getPathFromPathComponents(s)}e.getRelativePathFromDirectory=getRelativePathFromDirectory;function convertToRelativePath(e,t,r){return!isRootedDiskPath(e)?e:getRelativePathToDirectoryOrUrl(t,e,t,r,false)}e.convertToRelativePath=convertToRelativePath;function getRelativePathFromFile(e,t,r){return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(e),t,r))}e.getRelativePathFromFile=getRelativePathFromFile;function getRelativePathToDirectoryOrUrl(t,r,n,i,a){var s=getPathComponentsRelativeTo(resolvePath(n,t),resolvePath(n,r),e.equateStringsCaseSensitive,i);var o=s[0];if(a&&isRootedDiskPath(o)){var c=o.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=c+o}return getPathFromPathComponents(s)}e.getRelativePathToDirectoryOrUrl=getRelativePathToDirectoryOrUrl;function forEachAncestorDirectory(e,t){while(true){var r=t(e);if(r!==undefined){return r}var n=getDirectoryPath(e);if(n===e){return undefined}e=n}}e.forEachAncestorDirectory=forEachAncestorDirectory;function isNodeModulesDirectory(t){return e.endsWith(t,"/node_modules")}e.isNodeModulesDirectory=isNodeModulesDirectory})(u||(u={}));var u;(function(e){function generateDjb2Hash(e){var t=5381;for(var r=0;r=4;var h=process.platform==="linux"||process.platform==="darwin";var y=u.platform();var v=isFileSystemCaseSensitive();var T=v?(a=o.realpathSync.native)!==null&&a!==void 0?a:o.realpathSync:o.realpathSync;var S=_&&(process.platform==="win32"||process.platform==="darwin");var b=e.memoize(function(){return process.cwd()});var E=createSystemWatchFunctions({pollingWatchFile:createSingleFileWatcherPerName(fsWatchFileWorker,v),getModifiedTime:getModifiedTime,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:fsWatch,useCaseSensitiveFileNames:v,getCurrentDirectory:b,fileExists:fileExists,fsSupportsRecursiveFsWatch:S,directoryExists:directoryExists,getAccessibleSortedChildDirectories:function(e){return getAccessibleFileSystemEntries(e).directories},realpath:realpath,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return(t=(e=i).defaultWatchFileKind)===null||t===void 0?void 0:t.call(e)}}),x=E.watchFile,D=E.watchDirectory;var C={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:v,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:readFile,writeFile:writeFile,watchFile:x,watchDirectory:D,resolvePath:function(e){return c.resolve(e)},fileExists:fileExists,directoryExists:directoryExists,createDirectory:function(e){if(!C.directoryExists(e)){try{o.mkdirSync(e)}catch(e){if(e.code!=="EEXIST"){throw e}}}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:b,getDirectories:getDirectories,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:readDirectory,getModifiedTime:getModifiedTime,setModifiedTime:setModifiedTime,deleteFile:deleteFile,createHash:l?createSHA256Hash:generateDjb2Hash,createSHA256Hash:l?createSHA256Hash:undefined,getMemoryUsage:function(){if(global.gc){global.gc()}return process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=statSync(e);if(t===null||t===void 0?void 0:t.isFile()){return t.size}}catch(e){}return 0},exit:function(e){disableCPUProfiler(function(){return process.exit(e)})},enableCPUProfiler:enableCPUProfiler,disableCPUProfiler:disableCPUProfiler,cpuProfilingEnabled:function(){return!!p||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:realpath,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{r(8105).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){if(process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking){process.stdout._handle.setBlocking(true)}},bufferFrom:bufferFrom,base64decode:function(e){return bufferFrom(e,"base64").toString("utf8")},base64encode:function(e){return bufferFrom(e).toString("base64")},require:function(t,r){try{var n=e.resolveJSModule(r,t,C);return{module:require(n),modulePath:n,error:undefined}}catch(e){return{module:undefined,modulePath:undefined,error:e}}}};return C;function statSync(e){return o.statSync(e,{throwIfNoEntry:false})}function enableCPUProfiler(e,t){if(p){t();return false}var n=r(7012);if(!n||!n.Session){t();return false}var i=new n.Session;i.connect();i.post("Profiler.enable",function(){i.post("Profiler.start",function(){p=i;d=e;t()})});return true}function cleanupPaths(t){var r=0;var n=new e.Map;var i=e.normalizeSlashes(__dirname);var a="file://"+(e.getRootLength(i)===1?"":"/")+i;for(var o=0,c=t.nodes;o=2&&r[0]===254&&r[1]===255){n&=~1;for(var i=0;i=2&&r[0]===255&&r[1]===254){return r.toString("utf16le",2)}if(n>=3&&r[0]===239&&r[1]===187&&r[2]===191){return r.toString("utf8",3)}return r.toString("utf8")}function readFile(t,r){e.perfLogger.logStartReadFile(t);var n=readFileWorker(t,r);e.perfLogger.logStopReadFile();return n}function writeFile(t,r,i){e.perfLogger.logEvent("WriteFile: "+t);if(i){r=n+r}var a;try{a=o.openSync(t,"w");o.writeSync(a,r,undefined,"utf8")}finally{if(a!==undefined){o.closeSync(a)}}}function getAccessibleFileSystemEntries(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{var r=o.readdirSync(t||".",{withFileTypes:true});var n=[];var i=[];for(var a=0,s=r;a type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:diag(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:diag(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:diag(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:diag(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:diag(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:diag(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:diag(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:diag(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:diag(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:diag(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:diag(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:diag(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:diag(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:diag(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:diag(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:diag(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:diag(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:diag(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:diag(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:diag(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:diag(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:diag(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:diag(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:diag(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:diag(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:diag(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:diag(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:diag(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:diag(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:diag(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:diag(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:diag(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:diag(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:diag(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:diag(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:diag(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:diag(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:diag(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:diag(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:diag(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:diag(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:diag(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:diag(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:diag(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:diag(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:diag(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:diag(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:diag(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:diag(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:diag(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:diag(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:diag(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:diag(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:diag(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:diag(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:diag(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:diag(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:diag(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:diag(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:diag(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:diag(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:diag(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:diag(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:diag(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:diag(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:diag(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:diag(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:diag(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:diag(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:diag(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:diag(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:diag(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:diag(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:diag(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:diag(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:diag(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:diag(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:diag(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:diag(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:diag(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:diag(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:diag(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:diag(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:diag(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:diag(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:diag(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:diag(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:diag(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:diag(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:diag(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:diag(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:diag(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:diag(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:diag(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:diag(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:diag(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:diag(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:diag(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:diag(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:diag(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:diag(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:diag(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:diag(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:diag(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:diag(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:diag(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:diag(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:diag(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:diag(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:diag(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:diag(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:diag(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:diag(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:diag(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:diag(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:diag(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:diag(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:diag(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:diag(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:diag(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:diag(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:diag(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:diag(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:diag(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:diag(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:diag(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:diag(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:diag(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:diag(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:diag(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:diag(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:diag(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:diag(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:diag(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:diag(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:diag(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:diag(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:diag(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:diag(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:diag(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:diag(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:diag(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:diag(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:diag(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:diag(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:diag(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:diag(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:diag(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:diag(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:diag(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:diag(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:diag(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:diag(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:diag(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:diag(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:diag(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:diag(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:diag(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:diag(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:diag(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:diag(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:diag(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:diag(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:diag(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:diag(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:diag(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),with_statements_are_not_allowed_in_an_async_function_block:diag(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:diag(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:diag(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:diag(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:diag(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:diag(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:diag(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:diag(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:diag(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:diag(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:diag(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:diag(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:diag(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd:diag(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:diag(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:diag(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:diag(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:diag(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:diag(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:diag(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:diag(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:diag(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:diag(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:diag(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:diag(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:diag(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:diag(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:diag(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:diag(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:diag(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:diag(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:diag(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:diag(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:diag(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:diag(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:diag(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:diag(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:diag(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:diag(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:diag(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:diag(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:diag(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:diag(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:diag(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:diag(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:diag(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:diag(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:diag(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:diag(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:diag(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:diag(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:diag(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:diag(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:diag(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:diag(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:diag(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:diag(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:diag(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:diag(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:diag(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:diag(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:diag(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:diag(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:diag(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:diag(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:diag(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:diag(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:diag(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:diag(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:diag(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:diag(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:diag(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:diag(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:diag(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:diag(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:diag(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:diag(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:diag(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:diag(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:diag(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:diag(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:diag(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:diag(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:diag(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:diag(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:diag(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:diag(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:diag(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:diag(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:diag(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:diag(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:diag(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:diag(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:diag(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:diag(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:diag(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:diag(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:diag(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:diag(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:diag(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:diag(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:diag(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:diag(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:diag(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:diag(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:diag(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:diag(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:diag(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:diag(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:diag(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:diag(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:diag(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:diag(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:diag(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:diag(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:diag(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:diag(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:diag(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:diag(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:diag(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:diag(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:diag(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:diag(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:diag(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:diag(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:diag(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:diag(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:diag(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:diag(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),The_types_of_0_are_incompatible_between_these_types:diag(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:diag(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:diag(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",undefined,true),Construct_signature_return_types_0_and_1_are_incompatible:diag(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",undefined,true),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:diag(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",undefined,true),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:diag(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",undefined,true),Duplicate_identifier_0:diag(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:diag(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:diag(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:diag(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:diag(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:diag(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:diag(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:diag(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:diag(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:diag(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:diag(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:diag(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:diag(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:diag(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:diag(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:diag(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:diag(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:diag(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:diag(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:diag(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:diag(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:diag(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:diag(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:diag(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:diag(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:diag(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:diag(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:diag(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:diag(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:diag(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:diag(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:diag(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:diag(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:diag(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:diag(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:diag(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:diag(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:diag(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:diag(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:diag(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:diag(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:diag(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:diag(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:diag(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:diag(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:diag(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:diag(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:diag(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:diag(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:diag(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:diag(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:diag(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:diag(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:diag(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:diag(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:diag(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:diag(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:diag(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:diag(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:diag(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:diag(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:diag(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:diag(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:diag(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:diag(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:diag(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:diag(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:diag(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:diag(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:diag(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:diag(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:diag(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:diag(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:diag(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:diag(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:diag(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:diag(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:diag(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:diag(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:diag(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:diag(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:diag(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:diag(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:diag(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:diag(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:diag(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:diag(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:diag(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:diag(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:diag(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:diag(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:diag(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:diag(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:diag(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:diag(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:diag(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:diag(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:diag(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:diag(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:diag(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:diag(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:diag(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:diag(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:diag(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:diag(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:diag(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:diag(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:diag(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:diag(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:diag(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:diag(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:diag(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:diag(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:diag(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:diag(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:diag(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:diag(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:diag(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:diag(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:diag(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:diag(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:diag(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:diag(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:diag(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:diag(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:diag(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:diag(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:diag(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:diag(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:diag(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:diag(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:diag(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:diag(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:diag(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:diag(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:diag(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:diag(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:diag(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:diag(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:diag(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:diag(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:diag(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:diag(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:diag(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:diag(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:diag(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:diag(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:diag(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:diag(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:diag(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:diag(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:diag(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:diag(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:diag(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:diag(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:diag(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:diag(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:diag(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:diag(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:diag(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:diag(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:diag(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:diag(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:diag(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:diag(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:diag(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:diag(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:diag(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:diag(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:diag(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:diag(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:diag(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:diag(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:diag(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:diag(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:diag(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:diag(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:diag(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:diag(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:diag(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:diag(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:diag(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:diag(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:diag(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:diag(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:diag(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:diag(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:diag(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:diag(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:diag(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:diag(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:diag(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:diag(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:diag(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:diag(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:diag(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:diag(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:diag(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:diag(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:diag(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:diag(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:diag(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:diag(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:diag(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:diag(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:diag(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:diag(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:diag(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:diag(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:diag(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:diag(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:diag(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:diag(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:diag(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:diag(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:diag(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:diag(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:diag(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:diag(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:diag(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:diag(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:diag(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:diag(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:diag(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:diag(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:diag(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:diag(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:diag(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:diag(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:diag(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:diag(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:diag(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:diag(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:diag(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:diag(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:diag(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:diag(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:diag(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:diag(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:diag(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:diag(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:diag(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:diag(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:diag(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:diag(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:diag(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:diag(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:diag(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:diag(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:diag(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:diag(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:diag(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:diag(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:diag(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:diag(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:diag(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:diag(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:diag(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:diag(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:diag(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:diag(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:diag(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:diag(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:diag(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:diag(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:diag(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:diag(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:diag(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:diag(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:diag(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:diag(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:diag(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:diag(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:diag(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:diag(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:diag(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:diag(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:diag(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:diag(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:diag(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:diag(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:diag(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:diag(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:diag(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:diag(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:diag(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:diag(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:diag(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:diag(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:diag(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:diag(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:diag(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:diag(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:diag(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:diag(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:diag(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:diag(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:diag(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:diag(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:diag(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:diag(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:diag(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:diag(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:diag(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:diag(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:diag(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:diag(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:diag(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:diag(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:diag(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:diag(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:diag(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:diag(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:diag(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:diag(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:diag(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:diag(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:diag(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:diag(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:diag(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:diag(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:diag(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:diag(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:diag(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:diag(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:diag(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:diag(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:diag(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:diag(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:diag(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:diag(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:diag(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:diag(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:diag(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:diag(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:diag(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:diag(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:diag(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:diag(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:diag(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:diag(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:diag(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:diag(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:diag(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:diag(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:diag(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:diag(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:diag(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:diag(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:diag(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:diag(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:diag(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:diag(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:diag(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:diag(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:diag(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:diag(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:diag(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:diag(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:diag(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:diag(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:diag(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:diag(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:diag(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:diag(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:diag(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",true),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:diag(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:diag(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:diag(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:diag(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:diag(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:diag(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:diag(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:diag(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:diag(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:diag(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:diag(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:diag(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:diag(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:diag(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:diag(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:diag(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:diag(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:diag(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:diag(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:diag(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:diag(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:diag(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:diag(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:diag(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:diag(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:diag(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:diag(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:diag(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:diag(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:diag(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:diag(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:diag(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:diag(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:diag(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:diag(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:diag(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:diag(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:diag(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:diag(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:diag(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:diag(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:diag(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:diag(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:diag(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:diag(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:diag(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:diag(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:diag(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:diag(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:diag(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:diag(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:diag(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:diag(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:diag(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:diag(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:diag(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:diag(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:diag(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:diag(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:diag(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:diag(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:diag(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:diag(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:diag(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:diag(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:diag(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:diag(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:diag(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:diag(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:diag(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:diag(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:diag(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:diag(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:diag(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:diag(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:diag(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:diag(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:diag(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:diag(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:diag(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:diag(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:diag(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:diag(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:diag(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:diag(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:diag(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:diag(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:diag(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:diag(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:diag(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:diag(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:diag(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:diag(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:diag(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:diag(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:diag(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:diag(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:diag(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:diag(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:diag(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:diag(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:diag(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:diag(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:diag(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:diag(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:diag(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:diag(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:diag(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:diag(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:diag(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:diag(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:diag(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:diag(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:diag(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:diag(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:diag(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:diag(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:diag(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:diag(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:diag(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:diag(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:diag(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:diag(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:diag(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:diag(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:diag(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:diag(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:diag(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:diag(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:diag(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:diag(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:diag(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:diag(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:diag(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:diag(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:diag(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:diag(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:diag(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:diag(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:diag(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:diag(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:diag(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:diag(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:diag(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:diag(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:diag(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:diag(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:diag(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:diag(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:diag(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:diag(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:diag(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:diag(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:diag(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:diag(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:diag(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:diag(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:diag(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:diag(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:diag(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:diag(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:diag(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:diag(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:diag(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:diag(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:diag(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:diag(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:diag(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:diag(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:diag(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:diag(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:diag(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:diag(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:diag(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:diag(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:diag(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:diag(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:diag(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:diag(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:diag(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:diag(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:diag(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:diag(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:diag(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:diag(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:diag(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:diag(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:diag(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:diag(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:diag(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:diag(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:diag(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:diag(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:diag(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:diag(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:diag(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:diag(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:diag(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:diag(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),The_current_host_does_not_support_the_0_option:diag(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:diag(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:diag(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:diag(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:diag(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:diag(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:diag(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:diag(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:diag(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:diag(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:diag(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:diag(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:diag(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:diag(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:diag(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:diag(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:diag(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:diag(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:diag(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:diag(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:diag(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:diag(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:diag(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:diag(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:diag(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:diag(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:diag(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:diag(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:diag(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:diag(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:diag(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:diag(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:diag(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:diag(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:diag(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:diag(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:diag(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:diag(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:diag(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:diag(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:diag(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:diag(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:diag(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:diag(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:diag(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:diag(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:diag(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:diag(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:diag(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:diag(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:diag(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:diag(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:diag(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:diag(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:diag(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:diag(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:diag(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:diag(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:diag(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:diag(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:diag(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:diag(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:diag(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:diag(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:diag(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:diag(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:diag(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:diag(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:diag(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:diag(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:diag(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:diag(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:diag(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:diag(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:diag(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:diag(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:diag(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:diag(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:diag(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:diag(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:diag(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:diag(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:diag(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:diag(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:diag(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:diag(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:diag(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:diag(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:diag(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:diag(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:diag(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:diag(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:diag(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:diag(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:diag(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:diag(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:diag(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:diag(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:diag(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:diag(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:diag(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:diag(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:diag(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:diag(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:diag(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:diag(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:diag(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:diag(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:diag(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:diag(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:diag(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:diag(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:diag(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:diag(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:diag(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:diag(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:diag(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:diag(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:diag(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:diag(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:diag(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:diag(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:diag(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:diag(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:diag(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:diag(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:diag(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:diag(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:diag(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:diag(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:diag(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:diag(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:diag(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:diag(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:diag(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:diag(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:diag(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:diag(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:diag(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:diag(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:diag(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:diag(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:diag(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:diag(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:diag(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:diag(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:diag(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:diag(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:diag(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:diag(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:diag(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:diag(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:diag(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:diag(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:diag(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:diag(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:diag(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:diag(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:diag(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:diag(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:diag(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:diag(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:diag(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:diag(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:diag(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:diag(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:diag(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:diag(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:diag(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:diag(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:diag(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:diag(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:diag(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:diag(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:diag(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:diag(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",true),Report_errors_on_unused_locals:diag(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:diag(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:diag(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:diag(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:diag(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",true),Import_emit_helpers_from_tslib:diag(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:diag(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:diag(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:diag(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:diag(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:diag(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:diag(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:diag(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:diag(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:diag(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:diag(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:diag(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:diag(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:diag(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:diag(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:diag(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:diag(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:diag(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:diag(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:diag(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:diag(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:diag(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:diag(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:diag(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:diag(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:diag(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:diag(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:diag(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:diag(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:diag(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:diag(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:diag(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:diag(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:diag(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:diag(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:diag(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:diag(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:diag(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:diag(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:diag(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:diag(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:diag(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:diag(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:diag(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",true),Found_1_error_Watching_for_file_changes:diag(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:diag(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:diag(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:diag(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",true),Include_modules_imported_with_json_extension:diag(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:diag(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",true),All_variables_are_unused:diag(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",true),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:diag(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:diag(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:diag(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:diag(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:diag(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:diag(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:diag(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:diag(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:diag(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:diag(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:diag(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:diag(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:diag(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:diag(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:diag(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:diag(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:diag(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:diag(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:diag(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:diag(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:diag(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:diag(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:diag(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:diag(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:diag(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:diag(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:diag(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:diag(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:diag(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:diag(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:diag(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:diag(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:diag(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:diag(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:diag(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:diag(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:diag(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:diag(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:diag(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:diag(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:diag(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:diag(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:diag(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:diag(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:diag(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:diag(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:diag(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:diag(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:diag(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:diag(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:diag(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:diag(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:diag(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:diag(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:diag(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:diag(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:diag(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:diag(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:diag(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:diag(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:diag(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:diag(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:diag(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:diag(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:diag(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:diag(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:diag(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:diag(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:diag(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:diag(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:diag(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:diag(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:diag(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:diag(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:diag(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:diag(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:diag(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:diag(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:diag(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:diag(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:diag(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:diag(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:diag(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:diag(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:diag(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:diag(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:diag(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:diag(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:diag(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:diag(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:diag(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:diag(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Enable_incremental_compilation:diag(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:diag(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:diag(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:diag(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:diag(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:diag(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:diag(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:diag(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",undefined,undefined,true),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:diag(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:diag(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",undefined,undefined,true),Project_0_is_being_forcibly_rebuilt:diag(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:diag(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:diag(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:diag(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:diag(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:diag(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:diag(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:diag(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:diag(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:diag(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:diag(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:diag(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:diag(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:diag(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:diag(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:diag(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:diag(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:diag(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:diag(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:diag(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:diag(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:diag(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:diag(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:diag(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:diag(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:diag(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:diag(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:diag(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:diag(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:diag(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:diag(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:diag(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:diag(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:diag(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:diag(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:diag(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:diag(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:diag(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects"),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:diag(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:diag(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:diag(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:diag(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:diag(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility."),Filters_results_from_the_include_option:diag(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:diag(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:diag(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:diag(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:diag(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:diag(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:diag(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:diag(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:diag(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:diag(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date"),Ensure_that_casing_is_correct_in_imports:diag(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:diag(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:diag(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:diag(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:diag(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:diag(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:diag(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:diag(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:diag(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:diag(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'"),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:diag(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:diag(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`"),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:diag(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:diag(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:diag(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:diag(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:diag(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:diag(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`."),Specify_what_module_code_is_generated:diag(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:diag(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:diag(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:diag(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:diag(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like `__extends` in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:diag(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:diag(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:diag(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:diag(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied `any` type.."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:diag(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:diag(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:diag(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when `this` is given the type `any`."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:diag(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:diag(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:diag(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type"),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:diag(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:diag(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:diag(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add `undefined` to a type when accessed using an index."),Enable_error_reporting_when_a_local_variables_aren_t_read:diag(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:diag(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read"),Deprecated_setting_Use_outFile_instead:diag(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:diag(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:diag(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:diag(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:diag(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:diag(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing `const enum` declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:diag(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:diag(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode"),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:diag(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read"),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:diag(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:diag(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:diag(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:diag(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:diag(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:diag(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:diag(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:diag(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:diag(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:diag(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:diag(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for `bind`, `call`, and `apply` methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:diag(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:diag(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account `null` and `undefined`."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:diag(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:diag(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have `@internal` in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:diag(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:diag(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress `noImplicitAny` errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:diag(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:diag(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:diag(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:diag(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:diag(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:diag(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like `./node_modules/@types`."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:diag(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:diag(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:diag(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:diag(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:diag(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:diag(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:diag(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:diag(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types"),Type_catch_clause_variables_as_unknown_instead_of_any:diag(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:diag(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:diag(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:diag(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:diag(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:diag(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:diag(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:diag(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:diag(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:diag(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:diag(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:diag(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:diag(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:diag(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:diag(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:diag(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:diag(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:diag(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:diag(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:diag(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:diag(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:diag(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:diag(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:diag(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:diag(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:diag(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:diag(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:diag(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:diag(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:diag(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:diag(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:diag(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:diag(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:diag(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:diag(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:diag(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:diag(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:diag(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:diag(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:diag(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:diag(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:diag(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:diag(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:diag(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:diag(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:diag(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:diag(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:diag(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:diag(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:diag(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:diag(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",true),Unused_label:diag(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",true),Fallthrough_case_in_switch:diag(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:diag(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:diag(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:diag(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:diag(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:diag(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:diag(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:diag(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:diag(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:diag(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:diag(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:diag(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:diag(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:diag(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:diag(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:diag(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:diag(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:diag(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:diag(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:diag(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:diag(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:diag(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:diag(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:diag(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:diag(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:diag(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:diag(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:diag(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:diag(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),You_cannot_rename_this_element:diag(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:diag(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:diag(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:diag(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:diag(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:diag(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:diag(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:diag(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:diag(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:diag(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:diag(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:diag(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:diag(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:diag(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:diag(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:diag(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:diag(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:diag(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:diag(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:diag(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:diag(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:diag(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:diag(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:diag(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:diag(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:diag(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:diag(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:diag(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:diag(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:diag(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:diag(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:diag(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:diag(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:diag(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:diag(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:diag(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:diag(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:diag(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:diag(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:diag(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:diag(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:diag(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:diag(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:diag(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:diag(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:diag(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:diag(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:diag(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:diag(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:diag(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:diag(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:diag(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:diag(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:diag(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:diag(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:diag(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:diag(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:diag(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:diag(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:diag(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:diag(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:diag(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:diag(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:diag(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:diag(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:diag(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:diag(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:diag(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:diag(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:diag(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:diag(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:diag(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:diag(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:diag(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:diag(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:diag(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:diag(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:diag(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:diag(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:diag(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:diag(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:diag(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:diag(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:diag(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:diag(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:diag(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:diag(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:diag(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:diag(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:diag(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:diag(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:diag(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:diag(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:diag(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:diag(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:diag(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:diag(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:diag(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:diag(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:diag(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:diag(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:diag(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:diag(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:diag(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:diag(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:diag(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:diag(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:diag(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:diag(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:diag(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:diag(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:diag(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:diag(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:diag(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:diag(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:diag(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:diag(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:diag(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:diag(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:diag(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:diag(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:diag(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:diag(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:diag(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:diag(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:diag(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:diag(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:diag(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:diag(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:diag(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:diag(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:diag(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:diag(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:diag(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:diag(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:diag(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:diag(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:diag(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:diag(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:diag(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:diag(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:diag(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:diag(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:diag(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:diag(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:diag(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:diag(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:diag(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:diag(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:diag(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:diag(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:diag(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:diag(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:diag(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:diag(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:diag(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:diag(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:diag(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:diag(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:diag(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:diag(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:diag(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:diag(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:diag(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:diag(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:diag(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:diag(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:diag(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:diag(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:diag(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:diag(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:diag(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:diag(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:diag(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:diag(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:diag(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:diag(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:diag(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:diag(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:diag(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:diag(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:diag(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:diag(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:diag(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:diag(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:diag(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:diag(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:diag(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:diag(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:diag(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:diag(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:diag(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:diag(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:diag(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:diag(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:diag(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:diag(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:diag(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:diag(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:diag(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:diag(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:diag(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:diag(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:diag(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:diag(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:diag(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:diag(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:diag(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:diag(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:diag(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:diag(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:diag(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:diag(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:diag(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:diag(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:diag(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:diag(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:diag(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:diag(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:diag(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:diag(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:diag(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:diag(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:diag(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:diag(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:diag(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:diag(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:diag(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:diag(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:diag(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:diag(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:diag(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:diag(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:diag(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:diag(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:diag(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:diag(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:diag(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:diag(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:diag(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:diag(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:diag(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:diag(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:diag(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:diag(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:diag(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:diag(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:diag(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:diag(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:diag(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:diag(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:diag(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:diag(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:diag(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:diag(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:diag(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:diag(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:diag(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:diag(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:diag(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:diag(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:diag(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:diag(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:diag(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:diag(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:diag(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:diag(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:diag(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:diag(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:diag(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:diag(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:diag(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:diag(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:diag(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:diag(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:diag(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:diag(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:diag(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:diag(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:diag(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:diag(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:diag(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:diag(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:diag(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:diag(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:diag(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:diag(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:diag(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:diag(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:diag(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:diag(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:diag(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:diag(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:diag(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:diag(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:diag(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:diag(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:diag(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:diag(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:diag(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:diag(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:diag(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:diag(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:diag(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:diag(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(u||(u={}));var u;(function(e){var t;function tokenIsIdentifierOrKeyword(e){return e>=79}e.tokenIsIdentifierOrKeyword=tokenIsIdentifierOrKeyword;function tokenIsIdentifierOrKeywordOrGreaterThan(e){return e===31||tokenIsIdentifierOrKeyword(e)}e.tokenIsIdentifierOrKeywordOrGreaterThan=tokenIsIdentifierOrKeywordOrGreaterThan;e.textToKeywordObj=(t={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85},t[""+"constructor"]=133,t.debugger=87,t.declare=134,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=154,t.function=98,t.get=135,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=136,t.instanceof=102,t.interface=118,t.intrinsic=137,t.is=138,t.keyof=139,t.let=119,t.module=140,t.namespace=141,t.never=142,t.new=103,t.null=104,t.number=145,t.object=146,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=157,t.readonly=143,t.require=144,t.global=155,t.return=105,t.set=147,t.static=124,t.string=148,t.super=106,t.switch=107,t.symbol=149,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=150,t.typeof=112,t.undefined=151,t.unique=152,t.unknown=153,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=130,t.await=131,t.of=158,t);var r=new e.Map(e.getEntries(e.textToKeywordObj));var n=new e.Map(e.getEntries(i(i({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})));var a=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];var s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500];var o=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];var c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];var u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101];var l=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999];var p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/;var d=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function lookupInUnicodeMap(e,t){if(e=2?lookupInUnicodeMap(e,u):t===1?lookupInUnicodeMap(e,o):lookupInUnicodeMap(e,a)}e.isUnicodeIdentifierStart=isUnicodeIdentifierStart;function isUnicodeIdentifierPart(e,t){return t>=2?lookupInUnicodeMap(e,l):t===1?lookupInUnicodeMap(e,c):lookupInUnicodeMap(e,s)}function makeReverseMap(e){var t=[];e.forEach(function(e,r){t[e]=r});return t}var f=makeReverseMap(n);function tokenToString(e){return f[e]}e.tokenToString=tokenToString;function stringToToken(e){return n.get(e)}e.stringToToken=stringToToken;function computeLineStarts(e){var t=new Array;var r=0;var n=0;while(r127&&isLineBreak(i)){t.push(n);n=r}break}}t.push(n);return t}e.computeLineStarts=computeLineStarts;function getPositionOfLineAndCharacter(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):computePositionOfLineAndCharacter(getLineStarts(e),t,r,e.text,n)}e.getPositionOfLineAndCharacter=getPositionOfLineAndCharacter;function computePositionOfLineAndCharacter(t,r,n,i,a){if(r<0||r>=t.length){if(a){r=r<0?0:r>=t.length?t.length-1:r}else{e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(i!==undefined?e.arraysEqual(t,computeLineStarts(i)):"unknown"))}}var s=t[r]+n;if(a){return s>t[r+1]?t[r+1]:typeof i==="string"&&s>i.length?i.length:s}if(r=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}e.isWhiteSpaceSingleLine=isWhiteSpaceSingleLine;function isLineBreak(e){return e===10||e===13||e===8232||e===8233}e.isLineBreak=isLineBreak;function isDigit(e){return e>=48&&e<=57}function isHexDigit(e){return isDigit(e)||e>=65&&e<=70||e>=97&&e<=102}function isCodePoint(e){return e<=1114111}function isOctalDigit(e){return e>=48&&e<=55}e.isOctalDigit=isOctalDigit;function couldStartTrivia(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return true;case 35:return t===0;default:return r>127}}e.couldStartTrivia=couldStartTrivia;function skipTrivia(t,r,n,i,a){if(e.positionIsSynthesized(r)){return r}var s=false;while(true){var o=t.charCodeAt(r);switch(o){case 13:if(t.charCodeAt(r+1)===10){r++}case 10:r++;if(n){return r}s=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i){break}if(t.charCodeAt(r+1)===47){r+=2;while(r127&&isWhiteSpaceLike(o)){r++;continue}break}return r}}e.skipTrivia=skipTrivia;var m="<<<<<<<".length;function isConflictMarkerTrivia(t,r){e.Debug.assert(r>=0);if(r===0||isLineBreak(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+m=0&&r127&&isWhiteSpaceLike(g)){if(p&&isLineBreak(g)){l=true}r++;continue}break e}}if(p){f=i(o,c,u,l,a,f)}return f}function forEachLeadingCommentRange(e,t,r,n){return iterateCommentRanges(false,e,t,false,r,n)}e.forEachLeadingCommentRange=forEachLeadingCommentRange;function forEachTrailingCommentRange(e,t,r,n){return iterateCommentRanges(false,e,t,true,r,n)}e.forEachTrailingCommentRange=forEachTrailingCommentRange;function reduceEachLeadingCommentRange(e,t,r,n,i){return iterateCommentRanges(true,e,t,false,r,n,i)}e.reduceEachLeadingCommentRange=reduceEachLeadingCommentRange;function reduceEachTrailingCommentRange(e,t,r,n,i){return iterateCommentRanges(true,e,t,true,r,n,i)}e.reduceEachTrailingCommentRange=reduceEachTrailingCommentRange;function appendCommentRange(e,t,r,n,i,a){if(!a){a=[]}a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n});return a}function getLeadingCommentRanges(e,t){return reduceEachLeadingCommentRange(e,t,appendCommentRange,undefined,undefined)}e.getLeadingCommentRanges=getLeadingCommentRanges;function getTrailingCommentRanges(e,t){return reduceEachTrailingCommentRange(e,t,appendCommentRange,undefined,undefined)}e.getTrailingCommentRanges=getTrailingCommentRanges;function getShebang(e){var t=g.exec(e);if(t){return t[0]}}e.getShebang=getShebang;function isIdentifierStart(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&isUnicodeIdentifierStart(e,t)}e.isIdentifierStart=isIdentifierStart;function isIdentifierPart(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:false)||e>127&&isUnicodeIdentifierPart(e,t)}e.isIdentifierPart=isIdentifierPart;function isIdentifierText(e,t,r){var n=_(e,0);if(!isIdentifierStart(n,t)){return false}for(var i=charSize(n);i116},isReservedWord:function(){return h>=81&&h<=116},isUnterminated:function(){return(v&4)!==0},getCommentDirectives:function(){return T},getNumericLiteralFlags:function(){return v&1008},getTokenFlags:function(){return v},reScanGreaterToken:reScanGreaterToken,reScanAsteriskEqualsToken:reScanAsteriskEqualsToken,reScanSlashToken:reScanSlashToken,reScanTemplateToken:reScanTemplateToken,reScanTemplateHeadOrNoSubstitutionTemplate:reScanTemplateHeadOrNoSubstitutionTemplate,scanJsxIdentifier:scanJsxIdentifier,scanJsxAttributeValue:scanJsxAttributeValue,reScanJsxAttributeValue:reScanJsxAttributeValue,reScanJsxToken:reScanJsxToken,reScanLessThanToken:reScanLessThanToken,reScanHashToken:reScanHashToken,reScanQuestionToken:reScanQuestionToken,reScanInvalidIdentifier:reScanInvalidIdentifier,scanJsxToken:scanJsxToken,scanJsDocToken:scanJsDocToken,scan:scan,getText:getText,clearCommentDirectives:clearCommentDirectives,setText:setText,setScriptTarget:setScriptTarget,setLanguageVariant:setLanguageVariant,setOnError:setOnError,setTextPos:setTextPos,setInJSDocType:setInJSDocType,tryScan:tryScan,lookAhead:lookAhead,scanRange:scanRange};if(e.Debug.isDebugging){Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:function(){var e=b.getText();return e.slice(0,b.getStartPos())+"║"+e.slice(b.getStartPos())}})}return b;function error(e,t,r){if(t===void 0){t=l}if(s){var n=l;l=t;s(e,r||0);l=n}}function scanNumberFragment(){var t=l;var r=false;var n=false;var i="";while(true){var a=u.charCodeAt(l);if(a===95){v|=512;if(r){r=false;n=true;i+=u.substring(t,l)}else if(n){error(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,l,1)}else{error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1)}l++;t=l;continue}if(isDigit(a)){r=true;n=false;l++;continue}break}if(u.charCodeAt(l-1)===95){error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1)}return i+u.substring(t,l)}function scanNumber(){var t=l;var r=scanNumberFragment();var n;var i;if(u.charCodeAt(l)===46){l++;n=scanNumberFragment()}var a=l;if(u.charCodeAt(l)===69||u.charCodeAt(l)===101){l++;v|=16;if(u.charCodeAt(l)===43||u.charCodeAt(l)===45)l++;var s=l;var o=scanNumberFragment();if(!o){error(e.Diagnostics.Digit_expected)}else{i=u.substring(a,s)+o;a=l}}var c;if(v&512){c=r;if(n){c+="."+n}if(i){c+=i}}else{c=u.substring(t,a)}if(n!==undefined||v&16){checkForIdentifierStartAfterNumericLiteral(t,n===undefined&&!!(v&16));return{type:8,value:""+ +c}}else{y=c;var p=checkBigIntSuffix();checkForIdentifierStartAfterNumericLiteral(t);return{type:p,value:y}}}function checkForIdentifierStartAfterNumericLiteral(r,n){if(!isIdentifierStart(_(u,l),t)){return}var i=l;var a=scanIdentifierParts().length;if(a===1&&u[i]==="n"){if(n){error(e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation,r,i-r+1)}else{error(e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1)}}else{error(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a);l=i}}function scanOctalDigits(){var e=l;while(isOctalDigit(u.charCodeAt(l))){l++}return+u.substring(e,l)}function scanExactNumberOfHexDigits(e,t){var r=scanHexDigits(e,false,t);return r?parseInt(r,16):-1}function scanMinimumNumberOfHexDigits(e,t){return scanHexDigits(e,true,t)}function scanHexDigits(t,r,n){var i=[];var a=false;var s=false;while(i.length=65&&o<=70){o+=97-65}else if(!(o>=48&&o<=57||o>=97&&o<=102)){break}i.push(o);l++;s=false}if(i.length=f){n+=u.substring(i,l);v|=4;error(e.Diagnostics.Unterminated_string_literal);break}var a=u.charCodeAt(l);if(a===r){n+=u.substring(i,l);l++;break}if(a===92&&!t){n+=u.substring(i,l);n+=scanEscapeSequence();i=l;continue}if(isLineBreak(a)&&!t){n+=u.substring(i,l);v|=4;error(e.Diagnostics.Unterminated_string_literal);break}l++}return n}function scanTemplateAndSetTokenValue(t){var r=u.charCodeAt(l)===96;l++;var n=l;var i="";var a;while(true){if(l>=f){i+=u.substring(n,l);v|=4;error(e.Diagnostics.Unterminated_template_literal);a=r?14:17;break}var s=u.charCodeAt(l);if(s===96){i+=u.substring(n,l);l++;a=r?14:17;break}if(s===36&&l+1=f){error(e.Diagnostics.Unexpected_end_of_text);return""}var n=u.charCodeAt(l);l++;switch(n){case 48:if(t&&l=0){return String.fromCharCode(r)}else{error(e.Diagnostics.Hexadecimal_digit_expected);return""}}function scanExtendedUnicodeEscape(){var t=scanMinimumNumberOfHexDigits(1,false);var r=t?parseInt(t,16):-1;var n=false;if(r<0){error(e.Diagnostics.Hexadecimal_digit_expected);n=true}else if(r>1114111){error(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);n=true}if(l>=f){error(e.Diagnostics.Unexpected_end_of_text);n=true}else if(u.charCodeAt(l)===125){l++}else{error(e.Diagnostics.Unterminated_Unicode_escape_sequence);n=true}if(n){return""}return utf16EncodeAsString(r)}function peekUnicodeEscape(){if(l+5=2&&_(u,l+1)===117&&_(u,l+2)===123){var e=l;l+=3;var r=scanMinimumNumberOfHexDigits(1,false);var n=r?parseInt(r,16):-1;l=e;return n}return-1}function scanIdentifierParts(){var e="";var r=l;while(l=0&&isIdentifierPart(n,t)){l+=3;v|=8;e+=scanExtendedUnicodeEscape();r=l;continue}n=peekUnicodeEscape();if(!(n>=0&&isIdentifierPart(n,t))){break}v|=1024;e+=u.substring(r,l);e+=utf16EncodeAsString(n);l+=6;r=l}else{break}}e+=u.substring(r,l);return e}function getIdentifierToken(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var n=r.get(y);if(n!==undefined){return h=n}}}return h=79}function scanBinaryOrOctalDigits(t){var r="";var n=false;var i=false;while(true){var a=u.charCodeAt(l);if(a===95){v|=512;if(n){n=false;i=true}else if(i){error(e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted,l,1)}else{error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1)}l++;continue}n=true;if(!isDigit(a)||a-48>=t){break}r+=u[l];l++;i=false}if(u.charCodeAt(l-1)===95){error(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1)}return r}function checkBigIntSuffix(){if(u.charCodeAt(l)===110){y+="n";if(v&384){y=e.parsePseudoBigInt(y)+"n"}l++;return 9}else{var t=v&128?parseInt(y.slice(2),2):v&256?parseInt(y.slice(2),8):+y;y=""+t;return 8}}function scan(){var r;m=l;v=0;var a=false;while(true){g=l;if(l>=f){return h=1}var s=_(u,l);if(s===35&&l===0&&isShebangTrivia(u,l)){l=scanShebangTrivia(u,l);if(n){continue}else{return h=6}}switch(s){case 10:case 13:v|=1;if(n){l++;continue}else{if(s===13&&l+1=0&&isIdentifierStart(E,t)){l+=3;v|=8;y=scanExtendedUnicodeEscape()+scanIdentifierParts();return h=getIdentifierToken()}var x=peekUnicodeEscape();if(x>=0&&isIdentifierStart(x,t)){l+=6;v|=1024;y=String.fromCharCode(x)+scanIdentifierParts();return h=getIdentifierToken()}error(e.Diagnostics.Invalid_character);l++;return h=0;case 35:if(l!==0&&u[l+1]==="!"){error(e.Diagnostics.can_only_be_used_at_the_start_of_a_file);l++;return h=0}if(isIdentifierStart(_(u,l+1),t)){l++;scanIdentifier(_(u,l),t)}else{y=String.fromCharCode(_(u,l));error(e.Diagnostics.Invalid_character,l++,charSize(s))}return h=80;default:var D=scanIdentifier(s,t);if(D){return h=D}else if(isWhiteSpaceSingleLine(s)){l+=charSize(s);continue}else if(isLineBreak(s)){v|=1;l+=charSize(s);continue}var C=charSize(s);error(e.Diagnostics.Invalid_character,l,C);l+=C;return h=0}}}function reScanInvalidIdentifier(){e.Debug.assert(h===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.");l=g=m;v=0;var t=_(u,l);var r=scanIdentifier(t,99);if(r){return h=r}l+=charSize(t);return h}function scanIdentifier(e,t){var r=e;if(isIdentifierStart(r,t)){l+=charSize(r);while(l=f){return h=1}var r=u.charCodeAt(l);if(r===60){if(u.charCodeAt(l+1)===47){l+=2;return h=30}l++;return h=29}if(r===123){l++;return h=18}var n=0;while(l0){break}else if(!isWhiteSpaceLike(r)){n=l}l++}y=u.substring(m,l);return n===-1?12:11}function scanJsxIdentifier(){if(tokenIsIdentifierOrKeyword(h)){var e=false;while(l=f){return h=1}var e=_(u,l);l+=charSize(e);switch(e){case 9:case 11:case 12:case 32:while(l=0&&isIdentifierStart(r,t)){l+=3;v|=8;y=scanExtendedUnicodeEscape()+scanIdentifierParts();return h=getIdentifierToken()}var n=peekUnicodeEscape();if(n>=0&&isIdentifierStart(n,t)){l+=6;v|=1024;y=String.fromCharCode(n)+scanIdentifierParts();return h=getIdentifierToken()}l++;return h=0}if(isIdentifierStart(e,t)){var i=e;while(l=0);l=t;m=t;g=t;h=0;y=undefined;v=0}function setInJSDocType(e){S+=e?1:-1}}e.createScanner=createScanner;var _=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function codePointAt(e,t){var r=e.length;if(t<0||t>=r){return undefined}var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){return(n-55296)*1024+i-56320+65536}}return n};function charSize(e){if(e>=65536){return 2}return 1}function utf16EncodeAsStringFallback(t){e.Debug.assert(0<=t&&t<=1114111);if(t<=65535){return String.fromCharCode(t)}var r=Math.floor((t-65536)/1024)+55296;var n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}var h=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:utf16EncodeAsStringFallback;function utf16EncodeAsString(e){return h(e)}e.utf16EncodeAsString=utf16EncodeAsString})(u||(u={}));var u;(function(e){function isExternalModuleNameRelative(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)}e.isExternalModuleNameRelative=isExternalModuleNameRelative;function sortAndDeduplicateDiagnostics(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=sortAndDeduplicateDiagnostics;function getDefaultLibFileName(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=getDefaultLibFileName;function textSpanEnd(e){return e.start+e.length}e.textSpanEnd=textSpanEnd;function textSpanIsEmpty(e){return e.length===0}e.textSpanIsEmpty=textSpanIsEmpty;function textSpanContainsPosition(e,t){return t>=e.start&&t=e.pos&&t<=e.end}e.textRangeContainsPositionInclusive=textRangeContainsPositionInclusive;function textSpanContainsTextSpan(e,t){return t.start>=e.start&&textSpanEnd(t)<=textSpanEnd(e)}e.textSpanContainsTextSpan=textSpanContainsTextSpan;function textSpanOverlapsWith(e,t){return textSpanOverlap(e,t)!==undefined}e.textSpanOverlapsWith=textSpanOverlapsWith;function textSpanOverlap(e,t){var r=textSpanIntersection(e,t);return r&&r.length===0?undefined:r}e.textSpanOverlap=textSpanOverlap;function textSpanIntersectsWithTextSpan(e,t){return decodedTextSpanIntersectsWith(e.start,e.length,t.start,t.length)}e.textSpanIntersectsWithTextSpan=textSpanIntersectsWithTextSpan;function textSpanIntersectsWith(e,t,r){return decodedTextSpanIntersectsWith(e.start,e.length,t,r)}e.textSpanIntersectsWith=textSpanIntersectsWith;function decodedTextSpanIntersectsWith(e,t,r,n){var i=e+t;var a=r+n;return r<=i&&a>=e}e.decodedTextSpanIntersectsWith=decodedTextSpanIntersectsWith;function textSpanIntersectsWithPosition(e,t){return t<=textSpanEnd(e)&&t>=e.start}e.textSpanIntersectsWithPosition=textSpanIntersectsWithPosition;function textSpanIntersection(e,t){var r=Math.max(e.start,t.start);var n=Math.min(textSpanEnd(e),textSpanEnd(t));return r<=n?createTextSpanFromBounds(r,n):undefined}e.textSpanIntersection=textSpanIntersection;function createTextSpan(e,t){if(e<0){throw new Error("start < 0")}if(t<0){throw new Error("length < 0")}return{start:e,length:t}}e.createTextSpan=createTextSpan;function createTextSpanFromBounds(e,t){return createTextSpan(e,t-e)}e.createTextSpanFromBounds=createTextSpanFromBounds;function textChangeRangeNewSpan(e){return createTextSpan(e.span.start,e.newLength)}e.textChangeRangeNewSpan=textChangeRangeNewSpan;function textChangeRangeIsUnchanged(e){return textSpanIsEmpty(e.span)&&e.newLength===0}e.textChangeRangeIsUnchanged=textChangeRangeIsUnchanged;function createTextChangeRange(e,t){if(t<0){throw new Error("newLength < 0")}return{span:e,newLength:t}}e.createTextChangeRange=createTextChangeRange;e.unchangedTextChangeRange=createTextChangeRange(createTextSpan(0,0),0);function collapseTextChangeRangesAcrossMultipleVersions(t){if(t.length===0){return e.unchangedTextChangeRange}if(t.length===1){return t[0]}var r=t[0];var n=r.span.start;var i=textSpanEnd(r.span);var a=n+r.newLength;for(var s=1;s=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}e.escapeLeadingUnderscores=escapeLeadingUnderscores;function unescapeLeadingUnderscores(e){var t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}e.unescapeLeadingUnderscores=unescapeLeadingUnderscores;function idText(e){return unescapeLeadingUnderscores(e.escapedText)}e.idText=idText;function symbolName(e){if(e.valueDeclaration&&isPrivateIdentifierClassElementDeclaration(e.valueDeclaration)){return idText(e.valueDeclaration.name)}return unescapeLeadingUnderscores(e.escapedName)}e.symbolName=symbolName;function nameForNamelessJSDocTypedef(t){var r=t.parent.parent;if(!r){return undefined}if(isDeclaration(r)){return getDeclarationIdentifier(r)}switch(r.kind){case 235:if(r.declarationList&&r.declarationList.declarations[0]){return getDeclarationIdentifier(r.declarationList.declarations[0])}break;case 236:var n=r.expression;if(n.kind===219&&n.operatorToken.kind===63){n=n.left}switch(n.kind){case 204:return n.name;case 205:var i=n.argumentExpression;if(e.isIdentifier(i)){return i}}break;case 210:{return getDeclarationIdentifier(r.expression)}case 248:{if(isDeclaration(r.statement)||isExpression(r.statement)){return getDeclarationIdentifier(r.statement)}break}}}function getDeclarationIdentifier(t){var r=getNameOfDeclaration(t);return r&&e.isIdentifier(r)?r:undefined}function nodeHasName(t,r){if(isNamedDeclaration(t)&&e.isIdentifier(t.name)&&idText(t.name)===idText(r)){return true}if(e.isVariableStatement(t)&&e.some(t.declarationList.declarations,function(e){return nodeHasName(e,r)})){return true}return false}e.nodeHasName=nodeHasName;function getNameOfJSDocTypedef(e){return e.name||nameForNamelessJSDocTypedef(e)}e.getNameOfJSDocTypedef=getNameOfJSDocTypedef;function isNamedDeclaration(e){return!!e.name}e.isNamedDeclaration=isNamedDeclaration;function getNonAssignedNameOfDeclaration(t){switch(t.kind){case 79:return t;case 342:case 335:{var r=t.name;if(r.kind===159){return r.right}break}case 206:case 219:{var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return undefined}}case 340:return getNameOfJSDocTypedef(t);case 334:return nameForNamelessJSDocTypedef(t);case 269:{var i=t.expression;return e.isIdentifier(i)?i:undefined}case 205:var a=t;if(e.isBindableStaticElementAccessExpression(a)){return a.argumentExpression}}return t.name}e.getNonAssignedNameOfDeclaration=getNonAssignedNameOfDeclaration;function getNameOfDeclaration(t){if(t===undefined)return undefined;return getNonAssignedNameOfDeclaration(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?getAssignedName(t):undefined)}e.getNameOfDeclaration=getNameOfDeclaration;function getAssignedName(t){if(!t.parent){return undefined}else if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent)){return t.parent.name}else if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left)){return t.parent.left}else if(e.isAccessExpression(t.parent.left)){return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)){return t.parent.name}}e.getAssignedName=getAssignedName;function getJSDocParameterTagsWorker(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return getJSDocTagsWorker(t.parent,r).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}else{var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=getJSDocTagsWorker(t.parent,r).filter(e.isJSDocParameterTag);if(i=159}e.isNodeKind=isNodeKind;function isTokenKind(e){return e>=0&&e<=158}e.isTokenKind=isTokenKind;function isToken(e){return isTokenKind(e.kind)}e.isToken=isToken;function isNodeArray(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}e.isNodeArray=isNodeArray;function isLiteralKind(e){return 8<=e&&e<=14}e.isLiteralKind=isLiteralKind;function isLiteralExpression(e){return isLiteralKind(e.kind)}e.isLiteralExpression=isLiteralExpression;function isTemplateLiteralKind(e){return 14<=e&&e<=17}e.isTemplateLiteralKind=isTemplateLiteralKind;function isTemplateLiteralToken(e){return isTemplateLiteralKind(e.kind)}e.isTemplateLiteralToken=isTemplateLiteralToken;function isTemplateMiddleOrTemplateTail(e){var t=e.kind;return t===16||t===17}e.isTemplateMiddleOrTemplateTail=isTemplateMiddleOrTemplateTail;function isImportOrExportSpecifier(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)}e.isImportOrExportSpecifier=isImportOrExportSpecifier;function isTypeOnlyImportOrExportDeclaration(e){switch(e.kind){case 268:case 273:return e.parent.parent.isTypeOnly;case 266:return e.parent.isTypeOnly;case 265:case 263:return e.isTypeOnly;default:return false}}e.isTypeOnlyImportOrExportDeclaration=isTypeOnlyImportOrExportDeclaration;function isStringTextContainingNode(e){return e.kind===10||isTemplateLiteralKind(e.kind)}e.isStringTextContainingNode=isStringTextContainingNode;function isGeneratedIdentifier(t){return e.isIdentifier(t)&&(t.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=isGeneratedIdentifier;function isPrivateIdentifierClassElementDeclaration(t){return(e.isPropertyDeclaration(t)||isMethodOrAccessor(t))&&e.isPrivateIdentifier(t.name)}e.isPrivateIdentifierClassElementDeclaration=isPrivateIdentifierClassElementDeclaration;function isPrivateIdentifierPropertyAccessExpression(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)}e.isPrivateIdentifierPropertyAccessExpression=isPrivateIdentifierPropertyAccessExpression;function isModifierKind(e){switch(e){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return true}return false}e.isModifierKind=isModifierKind;function isParameterPropertyModifier(t){return!!(e.modifierToFlag(t)&16476)}e.isParameterPropertyModifier=isParameterPropertyModifier;function isClassMemberModifier(e){return isParameterPropertyModifier(e)||e===124||e===157}e.isClassMemberModifier=isClassMemberModifier;function isModifier(e){return isModifierKind(e.kind)}e.isModifier=isModifier;function isEntityName(e){var t=e.kind;return t===159||t===79}e.isEntityName=isEntityName;function isPropertyName(e){var t=e.kind;return t===79||t===80||t===10||t===8||t===160}e.isPropertyName=isPropertyName;function isBindingName(e){var t=e.kind;return t===79||t===199||t===200}e.isBindingName=isBindingName;function isFunctionLike(e){return!!e&&isFunctionLikeKind(e.kind)}e.isFunctionLike=isFunctionLike;function isFunctionLikeOrClassStaticBlockDeclaration(t){return!!t&&(isFunctionLikeKind(t.kind)||e.isClassStaticBlockDeclaration(t))}e.isFunctionLikeOrClassStaticBlockDeclaration=isFunctionLikeOrClassStaticBlockDeclaration;function isFunctionLikeDeclaration(e){return e&&isFunctionLikeDeclarationKind(e.kind)}e.isFunctionLikeDeclaration=isFunctionLikeDeclaration;function isBooleanLiteral(e){return e.kind===110||e.kind===95}e.isBooleanLiteral=isBooleanLiteral;function isFunctionLikeDeclarationKind(e){switch(e){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return true;default:return false}}function isFunctionLikeKind(e){switch(e){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return true;default:return isFunctionLikeDeclarationKind(e)}}e.isFunctionLikeKind=isFunctionLikeKind;function isFunctionOrModuleBlock(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&isFunctionLike(t.parent)}e.isFunctionOrModuleBlock=isFunctionOrModuleBlock;function isClassElement(e){var t=e.kind;return t===169||t===165||t===167||t===170||t===171||t===174||t===168||t===232}e.isClassElement=isClassElement;function isClassLike(e){return e&&(e.kind===255||e.kind===224)}e.isClassLike=isClassLike;function isAccessor(e){return e&&(e.kind===170||e.kind===171)}e.isAccessor=isAccessor;function isMethodOrAccessor(e){switch(e.kind){case 167:case 170:case 171:return true;default:return false}}e.isMethodOrAccessor=isMethodOrAccessor;function isTypeElement(e){var t=e.kind;return t===173||t===172||t===164||t===166||t===174}e.isTypeElement=isTypeElement;function isClassOrTypeElement(e){return isTypeElement(e)||isClassElement(e)}e.isClassOrTypeElement=isClassOrTypeElement;function isObjectLiteralElementLike(e){var t=e.kind;return t===291||t===292||t===293||t===167||t===170||t===171}e.isObjectLiteralElementLike=isObjectLiteralElementLike;function isTypeNode(t){return e.isTypeNodeKind(t.kind)}e.isTypeNode=isTypeNode;function isFunctionOrConstructorTypeNode(e){switch(e.kind){case 177:case 178:return true}return false}e.isFunctionOrConstructorTypeNode=isFunctionOrConstructorTypeNode;function isBindingPattern(e){if(e){var t=e.kind;return t===200||t===199}return false}e.isBindingPattern=isBindingPattern;function isAssignmentPattern(e){var t=e.kind;return t===202||t===203}e.isAssignmentPattern=isAssignmentPattern;function isArrayBindingElement(e){var t=e.kind;return t===201||t===225}e.isArrayBindingElement=isArrayBindingElement;function isDeclarationBindingElement(e){switch(e.kind){case 252:case 162:case 201:return true}return false}e.isDeclarationBindingElement=isDeclarationBindingElement;function isBindingOrAssignmentPattern(e){return isObjectBindingOrAssignmentPattern(e)||isArrayBindingOrAssignmentPattern(e)}e.isBindingOrAssignmentPattern=isBindingOrAssignmentPattern;function isObjectBindingOrAssignmentPattern(e){switch(e.kind){case 199:case 203:return true}return false}e.isObjectBindingOrAssignmentPattern=isObjectBindingOrAssignmentPattern;function isObjectBindingOrAssignmentElement(e){switch(e.kind){case 201:case 291:case 292:case 293:return true}return false}e.isObjectBindingOrAssignmentElement=isObjectBindingOrAssignmentElement;function isArrayBindingOrAssignmentPattern(e){switch(e.kind){case 200:case 202:return true}return false}e.isArrayBindingOrAssignmentPattern=isArrayBindingOrAssignmentPattern;function isPropertyAccessOrQualifiedNameOrImportTypeNode(e){var t=e.kind;return t===204||t===159||t===198}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=isPropertyAccessOrQualifiedNameOrImportTypeNode;function isPropertyAccessOrQualifiedName(e){var t=e.kind;return t===204||t===159}e.isPropertyAccessOrQualifiedName=isPropertyAccessOrQualifiedName;function isCallLikeExpression(e){switch(e.kind){case 278:case 277:case 206:case 207:case 208:case 163:return true;default:return false}}e.isCallLikeExpression=isCallLikeExpression;function isCallOrNewExpression(e){return e.kind===206||e.kind===207}e.isCallOrNewExpression=isCallOrNewExpression;function isTemplateLiteral(e){var t=e.kind;return t===221||t===14}e.isTemplateLiteral=isTemplateLiteral;function isLeftHandSideExpression(e){return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(e).kind)}e.isLeftHandSideExpression=isLeftHandSideExpression;function isLeftHandSideExpressionKind(e){switch(e){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return true;default:return false}}function isUnaryExpression(e){return isUnaryExpressionKind(skipPartiallyEmittedExpressions(e).kind)}e.isUnaryExpression=isUnaryExpression;function isUnaryExpressionKind(e){switch(e){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return true;default:return isLeftHandSideExpressionKind(e)}}function isUnaryExpressionWithWrite(e){switch(e.kind){case 218:return true;case 217:return e.operator===45||e.operator===46;default:return false}}e.isUnaryExpressionWithWrite=isUnaryExpressionWithWrite;function isExpression(e){return isExpressionKind(skipPartiallyEmittedExpressions(e).kind)}e.isExpression=isExpression;function isExpressionKind(e){switch(e){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return true;default:return isUnaryExpressionKind(e)}}function isAssertionExpression(e){var t=e.kind;return t===209||t===227}e.isAssertionExpression=isAssertionExpression;function isNotEmittedOrPartiallyEmittedNode(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)}e.isNotEmittedOrPartiallyEmittedNode=isNotEmittedOrPartiallyEmittedNode;function isIterationStatement(e,t){switch(e.kind){case 240:case 241:case 242:case 238:case 239:return true;case 248:return t&&isIterationStatement(e.statement,t)}return false}e.isIterationStatement=isIterationStatement;function isScopeMarker(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}e.isScopeMarker=isScopeMarker;function hasScopeMarker(t){return e.some(t,isScopeMarker)}e.hasScopeMarker=hasScopeMarker;function needsScopeMarker(t){return!e.isAnyImportOrReExport(t)&&!e.isExportAssignment(t)&&!e.hasSyntacticModifier(t,1)&&!e.isAmbientModule(t)}e.needsScopeMarker=needsScopeMarker;function isExternalModuleIndicator(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)}e.isExternalModuleIndicator=isExternalModuleIndicator;function isForInOrOfStatement(e){return e.kind===241||e.kind===242}e.isForInOrOfStatement=isForInOrOfStatement;function isConciseBody(t){return e.isBlock(t)||isExpression(t)}e.isConciseBody=isConciseBody;function isFunctionBody(t){return e.isBlock(t)}e.isFunctionBody=isFunctionBody;function isForInitializer(t){return e.isVariableDeclarationList(t)||isExpression(t)}e.isForInitializer=isForInitializer;function isModuleBody(e){var t=e.kind;return t===260||t===259||t===79}e.isModuleBody=isModuleBody;function isNamespaceBody(e){var t=e.kind;return t===260||t===259}e.isNamespaceBody=isNamespaceBody;function isJSDocNamespaceBody(e){var t=e.kind;return t===79||t===259}e.isJSDocNamespaceBody=isJSDocNamespaceBody;function isNamedImportBindings(e){var t=e.kind;return t===267||t===266}e.isNamedImportBindings=isNamedImportBindings;function isModuleOrEnumDeclaration(e){return e.kind===259||e.kind===258}e.isModuleOrEnumDeclaration=isModuleOrEnumDeclaration;function isDeclarationKind(e){return e===212||e===201||e===255||e===224||e===168||e===169||e===258||e===294||e===273||e===254||e===211||e===170||e===265||e===263||e===268||e===256||e===283||e===167||e===166||e===259||e===262||e===266||e===272||e===162||e===291||e===165||e===164||e===171||e===292||e===257||e===161||e===252||e===340||e===333||e===342}function isDeclarationStatementKind(e){return e===254||e===274||e===255||e===256||e===257||e===258||e===259||e===264||e===263||e===270||e===269||e===262}function isStatementKindButNotDeclarationKind(e){return e===244||e===243||e===251||e===238||e===236||e===234||e===241||e===242||e===240||e===237||e===248||e===245||e===247||e===249||e===250||e===235||e===239||e===246||e===344||e===348||e===347}function isDeclaration(t){if(t.kind===161){return t.parent&&t.parent.kind!==339||e.isInJSFile(t)}return isDeclarationKind(t.kind)}e.isDeclaration=isDeclaration;function isDeclarationStatement(e){return isDeclarationStatementKind(e.kind)}e.isDeclarationStatement=isDeclarationStatement;function isStatementButNotDeclaration(e){return isStatementKindButNotDeclarationKind(e.kind)}e.isStatementButNotDeclaration=isStatementButNotDeclaration;function isStatement(e){var t=e.kind;return isStatementKindButNotDeclarationKind(t)||isDeclarationStatementKind(t)||isBlockStatement(e)}e.isStatement=isStatement;function isBlockStatement(t){if(t.kind!==233)return false;if(t.parent!==undefined){if(t.parent.kind===250||t.parent.kind===290){return false}}return!e.isFunctionBlock(t)}function isStatementOrBlock(e){var t=e.kind;return isStatementKindButNotDeclarationKind(t)||isDeclarationStatementKind(t)||t===233}e.isStatementOrBlock=isStatementOrBlock;function isModuleReference(e){var t=e.kind;return t===275||t===159||t===79}e.isModuleReference=isModuleReference;function isJsxTagNameExpression(e){var t=e.kind;return t===108||t===79||t===204}e.isJsxTagNameExpression=isJsxTagNameExpression;function isJsxChild(e){var t=e.kind;return t===276||t===286||t===277||t===11||t===280}e.isJsxChild=isJsxChild;function isJsxAttributeLike(e){var t=e.kind;return t===283||t===285}e.isJsxAttributeLike=isJsxAttributeLike;function isStringLiteralOrJsxExpression(e){var t=e.kind;return t===10||t===286}e.isStringLiteralOrJsxExpression=isStringLiteralOrJsxExpression;function isJsxOpeningLikeElement(e){var t=e.kind;return t===278||t===277}e.isJsxOpeningLikeElement=isJsxOpeningLikeElement;function isCaseOrDefaultClause(e){var t=e.kind;return t===287||t===288}e.isCaseOrDefaultClause=isCaseOrDefaultClause;function isJSDocNode(e){return e.kind>=304&&e.kind<=342}e.isJSDocNode=isJSDocNode;function isJSDocCommentContainingNode(t){return t.kind===315||t.kind===314||t.kind===316||isJSDocLinkLike(t)||isJSDocTag(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)}e.isJSDocCommentContainingNode=isJSDocCommentContainingNode;function isJSDocTag(e){return e.kind>=322&&e.kind<=342}e.isJSDocTag=isJSDocTag;function isSetAccessor(e){return e.kind===171}e.isSetAccessor=isSetAccessor;function isGetAccessor(e){return e.kind===170}e.isGetAccessor=isGetAccessor;function hasJSDocNodes(e){var t=e.jsDoc;return!!t&&t.length>0}e.hasJSDocNodes=hasJSDocNodes;function hasType(e){return!!e.type}e.hasType=hasType;function hasInitializer(e){return!!e.initializer}e.hasInitializer=hasInitializer;function hasOnlyExpressionInitializer(e){switch(e.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return true;default:return false}}e.hasOnlyExpressionInitializer=hasOnlyExpressionInitializer;function isObjectLiteralElement(e){return e.kind===283||e.kind===285||isObjectLiteralElementLike(e)}e.isObjectLiteralElement=isObjectLiteralElement;function isTypeReferenceType(e){return e.kind===176||e.kind===226}e.isTypeReferenceType=isTypeReferenceType;var t=1073741823;function guessIndentation(r){var n=t;for(var i=0,a=r;i=0);return e.getLineStarts(r)[t]}e.getStartPositionOfLine=getStartPositionOfLine;function nodePosToString(t){var r=getSourceFileOfNode(t);var n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}e.nodePosToString=nodePosToString;function getEndLinePosition(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r);var i=t;var a=r.text;if(i+1===n.length){return a.length-1}else{var s=n[i];var o=n[i+1]-1;e.Debug.assert(e.isLineBreak(a.charCodeAt(o)));while(s<=o&&e.isLineBreak(a.charCodeAt(o))){o--}return o}}e.getEndLinePosition=getEndLinePosition;function isFileLevelUniqueName(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}e.isFileLevelUniqueName=isFileLevelUniqueName;function nodeIsMissing(e){if(e===undefined){return true}return e.pos===e.end&&e.pos>=0&&e.kind!==1}e.nodeIsMissing=nodeIsMissing;function nodeIsPresent(e){return!nodeIsMissing(e)}e.nodeIsPresent=nodeIsPresent;function insertStatementsAfterPrologue(e,t,r){if(t===undefined||t.length===0)return e;var i=0;for(;i0){return getTokenPosOfNode(t._children[0],r,n)}return e.skipTrivia((r||getSourceFileOfNode(t)).text,t.pos,false,false,isInJSDoc(t))}e.getTokenPosOfNode=getTokenPosOfNode;function getNonDecoratorTokenPosOfNode(t,r){if(nodeIsMissing(t)||!t.decorators){return getTokenPosOfNode(t,r)}return e.skipTrivia((r||getSourceFileOfNode(t)).text,t.decorators.end)}e.getNonDecoratorTokenPosOfNode=getNonDecoratorTokenPosOfNode;function getSourceTextOfNodeFromSourceFile(e,t,r){if(r===void 0){r=false}return getTextOfNodeFromSourceText(e.text,t,r)}e.getSourceTextOfNodeFromSourceFile=getSourceTextOfNodeFromSourceFile;function isJSDocTypeExpressionOrChild(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}function isExportNamespaceAsDefaultDeclaration(t){return!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&t.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=isExportNamespaceAsDefaultDeclaration;function getTextOfNodeFromSourceText(t,r,n){if(n===void 0){n=false}if(nodeIsMissing(r)){return""}var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);if(isJSDocTypeExpressionOrChild(r)){i=i.split(/\r\n|\n|\r/).map(function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))}).join("\n")}return i}e.getTextOfNodeFromSourceText=getTextOfNodeFromSourceText;function getTextOfNode(e,t){if(t===void 0){t=false}return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(e),e,t)}e.getTextOfNode=getTextOfNode;function getPos(e){return e.pos}function indexOfNode(t,r){return e.binarySearch(t,r,getPos,e.compareValues)}e.indexOfNode=indexOfNode;function getEmitFlags(e){var t=e.emitNode;return t&&t.flags||0}e.getEmitFlags=getEmitFlags;function getScriptTargetFeatures(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}}e.getScriptTargetFeatures=getScriptTargetFeatures;var r;(function(e){e[e["None"]=0]="None";e[e["NeverAsciiEscape"]=1]="NeverAsciiEscape";e[e["JsxAttributeEscape"]=2]="JsxAttributeEscape";e[e["TerminateUnterminatedLiterals"]=4]="TerminateUnterminatedLiterals";e[e["AllowNumericSeparator"]=8]="AllowNumericSeparator"})(r=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function getLiteralText(t,r,n){var i;if(canUseOriginalText(t,n)){return getSourceTextOfNodeFromSourceFile(r,t)}switch(t.kind){case 10:{var a=n&2?escapeJsxAttributeString:n&1||getEmitFlags(t)&16777216?escapeString:escapeNonAsciiString;if(t.singleQuote){return"'"+a(t.text,39)+"'"}else{return'"'+a(t.text,34)+'"'}}case 14:case 15:case 16:case 17:{var a=n&1||getEmitFlags(t)&16777216?escapeString:escapeNonAsciiString;var s=(i=t.rawText)!==null&&i!==void 0?i:escapeTemplateSubstitution(a(t.text,96));switch(t.kind){case 14:return"`"+s+"`";case 15:return"`"+s+"${";case 16:return"}"+s+"${";case 17:return"}"+s+"`"}break}case 8:case 9:return t.text;case 13:if(n&4&&t.isUnterminated){return t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/")}return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}e.getLiteralText=getLiteralText;function canUseOriginalText(t,r){if(nodeIsSynthesized(t)||!t.parent||r&4&&t.isUnterminated){return false}if(e.isNumericLiteral(t)&&t.numericLiteralFlags&512){return!!(r&8)}return!e.isBigIntLiteral(t)}function getTextOfConstantValue(t){return e.isString(t)?'"'+escapeNonAsciiString(t)+'"':""+t}e.getTextOfConstantValue=getTextOfConstantValue;function makeIdentifierFromModuleName(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=makeIdentifierFromModuleName;function isBlockOrCatchScoped(t){return(e.getCombinedNodeFlags(t)&3)!==0||isCatchClauseVariableDeclarationOrBindingElement(t)}e.isBlockOrCatchScoped=isBlockOrCatchScoped;function isCatchClauseVariableDeclarationOrBindingElement(e){var t=getRootDeclaration(e);return t.kind===252&&t.parent.kind===290}e.isCatchClauseVariableDeclarationOrBindingElement=isCatchClauseVariableDeclarationOrBindingElement;function isAmbientModule(t){return e.isModuleDeclaration(t)&&(t.name.kind===10||isGlobalScopeAugmentation(t))}e.isAmbientModule=isAmbientModule;function isModuleWithStringLiteralName(t){return e.isModuleDeclaration(t)&&t.name.kind===10}e.isModuleWithStringLiteralName=isModuleWithStringLiteralName;function isNonGlobalAmbientModule(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}e.isNonGlobalAmbientModule=isNonGlobalAmbientModule;function isEffectiveModuleDeclaration(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}e.isEffectiveModuleDeclaration=isEffectiveModuleDeclaration;function isShorthandAmbientModuleSymbol(e){return isShorthandAmbientModule(e.valueDeclaration)}e.isShorthandAmbientModuleSymbol=isShorthandAmbientModuleSymbol;function isShorthandAmbientModule(e){return!!e&&e.kind===259&&!e.body}function isBlockScopedContainerTopLevel(t){return t.kind===300||t.kind===259||e.isFunctionLikeOrClassStaticBlockDeclaration(t)}e.isBlockScopedContainerTopLevel=isBlockScopedContainerTopLevel;function isGlobalScopeAugmentation(e){return!!(e.flags&1024)}e.isGlobalScopeAugmentation=isGlobalScopeAugmentation;function isExternalModuleAugmentation(e){return isAmbientModule(e)&&isModuleAugmentationExternal(e)}e.isExternalModuleAugmentation=isExternalModuleAugmentation;function isModuleAugmentationExternal(t){switch(t.parent.kind){case 300:return e.isExternalModule(t.parent);case 260:return isAmbientModule(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return false}e.isModuleAugmentationExternal=isModuleAugmentationExternal;function getNonAugmentationDeclaration(t){var r;return(r=t.declarations)===null||r===void 0?void 0:r.find(function(t){return!isExternalModuleAugmentation(t)&&!(e.isModuleDeclaration(t)&&isGlobalScopeAugmentation(t))})}e.getNonAugmentationDeclaration=getNonAugmentationDeclaration;function isEffectiveExternalModule(t,r){return e.isExternalModule(t)||r.isolatedModules||getEmitModuleKind(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator}e.isEffectiveExternalModule=isEffectiveExternalModule;function isEffectiveStrictModeSourceFile(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return false}if(t.isDeclarationFile){return false}if(getStrictOptionValue(r,"alwaysStrict")){return true}if(e.startsWithUseStrict(t.statements)){return true}if(e.isExternalModule(t)||r.isolatedModules){if(getEmitModuleKind(r)>=e.ModuleKind.ES2015){return true}return!r.noImplicitUseStrict}return false}e.isEffectiveStrictModeSourceFile=isEffectiveStrictModeSourceFile;function isBlockScope(t,r){switch(t.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return true;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return false}e.isBlockScope=isBlockScope;function isDeclarationWithTypeParameters(t){switch(t.kind){case 333:case 340:case 318:return true;default:e.assertType(t);return isDeclarationWithTypeParameterChildren(t)}}e.isDeclarationWithTypeParameters=isDeclarationWithTypeParameters;function isDeclarationWithTypeParameterChildren(t){switch(t.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return true;default:e.assertType(t);return false}}e.isDeclarationWithTypeParameterChildren=isDeclarationWithTypeParameterChildren;function isAnyImportSyntax(e){switch(e.kind){case 264:case 263:return true;default:return false}}e.isAnyImportSyntax=isAnyImportSyntax;function isLateVisibilityPaintedStatement(e){switch(e.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return true;default:return false}}e.isLateVisibilityPaintedStatement=isLateVisibilityPaintedStatement;function hasPossibleExternalModuleReference(t){return isAnyImportOrReExport(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||isImportCall(t)}e.hasPossibleExternalModuleReference=hasPossibleExternalModuleReference;function isAnyImportOrReExport(t){return isAnyImportSyntax(t)||e.isExportDeclaration(t)}e.isAnyImportOrReExport=isAnyImportOrReExport;function getEnclosingBlockScopeContainer(t){return e.findAncestor(t.parent,function(e){return isBlockScope(e,e.parent)})}e.getEnclosingBlockScopeContainer=getEnclosingBlockScopeContainer;function forEachEnclosingBlockScopeContainer(e,t){var r=getEnclosingBlockScopeContainer(e);while(r){t(r);r=getEnclosingBlockScopeContainer(r)}}e.forEachEnclosingBlockScopeContainer=forEachEnclosingBlockScopeContainer;function declarationNameToString(e){return!e||getFullWidth(e)===0?"(Missing)":getTextOfNode(e)}e.declarationNameToString=declarationNameToString;function getNameFromIndexInfo(e){return e.declaration?declarationNameToString(e.declaration.parameters[0].name):undefined}e.getNameFromIndexInfo=getNameFromIndexInfo;function isComputedNonLiteralName(e){return e.kind===160&&!isStringOrNumericLiteralLike(e.expression)}e.isComputedNonLiteralName=isComputedNonLiteralName;function getTextOfPropertyName(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 160:if(isStringOrNumericLiteralLike(t.expression))return e.escapeLeadingUnderscores(t.expression.text);return e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}e.getTextOfPropertyName=getTextOfPropertyName;function entityNameToString(t){switch(t.kind){case 108:return"this";case 80:case 79:return getFullWidth(t)===0?e.idText(t):getTextOfNode(t);case 159:return entityNameToString(t.left)+"."+entityNameToString(t.right);case 204:if(e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)){return entityNameToString(t.expression)+"."+entityNameToString(t.name)}else{return e.Debug.assertNever(t.name)}case 306:return entityNameToString(t.left)+entityNameToString(t.right);default:return e.Debug.assertNever(t)}}e.entityNameToString=entityNameToString;function createDiagnosticForNode(e,t,r,n,i,a){var s=getSourceFileOfNode(e);return createDiagnosticForNodeInSourceFile(s,e,t,r,n,i,a)}e.createDiagnosticForNode=createDiagnosticForNode;function createDiagnosticForNodeArray(t,r,n,i,a,s,o){var c=e.skipTrivia(t.text,r.pos);return createFileDiagnostic(t,c,r.end-c,n,i,a,s,o)}e.createDiagnosticForNodeArray=createDiagnosticForNodeArray;function createDiagnosticForNodeInSourceFile(e,t,r,n,i,a,s){var o=getErrorSpanForNode(e,t);return createFileDiagnostic(e,o.start,o.length,r,n,i,a,s)}e.createDiagnosticForNodeInSourceFile=createDiagnosticForNodeInSourceFile;function createDiagnosticForNodeFromMessageChain(e,t,r){var n=getSourceFileOfNode(e);var i=getErrorSpanForNode(n,e);return createFileDiagnosticFromMessageChain(n,i.start,i.length,t,r)}e.createDiagnosticForNodeFromMessageChain=createDiagnosticForNodeFromMessageChain;function assertDiagnosticLocation(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0);e.Debug.assertGreaterThanOrEqual(n,0);if(t){e.Debug.assertLessThanOrEqual(r,t.text.length);e.Debug.assertLessThanOrEqual(r+n,t.text.length)}}function createFileDiagnosticFromMessageChain(e,t,r,n,i){assertDiagnosticLocation(e,t,r);return{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}e.createFileDiagnosticFromMessageChain=createFileDiagnosticFromMessageChain;function createDiagnosticForFileFromMessageChain(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}e.createDiagnosticForFileFromMessageChain=createDiagnosticForFileFromMessageChain;function createDiagnosticForRange(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}e.createDiagnosticForRange=createDiagnosticForRange;function getSpanOfTokenAtPosition(t,r){var n=e.createScanner(t.languageVersion,true,t.languageVariant,t.text,undefined,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}e.getSpanOfTokenAtPosition=getSpanOfTokenAtPosition;function getErrorSpanForArrowFunction(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&r.body.kind===233){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;var a=e.getLineAndCharacterOfPosition(t,r.body.end).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,s)}if(n===undefined){return getSpanOfTokenAtPosition(t,r.pos)}e.Debug.assert(!e.isJSDoc(n));var o=nodeIsMissing(n);var c=o||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);if(o){e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")}else{e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809");e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")}return e.createTextSpanFromBounds(c,n.end)}e.getErrorSpanForNode=getErrorSpanForNode;function isExternalOrCommonJsModule(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==undefined}e.isExternalOrCommonJsModule=isExternalOrCommonJsModule;function isJsonSourceFile(e){return e.scriptKind===6}e.isJsonSourceFile=isJsonSourceFile;function isEnumConst(t){return!!(e.getCombinedModifierFlags(t)&2048)}e.isEnumConst=isEnumConst;function isDeclarationReadonly(t){return!!(e.getCombinedModifierFlags(t)&64&&!e.isParameterPropertyDeclaration(t,t.parent))}e.isDeclarationReadonly=isDeclarationReadonly;function isVarConst(t){return!!(e.getCombinedNodeFlags(t)&2)}e.isVarConst=isVarConst;function isLet(t){return!!(e.getCombinedNodeFlags(t)&1)}e.isLet=isLet;function isSuperCall(e){return e.kind===206&&e.expression.kind===106}e.isSuperCall=isSuperCall;function isImportCall(e){return e.kind===206&&e.expression.kind===100}e.isImportCall=isImportCall;function isImportMeta(t){return e.isMetaProperty(t)&&t.keywordToken===100&&t.name.escapedText==="meta"}e.isImportMeta=isImportMeta;function isLiteralImportTypeNode(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}e.isLiteralImportTypeNode=isLiteralImportTypeNode;function isPrologueDirective(e){return e.kind===236&&e.expression.kind===10}e.isPrologueDirective=isPrologueDirective;function isCustomPrologue(e){return!!(getEmitFlags(e)&1048576)}e.isCustomPrologue=isCustomPrologue;function isHoistedFunction(t){return isCustomPrologue(t)&&e.isFunctionDeclaration(t)}e.isHoistedFunction=isHoistedFunction;function isHoistedVariable(t){return e.isIdentifier(t.name)&&!t.initializer}function isHoistedVariableStatement(t){return isCustomPrologue(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,isHoistedVariable)}e.isHoistedVariableStatement=isHoistedVariableStatement;function getLeadingCommentRangesOfNode(t,r){return t.kind!==11?e.getLeadingCommentRanges(r.text,t.pos):undefined}e.getLeadingCommentRangesOfNode=getLeadingCommentRangesOfNode;function getJSDocCommentRanges(t,r){var n=t.kind===162||t.kind===161||t.kind===211||t.kind===212||t.kind===210||t.kind===252?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return r.charCodeAt(e.pos+1)===42&&r.charCodeAt(e.pos+2)===42&&r.charCodeAt(e.pos+3)!==47})}e.getJSDocCommentRanges=getJSDocCommentRanges;e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var a=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var s=/^(\/\/\/\s*/;function isPartOfTypeNode(t){if(175<=t.kind&&t.kind<=198){return true}switch(t.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return true;case 114:return t.parent.kind!==215;case 226:return!isExpressionWithTypeArgumentsInClassExtendsClause(t);case 161:return t.parent.kind===193||t.parent.kind===188;case 79:if(t.parent.kind===159&&t.parent.right===t){t=t.parent}else if(t.parent.kind===204&&t.parent.name===t){t=t.parent}e.Debug.assert(t.kind===79||t.kind===159||t.kind===204,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:{var r=t.parent;if(r.kind===179){return false}if(r.kind===198){return!r.isTypeOf}if(175<=r.kind&&r.kind<=198){return true}switch(r.kind){case 226:return!isExpressionWithTypeArgumentsInClassExtendsClause(r);case 161:return t===r.constraint;case 339:return t===r.constraint;case 165:case 164:case 162:case 252:return t===r.type;case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:return t===r.type;case 172:case 173:case 174:return t===r.type;case 209:return t===r.type;case 206:case 207:return e.contains(r.typeArguments,t);case 208:return false}}}return false}e.isPartOfTypeNode=isPartOfTypeNode;function isChildOfNodeWithKind(e,t){while(e){if(e.kind===t){return true}e=e.parent}return false}e.isChildOfNodeWithKind=isChildOfNodeWithKind;function forEachReturnStatement(t,r){return traverse(t);function traverse(t){switch(t.kind){case 245:return r(t);case 261:case 233:case 237:case 238:case 239:case 240:case 241:case 242:case 246:case 247:case 287:case 288:case 248:case 250:case 290:return e.forEachChild(t,traverse)}}}e.forEachReturnStatement=forEachReturnStatement;function forEachYieldExpression(t,r){return traverse(t);function traverse(t){switch(t.kind){case 222:r(t);var n=t.expression;if(n){traverse(n)}return;case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(t)){if(t.name&&t.name.kind===160){traverse(t.name.expression);return}}else if(!isPartOfTypeNode(t)){e.forEachChild(t,traverse)}}}}e.forEachYieldExpression=forEachYieldExpression;function getRestParameterElementType(t){if(t&&t.kind===181){return t.elementType}else if(t&&t.kind===176){return e.singleOrUndefined(t.typeArguments)}else{return undefined}}e.getRestParameterElementType=getRestParameterElementType;function getMembersOfDeclaration(e){switch(e.kind){case 256:case 255:case 224:case 180:return e.members;case 203:return e.properties}}e.getMembersOfDeclaration=getMembersOfDeclaration;function isVariableLike(e){if(e){switch(e.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return true}}return false}e.isVariableLike=isVariableLike;function isVariableLikeOrAccessor(t){return isVariableLike(t)||e.isAccessor(t)}e.isVariableLikeOrAccessor=isVariableLikeOrAccessor;function isVariableDeclarationInVariableStatement(e){return e.parent.kind===253&&e.parent.parent.kind===235}e.isVariableDeclarationInVariableStatement=isVariableDeclarationInVariableStatement;function isValidESSymbolDeclaration(t){return e.isVariableDeclaration(t)?isVarConst(t)&&e.isIdentifier(t.name)&&isVariableDeclarationInVariableStatement(t):e.isPropertyDeclaration(t)?hasEffectiveReadonlyModifier(t)&&hasStaticModifier(t):e.isPropertySignature(t)&&hasEffectiveReadonlyModifier(t)}e.isValidESSymbolDeclaration=isValidESSymbolDeclaration;function introducesArgumentsExoticObject(e){switch(e.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return true}return false}e.introducesArgumentsExoticObject=introducesArgumentsExoticObject;function unwrapInnermostStatementOfLabel(e,t){while(true){if(t){t(e)}if(e.statement.kind!==248){return e.statement}e=e.statement}}e.unwrapInnermostStatementOfLabel=unwrapInnermostStatementOfLabel;function isFunctionBlock(t){return t&&t.kind===233&&e.isFunctionLike(t.parent)}e.isFunctionBlock=isFunctionBlock;function isObjectLiteralMethod(e){return e&&e.kind===167&&e.parent.kind===203}e.isObjectLiteralMethod=isObjectLiteralMethod;function isObjectLiteralOrClassExpressionMethod(e){return e.kind===167&&(e.parent.kind===203||e.parent.kind===224)}e.isObjectLiteralOrClassExpressionMethod=isObjectLiteralOrClassExpressionMethod;function isIdentifierTypePredicate(e){return e&&e.kind===1}e.isIdentifierTypePredicate=isIdentifierTypePredicate;function isThisTypePredicate(e){return e&&e.kind===0}e.isThisTypePredicate=isThisTypePredicate;function getPropertyAssignment(e,t,r){return e.properties.filter(function(e){if(e.kind===291){var n=getTextOfPropertyName(e.name);return t===n||!!r&&r===n}return false})}e.getPropertyAssignment=getPropertyAssignment;function getPropertyArrayElementValue(t,r,n){return e.firstDefined(getPropertyAssignment(t,r),function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,function(t){return e.isStringLiteral(t)&&t.text===n}):undefined})}e.getPropertyArrayElementValue=getPropertyArrayElementValue;function getTsConfigObjectLiteralExpression(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=getTsConfigObjectLiteralExpression;function getTsConfigPropArrayElementValue(t,r,n){return e.firstDefined(getTsConfigPropArray(t,r),function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,function(t){return e.isStringLiteral(t)&&t.text===n}):undefined})}e.getTsConfigPropArrayElementValue=getTsConfigPropArrayElementValue;function getTsConfigPropArray(t,r){var n=getTsConfigObjectLiteralExpression(t);return n?getPropertyAssignment(n,r):e.emptyArray}e.getTsConfigPropArray=getTsConfigPropArray;function getContainingFunction(t){return e.findAncestor(t.parent,e.isFunctionLike)}e.getContainingFunction=getContainingFunction;function getContainingFunctionDeclaration(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=getContainingFunctionDeclaration;function getContainingClass(t){return e.findAncestor(t.parent,e.isClassLike)}e.getContainingClass=getContainingClass;function getContainingClassStaticBlock(t){return e.findAncestor(t.parent,function(t){if(e.isClassLike(t)||e.isFunctionLike(t)){return"quit"}return e.isClassStaticBlockDeclaration(t)})}e.getContainingClassStaticBlock=getContainingClassStaticBlock;function getContainingFunctionOrClassStaticBlock(t){return e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=getContainingFunctionOrClassStaticBlock;function getThisContainer(t,r){e.Debug.assert(t.kind!==300);while(true){t=t.parent;if(!t){return e.Debug.fail()}switch(t.kind){case 160:if(e.isClassLike(t.parent.parent)){return t}t=t.parent;break;case 163:if(t.parent.kind===162&&e.isClassElement(t.parent.parent)){t=t.parent.parent}else if(e.isClassElement(t.parent)){t=t.parent}break;case 212:if(!r){continue}case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return t}}}e.getThisContainer=getThisContainer;function isInTopLevelContext(t){if(e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t){t=t.parent}var r=getThisContainer(t,true);return e.isSourceFile(r)}e.isInTopLevelContext=isInTopLevelContext;function getNewTargetContainer(e){var t=getThisContainer(e,false);if(t){switch(t.kind){case 169:case 254:case 211:return t}}return undefined}e.getNewTargetContainer=getNewTargetContainer;function getSuperContainer(t,r){while(true){t=t.parent;if(!t){return t}switch(t.kind){case 160:t=t.parent;break;case 254:case 211:case 212:if(!r){continue}case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return t;case 163:if(t.parent.kind===162&&e.isClassElement(t.parent.parent)){t=t.parent.parent}else if(e.isClassElement(t.parent)){t=t.parent}break}}}e.getSuperContainer=getSuperContainer;function getImmediatelyInvokedFunctionExpression(e){if(e.kind===211||e.kind===212){var t=e;var r=e.parent;while(r.kind===210){t=r;r=r.parent}if(r.kind===206&&r.expression===t){return r}}}e.getImmediatelyInvokedFunctionExpression=getImmediatelyInvokedFunctionExpression;function isSuperOrSuperProperty(e){return e.kind===106||isSuperProperty(e)}e.isSuperOrSuperProperty=isSuperOrSuperProperty;function isSuperProperty(e){var t=e.kind;return(t===204||t===205)&&e.expression.kind===106}e.isSuperProperty=isSuperProperty;function isThisProperty(e){var t=e.kind;return(t===204||t===205)&&e.expression.kind===108}e.isThisProperty=isThisProperty;function isThisInitializedDeclaration(t){var r;return!!t&&e.isVariableDeclaration(t)&&((r=t.initializer)===null||r===void 0?void 0:r.kind)===108}e.isThisInitializedDeclaration=isThisInitializedDeclaration;function isThisInitializedObjectBindingExpression(t){return!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.operatorToken.kind===63&&t.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=isThisInitializedObjectBindingExpression;function getEntityNameFromTypeNode(e){switch(e.kind){case 176:return e.typeName;case 226:return isEntityNameExpression(e.expression)?e.expression:undefined;case 79:case 159:return e}return undefined}e.getEntityNameFromTypeNode=getEntityNameFromTypeNode;function getInvokedExpression(e){switch(e.kind){case 208:return e.tag;case 278:case 277:return e.tagName;default:return e.expression}}e.getInvokedExpression=getInvokedExpression;function nodeCanBeDecorated(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name)){return false}switch(t.kind){case 255:return true;case 165:return r.kind===255;case 170:case 171:case 167:return t.body!==undefined&&r.kind===255;case 162:return r.body!==undefined&&(r.kind===169||r.kind===167||r.kind===171)&&n.kind===255}return false}e.nodeCanBeDecorated=nodeCanBeDecorated;function nodeIsDecorated(e,t,r){return e.decorators!==undefined&&nodeCanBeDecorated(e,t,r)}e.nodeIsDecorated=nodeIsDecorated;function nodeOrChildIsDecorated(e,t,r){return nodeIsDecorated(e,t,r)||childIsDecorated(e,t)}e.nodeOrChildIsDecorated=nodeOrChildIsDecorated;function childIsDecorated(t,r){switch(t.kind){case 255:return e.some(t.members,function(e){return nodeOrChildIsDecorated(e,t,r)});case 167:case 171:case 169:return e.some(t.parameters,function(e){return nodeIsDecorated(e,t,r)});default:return false}}e.childIsDecorated=childIsDecorated;function classOrConstructorParameterIsDecorated(e){if(nodeIsDecorated(e))return true;var t=getFirstConstructorWithBody(e);return!!t&&childIsDecorated(t,e)}e.classOrConstructorParameterIsDecorated=classOrConstructorParameterIsDecorated;function isJSXTagName(e){var t=e.parent;if(t.kind===278||t.kind===277||t.kind===279){return t.tagName===e}return false}e.isJSXTagName=isJSXTagName;function isExpressionNode(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return true;case 159:while(t.parent.kind===159){t=t.parent}return t.parent.kind===179||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||isJSXTagName(t);case 306:while(e.isJSDocMemberName(t.parent)){t=t.parent}return t.parent.kind===179||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||isJSXTagName(t);case 79:if(t.parent.kind===179||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||isJSXTagName(t)){return true}case 8:case 9:case 10:case 14:case 108:return isInExpressionContext(t);default:return false}}e.isExpressionNode=isExpressionNode;function isInExpressionContext(e){var t=e.parent;switch(t.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return t.initializer===e;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return t.expression===e;case 240:var r=t;return r.initializer===e&&r.initializer.kind!==253||r.condition===e||r.incrementor===e;case 241:case 242:var n=t;return n.initializer===e&&n.initializer.kind!==253||n.expression===e;case 209:case 227:return e===t.expression;case 231:return e===t.expression;case 160:return e===t.expression;case 163:case 286:case 285:case 293:return true;case 226:return t.expression===e&&isExpressionWithTypeArgumentsInClassExtendsClause(t);case 292:return t.objectAssignmentInitializer===e;default:return isExpressionNode(t)}}e.isInExpressionContext=isInExpressionContext;function isPartOfTypeQuery(e){while(e.kind===159||e.kind===79){e=e.parent}return e.kind===179}e.isPartOfTypeQuery=isPartOfTypeQuery;function isNamespaceReexportDeclaration(t){return e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=isNamespaceReexportDeclaration;function isExternalModuleImportEqualsDeclaration(e){return e.kind===263&&e.moduleReference.kind===275}e.isExternalModuleImportEqualsDeclaration=isExternalModuleImportEqualsDeclaration;function getExternalModuleImportEqualsDeclarationExpression(t){e.Debug.assert(isExternalModuleImportEqualsDeclaration(t));return t.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=getExternalModuleImportEqualsDeclarationExpression;function getExternalModuleRequireArgument(e){return isRequireVariableDeclaration(e)&&getLeftmostAccessExpression(e.initializer).arguments[0]}e.getExternalModuleRequireArgument=getExternalModuleRequireArgument;function isInternalModuleImportEqualsDeclaration(e){return e.kind===263&&e.moduleReference.kind!==275}e.isInternalModuleImportEqualsDeclaration=isInternalModuleImportEqualsDeclaration;function isSourceFileJS(e){return isInJSFile(e)}e.isSourceFileJS=isSourceFileJS;function isSourceFileNotJS(e){return!isInJSFile(e)}e.isSourceFileNotJS=isSourceFileNotJS;function isInJSFile(e){return!!e&&!!(e.flags&131072)}e.isInJSFile=isInJSFile;function isInJsonFile(e){return!!e&&!!(e.flags&33554432)}e.isInJsonFile=isInJsonFile;function isSourceFileNotJson(e){return!isJsonSourceFile(e)}e.isSourceFileNotJson=isSourceFileNotJson;function isInJSDoc(e){return!!e&&!!(e.flags&4194304)}e.isInJSDoc=isInJSDoc;function isJSDocIndexSignature(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===148||t.typeArguments[0].kind===145)}e.isJSDocIndexSignature=isJSDocIndexSignature;function isRequireCall(t,r){if(t.kind!==206){return false}var n=t,i=n.expression,a=n.arguments;if(i.kind!==79||i.escapedText!=="require"){return false}if(a.length!==1){return false}var s=a[0];return!r||e.isStringLiteralLike(s)}e.isRequireCall=isRequireCall;function isRequireVariableDeclaration(t){if(t.kind===201){t=t.parent.parent}return e.isVariableDeclaration(t)&&!!t.initializer&&isRequireCall(getLeftmostAccessExpression(t.initializer),true)}e.isRequireVariableDeclaration=isRequireVariableDeclaration;function isRequireVariableStatement(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,function(e){return isRequireVariableDeclaration(e)})}e.isRequireVariableStatement=isRequireVariableStatement;function isSingleOrDoubleQuote(e){return e===39||e===34}e.isSingleOrDoubleQuote=isSingleOrDoubleQuote;function isStringDoubleQuoted(e,t){return getSourceTextOfNodeFromSourceFile(t,e).charCodeAt(0)===34}e.isStringDoubleQuoted=isStringDoubleQuoted;function isAssignmentDeclaration(t){return e.isBinaryExpression(t)||isAccessExpression(t)||e.isIdentifier(t)||e.isCallExpression(t)}e.isAssignmentDeclaration=isAssignmentDeclaration;function getEffectiveInitializer(t){if(isInJSFile(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(t.initializer.operatorToken.kind===56||t.initializer.operatorToken.kind===60)&&t.name&&isEntityNameExpression(t.name)&&isSameEntityName(t.name,t.initializer.left)){return t.initializer.right}return t.initializer}e.getEffectiveInitializer=getEffectiveInitializer;function getDeclaredExpandoInitializer(e){var t=getEffectiveInitializer(e);return t&&getExpandoInitializer(t,isPrototypeAccess(e.name))}e.getDeclaredExpandoInitializer=getDeclaredExpandoInitializer;function hasExpandoValueProperty(t,r){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&t.name.escapedText==="value"&&t.initializer&&getExpandoInitializer(t.initializer,r)})}function getAssignedExpandoInitializer(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===63){var r=isPrototypeAccess(t.parent.left);return getExpandoInitializer(t.parent.right,r)||getDefaultedExpandoInitializer(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&isBindableObjectDefinePropertyCall(t)){var n=hasExpandoValueProperty(t.arguments[2],t.arguments[1].text==="prototype");if(n){return n}}}e.getAssignedExpandoInitializer=getAssignedExpandoInitializer;function getExpandoInitializer(t,r){if(e.isCallExpression(t)){var n=skipParentheses(t.expression);return n.kind===211||n.kind===212?t:undefined}if(t.kind===211||t.kind===224||t.kind===212){return t}if(e.isObjectLiteralExpression(t)&&(t.properties.length===0||r)){return t}}e.getExpandoInitializer=getExpandoInitializer;function getDefaultedExpandoInitializer(t,r,n){var i=e.isBinaryExpression(r)&&(r.operatorToken.kind===56||r.operatorToken.kind===60)&&getExpandoInitializer(r.right,n);if(i&&isSameEntityName(t,r.left)){return i}}function isDefaultedExpandoInitializer(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&t.parent.operatorToken.kind===63?t.parent.left:undefined;return r&&getExpandoInitializer(t.right,isPrototypeAccess(r))&&isEntityNameExpression(r)&&isSameEntityName(r,t.left)}e.isDefaultedExpandoInitializer=isDefaultedExpandoInitializer;function getNameOfExpando(t){if(e.isBinaryExpression(t.parent)){var r=(t.parent.operatorToken.kind===56||t.parent.operatorToken.kind===60)&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(r.operatorToken.kind===63&&e.isIdentifier(r.left)){return r.left}}else if(e.isVariableDeclaration(t.parent)){return t.parent.name}}e.getNameOfExpando=getNameOfExpando;function isSameEntityName(t,r){if(isPropertyNameLiteral(t)&&isPropertyNameLiteral(r)){return getTextOfIdentifierOrLiteral(t)===getTextOfIdentifierOrLiteral(r)}if(e.isIdentifier(t)&&isLiteralLikeAccess(r)&&(r.expression.kind===108||e.isIdentifier(r.expression)&&(r.expression.escapedText==="window"||r.expression.escapedText==="self"||r.expression.escapedText==="global"))){var n=getNameOrArgument(r);if(e.isPrivateIdentifier(n)){e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access.")}return isSameEntityName(t,n)}if(isLiteralLikeAccess(t)&&isLiteralLikeAccess(r)){return getElementOrPropertyAccessName(t)===getElementOrPropertyAccessName(r)&&isSameEntityName(t.expression,r.expression)}return false}e.isSameEntityName=isSameEntityName;function getRightMostAssignedExpression(e){while(isAssignmentExpression(e,true)){e=e.right}return e}e.getRightMostAssignedExpression=getRightMostAssignedExpression;function isExportsIdentifier(t){return e.isIdentifier(t)&&t.escapedText==="exports"}e.isExportsIdentifier=isExportsIdentifier;function isModuleIdentifier(t){return e.isIdentifier(t)&&t.escapedText==="module"}e.isModuleIdentifier=isModuleIdentifier;function isModuleExportsAccessExpression(t){return(e.isPropertyAccessExpression(t)||isLiteralLikeElementAccess(t))&&isModuleIdentifier(t.expression)&&getElementOrPropertyAccessName(t)==="exports"}e.isModuleExportsAccessExpression=isModuleExportsAccessExpression;function getAssignmentDeclarationKind(e){var t=getAssignmentDeclarationKindWorker(e);return t===5||isInJSFile(e)?t:0}e.getAssignmentDeclarationKind=getAssignmentDeclarationKind;function isBindableObjectDefinePropertyCall(t){return e.length(t.arguments)===3&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&e.idText(t.expression.expression)==="Object"&&e.idText(t.expression.name)==="defineProperty"&&isStringOrNumericLiteralLike(t.arguments[1])&&isBindableStaticNameExpression(t.arguments[0],true)}e.isBindableObjectDefinePropertyCall=isBindableObjectDefinePropertyCall;function isLiteralLikeAccess(t){return e.isPropertyAccessExpression(t)||isLiteralLikeElementAccess(t)}e.isLiteralLikeAccess=isLiteralLikeAccess;function isLiteralLikeElementAccess(t){return e.isElementAccessExpression(t)&&isStringOrNumericLiteralLike(t.argumentExpression)}e.isLiteralLikeElementAccess=isLiteralLikeElementAccess;function isBindableStaticAccessExpression(t,r){return e.isPropertyAccessExpression(t)&&(!r&&t.expression.kind===108||e.isIdentifier(t.name)&&isBindableStaticNameExpression(t.expression,true))||isBindableStaticElementAccessExpression(t,r)}e.isBindableStaticAccessExpression=isBindableStaticAccessExpression;function isBindableStaticElementAccessExpression(e,t){return isLiteralLikeElementAccess(e)&&(!t&&e.expression.kind===108||isEntityNameExpression(e.expression)||isBindableStaticAccessExpression(e.expression,true))}e.isBindableStaticElementAccessExpression=isBindableStaticElementAccessExpression;function isBindableStaticNameExpression(e,t){return isEntityNameExpression(e)||isBindableStaticAccessExpression(e,t)}e.isBindableStaticNameExpression=isBindableStaticNameExpression;function getNameOrArgument(t){if(e.isPropertyAccessExpression(t)){return t.name}return t.argumentExpression}e.getNameOrArgument=getNameOrArgument;function getAssignmentDeclarationKindWorker(t){if(e.isCallExpression(t)){if(!isBindableObjectDefinePropertyCall(t)){return 0}var r=t.arguments[0];if(isExportsIdentifier(r)||isModuleExportsAccessExpression(r)){return 8}if(isBindableStaticAccessExpression(r)&&getElementOrPropertyAccessName(r)==="prototype"){return 9}return 7}if(t.operatorToken.kind!==63||!isAccessExpression(t.left)||isVoidZero(getRightMostAssignedExpression(t))){return 0}if(isBindableStaticNameExpression(t.left.expression,true)&&getElementOrPropertyAccessName(t.left)==="prototype"&&e.isObjectLiteralExpression(getInitializerOfBinaryExpression(t))){return 6}return getAssignmentDeclarationPropertyAccessKind(t.left)}function isVoidZero(t){return e.isVoidExpression(t)&&e.isNumericLiteral(t.expression)&&t.expression.text==="0"}function getElementOrPropertyAccessArgumentExpressionOrName(t){if(e.isPropertyAccessExpression(t)){return t.name}var r=skipParentheses(t.argumentExpression);if(e.isNumericLiteral(r)||e.isStringLiteralLike(r)){return r}return t}e.getElementOrPropertyAccessArgumentExpressionOrName=getElementOrPropertyAccessArgumentExpressionOrName;function getElementOrPropertyAccessName(t){var r=getElementOrPropertyAccessArgumentExpressionOrName(t);if(r){if(e.isIdentifier(r)){return r.escapedText}if(e.isStringLiteralLike(r)||e.isNumericLiteral(r)){return e.escapeLeadingUnderscores(r.text)}}return undefined}e.getElementOrPropertyAccessName=getElementOrPropertyAccessName;function getAssignmentDeclarationPropertyAccessKind(t){if(t.expression.kind===108){return 4}else if(isModuleExportsAccessExpression(t)){return 2}else if(isBindableStaticNameExpression(t.expression,true)){if(isPrototypeAccess(t.expression)){return 3}var r=t;while(!e.isIdentifier(r.expression)){r=r.expression}var n=r.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&getElementOrPropertyAccessName(r)==="exports")&&isBindableStaticAccessExpression(t)){return 1}if(isBindableStaticNameExpression(t,true)||e.isElementAccessExpression(t)&&isDynamicName(t)){return 5}}return 0}e.getAssignmentDeclarationPropertyAccessKind=getAssignmentDeclarationPropertyAccessKind;function getInitializerOfBinaryExpression(t){while(e.isBinaryExpression(t.right)){t=t.right}return t.right}e.getInitializerOfBinaryExpression=getInitializerOfBinaryExpression;function isPrototypePropertyAssignment(t){return e.isBinaryExpression(t)&&getAssignmentDeclarationKind(t)===3}e.isPrototypePropertyAssignment=isPrototypePropertyAssignment;function isSpecialPropertyDeclaration(t){return isInJSFile(t)&&t.parent&&t.parent.kind===236&&(!e.isElementAccessExpression(t)||isLiteralLikeElementAccess(t))&&!!e.getJSDocTypeTag(t.parent)}e.isSpecialPropertyDeclaration=isSpecialPropertyDeclaration;function setValueDeclaration(e,t){var r=e.valueDeclaration;if(!r||!(t.flags&8388608&&!(r.flags&8388608))&&(isAssignmentDeclaration(r)&&!isAssignmentDeclaration(t))||r.kind!==t.kind&&isEffectiveModuleDeclaration(r)){e.valueDeclaration=t}}e.setValueDeclaration=setValueDeclaration;function isFunctionSymbol(t){if(!t||!t.valueDeclaration){return false}var r=t.valueDeclaration;return r.kind===254||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)}e.isFunctionSymbol=isFunctionSymbol;function tryGetModuleSpecifierFromDeclaration(t){var r,n,i;switch(t.kind){case 252:return t.initializer.arguments[0].text;case 264:return(r=e.tryCast(t.moduleSpecifier,e.isStringLiteralLike))===null||r===void 0?void 0:r.text;case 263:return(i=e.tryCast((n=e.tryCast(t.moduleReference,e.isExternalModuleReference))===null||n===void 0?void 0:n.expression,e.isStringLiteralLike))===null||i===void 0?void 0:i.text;default:e.Debug.assertNever(t)}}e.tryGetModuleSpecifierFromDeclaration=tryGetModuleSpecifierFromDeclaration;function importFromModuleSpecifier(t){return tryGetImportFromModuleSpecifier(t)||e.Debug.failBadSyntaxKind(t.parent)}e.importFromModuleSpecifier=importFromModuleSpecifier;function tryGetImportFromModuleSpecifier(t){switch(t.parent.kind){case 264:case 270:return t.parent;case 275:return t.parent.parent;case 206:return isImportCall(t.parent)||isRequireCall(t.parent,false)?t.parent:undefined;case 194:e.Debug.assert(e.isStringLiteral(t));return e.tryCast(t.parent.parent,e.isImportTypeNode);default:return undefined}}e.tryGetImportFromModuleSpecifier=tryGetImportFromModuleSpecifier;function getExternalModuleName(t){switch(t.kind){case 264:case 270:return t.moduleSpecifier;case 263:return t.moduleReference.kind===275?t.moduleReference.expression:undefined;case 198:return isLiteralImportTypeNode(t)?t.argument.literal:undefined;case 206:return t.arguments[0];case 259:return t.name.kind===10?t.name:undefined;default:return e.Debug.assertNever(t)}}e.getExternalModuleName=getExternalModuleName;function getNamespaceDeclarationNode(t){switch(t.kind){case 264:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 263:return t;case 270:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}}e.getNamespaceDeclarationNode=getNamespaceDeclarationNode;function isDefaultImport(e){return e.kind===264&&!!e.importClause&&!!e.importClause.name}e.isDefaultImport=isDefaultImport;function forEachImportClauseDeclaration(t,r){if(t.name){var n=r(t);if(n)return n}if(t.namedBindings){var n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r);if(n)return n}}e.forEachImportClauseDeclaration=forEachImportClauseDeclaration;function hasQuestionToken(e){if(e){switch(e.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return e.questionToken!==undefined}}return false}e.hasQuestionToken=hasQuestionToken;function isJSDocConstructSignature(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):undefined;var n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&n.escapedText==="new"}e.isJSDocConstructSignature=isJSDocConstructSignature;function isJSDocTypeAlias(e){return e.kind===340||e.kind===333||e.kind===334}e.isJSDocTypeAlias=isJSDocTypeAlias;function isTypeAlias(t){return isJSDocTypeAlias(t)||e.isTypeAliasDeclaration(t)}e.isTypeAlias=isTypeAlias;function getSourceOfAssignment(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&t.expression.operatorToken.kind===63?getRightMostAssignedExpression(t.expression):undefined}function getSourceOfDefaultedAssignment(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&getAssignmentDeclarationKind(t.expression)!==0&&e.isBinaryExpression(t.expression.right)&&(t.expression.right.operatorToken.kind===56||t.expression.right.operatorToken.kind===60)?t.expression.right.right:undefined}function getSingleInitializerOfVariableStatementOrPropertyDeclaration(e){switch(e.kind){case 235:var t=getSingleVariableOfVariableStatement(e);return t&&t.initializer;case 165:return e.initializer;case 291:return e.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=getSingleInitializerOfVariableStatementOrPropertyDeclaration;function getSingleVariableOfVariableStatement(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):undefined}e.getSingleVariableOfVariableStatement=getSingleVariableOfVariableStatement;function getNestedModuleDeclaration(t){return e.isModuleDeclaration(t)&&t.body&&t.body.kind===259?t.body:undefined}function getJSDocCommentsAndTags(t,r){var n;if(isVariableLike(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)){n=e.append(n,e.last(t.initializer.jsDoc))}var i=t;while(i&&i.parent){if(e.hasJSDocNodes(i)){n=e.append(n,e.last(i.jsDoc))}if(i.kind===162){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(i.kind===161){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=getNextJSDocCommentLocation(i)}return n||e.emptyArray}e.getJSDocCommentsAndTags=getJSDocCommentsAndTags;function getNextJSDocCommentLocation(t){var r=t.parent;if(r.kind===291||r.kind===269||r.kind===165||r.kind===236&&t.kind===204||r.kind===245||getNestedModuleDeclaration(r)||e.isBinaryExpression(t)&&t.operatorToken.kind===63){return r}else if(r.parent&&(getSingleVariableOfVariableStatement(r.parent)===t||e.isBinaryExpression(r)&&r.operatorToken.kind===63)){return r.parent}else if(r.parent&&r.parent.parent&&(getSingleVariableOfVariableStatement(r.parent.parent)||getSingleInitializerOfVariableStatementOrPropertyDeclaration(r.parent.parent)===t||getSourceOfDefaultedAssignment(r.parent.parent))){return r.parent.parent}}e.getNextJSDocCommentLocation=getNextJSDocCommentLocation;function getParameterSymbolFromJSDoc(t){if(t.symbol){return t.symbol}if(!e.isIdentifier(t.name)){return undefined}var r=t.name.escapedText;var n=getHostSignatureFromJSDoc(t);if(!n){return undefined}var i=e.find(n.parameters,function(e){return e.name.kind===79&&e.name.escapedText===r});return i&&i.symbol}e.getParameterSymbolFromJSDoc=getParameterSymbolFromJSDoc;function getHostSignatureFromJSDoc(t){var r=getEffectiveJSDocHost(t);return r&&e.isFunctionLike(r)?r:undefined}e.getHostSignatureFromJSDoc=getHostSignatureFromJSDoc;function getEffectiveJSDocHost(e){var t=getJSDocHost(e);if(t){return getSourceOfDefaultedAssignment(t)||getSourceOfAssignment(t)||getSingleInitializerOfVariableStatementOrPropertyDeclaration(t)||getSingleVariableOfVariableStatement(t)||getNestedModuleDeclaration(t)||t}}e.getEffectiveJSDocHost=getEffectiveJSDocHost;function getJSDocHost(t){var r=getJSDocRoot(t);if(!r){return undefined}var n=r.parent;if(n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)){return n}}e.getJSDocHost=getJSDocHost;function getJSDocRoot(t){return e.findAncestor(t.parent,e.isJSDoc)}e.getJSDocRoot=getJSDocRoot;function getTypeParameterFromJsDoc(t){var r=t.name.escapedText;var n=t.parent.parent.parent.typeParameters;return n&&e.find(n,function(e){return e.name.escapedText===r})}e.getTypeParameterFromJsDoc=getTypeParameterFromJsDoc;function hasRestParameter(t){var r=e.lastOrUndefined(t.parameters);return!!r&&isRestParameter(r)}e.hasRestParameter=hasRestParameter;function isRestParameter(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return t.dotDotDotToken!==undefined||!!r&&r.kind===313}e.isRestParameter=isRestParameter;function hasTypeArguments(e){return!!e.typeArguments}e.hasTypeArguments=hasTypeArguments;var o;(function(e){e[e["None"]=0]="None";e[e["Definite"]=1]="Definite";e[e["Compound"]=2]="Compound"})(o=e.AssignmentKind||(e.AssignmentKind={}));function getAssignmentTargetKind(e){var t=e.parent;while(true){switch(t.kind){case 219:var r=t.operatorToken.kind;return isAssignmentOperator(r)&&t.left===e?r===63||isLogicalOrCoalescingAssignmentOperator(r)?1:2:0;case 217:case 218:var n=t.operator;return n===45||n===46?2:0;case 241:case 242:return t.initializer===e?1:0;case 210:case 202:case 223:case 228:e=t;break;case 293:e=t.parent;break;case 292:if(t.name!==e){return 0}e=t.parent;break;case 291:if(t.name===e){return 0}e=t.parent;break;default:return 0}t=e.parent}}e.getAssignmentTargetKind=getAssignmentTargetKind;function isAssignmentTarget(e){return getAssignmentTargetKind(e)!==0}e.isAssignmentTarget=isAssignmentTarget;function isNodeWithPossibleHoistedDeclaration(e){switch(e.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return true}return false}e.isNodeWithPossibleHoistedDeclaration=isNodeWithPossibleHoistedDeclaration;function isValueSignatureDeclaration(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)}e.isValueSignatureDeclaration=isValueSignatureDeclaration;function walkUp(e,t){while(e&&e.kind===t){e=e.parent}return e}function walkUpParenthesizedTypes(e){return walkUp(e,189)}e.walkUpParenthesizedTypes=walkUpParenthesizedTypes;function walkUpParenthesizedExpressions(e){return walkUp(e,210)}e.walkUpParenthesizedExpressions=walkUpParenthesizedExpressions;function walkUpParenthesizedTypesAndGetParentAndChild(e){var t;while(e&&e.kind===189){t=e;e=e.parent}return[t,e]}e.walkUpParenthesizedTypesAndGetParentAndChild=walkUpParenthesizedTypesAndGetParentAndChild;function skipParentheses(t){return e.skipOuterExpressions(t,1)}e.skipParentheses=skipParentheses;function isDeleteTarget(e){if(e.kind!==204&&e.kind!==205){return false}e=walkUpParenthesizedExpressions(e.parent);return e&&e.kind===213}e.isDeleteTarget=isDeleteTarget;function isNodeDescendantOf(e,t){while(e){if(e===t)return true;e=e.parent}return false}e.isNodeDescendantOf=isNodeDescendantOf;function isDeclarationName(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t}e.isDeclarationName=isDeclarationName;function getDeclarationFromName(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r)){return r.name===t?r:undefined}else if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:undefined}else{var i=r.parent;return e.isBinaryExpression(i)&&getAssignmentDeclarationKind(i)!==0&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:undefined}case 80:return e.isDeclaration(r)&&r.name===t?r:undefined;default:return undefined}}e.getDeclarationFromName=getDeclarationFromName;function isLiteralComputedPropertyDeclarationName(t){return isStringOrNumericLiteralLike(t)&&t.parent.kind===160&&e.isDeclaration(t.parent.parent)}e.isLiteralComputedPropertyDeclarationName=isLiteralComputedPropertyDeclarationName;function isIdentifierName(e){var t=e.parent;switch(t.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return t.name===e;case 159:return t.right===e;case 201:case 268:return t.propertyName===e;case 273:case 283:return true}return false}e.isIdentifierName=isIdentifierName;function isAliasSymbolDeclaration(t){return t.kind===263||t.kind===262||t.kind===265&&!!t.name||t.kind===266||t.kind===272||t.kind===268||t.kind===273||t.kind===269&&exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&getAssignmentDeclarationKind(t)===2&&exportAssignmentIsAlias(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===63&&isAliasableExpression(t.parent.right)||t.kind===292||t.kind===291&&isAliasableExpression(t.initializer)}e.isAliasSymbolDeclaration=isAliasSymbolDeclaration;function getAliasDeclarationFromName(e){switch(e.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return e.parent;case 159:do{e=e.parent}while(e.parent.kind===159);return getAliasDeclarationFromName(e)}}e.getAliasDeclarationFromName=getAliasDeclarationFromName;function isAliasableExpression(t){return isEntityNameExpression(t)||e.isClassExpression(t)}e.isAliasableExpression=isAliasableExpression;function exportAssignmentIsAlias(e){var t=getExportAssignmentExpression(e);return isAliasableExpression(t)}e.exportAssignmentIsAlias=exportAssignmentIsAlias;function getExportAssignmentExpression(t){return e.isExportAssignment(t)?t.expression:t.right}e.getExportAssignmentExpression=getExportAssignmentExpression;function getPropertyAssignmentAliasLikeExpression(e){return e.kind===292?e.name:e.kind===291?e.initializer:e.parent.right}e.getPropertyAssignmentAliasLikeExpression=getPropertyAssignmentAliasLikeExpression;function getEffectiveBaseTypeNode(t){var r=getClassExtendsHeritageElement(t);if(r&&isInJSFile(t)){var n=e.getJSDocAugmentsTag(t);if(n){return n.class}}return r}e.getEffectiveBaseTypeNode=getEffectiveBaseTypeNode;function getClassExtendsHeritageElement(e){var t=getHeritageClause(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:undefined}e.getClassExtendsHeritageElement=getClassExtendsHeritageElement;function getEffectiveImplementsTypeNodes(t){if(isInJSFile(t)){return e.getJSDocImplementsTags(t).map(function(e){return e.class})}else{var r=getHeritageClause(t.heritageClauses,117);return r===null||r===void 0?void 0:r.types}}e.getEffectiveImplementsTypeNodes=getEffectiveImplementsTypeNodes;function getAllSuperTypeNodes(t){return e.isInterfaceDeclaration(t)?getInterfaceBaseTypeNodes(t)||e.emptyArray:e.isClassLike(t)?e.concatenate(e.singleElementArray(getEffectiveBaseTypeNode(t)),getEffectiveImplementsTypeNodes(t))||e.emptyArray:e.emptyArray}e.getAllSuperTypeNodes=getAllSuperTypeNodes;function getInterfaceBaseTypeNodes(e){var t=getHeritageClause(e.heritageClauses,94);return t?t.types:undefined}e.getInterfaceBaseTypeNodes=getInterfaceBaseTypeNodes;function getHeritageClause(e,t){if(e){for(var r=0,n=e;r=0){return i[a]}return undefined}function add(a){var s;if(a.file){s=n.get(a.file.fileName);if(!s){s=[];n.set(a.file.fileName,s);e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)}}else{if(i){i=false;t=t.slice()}s=t}e.insertSorted(s,a,compareDiagnostics)}function getGlobalDiagnostics(){i=true;return t}function getDiagnostics(i){if(i){return n.get(i)||[]}var a=e.flatMapToMutable(r,function(e){return n.get(e)});if(!t.length){return a}a.unshift.apply(a,t);return a}}e.createDiagnosticCollection=createDiagnosticCollection;var p=/\$\{/g;function escapeTemplateSubstitution(e){return e.replace(p,"\\${")}function hasInvalidEscape(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,function(e){return!!e.literal.templateFlags}))}e.hasInvalidEscape=hasInvalidEscape;var d=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g;var f=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g;var m=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g;var g=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function encodeUtf16EscapeSequence(e){var t=e.toString(16).toUpperCase();var r=("0000"+t).slice(-4);return"\\u"+r}function getReplacement(e,t,r){if(e.charCodeAt(0)===0){var n=r.charCodeAt(t+e.length);if(n>=48&&n<=57){return"\\x00"}return"\\0"}return g.get(e)||encodeUtf16EscapeSequence(e.charCodeAt(0))}function escapeString(e,t){var r=t===96?m:t===39?f:d;return e.replace(r,getReplacement)}e.escapeString=escapeString;var _=/[^\u0000-\u007F]/g;function escapeNonAsciiString(e,t){e=escapeString(e,t);return _.test(e)?e.replace(_,function(e){return encodeUtf16EscapeSequence(e.charCodeAt(0))}):e}e.escapeNonAsciiString=escapeNonAsciiString;var h=/[\"\u0000-\u001f\u2028\u2029\u0085]/g;var y=/[\'\u0000-\u001f\u2028\u2029\u0085]/g;var v=new e.Map(e.getEntries({'"':""","'":"'"}));function encodeJsxCharacterEntity(e){var t=e.toString(16).toUpperCase();return"&#x"+t+";"}function getJsxAttributeStringReplacement(e){if(e.charCodeAt(0)===0){return"�"}return v.get(e)||encodeJsxCharacterEntity(e.charCodeAt(0))}function escapeJsxAttributeString(e,t){var r=t===39?y:h;return e.replace(r,getJsxAttributeStringReplacement)}e.escapeJsxAttributeString=escapeJsxAttributeString;function stripQuotes(e){var t=e.length;if(t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&isQuoteOrBacktick(e.charCodeAt(0))){return e.substring(1,t-1)}return e}e.stripQuotes=stripQuotes;function isQuoteOrBacktick(e){return e===39||e===34||e===96}function isIntrinsicJsxName(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")}e.isIntrinsicJsxName=isIntrinsicJsxName;var T=[""," "];function getIndentString(e){var t=T[1];for(var r=T.length;r<=e;r++){T.push(T[r-1]+t)}return T[e]}e.getIndentString=getIndentString;function getIndentSize(){return T[1].length}e.getIndentSize=getIndentSize;function createTextWriter(t){var r;var n;var i;var a;var s;var o=false;function updateLineCountAndPosFor(t){var n=e.computeLineStarts(t);if(n.length>1){a=a+n.length-1;s=r.length-t.length+e.last(n);i=s-r.length===0}else{i=false}}function writeText(e){if(e&&e.length){if(i){e=getIndentString(n)+e;i=false}r+=e;updateLineCountAndPosFor(e)}}function write(e){if(e)o=false;writeText(e)}function writeComment(e){if(e)o=true;writeText(e)}function reset(){r="";n=0;i=true;a=0;s=0;o=false}function rawWrite(e){if(e!==undefined){r+=e;updateLineCountAndPosFor(e);o=false}}function writeLiteral(e){if(e&&e.length){write(e)}}function writeLine(e){if(!i||e){r+=t;a++;s=r.length;i=true;o=false}}function getTextPosWithWriteLine(){return i?r.length:r.length+t.length}reset();return{write:write,rawWrite:rawWrite,writeLiteral:writeLiteral,writeLine:writeLine,increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*getIndentSize():r.length-s},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return o},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:reset,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return false},writeKeyword:write,writeOperator:write,writeParameter:write,writeProperty:write,writePunctuation:write,writeSpace:write,writeStringLiteral:write,writeSymbol:function(e,t){return write(e)},writeTrailingSemicolon:write,writeComment:writeComment,getTextPosWithWriteLine:getTextPosWithWriteLine}}e.createTextWriter=createTextWriter;function getTrailingSemicolonDeferringWriter(e){var t=false;function commitPendingTrailingSemicolon(){if(t){e.writeTrailingSemicolon(";");t=false}}return i(i({},e),{writeTrailingSemicolon:function(){t=true},writeLiteral:function(t){commitPendingTrailingSemicolon();e.writeLiteral(t)},writeStringLiteral:function(t){commitPendingTrailingSemicolon();e.writeStringLiteral(t)},writeSymbol:function(t,r){commitPendingTrailingSemicolon();e.writeSymbol(t,r)},writePunctuation:function(t){commitPendingTrailingSemicolon();e.writePunctuation(t)},writeKeyword:function(t){commitPendingTrailingSemicolon();e.writeKeyword(t)},writeOperator:function(t){commitPendingTrailingSemicolon();e.writeOperator(t)},writeParameter:function(t){commitPendingTrailingSemicolon();e.writeParameter(t)},writeSpace:function(t){commitPendingTrailingSemicolon();e.writeSpace(t)},writeProperty:function(t){commitPendingTrailingSemicolon();e.writeProperty(t)},writeComment:function(t){commitPendingTrailingSemicolon();e.writeComment(t)},writeLine:function(){commitPendingTrailingSemicolon();e.writeLine()},increaseIndent:function(){commitPendingTrailingSemicolon();e.increaseIndent()},decreaseIndent:function(){commitPendingTrailingSemicolon();e.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=getTrailingSemicolonDeferringWriter;function hostUsesCaseSensitiveFileNames(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():false}e.hostUsesCaseSensitiveFileNames=hostUsesCaseSensitiveFileNames;function hostGetCanonicalFileName(t){return e.createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(t))}e.hostGetCanonicalFileName=hostGetCanonicalFileName;function getResolvedExternalModuleName(e,t,r){return t.moduleName||getExternalModuleNameFromPath(e,t.fileName,r&&r.fileName)}e.getResolvedExternalModuleName=getResolvedExternalModuleName;function getCanonicalAbsolutePath(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function getExternalModuleNameFromDeclaration(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile){return undefined}var a=getExternalModuleName(n);if(a&&e.isStringLiteralLike(a)&&!e.pathIsRelative(a.text)&&getCanonicalAbsolutePath(t,i.path).indexOf(getCanonicalAbsolutePath(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory())))===-1){return undefined}return getResolvedExternalModuleName(t,i)}e.getExternalModuleNameFromDeclaration=getExternalModuleNameFromDeclaration;function getExternalModuleNameFromPath(t,r,n){var i=function(e){return t.getCanonicalFileName(e)};var a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i);var s=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory());var o=e.getRelativePathToDirectoryOrUrl(a,s,a,i,false);var c=removeFileExtension(o);return n?e.ensurePathIsNonModuleName(c):c}e.getExternalModuleNameFromPath=getExternalModuleNameFromPath;function getOwnEmitOutputFilePath(e,t,r){var n=t.getCompilerOptions();var i;if(n.outDir){i=removeFileExtension(getSourceFilePathInNewDir(e,t,n.outDir))}else{i=removeFileExtension(e)}return i+r}e.getOwnEmitOutputFilePath=getOwnEmitOutputFilePath;function getDeclarationEmitOutputFilePath(e,t){return getDeclarationEmitOutputFilePathWorker(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}e.getDeclarationEmitOutputFilePath=getDeclarationEmitOutputFilePath;function getDeclarationEmitOutputFilePathWorker(e,t,r,n,i){var a=t.declarationDir||t.outDir;var s=a?getSourceFilePathInNewDirWorker(e,a,r,n,i):e;return removeFileExtension(s)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=getDeclarationEmitOutputFilePathWorker;function outFile(e){return e.outFile||e.out}e.outFile=outFile;function getPathsBasePath(t,r){var n,i;if(!t.paths)return undefined;return(n=t.baseUrl)!==null&&n!==void 0?n:e.Debug.checkDefined(t.pathsBasePath||((i=r.getCurrentDirectory)===null||i===void 0?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=getPathsBasePath;function getSourceFilesToEmit(t,r,n){var i=t.getCompilerOptions();if(outFile(i)){var a=getEmitModuleKind(i);var s=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(r){return(s||!e.isExternalModule(r))&&sourceFileMayBeEmitted(r,t,n)})}else{var o=r===undefined?t.getSourceFiles():[r];return e.filter(o,function(e){return sourceFileMayBeEmitted(e,t,n)})}}e.getSourceFilesToEmit=getSourceFilesToEmit;function sourceFileMayBeEmitted(e,t,r){var n=t.getCompilerOptions();return!(n.noEmitForJsFiles&&isSourceFileJS(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(isJsonSourceFile(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}e.sourceFileMayBeEmitted=sourceFileMayBeEmitted;function getSourceFilePathInNewDir(e,t,r){return getSourceFilePathInNewDirWorker(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}e.getSourceFilePathInNewDir=getSourceFilePathInNewDir;function getSourceFilePathInNewDirWorker(t,r,n,i,a){var s=e.getNormalizedAbsolutePath(t,n);var o=a(s).indexOf(a(i))===0;s=o?s.substring(i.length):s;return e.combinePaths(r,s)}e.getSourceFilePathInNewDirWorker=getSourceFilePathInNewDirWorker;function writeFile(t,r,n,i,a,s){t.writeFile(n,i,a,function(t){r.add(createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},s)}e.writeFile=writeFile;function ensureDirectoriesExist(t,r,n){if(t.length>e.getRootLength(t)&&!n(t)){var i=e.getDirectoryPath(t);ensureDirectoriesExist(i,r,n);r(t)}}function writeFileEnsuringDirectories(t,r,n,i,a,s){try{i(t,r,n)}catch(o){ensureDirectoriesExist(e.getDirectoryPath(e.normalizePath(t)),a,s);i(t,r,n)}}e.writeFileEnsuringDirectories=writeFileEnsuringDirectories;function getLineOfLocalPosition(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)}e.getLineOfLocalPosition=getLineOfLocalPosition;function getLineOfLocalPositionFromLineMap(t,r){return e.computeLineOfPosition(t,r)}e.getLineOfLocalPositionFromLineMap=getLineOfLocalPositionFromLineMap;function getFirstConstructorWithBody(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&nodeIsPresent(t.body)})}e.getFirstConstructorWithBody=getFirstConstructorWithBody;function getSetAccessorValueParameter(e){if(e&&e.parameters.length>0){var t=e.parameters.length===2&¶meterIsThisKeyword(e.parameters[0]);return e.parameters[t?1:0]}}e.getSetAccessorValueParameter=getSetAccessorValueParameter;function getSetAccessorTypeAnnotationNode(e){var t=getSetAccessorValueParameter(e);return t&&t.type}e.getSetAccessorTypeAnnotationNode=getSetAccessorTypeAnnotationNode;function getThisParameter(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(parameterIsThisKeyword(r)){return r}}}e.getThisParameter=getThisParameter;function parameterIsThisKeyword(e){return isThisIdentifier(e.name)}e.parameterIsThisKeyword=parameterIsThisKeyword;function isThisIdentifier(e){return!!e&&e.kind===79&&identifierIsThisKeyword(e)}e.isThisIdentifier=isThisIdentifier;function isThisInTypeQuery(t){if(!isThisIdentifier(t)){return false}while(e.isQualifiedName(t.parent)&&t.parent.left===t){t=t.parent}return t.parent.kind===179}e.isThisInTypeQuery=isThisInTypeQuery;function identifierIsThisKeyword(e){return e.originalKeywordKind===108}e.identifierIsThisKeyword=identifierIsThisKeyword;function getAllAccessorDeclarations(t,r){var n;var i;var a;var s;if(hasDynamicName(r)){n=r;if(r.kind===170){a=r}else if(r.kind===171){s=r}else{e.Debug.fail("Accessor has wrong kind")}}else{e.forEach(t,function(t){if(e.isAccessor(t)&&isStatic(t)===isStatic(r)){var o=getPropertyNameForPropertyNameNode(t.name);var c=getPropertyNameForPropertyNameNode(r.name);if(o===c){if(!n){n=t}else if(!i){i=t}if(t.kind===170&&!a){a=t}if(t.kind===171&&!s){s=t}}}})}return{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:s}}e.getAllAccessorDeclarations=getAllAccessorDeclarations;function getEffectiveTypeAnnotationNode(t){if(!isInJSFile(t)&&e.isFunctionDeclaration(t))return undefined;var r=t.type;if(r||!isInJSFile(t))return r;return e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}e.getEffectiveTypeAnnotationNode=getEffectiveTypeAnnotationNode;function getTypeAnnotationNode(e){return e.type}e.getTypeAnnotationNode=getTypeAnnotationNode;function getEffectiveReturnTypeNode(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(isInJSFile(t)?e.getJSDocReturnType(t):undefined)}e.getEffectiveReturnTypeNode=getEffectiveReturnTypeNode;function getJSDocTypeParameterDeclarations(t){return e.flatMap(e.getJSDocTags(t),function(e){return isNonTypeAliasTemplate(e)?e.typeParameters:undefined})}e.getJSDocTypeParameterDeclarations=getJSDocTypeParameterDeclarations;function isNonTypeAliasTemplate(t){return e.isJSDocTemplateTag(t)&&!(t.parent.kind===315&&t.parent.tags.some(isJSDocTypeAlias))}function getEffectiveSetAccessorTypeAnnotationNode(e){var t=getSetAccessorValueParameter(e);return t&&getEffectiveTypeAnnotationNode(t)}e.getEffectiveSetAccessorTypeAnnotationNode=getEffectiveSetAccessorTypeAnnotationNode;function emitNewLineBeforeLeadingComments(e,t,r,n){emitNewLineBeforeLeadingCommentsOfPosition(e,t,r.pos,n)}e.emitNewLineBeforeLeadingComments=emitNewLineBeforeLeadingComments;function emitNewLineBeforeLeadingCommentsOfPosition(e,t,r,n){if(n&&n.length&&r!==n[0].pos&&getLineOfLocalPositionFromLineMap(e,r)!==getLineOfLocalPositionFromLineMap(e,n[0].pos)){t.writeLine()}}e.emitNewLineBeforeLeadingCommentsOfPosition=emitNewLineBeforeLeadingCommentsOfPosition;function emitNewLineBeforeLeadingCommentOfPosition(e,t,r,n){if(r!==n&&getLineOfLocalPositionFromLineMap(e,r)!==getLineOfLocalPositionFromLineMap(e,n)){t.writeLine()}}e.emitNewLineBeforeLeadingCommentOfPosition=emitNewLineBeforeLeadingCommentOfPosition;function emitComments(e,t,r,n,i,a,s,o){if(n&&n.length>0){if(i){r.writeSpace(" ")}var c=false;for(var u=0,l=n;u=g+2){break}}l.push(m);p=m}if(l.length){var g=getLineOfLocalPositionFromLineMap(r,e.last(l).end);var h=getLineOfLocalPositionFromLineMap(r,e.skipTrivia(t,a.pos));if(h>=g+2){emitNewLineBeforeLeadingComments(r,n,a,c);emitComments(t,r,n,l,false,true,s,i);u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}}}}return u;function isPinnedCommentLocal(e){return isPinnedComment(t,e.pos)}}e.emitDetachedComments=emitDetachedComments;function writeCommentRange(t,r,n,i,a,s){if(t.charCodeAt(i+1)===42){var o=e.computeLineAndCharacterOfPosition(r,i);var c=r.length;var u=void 0;for(var l=i,p=o.line;l0){var g=m%getIndentSize();var _=getIndentString((m-g)/getIndentSize());n.rawWrite(_);while(g){n.rawWrite(" ");g--}}else{n.rawWrite("")}}writeTrimmedCurrentLine(t,a,n,s,l,d);l=d}}else{n.writeComment(t.substring(i,a))}}e.writeCommentRange=writeCommentRange;function writeTrimmedCurrentLine(t,r,n,i,a,s){var o=Math.min(r,s-1);var c=e.trimString(t.substring(a,o));if(c){n.writeComment(c);if(o!==r){n.writeLine()}}else{n.rawWrite(i)}}function calculateIndent(t,r,n){var i=0;for(;r=0&&e.kind<=158){return 0}if(!(e.modifierFlagsCache&536870912)){e.modifierFlagsCache=getSyntacticModifierFlagsNoCache(e)|536870912}if(t&&!(e.modifierFlagsCache&4096)&&(r||isInJSFile(e))&&e.parent){e.modifierFlagsCache|=getJSDocModifierFlagsNoCache(e)|4096}return e.modifierFlagsCache&~(536870912|4096)}function getEffectiveModifierFlags(e){return getModifierFlagsWorker(e,true)}e.getEffectiveModifierFlags=getEffectiveModifierFlags;function getEffectiveModifierFlagsAlwaysIncludeJSDoc(e){return getModifierFlagsWorker(e,true,true)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=getEffectiveModifierFlagsAlwaysIncludeJSDoc;function getSyntacticModifierFlags(e){return getModifierFlagsWorker(e,false)}e.getSyntacticModifierFlags=getSyntacticModifierFlags;function getJSDocModifierFlagsNoCache(t){var r=0;if(!!t.parent&&!e.isParameter(t)){if(isInJSFile(t)){if(e.getJSDocPublicTagNoCache(t))r|=4;if(e.getJSDocPrivateTagNoCache(t))r|=8;if(e.getJSDocProtectedTagNoCache(t))r|=16;if(e.getJSDocReadonlyTagNoCache(t))r|=64;if(e.getJSDocOverrideTagNoCache(t))r|=16384}if(e.getJSDocDeprecatedTagNoCache(t))r|=8192}return r}function getEffectiveModifierFlagsNoCache(e){return getSyntacticModifierFlagsNoCache(e)|getJSDocModifierFlagsNoCache(e)}e.getEffectiveModifierFlagsNoCache=getEffectiveModifierFlagsNoCache;function getSyntacticModifierFlagsNoCache(e){var t=modifiersToFlags(e.modifiers);if(e.flags&4||e.kind===79&&e.isInJSDocNamespace){t|=1}return t}e.getSyntacticModifierFlagsNoCache=getSyntacticModifierFlagsNoCache;function modifiersToFlags(e){var t=0;if(e){for(var r=0,n=e;r=63&&e<=78}e.isAssignmentOperator=isAssignmentOperator;function tryGetClassExtendingExpressionWithTypeArguments(e){var t=tryGetClassImplementingOrExtendingExpressionWithTypeArguments(e);return t&&!t.isImplements?t.class:undefined}e.tryGetClassExtendingExpressionWithTypeArguments=tryGetClassExtendingExpressionWithTypeArguments;function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:t.parent.token===117}:undefined}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=tryGetClassImplementingOrExtendingExpressionWithTypeArguments;function isAssignmentExpression(t,r){return e.isBinaryExpression(t)&&(r?t.operatorToken.kind===63:isAssignmentOperator(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}e.isAssignmentExpression=isAssignmentExpression;function isLeftHandSideOfAssignment(e){return isAssignmentExpression(e.parent)&&e.parent.left===e}e.isLeftHandSideOfAssignment=isLeftHandSideOfAssignment;function isDestructuringAssignment(e){if(isAssignmentExpression(e,true)){var t=e.left.kind;return t===203||t===202}return false}e.isDestructuringAssignment=isDestructuringAssignment;function isExpressionWithTypeArgumentsInClassExtendsClause(e){return tryGetClassExtendingExpressionWithTypeArguments(e)!==undefined}e.isExpressionWithTypeArgumentsInClassExtendsClause=isExpressionWithTypeArgumentsInClassExtendsClause;function isEntityNameExpression(e){return e.kind===79||isPropertyAccessEntityNameExpression(e)}e.isEntityNameExpression=isEntityNameExpression;function getFirstIdentifier(e){switch(e.kind){case 79:return e;case 159:do{e=e.left}while(e.kind!==79);return e;case 204:do{e=e.expression}while(e.kind!==79);return e}}e.getFirstIdentifier=getFirstIdentifier;function isDottedName(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===229||e.kind===204&&isDottedName(e.expression)||e.kind===210&&isDottedName(e.expression)}e.isDottedName=isDottedName;function isPropertyAccessEntityNameExpression(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&isEntityNameExpression(t.expression)}e.isPropertyAccessEntityNameExpression=isPropertyAccessEntityNameExpression;function tryGetPropertyAccessOrIdentifierToString(t){if(e.isPropertyAccessExpression(t)){var r=tryGetPropertyAccessOrIdentifierToString(t.expression);if(r!==undefined){return r+"."+entityNameToString(t.name)}}else if(e.isElementAccessExpression(t)){var r=tryGetPropertyAccessOrIdentifierToString(t.expression);if(r!==undefined&&e.isPropertyName(t.argumentExpression)){return r+"."+getPropertyNameForPropertyNameNode(t.argumentExpression)}}else if(e.isIdentifier(t)){return e.unescapeLeadingUnderscores(t.escapedText)}return undefined}e.tryGetPropertyAccessOrIdentifierToString=tryGetPropertyAccessOrIdentifierToString;function isPrototypeAccess(e){return isBindableStaticAccessExpression(e)&&getElementOrPropertyAccessName(e)==="prototype"}e.isPrototypeAccess=isPrototypeAccess;function isRightSideOfQualifiedNameOrPropertyAccess(e){return e.parent.kind===159&&e.parent.right===e||e.parent.kind===204&&e.parent.name===e}e.isRightSideOfQualifiedNameOrPropertyAccess=isRightSideOfQualifiedNameOrPropertyAccess;function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName;function isEmptyObjectLiteral(e){return e.kind===203&&e.properties.length===0}e.isEmptyObjectLiteral=isEmptyObjectLiteral;function isEmptyArrayLiteral(e){return e.kind===202&&e.elements.length===0}e.isEmptyArrayLiteral=isEmptyArrayLiteral;function getLocalSymbolForExportDefault(e){if(!isExportDefaultSymbol(e)||!e.declarations)return undefined;for(var t=0,r=e.declarations;t0&&hasSyntacticModifier(t.declarations[0],512)}function tryExtractTSExtension(t){return e.find(e.supportedTSExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}e.tryExtractTSExtension=tryExtractTSExtension;function getExpandedCharCodes(t){var r=[];var n=t.length;for(var i=0;i>6|192);r.push(a&63|128)}else if(a<65536){r.push(a>>12|224);r.push(a>>6&63|128);r.push(a&63|128)}else if(a<131072){r.push(a>>18|240);r.push(a>>12&63|128);r.push(a>>6&63|128);r.push(a&63|128)}else{e.Debug.assert(false,"Unexpected code point")}}return r}var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function convertToBase64(e){var t="";var r=getExpandedCharCodes(e);var n=0;var i=r.length;var a,s,o,c;while(n>2;s=(r[n]&3)<<4|r[n+1]>>4;o=(r[n+1]&15)<<2|r[n+2]>>6;c=r[n+2]&63;if(n+1>=i){o=c=64}else if(n+2>=i){c=64}t+=S.charAt(a)+S.charAt(s)+S.charAt(o)+S.charAt(c);n+=3}return t}e.convertToBase64=convertToBase64;function getStringFromExpandedCharCodes(e){var t="";var r=0;var n=e.length;while(r>4&3;var l=(s&15)<<4|o>>2&15;var p=(o&3)<<6|c&63;if(l===0&&o!==0){n.push(u)}else if(p===0&&c!==0){n.push(u,l)}else{n.push(u,l,p)}i+=4}return getStringFromExpandedCharCodes(n)}e.base64decode=base64decode;function readJson(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);if(i.error){return{}}return i.config}catch(e){return{}}}e.readJson=readJson;function directoryProbablyExists(e,t){return!t.directoryExists||t.directoryExists(e)}e.directoryProbablyExists=directoryProbablyExists;var b="\r\n";var E="\n";function getNewLineCharacter(t,r){switch(t.newLine){case 0:return b;case 1:return E}return r?r():e.sys?e.sys.newLine:b}e.getNewLineCharacter=getNewLineCharacter;function createRange(t,r){if(r===void 0){r=t}e.Debug.assert(r>=t||r===-1);return{pos:t,end:r}}e.createRange=createRange;function moveRangeEnd(e,t){return createRange(e.pos,t)}e.moveRangeEnd=moveRangeEnd;function moveRangePos(e,t){return createRange(t,e.end)}e.moveRangePos=moveRangePos;function moveRangePastDecorators(e){return e.decorators&&e.decorators.length>0?moveRangePos(e,e.decorators.end):e}e.moveRangePastDecorators=moveRangePastDecorators;function moveRangePastModifiers(e){return e.modifiers&&e.modifiers.length>0?moveRangePos(e,e.modifiers.end):moveRangePastDecorators(e)}e.moveRangePastModifiers=moveRangePastModifiers;function isCollapsedRange(e){return e.pos===e.end}e.isCollapsedRange=isCollapsedRange;function createTokenRange(t,r){return createRange(t,t+e.tokenToString(r).length)}e.createTokenRange=createTokenRange;function rangeIsOnSingleLine(e,t){return rangeStartIsOnSameLineAsRangeEnd(e,e,t)}e.rangeIsOnSingleLine=rangeIsOnSingleLine;function rangeStartPositionsAreOnSameLine(e,t,r){return positionsAreOnSameLine(getStartPositionOfRange(e,r,false),getStartPositionOfRange(t,r,false),r)}e.rangeStartPositionsAreOnSameLine=rangeStartPositionsAreOnSameLine;function rangeEndPositionsAreOnSameLine(e,t,r){return positionsAreOnSameLine(e.end,t.end,r)}e.rangeEndPositionsAreOnSameLine=rangeEndPositionsAreOnSameLine;function rangeStartIsOnSameLineAsRangeEnd(e,t,r){return positionsAreOnSameLine(getStartPositionOfRange(e,r,false),t.end,r)}e.rangeStartIsOnSameLineAsRangeEnd=rangeStartIsOnSameLineAsRangeEnd;function rangeEndIsOnSameLineAsRangeStart(e,t,r){return positionsAreOnSameLine(e.end,getStartPositionOfRange(t,r,false),r)}e.rangeEndIsOnSameLineAsRangeStart=rangeEndIsOnSameLineAsRangeStart;function getLinesBetweenRangeEndAndRangeStart(t,r,n,i){var a=getStartPositionOfRange(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)}e.getLinesBetweenRangeEndAndRangeStart=getLinesBetweenRangeEndAndRangeStart;function getLinesBetweenRangeEndPositions(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)}e.getLinesBetweenRangeEndPositions=getLinesBetweenRangeEndPositions;function isNodeArrayMultiLine(e,t){return!positionsAreOnSameLine(e.pos,e.end,t)}e.isNodeArrayMultiLine=isNodeArrayMultiLine;function positionsAreOnSameLine(t,r,n){return e.getLinesBetweenPositions(n,t,r)===0}e.positionsAreOnSameLine=positionsAreOnSameLine;function getStartPositionOfRange(t,r,n){return positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos,false,n)}e.getStartPositionOfRange=getStartPositionOfRange;function getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(t,r,n,i){var a=e.skipTrivia(n.text,t,false,i);var s=getPreviousNonWhitespacePosition(a,r,n);return e.getLinesBetweenPositions(n,s!==null&&s!==void 0?s:r,a)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter;function getLinesBetweenPositionAndNextNonWhitespaceCharacter(t,r,n,i){var a=e.skipTrivia(n.text,t,false,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=getLinesBetweenPositionAndNextNonWhitespaceCharacter;function getPreviousNonWhitespacePosition(t,r,n){if(r===void 0){r=0}while(t-- >r){if(!e.isWhiteSpaceLike(n.text.charCodeAt(t))){return t}}}function isDeclarationNameOfEnumOrNamespace(t){var r=e.getParseTreeNode(t);if(r){switch(r.parent.kind){case 258:case 259:return r===r.parent.name}}return false}e.isDeclarationNameOfEnumOrNamespace=isDeclarationNameOfEnumOrNamespace;function getInitializedVariables(t){return e.filter(t.declarations,isInitializedVariable)}e.getInitializedVariables=getInitializedVariables;function isInitializedVariable(e){return e.initializer!==undefined}function isWatchSet(e){return e.watch&&e.hasOwnProperty("watch")}e.isWatchSet=isWatchSet;function closeFileWatcher(e){e.close()}e.closeFileWatcher=closeFileWatcher;function getCheckFlags(e){return e.flags&33554432?e.checkFlags:0}e.getCheckFlags=getCheckFlags;function getDeclarationModifierFlagsFromSymbol(t,r){if(r===void 0){r=false}if(t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,function(e){return e.kind===171})||t.valueDeclaration;var i=e.getCombinedModifierFlags(n);return t.parent&&t.parent.flags&32?i:i&~28}if(getCheckFlags(t)&6){var a=t.checkFlags;var s=a&1024?8:a&256?4:16;var o=a&2048?32:0;return s|o}if(t.flags&4194304){return 4|32}return 0}e.getDeclarationModifierFlagsFromSymbol=getDeclarationModifierFlagsFromSymbol;function skipAlias(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}e.skipAlias=skipAlias;function getCombinedLocalAndExportSymbolFlags(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}e.getCombinedLocalAndExportSymbolFlags=getCombinedLocalAndExportSymbolFlags;function isWriteOnlyAccess(e){return accessKind(e)===1}e.isWriteOnlyAccess=isWriteOnlyAccess;function isWriteAccess(e){return accessKind(e)!==0}e.isWriteAccess=isWriteAccess;var x;(function(e){e[e["Read"]=0]="Read";e[e["Write"]=1]="Write";e[e["ReadWrite"]=2]="ReadWrite"})(x||(x={}));function accessKind(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 210:return accessKind(t);case 218:case 217:var r=t.operator;return r===45||r===46?writeOrReadWrite():0;case 219:var n=t,i=n.left,a=n.operatorToken;return i===e&&isAssignmentOperator(a.kind)?a.kind===63?1:writeOrReadWrite():0;case 204:return t.name!==e?0:accessKind(t);case 291:{var s=accessKind(t.parent);return e===t.name?reverseAccessKind(s):s}case 292:return e===t.objectAssignmentInitializer?0:accessKind(t.parent);case 202:return accessKind(t);default:return 0}function writeOrReadWrite(){return t.parent&&walkUpParenthesizedExpressions(t.parent).kind===236?1:2}}function reverseAccessKind(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}function compareDataObjects(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length){return false}for(var r in e){if(typeof e[r]==="object"){if(!compareDataObjects(e[r],t[r])){return false}}else if(typeof e[r]!=="function"){if(e[r]!==t[r]){return false}}}return true}e.compareDataObjects=compareDataObjects;function clearMap(e,t){e.forEach(t);e.clear()}e.clearMap=clearMap;function mutateMapSkippingNewValues(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach(function(r,a){var s=t.get(a);if(s===undefined){e.delete(a);n(r,a)}else if(i){i(r,s,a)}})}e.mutateMapSkippingNewValues=mutateMapSkippingNewValues;function mutateMap(e,t,r){mutateMapSkippingNewValues(e,t,r);var n=r.createNewValue;t.forEach(function(t,r){if(!e.has(r)){e.set(r,n(r,t))}})}e.mutateMap=mutateMap;function isAbstractConstructorSymbol(e){if(e.flags&32){var t=getClassLikeDeclarationOfSymbol(e);return!!t&&hasSyntacticModifier(t,128)}return false}e.isAbstractConstructorSymbol=isAbstractConstructorSymbol;function getClassLikeDeclarationOfSymbol(t){var r;return(r=t.declarations)===null||r===void 0?void 0:r.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=getClassLikeDeclarationOfSymbol;function getObjectFlags(e){return e.flags&3899393?e.objectFlags:0}e.getObjectFlags=getObjectFlags;function typeHasCallOrConstructSignatures(e,t){return t.getSignaturesOfType(e,0).length!==0||t.getSignaturesOfType(e,1).length!==0}e.typeHasCallOrConstructSignatures=typeHasCallOrConstructSignatures;function forSomeAncestorDirectory(t,r){return!!e.forEachAncestorDirectory(t,function(e){return r(e)?true:undefined})}e.forSomeAncestorDirectory=forSomeAncestorDirectory;function isUMDExportSymbol(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])}e.isUMDExportSymbol=isUMDExportSymbol;function showModuleSpecifier(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:getTextOfNode(r)}e.showModuleSpecifier=showModuleSpecifier;function getLastChild(t){var r;e.forEachChild(t,function(e){if(nodeIsPresent(e))r=e},function(e){for(var t=e.length-1;t>=0;t--){if(nodeIsPresent(e[t])){r=e[t];break}}});return r}e.getLastChild=getLastChild;function addToSeen(e,t,r){if(r===void 0){r=true}if(e.has(t)){return false}e.set(t,r);return true}e.addToSeen=addToSeen;function isObjectTypeDeclaration(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}e.isObjectTypeDeclaration=isObjectTypeDeclaration;function isTypeNodeKind(e){return e>=175&&e<=198||e===129||e===153||e===145||e===156||e===146||e===132||e===148||e===149||e===114||e===151||e===142||e===226||e===307||e===308||e===309||e===310||e===311||e===312||e===313}e.isTypeNodeKind=isTypeNodeKind;function isAccessExpression(e){return e.kind===204||e.kind===205}e.isAccessExpression=isAccessExpression;function getNameOfAccessExpression(t){if(t.kind===204){return t.name}e.Debug.assert(t.kind===205);return t.argumentExpression}e.getNameOfAccessExpression=getNameOfAccessExpression;function isBundleFileTextLike(e){switch(e.kind){case"text":case"internal":return true;default:return false}}e.isBundleFileTextLike=isBundleFileTextLike;function isNamedImportsOrExports(e){return e.kind===267||e.kind===271}e.isNamedImportsOrExports=isNamedImportsOrExports;function getLeftmostAccessExpression(e){while(isAccessExpression(e)){e=e.expression}return e}e.getLeftmostAccessExpression=getLeftmostAccessExpression;function getLeftmostExpression(e,t){while(true){switch(e.kind){case 218:e=e.operand;continue;case 219:e=e.left;continue;case 220:e=e.condition;continue;case 208:e=e.tag;continue;case 206:if(t){return e}case 227:case 205:case 204:case 228:case 345:e=e.expression;continue}return e}}e.getLeftmostExpression=getLeftmostExpression;function Symbol(e,t){this.flags=e;this.escapedName=t;this.declarations=undefined;this.valueDeclaration=undefined;this.id=undefined;this.mergeId=undefined;this.parent=undefined}function Type(t,r){this.flags=r;if(e.Debug.isDebugging||e.tracing){this.checker=t}}function Signature(t,r){this.flags=r;if(e.Debug.isDebugging){this.checker=t}}function Node(e,t,r){this.pos=t;this.end=r;this.kind=e;this.id=0;this.flags=0;this.modifierFlagsCache=0;this.transformFlags=0;this.parent=undefined;this.original=undefined}function Token(e,t,r){this.pos=t;this.end=r;this.kind=e;this.id=0;this.flags=0;this.transformFlags=0;this.parent=undefined}function Identifier(e,t,r){this.pos=t;this.end=r;this.kind=e;this.id=0;this.flags=0;this.transformFlags=0;this.parent=undefined;this.original=undefined;this.flowNode=undefined}function SourceMapSource(e,t,r){this.fileName=e;this.text=t;this.skipTrivia=r||function(e){return e}}e.objectAllocator={getNodeConstructor:function(){return Node},getTokenConstructor:function(){return Token},getIdentifierConstructor:function(){return Identifier},getPrivateIdentifierConstructor:function(){return Node},getSourceFileConstructor:function(){return Node},getSymbolConstructor:function(){return Symbol},getTypeConstructor:function(){return Type},getSignatureConstructor:function(){return Signature},getSourceMapSourceConstructor:function(){return SourceMapSource}};function setObjectAllocator(t){e.objectAllocator=t}e.setObjectAllocator=setObjectAllocator;function formatStringFromArgs(t,r,n){if(n===void 0){n=0}return t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.checkDefined(r[+i+n])})}e.formatStringFromArgs=formatStringFromArgs;function setLocalizedDiagnosticMessages(t){e.localizedDiagnosticMessages=t}e.setLocalizedDiagnosticMessages=setLocalizedDiagnosticMessages;function getLocaleSpecificMessage(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}e.getLocaleSpecificMessage=getLocaleSpecificMessage;function createDetachedDiagnostic(e,t,r,n){assertDiagnosticLocation(undefined,t,r);var i=getLocaleSpecificMessage(n);if(arguments.length>4){i=formatStringFromArgs(i,arguments,4)}return{file:undefined,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}}e.createDetachedDiagnostic=createDetachedDiagnostic;function isDiagnosticWithDetachedLocation(e){return e.file===undefined&&e.start!==undefined&&e.length!==undefined&&typeof e.fileName==="string"}function attachFileToDiagnostic(t,r){var n=r.fileName||"";var i=r.text.length;e.Debug.assertEqual(t.fileName,n);e.Debug.assertLessThanOrEqual(t.start,i);e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var s=0,o=t.relatedInformation;s4){i=formatStringFromArgs(i,arguments,4)}return{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}e.createFileDiagnostic=createFileDiagnostic;function formatMessage(e,t){var r=getLocaleSpecificMessage(t);if(arguments.length>2){r=formatStringFromArgs(r,arguments,2)}return r}e.formatMessage=formatMessage;function createCompilerDiagnostic(e){var t=getLocaleSpecificMessage(e);if(arguments.length>1){t=formatStringFromArgs(t,arguments,1)}return{file:undefined,start:undefined,length:undefined,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}e.createCompilerDiagnostic=createCompilerDiagnostic;function createCompilerDiagnosticFromMessageChain(e,t){return{file:undefined,start:undefined,length:undefined,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}e.createCompilerDiagnosticFromMessageChain=createCompilerDiagnosticFromMessageChain;function chainDiagnosticMessages(e,t){var r=getLocaleSpecificMessage(t);if(arguments.length>2){r=formatStringFromArgs(r,arguments,2)}return{messageText:r,category:t.category,code:t.code,next:e===undefined||Array.isArray(e)?e:[e]}}e.chainDiagnosticMessages=chainDiagnosticMessages;function concatenateDiagnosticMessageChains(e,t){var r=e;while(r.next){r=r.next[0]}r.next=[t]}e.concatenateDiagnosticMessageChains=concatenateDiagnosticMessageChains;function getDiagnosticFilePath(e){return e.file?e.file.path:undefined}function compareDiagnostics(e,t){return compareDiagnosticsSkipRelatedInformation(e,t)||compareRelatedInformation(e,t)||0}e.compareDiagnostics=compareDiagnostics;function compareDiagnosticsSkipRelatedInformation(t,r){return e.compareStringsCaseSensitive(getDiagnosticFilePath(t),getDiagnosticFilePath(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||compareMessageText(t.messageText,r.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=compareDiagnosticsSkipRelatedInformation;function compareRelatedInformation(t,r){if(!t.relatedInformation&&!r.relatedInformation){return 0}if(t.relatedInformation&&r.relatedInformation){return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,function(e,t){var n=r.relatedInformation[t];return compareDiagnostics(e,n)})||0}return t.relatedInformation?-1:1}function compareMessageText(t,r){if(typeof t==="string"&&typeof r==="string"){return e.compareStringsCaseSensitive(t,r)}else if(typeof t==="string"){return-1}else if(typeof r==="string"){return 1}var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n){return n}if(!t.next&&!r.next){return 0}if(!t.next){return-1}if(!r.next){return 1}var i=Math.min(t.next.length,r.next.length);for(var a=0;ar.next.length){return 1}return 0}function getLanguageVariant(e){return e===4||e===2||e===1||e===6?1:0}e.getLanguageVariant=getLanguageVariant;function getEmitScriptTarget(e){return e.target||0}e.getEmitScriptTarget=getEmitScriptTarget;function getEmitModuleKind(t){return typeof t.module==="number"?t.module:getEmitScriptTarget(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=getEmitModuleKind;function getEmitModuleResolutionKind(t){var r=t.moduleResolution;if(r===undefined){r=getEmitModuleKind(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic}return r}e.getEmitModuleResolutionKind=getEmitModuleResolutionKind;function hasJsonModuleEmitEnabled(t){switch(getEmitModuleKind(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return true;default:return false}}e.hasJsonModuleEmitEnabled=hasJsonModuleEmitEnabled;function unreachableCodeIsError(e){return e.allowUnreachableCode===false}e.unreachableCodeIsError=unreachableCodeIsError;function unusedLabelIsError(e){return e.allowUnusedLabels===false}e.unusedLabelIsError=unusedLabelIsError;function getAreDeclarationMapsEnabled(e){return!!(getEmitDeclarations(e)&&e.declarationMap)}e.getAreDeclarationMapsEnabled=getAreDeclarationMapsEnabled;function getAllowSyntheticDefaultImports(t){var r=getEmitModuleKind(t);return t.allowSyntheticDefaultImports!==undefined?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=getAllowSyntheticDefaultImports;function getEmitDeclarations(e){return!!(e.declaration||e.composite)}e.getEmitDeclarations=getEmitDeclarations;function shouldPreserveConstEnums(e){return!!(e.preserveConstEnums||e.isolatedModules)}e.shouldPreserveConstEnums=shouldPreserveConstEnums;function isIncrementalCompilation(e){return!!(e.incremental||e.composite)}e.isIncrementalCompilation=isIncrementalCompilation;function getStrictOptionValue(e,t){return e[t]===undefined?!!e.strict:!!e[t]}e.getStrictOptionValue=getStrictOptionValue;function getAllowJSCompilerOption(e){return e.allowJs===undefined?!!e.checkJs:e.allowJs}e.getAllowJSCompilerOption=getAllowJSCompilerOption;function getUseDefineForClassFields(e){return e.useDefineForClassFields===undefined?e.target===99:e.useDefineForClassFields}e.getUseDefineForClassFields=getUseDefineForClassFields;function compilerOptionsAffectSemanticDiagnostics(t,r){return optionsHaveChanges(r,t,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=compilerOptionsAffectSemanticDiagnostics;function compilerOptionsAffectEmit(t,r){return optionsHaveChanges(r,t,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=compilerOptionsAffectEmit;function getCompilerOptionValue(e,t){return t.strictFlag?getStrictOptionValue(e,t.name):e[t.name]}e.getCompilerOptionValue=getCompilerOptionValue;function getJSXTransformEnabled(e){var t=e.jsx;return t===2||t===4||t===5}e.getJSXTransformEnabled=getJSXTransformEnabled;function getJSXImplicitImportBase(t,r){var n=r===null||r===void 0?void 0:r.pragmas.get("jsximportsource");var i=e.isArray(n)?n[n.length-1]:n;return t.jsx===4||t.jsx===5||t.jsxImportSource||i?(i===null||i===void 0?void 0:i.arguments.factory)||t.jsxImportSource||"react":undefined}e.getJSXImplicitImportBase=getJSXImplicitImportBase;function getJSXRuntimeImport(e,t){return e?e+"/"+(t.jsx===5?"jsx-dev-runtime":"jsx-runtime"):undefined}e.getJSXRuntimeImport=getJSXRuntimeImport;function hasZeroOrOneAsteriskCharacter(e){var t=false;for(var r=0;r0){c+=")?";d--}return c}function replaceWildcardCharacter(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function getFileMatcherPatterns(t,r,n,i,a){t=e.normalizePath(t);a=e.normalizePath(a);var s=e.combinePaths(a,t);return{includeFilePatterns:e.map(getRegularExpressionsForWildcards(n,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:getRegularExpressionForWildcard(n,s,"files"),includeDirectoryPattern:getRegularExpressionForWildcard(n,s,"directories"),excludePattern:getRegularExpressionForWildcard(r,s,"exclude"),basePaths:getBasePaths(t,n,i)}}e.getFileMatcherPatterns=getFileMatcherPatterns;function getRegexFromPattern(e,t){return new RegExp(e,t?"":"i")}e.getRegexFromPattern=getRegexFromPattern;function matchFiles(t,r,n,i,a,s,o,c,u,l){t=e.normalizePath(t);s=e.normalizePath(s);var p=getFileMatcherPatterns(t,n,i,a,s);var d=p.includeFilePatterns&&p.includeFilePatterns.map(function(e){return getRegexFromPattern(e,a)});var f=p.includeDirectoryPattern&&getRegexFromPattern(p.includeDirectoryPattern,a);var m=p.excludePattern&&getRegexFromPattern(p.excludePattern,a);var g=d?d.map(function(){return[]}):[[]];var _=new e.Map;var h=e.createGetCanonicalFileName(a);for(var y=0,v=p.basePaths;y=0;n--){if(e.fileExtensionIs(t,r[n])){return adjustExtensionPriority(n,r)}}return 0}e.getExtensionPriority=getExtensionPriority;function adjustExtensionPriority(e,t){if(e<2){return 0}else if(e=0)}e.positionIsSynthesized=positionIsSynthesized;function extensionIsTS(e){return e===".ts"||e===".tsx"||e===".d.ts"}e.extensionIsTS=extensionIsTS;function resolutionExtensionIsTSOrJson(e){return extensionIsTS(e)||e===".json"}e.resolutionExtensionIsTSOrJson=resolutionExtensionIsTSOrJson;function extensionFromPath(t){var r=tryGetExtensionFromPath(t);return r!==undefined?r:e.Debug.fail("File "+t+" has unknown extension.")}e.extensionFromPath=extensionFromPath;function isAnySupportedFileExtension(e){return tryGetExtensionFromPath(e)!==undefined}e.isAnySupportedFileExtension=isAnySupportedFileExtension;function tryGetExtensionFromPath(t){return e.find(L,function(r){return e.fileExtensionIs(t,r)})}e.tryGetExtensionFromPath=tryGetExtensionFromPath;function isCheckJsEnabledForFile(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}e.isCheckJsEnabledForFile=isCheckJsEnabledForFile;e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function matchPatternOrExact(t,r){var n=[];for(var i=0,a=t;ii){i=s}}return{min:n,max:i}}e.minAndMax=minAndMax;function rangeOfNode(e){return{pos:getTokenPosOfNode(e),end:e.end}}e.rangeOfNode=rangeOfNode;function rangeOfTypeParameters(t,r){var n=r.pos-1;var i=e.skipTrivia(t.text,r.end)+1;return{pos:n,end:i}}e.rangeOfTypeParameters=rangeOfTypeParameters;function skipTypeChecking(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}e.skipTypeChecking=skipTypeChecking;function isJsonEqual(t,r){return t===r||typeof t==="object"&&t!==null&&typeof r==="object"&&r!==null&&e.equalOwnProperties(t,r,isJsonEqual)}e.isJsonEqual=isJsonEqual;function parsePseudoBigInt(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:var r=e.length-1;var n=0;while(e.charCodeAt(n)===48){n++}return e.slice(n,r)||"0"}var i=2,a=e.length-1;var s=(a-i)*t;var o=new Uint16Array((s>>>4)+(s&15?1:0));for(var c=a-1,u=0;c>=i;c--,u+=t){var l=u>>>4;var p=e.charCodeAt(c);var d=p<=57?p-48:10+p-(p<=70?65:97);var f=d<<(u&15);o[l]|=f;var m=f>>>16;if(m)o[l+1]|=m}var g="";var _=o.length-1;var h=true;while(h){var y=0;h=false;for(var l=_;l>=0;l--){var v=y<<16|o[l];var T=v/10|0;o[l]=T;y=v-T*10;if(T&&!h){_=l;h=true}}g=y+g}return g}e.parsePseudoBigInt=parsePseudoBigInt;function pseudoBigIntToString(e){var t=e.negative,r=e.base10Value;return(t&&r!=="0"?"-":"")+r}e.pseudoBigIntToString=pseudoBigIntToString;function isValidTypeOnlyAliasUseSite(e){return!!(e.flags&8388608)||isPartOfTypeQuery(e)||isIdentifierInNonEmittingHeritageClause(e)||isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(e)||!(isExpressionNode(e)||isShorthandPropertyNameUseSite(e))}e.isValidTypeOnlyAliasUseSite=isValidTypeOnlyAliasUseSite;function typeOnlyDeclarationIsExport(e){return e.kind===273}e.typeOnlyDeclarationIsExport=typeOnlyDeclarationIsExport;function isShorthandPropertyNameUseSite(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(e){while(e.kind===79||e.kind===204){e=e.parent}if(e.kind!==160){return false}if(hasSyntacticModifier(e.parent,128)){return true}var t=e.parent.parent.kind;return t===256||t===180}function isIdentifierInNonEmittingHeritageClause(t){if(t.kind!==79)return false;var r=e.findAncestor(t.parent,function(e){switch(e.kind){case 289:return true;case 204:case 226:return false;default:return"quit"}});return(r===null||r===void 0?void 0:r.token)===117||(r===null||r===void 0?void 0:r.parent.kind)===256}function isIdentifierTypeReference(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)}e.isIdentifierTypeReference=isIdentifierTypeReference;function arrayIsHomogeneous(t,r){if(r===void 0){r=e.equateValues}if(t.length<2)return true;var n=t[0];for(var i=1,a=t.length;i3){return true}var c=e.getExpressionPrecedence(o);switch(e.compareValues(c,a)){case-1:if(!n&&s===1&&r.kind===222){return false}return true;case 1:return false;case 0:if(n){return s===1}else{if(e.isBinaryExpression(o)&&o.operatorToken.kind===t){if(operatorHasAssociativeProperty(t)){return false}if(t===39){var u=i?getLiteralKindOfBinaryPlusOperand(i):0;if(e.isLiteralKind(u)&&u===getLiteralKindOfBinaryPlusOperand(o)){return false}}}var l=e.getExpressionAssociativity(o);return l===0}}}function operatorHasAssociativeProperty(e){return e===41||e===51||e===50||e===52}function getLiteralKindOfBinaryPlusOperand(t){t=e.skipPartiallyEmittedExpressions(t);if(e.isLiteralKind(t.kind)){return t.kind}if(t.kind===219&&t.operatorToken.kind===39){if(t.cachedLiteralKind!==undefined){return t.cachedLiteralKind}var r=getLiteralKindOfBinaryPlusOperand(t.left);var n=e.isLiteralKind(r)&&r===getLiteralKindOfBinaryPlusOperand(t.right)?r:0;t.cachedLiteralKind=n;return n}return 0}function parenthesizeBinaryOperand(r,n,i,a){var s=e.skipPartiallyEmittedExpressions(n);if(s.kind===210){return n}return binaryOperandNeedsParentheses(r,n,i,a)?t.createParenthesizedExpression(n):n}function parenthesizeLeftSideOfBinary(e,t){return parenthesizeBinaryOperand(e,t,true)}function parenthesizeRightSideOfBinary(e,t,r){return parenthesizeBinaryOperand(e,r,false,t)}function parenthesizeExpressionOfComputedPropertyName(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r}function parenthesizeConditionOfConditionalExpression(r){var n=e.getOperatorPrecedence(220,57);var i=e.skipPartiallyEmittedExpressions(r);var a=e.getExpressionPrecedence(i);if(e.compareValues(a,n)!==1){return t.createParenthesizedExpression(r)}return r}function parenthesizeBranchOfConditionalExpression(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r}function parenthesizeExpressionOfExportDefault(r){var n=e.skipPartiallyEmittedExpressions(r);var i=e.isCommaSequence(n);if(!i){switch(e.getLeftmostExpression(n,false).kind){case 224:case 211:i=true}}return i?t.createParenthesizedExpression(r):r}function parenthesizeExpressionOfNew(r){var n=e.getLeftmostExpression(r,true);switch(n.kind){case 206:return t.createParenthesizedExpression(r);case 207:return!n.arguments?t.createParenthesizedExpression(r):r}return parenthesizeLeftSideOfAccess(r)}function parenthesizeLeftSideOfAccess(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isLeftHandSideExpression(n)&&(n.kind!==207||n.arguments)){return r}return e.setTextRange(t.createParenthesizedExpression(r),r)}function parenthesizeOperandOfPostfixUnary(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function parenthesizeOperandOfPrefixUnary(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function parenthesizeExpressionsOfCommaDelimitedList(r){var n=e.sameMap(r,parenthesizeExpressionForDisallowedComma);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)}function parenthesizeExpressionForDisallowedComma(r){var n=e.skipPartiallyEmittedExpressions(r);var i=e.getExpressionPrecedence(n);var a=e.getOperatorPrecedence(219,27);return i>a?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function parenthesizeExpressionOfExpressionStatement(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression;var a=e.skipPartiallyEmittedExpressions(i).kind;if(a===211||a===212){var s=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,s,8)}}var o=e.getLeftmostExpression(n,false).kind;if(o===203||o===211){return e.setTextRange(t.createParenthesizedExpression(r),r)}return r}function parenthesizeConciseBodyOfArrowFunction(r){if(!e.isBlock(r)&&(e.isCommaSequence(r)||e.getLeftmostExpression(r,false).kind===203)){return e.setTextRange(t.createParenthesizedExpression(r),r)}return r}function parenthesizeMemberOfConditionalType(e){return e.kind===187?t.createParenthesizedType(e):e}function parenthesizeMemberOfElementType(e){switch(e.kind){case 185:case 186:case 177:case 178:return t.createParenthesizedType(e)}return parenthesizeMemberOfConditionalType(e)}function parenthesizeElementTypeOfArrayType(e){switch(e.kind){case 179:case 191:case 188:return t.createParenthesizedType(e)}return parenthesizeMemberOfElementType(e)}function parenthesizeConstituentTypesOfUnionOrIntersectionType(r){return t.createNodeArray(e.sameMap(r,parenthesizeMemberOfElementType))}function parenthesizeOrdinalTypeArgument(r,n){return n===0&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function parenthesizeTypeArguments(r){if(e.some(r)){return t.createNodeArray(e.sameMap(r,parenthesizeOrdinalTypeArgument))}}}e.createParenthesizerRules=createParenthesizerRules;e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}})(u||(u={}));var u;(function(e){function createNodeConverters(t){return{convertToFunctionBlock:convertToFunctionBlock,convertToFunctionExpression:convertToFunctionExpression,convertToArrayAssignmentElement:convertToArrayAssignmentElement,convertToObjectAssignmentElement:convertToObjectAssignmentElement,convertToAssignmentPattern:convertToAssignmentPattern,convertToObjectAssignmentPattern:convertToObjectAssignmentPattern,convertToArrayAssignmentPattern:convertToArrayAssignmentPattern,convertToAssignmentElementTarget:convertToAssignmentElementTarget};function convertToFunctionBlock(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);e.setTextRange(a,r);return a}function convertToFunctionExpression(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r);e.setTextRange(n,r);if(e.getStartsOnNewLine(r)){e.setStartsOnNewLine(n,true)}return n}function convertToArrayAssignmentElement(r){if(e.isBindingElement(r)){if(r.dotDotDotToken){e.Debug.assertNode(r.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r)}var n=convertToAssignmentElementTarget(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function convertToObjectAssignmentElement(r){if(e.isBindingElement(r)){if(r.dotDotDotToken){e.Debug.assertNode(r.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r)}if(r.propertyName){var n=convertToAssignmentElementTarget(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}e.Debug.assertNode(r.name,e.isIdentifier);return e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function convertToAssignmentPattern(e){switch(e.kind){case 200:case 202:return convertToArrayAssignmentPattern(e);case 199:case 203:return convertToObjectAssignmentPattern(e)}}function convertToObjectAssignmentPattern(r){if(e.isObjectBindingPattern(r)){return e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,convertToObjectAssignmentElement)),r),r)}return e.cast(r,e.isObjectLiteralExpression)}function convertToArrayAssignmentPattern(r){if(e.isArrayBindingPattern(r)){return e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(r.elements,convertToArrayAssignmentElement)),r),r)}return e.cast(r,e.isArrayLiteralExpression)}function convertToAssignmentElementTarget(t){if(e.isBindingPattern(t)){return convertToAssignmentPattern(t)}return e.cast(t,e.isExpression)}}e.createNodeConverters=createNodeConverters;e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(u||(u={}));var u;(function(e){var t=0;var r;(function(e){e[e["None"]=0]="None";e[e["NoParenthesizerRules"]=1]="NoParenthesizerRules";e[e["NoNodeConverters"]=2]="NoNodeConverters";e[e["NoIndentationOnFreshPropertyAccess"]=4]="NoIndentationOnFreshPropertyAccess";e[e["NoOriginalNode"]=8]="NoOriginalNode"})(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function createNodeFactory(r,i){var a=r&8?updateWithoutOriginal:updateWithOriginal;var s=e.memoize(function(){return r&1?e.nullParenthesizerRules:e.createParenthesizerRules(y)});var o=e.memoize(function(){return r&2?e.nullNodeConverters:e.createNodeConverters(y)});var c=e.memoizeOne(function(e){return function(t,r){return createBinaryExpression(t,e,r)}});var u=e.memoizeOne(function(e){return function(t){return createPrefixUnaryExpression(e,t)}});var l=e.memoizeOne(function(e){return function(t){return createPostfixUnaryExpression(t,e)}});var p=e.memoizeOne(function(e){return function(){return createJSDocPrimaryTypeWorker(e)}});var d=e.memoizeOne(function(e){return function(t){return createJSDocUnaryTypeWorker(e,t)}});var f=e.memoizeOne(function(e){return function(t,r){return updateJSDocUnaryTypeWorker(e,t,r)}});var m=e.memoizeOne(function(e){return function(t,r){return createJSDocSimpleTagWorker(e,t,r)}});var g=e.memoizeOne(function(e){return function(t,r,n){return updateJSDocSimpleTagWorker(e,t,r,n)}});var _=e.memoizeOne(function(e){return function(t,r,n){return createJSDocTypeLikeTagWorker(e,t,r,n)}});var h=e.memoizeOne(function(e){return function(t,r,n,i){return updateJSDocTypeLikeTagWorker(e,t,r,n,i)}});var y={get parenthesizer(){return s()},get converters(){return o()},createNodeArray:createNodeArray,createNumericLiteral:createNumericLiteral,createBigIntLiteral:createBigIntLiteral,createStringLiteral:createStringLiteral,createStringLiteralFromNode:createStringLiteralFromNode,createRegularExpressionLiteral:createRegularExpressionLiteral,createLiteralLikeNode:createLiteralLikeNode,createIdentifier:createIdentifier,updateIdentifier:updateIdentifier,createTempVariable:createTempVariable,createLoopVariable:createLoopVariable,createUniqueName:createUniqueName,getGeneratedNameForNode:getGeneratedNameForNode,createPrivateIdentifier:createPrivateIdentifier,createToken:createToken,createSuper:createSuper,createThis:createThis,createNull:createNull,createTrue:createTrue,createFalse:createFalse,createModifier:createModifier,createModifiersFromModifierFlags:createModifiersFromModifierFlags,createQualifiedName:createQualifiedName,updateQualifiedName:updateQualifiedName,createComputedPropertyName:createComputedPropertyName,updateComputedPropertyName:updateComputedPropertyName,createTypeParameterDeclaration:createTypeParameterDeclaration,updateTypeParameterDeclaration:updateTypeParameterDeclaration,createParameterDeclaration:createParameterDeclaration,updateParameterDeclaration:updateParameterDeclaration,createDecorator:createDecorator,updateDecorator:updateDecorator,createPropertySignature:createPropertySignature,updatePropertySignature:updatePropertySignature,createPropertyDeclaration:createPropertyDeclaration,updatePropertyDeclaration:updatePropertyDeclaration,createMethodSignature:createMethodSignature,updateMethodSignature:updateMethodSignature,createMethodDeclaration:createMethodDeclaration,updateMethodDeclaration:updateMethodDeclaration,createConstructorDeclaration:createConstructorDeclaration,updateConstructorDeclaration:updateConstructorDeclaration,createGetAccessorDeclaration:createGetAccessorDeclaration,updateGetAccessorDeclaration:updateGetAccessorDeclaration,createSetAccessorDeclaration:createSetAccessorDeclaration,updateSetAccessorDeclaration:updateSetAccessorDeclaration,createCallSignature:createCallSignature,updateCallSignature:updateCallSignature,createConstructSignature:createConstructSignature,updateConstructSignature:updateConstructSignature,createIndexSignature:createIndexSignature,updateIndexSignature:updateIndexSignature,createClassStaticBlockDeclaration:createClassStaticBlockDeclaration,updateClassStaticBlockDeclaration:updateClassStaticBlockDeclaration,createTemplateLiteralTypeSpan:createTemplateLiteralTypeSpan,updateTemplateLiteralTypeSpan:updateTemplateLiteralTypeSpan,createKeywordTypeNode:createKeywordTypeNode,createTypePredicateNode:createTypePredicateNode,updateTypePredicateNode:updateTypePredicateNode,createTypeReferenceNode:createTypeReferenceNode,updateTypeReferenceNode:updateTypeReferenceNode,createFunctionTypeNode:createFunctionTypeNode,updateFunctionTypeNode:updateFunctionTypeNode,createConstructorTypeNode:createConstructorTypeNode,updateConstructorTypeNode:updateConstructorTypeNode,createTypeQueryNode:createTypeQueryNode,updateTypeQueryNode:updateTypeQueryNode,createTypeLiteralNode:createTypeLiteralNode,updateTypeLiteralNode:updateTypeLiteralNode,createArrayTypeNode:createArrayTypeNode,updateArrayTypeNode:updateArrayTypeNode,createTupleTypeNode:createTupleTypeNode,updateTupleTypeNode:updateTupleTypeNode,createNamedTupleMember:createNamedTupleMember,updateNamedTupleMember:updateNamedTupleMember,createOptionalTypeNode:createOptionalTypeNode,updateOptionalTypeNode:updateOptionalTypeNode,createRestTypeNode:createRestTypeNode,updateRestTypeNode:updateRestTypeNode,createUnionTypeNode:createUnionTypeNode,updateUnionTypeNode:updateUnionTypeNode,createIntersectionTypeNode:createIntersectionTypeNode,updateIntersectionTypeNode:updateIntersectionTypeNode,createConditionalTypeNode:createConditionalTypeNode,updateConditionalTypeNode:updateConditionalTypeNode,createInferTypeNode:createInferTypeNode,updateInferTypeNode:updateInferTypeNode,createImportTypeNode:createImportTypeNode,updateImportTypeNode:updateImportTypeNode,createParenthesizedType:createParenthesizedType,updateParenthesizedType:updateParenthesizedType,createThisTypeNode:createThisTypeNode,createTypeOperatorNode:createTypeOperatorNode,updateTypeOperatorNode:updateTypeOperatorNode,createIndexedAccessTypeNode:createIndexedAccessTypeNode,updateIndexedAccessTypeNode:updateIndexedAccessTypeNode,createMappedTypeNode:createMappedTypeNode,updateMappedTypeNode:updateMappedTypeNode,createLiteralTypeNode:createLiteralTypeNode,updateLiteralTypeNode:updateLiteralTypeNode,createTemplateLiteralType:createTemplateLiteralType,updateTemplateLiteralType:updateTemplateLiteralType,createObjectBindingPattern:createObjectBindingPattern,updateObjectBindingPattern:updateObjectBindingPattern,createArrayBindingPattern:createArrayBindingPattern,updateArrayBindingPattern:updateArrayBindingPattern,createBindingElement:createBindingElement,updateBindingElement:updateBindingElement,createArrayLiteralExpression:createArrayLiteralExpression,updateArrayLiteralExpression:updateArrayLiteralExpression,createObjectLiteralExpression:createObjectLiteralExpression,updateObjectLiteralExpression:updateObjectLiteralExpression,createPropertyAccessExpression:r&4?function(t,r){return e.setEmitFlags(createPropertyAccessExpression(t,r),131072)}:createPropertyAccessExpression,updatePropertyAccessExpression:updatePropertyAccessExpression,createPropertyAccessChain:r&4?function(t,r,n){return e.setEmitFlags(createPropertyAccessChain(t,r,n),131072)}:createPropertyAccessChain,updatePropertyAccessChain:updatePropertyAccessChain,createElementAccessExpression:createElementAccessExpression,updateElementAccessExpression:updateElementAccessExpression,createElementAccessChain:createElementAccessChain,updateElementAccessChain:updateElementAccessChain,createCallExpression:createCallExpression,updateCallExpression:updateCallExpression,createCallChain:createCallChain,updateCallChain:updateCallChain,createNewExpression:createNewExpression,updateNewExpression:updateNewExpression,createTaggedTemplateExpression:createTaggedTemplateExpression,updateTaggedTemplateExpression:updateTaggedTemplateExpression,createTypeAssertion:createTypeAssertion,updateTypeAssertion:updateTypeAssertion,createParenthesizedExpression:createParenthesizedExpression,updateParenthesizedExpression:updateParenthesizedExpression,createFunctionExpression:createFunctionExpression,updateFunctionExpression:updateFunctionExpression,createArrowFunction:createArrowFunction,updateArrowFunction:updateArrowFunction,createDeleteExpression:createDeleteExpression,updateDeleteExpression:updateDeleteExpression,createTypeOfExpression:createTypeOfExpression,updateTypeOfExpression:updateTypeOfExpression,createVoidExpression:createVoidExpression,updateVoidExpression:updateVoidExpression,createAwaitExpression:createAwaitExpression,updateAwaitExpression:updateAwaitExpression,createPrefixUnaryExpression:createPrefixUnaryExpression,updatePrefixUnaryExpression:updatePrefixUnaryExpression,createPostfixUnaryExpression:createPostfixUnaryExpression,updatePostfixUnaryExpression:updatePostfixUnaryExpression,createBinaryExpression:createBinaryExpression,updateBinaryExpression:updateBinaryExpression,createConditionalExpression:createConditionalExpression,updateConditionalExpression:updateConditionalExpression,createTemplateExpression:createTemplateExpression,updateTemplateExpression:updateTemplateExpression,createTemplateHead:createTemplateHead,createTemplateMiddle:createTemplateMiddle,createTemplateTail:createTemplateTail,createNoSubstitutionTemplateLiteral:createNoSubstitutionTemplateLiteral,createTemplateLiteralLikeNode:createTemplateLiteralLikeNode,createYieldExpression:createYieldExpression,updateYieldExpression:updateYieldExpression,createSpreadElement:createSpreadElement,updateSpreadElement:updateSpreadElement,createClassExpression:createClassExpression,updateClassExpression:updateClassExpression,createOmittedExpression:createOmittedExpression,createExpressionWithTypeArguments:createExpressionWithTypeArguments,updateExpressionWithTypeArguments:updateExpressionWithTypeArguments,createAsExpression:createAsExpression,updateAsExpression:updateAsExpression,createNonNullExpression:createNonNullExpression,updateNonNullExpression:updateNonNullExpression,createNonNullChain:createNonNullChain,updateNonNullChain:updateNonNullChain,createMetaProperty:createMetaProperty,updateMetaProperty:updateMetaProperty,createTemplateSpan:createTemplateSpan,updateTemplateSpan:updateTemplateSpan,createSemicolonClassElement:createSemicolonClassElement,createBlock:createBlock,updateBlock:updateBlock,createVariableStatement:createVariableStatement,updateVariableStatement:updateVariableStatement,createEmptyStatement:createEmptyStatement,createExpressionStatement:createExpressionStatement,updateExpressionStatement:updateExpressionStatement,createIfStatement:createIfStatement,updateIfStatement:updateIfStatement,createDoStatement:createDoStatement,updateDoStatement:updateDoStatement,createWhileStatement:createWhileStatement,updateWhileStatement:updateWhileStatement,createForStatement:createForStatement,updateForStatement:updateForStatement,createForInStatement:createForInStatement,updateForInStatement:updateForInStatement,createForOfStatement:createForOfStatement,updateForOfStatement:updateForOfStatement,createContinueStatement:createContinueStatement,updateContinueStatement:updateContinueStatement,createBreakStatement:createBreakStatement,updateBreakStatement:updateBreakStatement,createReturnStatement:createReturnStatement,updateReturnStatement:updateReturnStatement,createWithStatement:createWithStatement,updateWithStatement:updateWithStatement,createSwitchStatement:createSwitchStatement,updateSwitchStatement:updateSwitchStatement,createLabeledStatement:createLabeledStatement,updateLabeledStatement:updateLabeledStatement,createThrowStatement:createThrowStatement,updateThrowStatement:updateThrowStatement,createTryStatement:createTryStatement,updateTryStatement:updateTryStatement,createDebuggerStatement:createDebuggerStatement,createVariableDeclaration:createVariableDeclaration,updateVariableDeclaration:updateVariableDeclaration,createVariableDeclarationList:createVariableDeclarationList,updateVariableDeclarationList:updateVariableDeclarationList,createFunctionDeclaration:createFunctionDeclaration,updateFunctionDeclaration:updateFunctionDeclaration,createClassDeclaration:createClassDeclaration,updateClassDeclaration:updateClassDeclaration,createInterfaceDeclaration:createInterfaceDeclaration,updateInterfaceDeclaration:updateInterfaceDeclaration,createTypeAliasDeclaration:createTypeAliasDeclaration,updateTypeAliasDeclaration:updateTypeAliasDeclaration,createEnumDeclaration:createEnumDeclaration,updateEnumDeclaration:updateEnumDeclaration,createModuleDeclaration:createModuleDeclaration,updateModuleDeclaration:updateModuleDeclaration,createModuleBlock:createModuleBlock,updateModuleBlock:updateModuleBlock,createCaseBlock:createCaseBlock,updateCaseBlock:updateCaseBlock,createNamespaceExportDeclaration:createNamespaceExportDeclaration,updateNamespaceExportDeclaration:updateNamespaceExportDeclaration,createImportEqualsDeclaration:createImportEqualsDeclaration,updateImportEqualsDeclaration:updateImportEqualsDeclaration,createImportDeclaration:createImportDeclaration,updateImportDeclaration:updateImportDeclaration,createImportClause:createImportClause,updateImportClause:updateImportClause,createNamespaceImport:createNamespaceImport,updateNamespaceImport:updateNamespaceImport,createNamespaceExport:createNamespaceExport,updateNamespaceExport:updateNamespaceExport,createNamedImports:createNamedImports,updateNamedImports:updateNamedImports,createImportSpecifier:createImportSpecifier,updateImportSpecifier:updateImportSpecifier,createExportAssignment:createExportAssignment,updateExportAssignment:updateExportAssignment,createExportDeclaration:createExportDeclaration,updateExportDeclaration:updateExportDeclaration,createNamedExports:createNamedExports,updateNamedExports:updateNamedExports,createExportSpecifier:createExportSpecifier,updateExportSpecifier:updateExportSpecifier,createMissingDeclaration:createMissingDeclaration,createExternalModuleReference:createExternalModuleReference,updateExternalModuleReference:updateExternalModuleReference,get createJSDocAllType(){return p(307)},get createJSDocUnknownType(){return p(308)},get createJSDocNonNullableType(){return d(310)},get updateJSDocNonNullableType(){return f(310)},get createJSDocNullableType(){return d(309)},get updateJSDocNullableType(){return f(309)},get createJSDocOptionalType(){return d(311)},get updateJSDocOptionalType(){return f(311)},get createJSDocVariadicType(){return d(313)},get updateJSDocVariadicType(){return f(313)},get createJSDocNamepathType(){return d(314)},get updateJSDocNamepathType(){return f(314)},createJSDocFunctionType:createJSDocFunctionType,updateJSDocFunctionType:updateJSDocFunctionType,createJSDocTypeLiteral:createJSDocTypeLiteral,updateJSDocTypeLiteral:updateJSDocTypeLiteral,createJSDocTypeExpression:createJSDocTypeExpression,updateJSDocTypeExpression:updateJSDocTypeExpression,createJSDocSignature:createJSDocSignature,updateJSDocSignature:updateJSDocSignature,createJSDocTemplateTag:createJSDocTemplateTag,updateJSDocTemplateTag:updateJSDocTemplateTag,createJSDocTypedefTag:createJSDocTypedefTag,updateJSDocTypedefTag:updateJSDocTypedefTag,createJSDocParameterTag:createJSDocParameterTag,updateJSDocParameterTag:updateJSDocParameterTag,createJSDocPropertyTag:createJSDocPropertyTag,updateJSDocPropertyTag:updateJSDocPropertyTag,createJSDocCallbackTag:createJSDocCallbackTag,updateJSDocCallbackTag:updateJSDocCallbackTag,createJSDocAugmentsTag:createJSDocAugmentsTag,updateJSDocAugmentsTag:updateJSDocAugmentsTag,createJSDocImplementsTag:createJSDocImplementsTag,updateJSDocImplementsTag:updateJSDocImplementsTag,createJSDocSeeTag:createJSDocSeeTag,updateJSDocSeeTag:updateJSDocSeeTag,createJSDocNameReference:createJSDocNameReference,updateJSDocNameReference:updateJSDocNameReference,createJSDocMemberName:createJSDocMemberName,updateJSDocMemberName:updateJSDocMemberName,createJSDocLink:createJSDocLink,updateJSDocLink:updateJSDocLink,createJSDocLinkCode:createJSDocLinkCode,updateJSDocLinkCode:updateJSDocLinkCode,createJSDocLinkPlain:createJSDocLinkPlain,updateJSDocLinkPlain:updateJSDocLinkPlain,get createJSDocTypeTag(){return _(338)},get updateJSDocTypeTag(){return h(338)},get createJSDocReturnTag(){return _(336)},get updateJSDocReturnTag(){return h(336)},get createJSDocThisTag(){return _(337)},get updateJSDocThisTag(){return h(337)},get createJSDocEnumTag(){return _(334)},get updateJSDocEnumTag(){return h(334)},get createJSDocAuthorTag(){return m(325)},get updateJSDocAuthorTag(){return g(325)},get createJSDocClassTag(){return m(327)},get updateJSDocClassTag(){return g(327)},get createJSDocPublicTag(){return m(328)},get updateJSDocPublicTag(){return g(328)},get createJSDocPrivateTag(){return m(329)},get updateJSDocPrivateTag(){return g(329)},get createJSDocProtectedTag(){return m(330)},get updateJSDocProtectedTag(){return g(330)},get createJSDocReadonlyTag(){return m(331)},get updateJSDocReadonlyTag(){return g(331)},get createJSDocOverrideTag(){return m(332)},get updateJSDocOverrideTag(){return g(332)},get createJSDocDeprecatedTag(){return m(326)},get updateJSDocDeprecatedTag(){return g(326)},createJSDocUnknownTag:createJSDocUnknownTag,updateJSDocUnknownTag:updateJSDocUnknownTag,createJSDocText:createJSDocText,updateJSDocText:updateJSDocText,createJSDocComment:createJSDocComment,updateJSDocComment:updateJSDocComment,createJsxElement:createJsxElement,updateJsxElement:updateJsxElement,createJsxSelfClosingElement:createJsxSelfClosingElement,updateJsxSelfClosingElement:updateJsxSelfClosingElement,createJsxOpeningElement:createJsxOpeningElement,updateJsxOpeningElement:updateJsxOpeningElement,createJsxClosingElement:createJsxClosingElement,updateJsxClosingElement:updateJsxClosingElement,createJsxFragment:createJsxFragment,createJsxText:createJsxText,updateJsxText:updateJsxText,createJsxOpeningFragment:createJsxOpeningFragment,createJsxJsxClosingFragment:createJsxJsxClosingFragment,updateJsxFragment:updateJsxFragment,createJsxAttribute:createJsxAttribute,updateJsxAttribute:updateJsxAttribute,createJsxAttributes:createJsxAttributes,updateJsxAttributes:updateJsxAttributes,createJsxSpreadAttribute:createJsxSpreadAttribute,updateJsxSpreadAttribute:updateJsxSpreadAttribute,createJsxExpression:createJsxExpression,updateJsxExpression:updateJsxExpression,createCaseClause:createCaseClause,updateCaseClause:updateCaseClause,createDefaultClause:createDefaultClause,updateDefaultClause:updateDefaultClause,createHeritageClause:createHeritageClause,updateHeritageClause:updateHeritageClause,createCatchClause:createCatchClause,updateCatchClause:updateCatchClause,createPropertyAssignment:createPropertyAssignment,updatePropertyAssignment:updatePropertyAssignment,createShorthandPropertyAssignment:createShorthandPropertyAssignment,updateShorthandPropertyAssignment:updateShorthandPropertyAssignment,createSpreadAssignment:createSpreadAssignment,updateSpreadAssignment:updateSpreadAssignment,createEnumMember:createEnumMember,updateEnumMember:updateEnumMember,createSourceFile:createSourceFile,updateSourceFile:updateSourceFile,createBundle:createBundle,updateBundle:updateBundle,createUnparsedSource:createUnparsedSource,createUnparsedPrologue:createUnparsedPrologue,createUnparsedPrepend:createUnparsedPrepend,createUnparsedTextLike:createUnparsedTextLike,createUnparsedSyntheticReference:createUnparsedSyntheticReference,createInputFiles:createInputFiles,createSyntheticExpression:createSyntheticExpression,createSyntaxList:createSyntaxList,createNotEmittedStatement:createNotEmittedStatement,createPartiallyEmittedExpression:createPartiallyEmittedExpression,updatePartiallyEmittedExpression:updatePartiallyEmittedExpression,createCommaListExpression:createCommaListExpression,updateCommaListExpression:updateCommaListExpression,createEndOfDeclarationMarker:createEndOfDeclarationMarker,createMergeDeclarationMarker:createMergeDeclarationMarker,createSyntheticReferenceExpression:createSyntheticReferenceExpression,updateSyntheticReferenceExpression:updateSyntheticReferenceExpression,cloneNode:cloneNode,get createComma(){return c(27)},get createAssignment(){return c(63)},get createLogicalOr(){return c(56)},get createLogicalAnd(){return c(55)},get createBitwiseOr(){return c(51)},get createBitwiseXor(){return c(52)},get createBitwiseAnd(){return c(50)},get createStrictEquality(){return c(36)},get createStrictInequality(){return c(37)},get createEquality(){return c(34)},get createInequality(){return c(35)},get createLessThan(){return c(29)},get createLessThanEquals(){return c(32)},get createGreaterThan(){return c(31)},get createGreaterThanEquals(){return c(33)},get createLeftShift(){return c(47)},get createRightShift(){return c(48)},get createUnsignedRightShift(){return c(49)},get createAdd(){return c(39)},get createSubtract(){return c(40)},get createMultiply(){return c(41)},get createDivide(){return c(43)},get createModulo(){return c(44)},get createExponent(){return c(42)},get createPrefixPlus(){return u(39)},get createPrefixMinus(){return u(40)},get createPrefixIncrement(){return u(45)},get createPrefixDecrement(){return u(46)},get createBitwiseNot(){return u(54)},get createLogicalNot(){return u(53)},get createPostfixIncrement(){return l(45)},get createPostfixDecrement(){return l(46)},createImmediatelyInvokedFunctionExpression:createImmediatelyInvokedFunctionExpression,createImmediatelyInvokedArrowFunction:createImmediatelyInvokedArrowFunction,createVoidZero:createVoidZero,createExportDefault:createExportDefault,createExternalModuleExport:createExternalModuleExport,createTypeCheck:createTypeCheck,createMethodCall:createMethodCall,createGlobalMethodCall:createGlobalMethodCall,createFunctionBindCall:createFunctionBindCall,createFunctionCallCall:createFunctionCallCall,createFunctionApplyCall:createFunctionApplyCall,createArraySliceCall:createArraySliceCall,createArrayConcatCall:createArrayConcatCall,createObjectDefinePropertyCall:createObjectDefinePropertyCall,createReflectGetCall:createReflectGetCall,createReflectSetCall:createReflectSetCall,createPropertyDescriptor:createPropertyDescriptor,createCallBinding:createCallBinding,createAssignmentTargetWrapper:createAssignmentTargetWrapper,inlineExpressions:inlineExpressions,getInternalName:getInternalName,getLocalName:getLocalName,getExportName:getExportName,getDeclarationName:getDeclarationName,getNamespaceMemberName:getNamespaceMemberName,getExternalModuleOrNamespaceExportName:getExternalModuleOrNamespaceExportName,restoreOuterExpressions:restoreOuterExpressions,restoreEnclosingLabel:restoreEnclosingLabel,createUseStrictPrologue:createUseStrictPrologue,copyPrologue:copyPrologue,copyStandardPrologue:copyStandardPrologue,copyCustomPrologue:copyCustomPrologue,ensureUseStrict:ensureUseStrict,liftToBlock:liftToBlock,mergeLexicalEnvironment:mergeLexicalEnvironment,updateModifiers:updateModifiers};return y;function createNodeArray(t,r){if(t===undefined||t===e.emptyArray){t=[]}else if(e.isNodeArray(t)){if(r===undefined||t.hasTrailingComma===r){if(t.transformFlags===undefined){aggregateChildrenFlags(t)}e.Debug.attachNodeArrayDebugInfo(t);return t}var n=t.slice();n.pos=t.pos;n.end=t.end;n.hasTrailingComma=r;n.transformFlags=t.transformFlags;e.Debug.attachNodeArrayDebugInfo(n);return n}var i=t.length;var a=i>=1&&i<=4?t.slice():t;e.setTextRangePosEnd(a,-1,-1);a.hasTrailingComma=!!r;aggregateChildrenFlags(a);e.Debug.attachNodeArrayDebugInfo(a);return a}function createBaseNode(e){return i.createBaseNode(e)}function createBaseDeclaration(e,t,r){var n=createBaseNode(e);n.decorators=asNodeArray(t);n.modifiers=asNodeArray(r);n.transformFlags|=propagateChildrenFlags(n.decorators)|propagateChildrenFlags(n.modifiers);n.symbol=undefined;n.localSymbol=undefined;n.locals=undefined;n.nextContainer=undefined;return n}function createBaseNamedDeclaration(t,r,n,i){var a=createBaseDeclaration(t,r,n);i=asName(i);a.name=i;if(i){switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=propagateIdentifierNameFlags(i);break}default:a.transformFlags|=propagateChildFlags(i);break}}return a}function createBaseGenericNamedDeclaration(e,t,r,n,i){var a=createBaseNamedDeclaration(e,t,r,n);a.typeParameters=asNodeArray(i);a.transformFlags|=propagateChildrenFlags(a.typeParameters);if(i)a.transformFlags|=1;return a}function createBaseSignatureDeclaration(e,t,r,n,i,a,s){var o=createBaseGenericNamedDeclaration(e,t,r,n,i);o.parameters=createNodeArray(a);o.type=s;o.transformFlags|=propagateChildrenFlags(o.parameters)|propagateChildFlags(o.type);if(s)o.transformFlags|=1;return o}function updateBaseSignatureDeclaration(e,t){if(t.typeArguments)e.typeArguments=t.typeArguments;return a(e,t)}function createBaseFunctionLikeDeclaration(e,t,r,n,i,a,s,o){var c=createBaseSignatureDeclaration(e,t,r,n,i,a,s);c.body=o;c.transformFlags|=propagateChildFlags(c.body)&~16777216;if(!o)c.transformFlags|=1;return c}function updateBaseFunctionLikeDeclaration(e,t){if(t.exclamationToken)e.exclamationToken=t.exclamationToken;if(t.typeArguments)e.typeArguments=t.typeArguments;return updateBaseSignatureDeclaration(e,t)}function createBaseInterfaceOrClassLikeDeclaration(e,t,r,n,i,a){var s=createBaseGenericNamedDeclaration(e,t,r,n,i);s.heritageClauses=asNodeArray(a);s.transformFlags|=propagateChildrenFlags(s.heritageClauses);return s}function createBaseClassLikeDeclaration(e,t,r,n,i,a,s){var o=createBaseInterfaceOrClassLikeDeclaration(e,t,r,n,i,a);o.members=createNodeArray(s);o.transformFlags|=propagateChildrenFlags(o.members);return o}function createBaseBindingLikeDeclaration(e,t,r,n,i){var a=createBaseNamedDeclaration(e,t,r,n);a.initializer=i;a.transformFlags|=propagateChildFlags(a.initializer);return a}function createBaseVariableLikeDeclaration(e,t,r,n,i,a){var s=createBaseBindingLikeDeclaration(e,t,r,n,a);s.type=i;s.transformFlags|=propagateChildFlags(i);if(i)s.transformFlags|=1;return s}function createBaseLiteral(e,t){var r=createBaseToken(e);r.text=t;return r}function createNumericLiteral(e,t){if(t===void 0){t=0}var r=createBaseLiteral(8,typeof e==="number"?e+"":e);r.numericLiteralFlags=t;if(t&384)r.transformFlags|=512;return r}function createBigIntLiteral(t){var r=createBaseLiteral(9,typeof t==="string"?t:e.pseudoBigIntToString(t)+"n");r.transformFlags|=4;return r}function createBaseStringLiteral(e,t){var r=createBaseLiteral(10,e);r.singleQuote=t;return r}function createStringLiteral(e,t,r){var n=createBaseStringLiteral(e,t);n.hasExtendedUnicodeEscape=r;if(r)n.transformFlags|=512;return n}function createStringLiteralFromNode(t){var r=createBaseStringLiteral(e.getTextOfIdentifierOrLiteral(t),undefined);r.textSourceNode=t;return r}function createRegularExpressionLiteral(e){var t=createBaseLiteral(13,e);return t}function createLiteralLikeNode(e,t){switch(e){case 8:return createNumericLiteral(t,0);case 9:return createBigIntLiteral(t);case 10:return createStringLiteral(t,undefined);case 11:return createJsxText(t,false);case 12:return createJsxText(t,true);case 13:return createRegularExpressionLiteral(t);case 14:return createTemplateLiteralLikeNode(e,t,undefined,0)}}function createBaseIdentifier(t,r){if(r===undefined&&t){r=e.stringToToken(t)}if(r===79){r=undefined}var n=i.createBaseIdentifierNode(79);n.originalKeywordKind=r;n.escapedText=e.escapeLeadingUnderscores(t);return n}function createBaseGeneratedIdentifier(e,r){var n=createBaseIdentifier(e,undefined);n.autoGenerateFlags=r;n.autoGenerateId=t;t++;return n}function createIdentifier(e,t,r){var n=createBaseIdentifier(e,r);if(t){n.typeArguments=createNodeArray(t)}if(n.originalKeywordKind===131){n.transformFlags|=16777216}return n}function updateIdentifier(t,r){return t.typeArguments!==r?a(createIdentifier(e.idText(t),r),t):t}function createTempVariable(e,t){var r=1;if(t)r|=8;var n=createBaseGeneratedIdentifier("",r);if(e){e(n)}return n}function createLoopVariable(e){var t=2;if(e)t|=8;return createBaseGeneratedIdentifier("",t)}function createUniqueName(t,r){if(r===void 0){r=0}e.Debug.assert(!(r&7),"Argument out of range: flags");e.Debug.assert((r&(16|32))!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic");return createBaseGeneratedIdentifier(t,3|r)}function getGeneratedNameForNode(t,r){if(r===void 0){r=0}e.Debug.assert(!(r&7),"Argument out of range: flags");var n=createBaseGeneratedIdentifier(t&&e.isIdentifier(t)?e.idText(t):"",4|r);n.original=t;return n}function createPrivateIdentifier(t){if(!e.startsWith(t,"#"))e.Debug.fail("First character of private identifier must be #: "+t);var r=i.createBasePrivateIdentifierNode(80);r.escapedText=e.escapeLeadingUnderscores(t);r.transformFlags|=8388608;return r}function createBaseToken(e){return i.createBaseTokenNode(e)}function createToken(t){e.Debug.assert(t>=0&&t<=158,"Invalid token");e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals.");e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals.");e.Debug.assert(t!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var r=createBaseToken(t);var n=0;switch(t){case 130:n=128|64;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:n=1;break;case 106:n=512|33554432;break;case 124:n=512;break;case 108:n=8192;break}if(n){r.transformFlags|=n}return r}function createSuper(){return createToken(106)}function createThis(){return createToken(108)}function createNull(){return createToken(104)}function createTrue(){return createToken(110)}function createFalse(){return createToken(95)}function createModifier(e){return createToken(e)}function createModifiersFromModifierFlags(e){var t=[];if(e&1){t.push(createModifier(93))}if(e&2){t.push(createModifier(134))}if(e&512){t.push(createModifier(88))}if(e&2048){t.push(createModifier(85))}if(e&4){t.push(createModifier(123))}if(e&8){t.push(createModifier(121))}if(e&16){t.push(createModifier(122))}if(e&128){t.push(createModifier(126))}if(e&32){t.push(createModifier(124))}if(e&16384){t.push(createModifier(157))}if(e&64){t.push(createModifier(143))}if(e&256){t.push(createModifier(130))}return t}function createQualifiedName(e,t){var r=createBaseNode(159);r.left=e;r.right=asName(t);r.transformFlags|=propagateChildFlags(r.left)|propagateIdentifierNameFlags(r.right);return r}function updateQualifiedName(e,t,r){return e.left!==t||e.right!==r?a(createQualifiedName(t,r),e):e}function createComputedPropertyName(e){var t=createBaseNode(160);t.expression=s().parenthesizeExpressionOfComputedPropertyName(e);t.transformFlags|=propagateChildFlags(t.expression)|512|65536;return t}function updateComputedPropertyName(e,t){return e.expression!==t?a(createComputedPropertyName(t),e):e}function createTypeParameterDeclaration(e,t,r){var n=createBaseNamedDeclaration(161,undefined,undefined,e);n.constraint=t;n.default=r;n.transformFlags=1;return n}function updateTypeParameterDeclaration(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?a(createTypeParameterDeclaration(t,r,n),e):e}function createParameterDeclaration(t,r,n,i,a,o,c){var u=createBaseVariableLikeDeclaration(162,t,r,i,o,c&&s().parenthesizeExpressionForDisallowedComma(c));u.dotDotDotToken=n;u.questionToken=a;if(e.isThisIdentifier(u.name)){u.transformFlags=1}else{u.transformFlags|=propagateChildFlags(u.dotDotDotToken)|propagateChildFlags(u.questionToken);if(a)u.transformFlags|=1;if(e.modifiersToFlags(u.modifiers)&16476)u.transformFlags|=4096;if(c||n)u.transformFlags|=512}return u}function updateParameterDeclaration(e,t,r,n,i,s,o,c){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==s||e.type!==o||e.initializer!==c?a(createParameterDeclaration(t,r,n,i,s,o,c),e):e}function createDecorator(e){var t=createBaseNode(163);t.expression=s().parenthesizeLeftSideOfAccess(e);t.transformFlags|=propagateChildFlags(t.expression)|1|4096;return t}function updateDecorator(e,t){return e.expression!==t?a(createDecorator(t),e):e}function createPropertySignature(e,t,r,n){var i=createBaseNamedDeclaration(164,undefined,e,t);i.type=n;i.questionToken=r;i.transformFlags=1;return i}function updatePropertySignature(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?a(createPropertySignature(t,r,n,i),e):e}function createPropertyDeclaration(t,r,n,i,a,s){var o=createBaseVariableLikeDeclaration(165,t,r,n,a,s);o.questionToken=i&&e.isQuestionToken(i)?i:undefined;o.exclamationToken=i&&e.isExclamationToken(i)?i:undefined;o.transformFlags|=propagateChildFlags(o.questionToken)|propagateChildFlags(o.exclamationToken)|8388608;if(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer){o.transformFlags|=4096}if(i||e.modifiersToFlags(o.modifiers)&2){o.transformFlags|=1}return o}function updatePropertyDeclaration(t,r,n,i,s,o,c){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(s!==undefined&&e.isQuestionToken(s)?s:undefined)||t.exclamationToken!==(s!==undefined&&e.isExclamationToken(s)?s:undefined)||t.type!==o||t.initializer!==c?a(createPropertyDeclaration(r,n,i,s,o,c),t):t}function createMethodSignature(e,t,r,n,i,a){var s=createBaseSignatureDeclaration(166,undefined,e,t,n,i,a);s.questionToken=r;s.transformFlags=1;return s}function updateMethodSignature(e,t,r,n,i,a,s){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==s?updateBaseSignatureDeclaration(createMethodSignature(t,r,n,i,a,s),e):e}function createMethodDeclaration(t,r,n,i,a,s,o,c,u){var l=createBaseFunctionLikeDeclaration(167,t,r,i,s,o,c,u);l.asteriskToken=n;l.questionToken=a;l.transformFlags|=propagateChildFlags(l.asteriskToken)|propagateChildFlags(l.questionToken)|512;if(a){l.transformFlags|=1}if(e.modifiersToFlags(l.modifiers)&256){if(n){l.transformFlags|=64}else{l.transformFlags|=128}}else if(n){l.transformFlags|=1024}return l}function updateMethodDeclaration(e,t,r,n,i,a,s,o,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==s||e.parameters!==o||e.type!==c||e.body!==u?updateBaseFunctionLikeDeclaration(createMethodDeclaration(t,r,n,i,a,s,o,c,u),e):e}function createClassStaticBlockDeclaration(e,t,r){var n=createBaseGenericNamedDeclaration(168,e,t,undefined,undefined);n.body=r;n.transformFlags=propagateChildFlags(r)|8388608;return n}function updateClassStaticBlockDeclaration(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?a(createClassStaticBlockDeclaration(t,r,n),e):e}function createConstructorDeclaration(e,t,r,n){var i=createBaseFunctionLikeDeclaration(169,e,t,undefined,undefined,r,undefined,n);i.transformFlags|=512;return i}function updateConstructorDeclaration(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?updateBaseFunctionLikeDeclaration(createConstructorDeclaration(t,r,n,i),e):e}function createGetAccessorDeclaration(e,t,r,n,i,a){return createBaseFunctionLikeDeclaration(170,e,t,r,undefined,n,i,a)}function updateGetAccessorDeclaration(e,t,r,n,i,a,s){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==s?updateBaseFunctionLikeDeclaration(createGetAccessorDeclaration(t,r,n,i,a,s),e):e}function createSetAccessorDeclaration(e,t,r,n,i){return createBaseFunctionLikeDeclaration(171,e,t,r,undefined,n,undefined,i)}function updateSetAccessorDeclaration(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?updateBaseFunctionLikeDeclaration(createSetAccessorDeclaration(t,r,n,i,a),e):e}function createCallSignature(e,t,r){var n=createBaseSignatureDeclaration(172,undefined,undefined,undefined,e,t,r);n.transformFlags=1;return n}function updateCallSignature(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?updateBaseSignatureDeclaration(createCallSignature(t,r,n),e):e}function createConstructSignature(e,t,r){var n=createBaseSignatureDeclaration(173,undefined,undefined,undefined,e,t,r);n.transformFlags=1;return n}function updateConstructSignature(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?updateBaseSignatureDeclaration(createConstructSignature(t,r,n),e):e}function createIndexSignature(e,t,r,n){var i=createBaseSignatureDeclaration(174,e,t,undefined,undefined,r,n);i.transformFlags=1;return i}function updateIndexSignature(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?updateBaseSignatureDeclaration(createIndexSignature(t,r,n,i),e):e}function createTemplateLiteralTypeSpan(e,t){var r=createBaseNode(197);r.type=e;r.literal=t;r.transformFlags=1;return r}function updateTemplateLiteralTypeSpan(e,t,r){return e.type!==t||e.literal!==r?a(createTemplateLiteralTypeSpan(t,r),e):e}function createKeywordTypeNode(e){return createToken(e)}function createTypePredicateNode(e,t,r){var n=createBaseNode(175);n.assertsModifier=e;n.parameterName=asName(t);n.type=r;n.transformFlags=1;return n}function updateTypePredicateNode(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?a(createTypePredicateNode(t,r,n),e):e}function createTypeReferenceNode(e,t){var r=createBaseNode(176);r.typeName=asName(e);r.typeArguments=t&&s().parenthesizeTypeArguments(createNodeArray(t));r.transformFlags=1;return r}function updateTypeReferenceNode(e,t,r){return e.typeName!==t||e.typeArguments!==r?a(createTypeReferenceNode(t,r),e):e}function createFunctionTypeNode(e,t,r){var n=createBaseSignatureDeclaration(177,undefined,undefined,undefined,e,t,r);n.transformFlags=1;return n}function updateFunctionTypeNode(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?updateBaseSignatureDeclaration(createFunctionTypeNode(t,r,n),e):e}function createConstructorTypeNode(){var t=[];for(var r=0;r0;default:return true}}function createCallBinding(t,r,n,i){if(i===void 0){i=false}var a=e.skipOuterExpressions(t,15);var o;var c;if(e.isSuperProperty(a)){o=createThis();c=a}else if(e.isSuperKeyword(a)){o=createThis();c=n!==undefined&&n<2?e.setTextRange(createIdentifier("_super"),a):a}else if(e.getEmitFlags(a)&4096){o=createVoidZero();c=s().parenthesizeLeftSideOfAccess(a)}else if(e.isPropertyAccessExpression(a)){if(shouldBeCapturedInTempVariable(a.expression,i)){o=createTempVariable(r);c=createPropertyAccessExpression(e.setTextRange(y.createAssignment(o,a.expression),a.expression),a.name);e.setTextRange(c,a)}else{o=a.expression;c=a}}else if(e.isElementAccessExpression(a)){if(shouldBeCapturedInTempVariable(a.expression,i)){o=createTempVariable(r);c=createElementAccessExpression(e.setTextRange(y.createAssignment(o,a.expression),a.expression),a.argumentExpression);e.setTextRange(c,a)}else{o=a.expression;c=a}}else{o=createVoidZero();c=s().parenthesizeLeftSideOfAccess(t)}return{target:c,thisArg:o}}function createAssignmentTargetWrapper(e,t){return createPropertyAccessExpression(createParenthesizedExpression(createObjectLiteralExpression([createSetAccessorDeclaration(undefined,undefined,"value",[createParameterDeclaration(undefined,undefined,undefined,e,undefined,undefined,undefined)],createBlock([createExpressionStatement(t)]))])),"value")}function inlineExpressions(t){return t.length>10?createCommaListExpression(t):e.reduceLeft(t,y.createComma)}function getName(t,r,n,i){if(i===void 0){i=0}var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var s=e.setParent(e.setTextRange(cloneNode(a),a),a.parent);i|=e.getEmitFlags(a);if(!n)i|=48;if(!r)i|=1536;if(i)e.setEmitFlags(s,i);return s}return getGeneratedNameForNode(t)}function getInternalName(e,t,r){return getName(e,t,r,16384|32768)}function getLocalName(e,t,r){return getName(e,t,r,16384)}function getExportName(e,t,r){return getName(e,t,r,8192)}function getDeclarationName(e,t,r){return getName(e,t,r)}function getNamespaceMemberName(t,r,n,i){var a=createPropertyAccessExpression(t,e.nodeIsSynthesized(r)?r:cloneNode(r));e.setTextRange(a,r);var s=0;if(!i)s|=48;if(!n)s|=1536;if(s)e.setEmitFlags(a,s);return a}function getExternalModuleOrNamespaceExportName(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1)){return getNamespaceMemberName(t,getName(r),n,i)}return getExportName(r,n,i)}function copyPrologue(e,t,r,n){var i=copyStandardPrologue(e,t,r);return copyCustomPrologue(e,t,i,n)}function isUseStrictPrologue(t){return e.isStringLiteral(t.expression)&&t.expression.text==="use strict"}function createUseStrictPrologue(){return e.startOnNewLine(createExpressionStatement(createStringLiteral("use strict")))}function copyStandardPrologue(t,r,n){e.Debug.assert(r.length===0,"Prologue directives should be at the first statement in the target statements array");var i=false;var a=0;var s=t.length;while(au){p.splice.apply(p,n([s,0],r.slice(u,l),false))}if(u>c){p.splice.apply(p,n([a,0],r.slice(c,u),false))}if(c>o){p.splice.apply(p,n([i,0],r.slice(o,c),false))}if(o>0){if(i===0){p.splice.apply(p,n([0,0],r.slice(0,o),false))}else{var d=new e.Map;for(var f=0;f=0;f--){var g=r[f];if(!d.has(g.expression.text)){p.unshift(g)}}}}if(e.isNodeArray(t)){return e.setTextRange(createNodeArray(p,t.hasTrailingComma),t)}return t}function updateModifiers(t,r){var n;if(typeof r==="number"){r=createModifiersFromModifierFlags(r)}return e.isParameter(t)?updateParameterDeclaration(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?updatePropertySignature(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?updatePropertyDeclaration(t,t.decorators,r,t.name,(n=t.questionToken)!==null&&n!==void 0?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?updateMethodSignature(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?updateMethodDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?updateConstructorDeclaration(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?updateGetAccessorDeclaration(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?updateSetAccessorDeclaration(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?updateIndexSignature(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?updateFunctionExpression(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?updateArrowFunction(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?updateClassExpression(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?updateVariableStatement(t,r,t.declarationList):e.isFunctionDeclaration(t)?updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?updateEnumDeclaration(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?updateModuleDeclaration(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?updateImportDeclaration(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?updateExportAssignment(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?updateExportDeclaration(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}function asNodeArray(e){return e?createNodeArray(e):undefined}function asName(e){return typeof e==="string"?createIdentifier(e):e}function asExpression(e){return typeof e==="string"?createStringLiteral(e):typeof e==="number"?createNumericLiteral(e):typeof e==="boolean"?e?createTrue():createFalse():e}function asToken(e){return typeof e==="number"?createToken(e):e}function asEmbeddedStatement(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(setOriginalNode(createEmptyStatement(),t),t):t}}e.createNodeFactory=createNodeFactory;function updateWithoutOriginal(t,r){if(t!==r){e.setTextRange(t,r)}return t}function updateWithOriginal(t,r){if(t!==r){setOriginalNode(t,r);e.setTextRange(t,r)}return t}function getDefaultTagNameForKind(t){switch(t){case 338:return"type";case 336:return"returns";case 337:return"this";case 334:return"enum";case 325:return"author";case 327:return"class";case 328:return"public";case 329:return"private";case 330:return"protected";case 331:return"readonly";case 332:return"override";case 339:return"template";case 340:return"typedef";case 335:return"param";case 342:return"prop";case 333:return"callback";case 323:return"augments";case 324:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(t))}}var i;var a={};function getCookedText(t,r){if(!i){i=e.createScanner(99,false,0)}switch(t){case 14:i.setText("`"+r+"`");break;case 15:i.setText("`"+r+"${");break;case 16:i.setText("}"+r+"${");break;case 17:i.setText("}"+r+"`");break}var n=i.scan();if(n===19){n=i.reScanTemplateToken(false)}if(i.isUnterminated()){i.setText(undefined);return a}var s;switch(n){case 14:case 15:case 16:case 17:s=i.getTokenValue();break}if(s===undefined||i.scan()!==1){i.setText(undefined);return a}i.setText(undefined);return s}function propagateIdentifierNameFlags(e){return propagateChildFlags(e)&~16777216}function propagatePropertyNameFlagsOfChild(e,t){return t|e.transformFlags&33562624}function propagateChildFlags(t){if(!t)return 0;var r=t.transformFlags&~getTransformFlagsSubtreeExclusions(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?propagatePropertyNameFlagsOfChild(t.name,r):r}function propagateChildrenFlags(e){return e?e.transformFlags:0}function aggregateChildrenFlags(e){var t=0;for(var r=0,n=e;r=175&&e<=198){return-2}switch(e){case 206:case 207:case 202:return 536887296;case 259:return 589443072;case 162:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680;case 199:case 200:return 536887296;case 209:case 227:case 345:case 210:case 106:return 536870912;case 204:case 205:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=getTransformFlagsSubtreeExclusions;var s=e.createBaseNodeFactory();function makeSynthetic(e){e.flags|=8;return e}var o={createBaseSourceFileNode:function(e){return makeSynthetic(s.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return makeSynthetic(s.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return makeSynthetic(s.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return makeSynthetic(s.createBaseTokenNode(e))},createBaseNode:function(e){return makeSynthetic(s.createBaseNode(e))}};e.factory=createNodeFactory(4,o);function createUnparsedSourceFile(t,r,n){var i;var a;var s;var o;var c;var u;var l;var p;var d;var f;if(!e.isString(t)){e.Debug.assert(r==="js"||r==="dts");s=(r==="js"?t.javascriptPath:t.declarationPath)||"";u=r==="js"?t.javascriptMapPath:t.declarationMapPath;p=function(){return r==="js"?t.javascriptText:t.declarationText};d=function(){return r==="js"?t.javascriptMapText:t.declarationMapText};c=function(){return p().length};if(t.buildInfo&&t.buildInfo.bundle){e.Debug.assert(n===undefined||typeof n==="boolean");i=n;a=r==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts;f=t.oldFileOfCurrentEmit}}else{s="";o=t;c=t.length;u=r;l=n}var m=f?parseOldFileOfCurrentEmit(e.Debug.assertDefined(a)):parseUnparsedSourceFile(a,i,c);m.fileName=s;m.sourceMapPath=u;m.oldFileOfCurrentEmit=f;if(p&&d){Object.defineProperty(m,"text",{get:p});Object.defineProperty(m,"sourceMapText",{get:d})}else{e.Debug.assert(!f);m.text=o!==null&&o!==void 0?o:"";m.sourceMapText=l}return m}e.createUnparsedSourceFile=createUnparsedSourceFile;function parseUnparsedSourceFile(t,r,n){var i;var a;var s;var o;var c;var u;var l;var p;for(var d=0,f=t?t.sections:e.emptyArray;d0){a[c-o]=u}}if(o>0){a.length-=o}}e.moveEmitHelpers=moveEmitHelpers;function ignoreSourceNewlines(e){getOrCreateEmitNode(e).flags|=134217728;return e}e.ignoreSourceNewlines=ignoreSourceNewlines})(u||(u={}));var u;(function(e){function createEmitHelperFactory(t){var r=t.factory;var i=e.memoize(function(){return e.setEmitFlags(r.createTrue(),268435456)});var a=e.memoize(function(){return e.setEmitFlags(r.createFalse(),268435456)});return{getUnscopedHelperName:getUnscopedHelperName,createDecorateHelper:createDecorateHelper,createMetadataHelper:createMetadataHelper,createParamHelper:createParamHelper,createAssignHelper:createAssignHelper,createAwaitHelper:createAwaitHelper,createAsyncGeneratorHelper:createAsyncGeneratorHelper,createAsyncDelegatorHelper:createAsyncDelegatorHelper,createAsyncValuesHelper:createAsyncValuesHelper,createRestHelper:createRestHelper,createAwaiterHelper:createAwaiterHelper,createExtendsHelper:createExtendsHelper,createTemplateObjectHelper:createTemplateObjectHelper,createSpreadArrayHelper:createSpreadArrayHelper,createValuesHelper:createValuesHelper,createReadHelper:createReadHelper,createGeneratorHelper:createGeneratorHelper,createCreateBindingHelper:createCreateBindingHelper,createImportStarHelper:createImportStarHelper,createImportStarCallbackHelper:createImportStarCallbackHelper,createImportDefaultHelper:createImportDefaultHelper,createExportStarHelper:createExportStarHelper,createClassPrivateFieldGetHelper:createClassPrivateFieldGetHelper,createClassPrivateFieldSetHelper:createClassPrivateFieldSetHelper};function getUnscopedHelperName(t){return e.setEmitFlags(r.createIdentifier(t),4096|2)}function createDecorateHelper(n,i,a,s){t.requestEmitHelper(e.decorateHelper);var o=[];o.push(r.createArrayLiteralExpression(n,true));o.push(i);if(a){o.push(a);if(s){o.push(s)}}return r.createCallExpression(getUnscopedHelperName("__decorate"),undefined,o)}function createMetadataHelper(n,i){t.requestEmitHelper(e.metadataHelper);return r.createCallExpression(getUnscopedHelperName("__metadata"),undefined,[r.createStringLiteral(n),i])}function createParamHelper(n,i,a){t.requestEmitHelper(e.paramHelper);return e.setTextRange(r.createCallExpression(getUnscopedHelperName("__param"),undefined,[r.createNumericLiteral(i+""),n]),a)}function createAssignHelper(n){if(t.getCompilerOptions().target>=2){return r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),undefined,n)}t.requestEmitHelper(e.assignHelper);return r.createCallExpression(getUnscopedHelperName("__assign"),undefined,n)}function createAwaitHelper(n){t.requestEmitHelper(e.awaitHelper);return r.createCallExpression(getUnscopedHelperName("__await"),undefined,[n])}function createAsyncGeneratorHelper(n,i){t.requestEmitHelper(e.awaitHelper);t.requestEmitHelper(e.asyncGeneratorHelper);(n.emitNode||(n.emitNode={})).flags|=262144|524288;return r.createCallExpression(getUnscopedHelperName("__asyncGenerator"),undefined,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])}function createAsyncDelegatorHelper(n){t.requestEmitHelper(e.awaitHelper);t.requestEmitHelper(e.asyncDelegator);return r.createCallExpression(getUnscopedHelperName("__asyncDelegator"),undefined,[n])}function createAsyncValuesHelper(n){t.requestEmitHelper(e.asyncValues);return r.createCallExpression(getUnscopedHelperName("__asyncValues"),undefined,[n])}function createRestHelper(n,i,a,s){t.requestEmitHelper(e.restHelper);var o=[];var c=0;for(var u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'};e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:false,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'};e.paramHelper={name:"typescript:param",importName:"__param",scoped:false,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:false,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"};e.awaitHelper={name:"typescript:await",importName:"__await",scoped:false,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"};e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:false,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'};e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:false,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'};e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:false,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'};e.restHelper={name:"typescript:rest",importName:"__rest",scoped:false,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'};e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:false,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:false,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'};e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:false,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'};e.readHelper={name:"typescript:read",importName:"__read",scoped:false,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'};e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:false,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"};e.valuesHelper={name:"typescript:values",importName:"__values",scoped:false,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'};e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:false,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:false,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"};e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:false,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'};e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:false,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'};e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:false,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'};e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:false,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'};e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:false,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'};e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:false,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'};var t;function getAllUnscopedEmitHelpers(){return t||(t=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(e){return e.name}))}e.getAllUnscopedEmitHelpers=getAllUnscopedEmitHelpers;e.asyncSuperHelper={name:"typescript:async-super",scoped:true,text:helperString(a(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")};e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:true,text:helperString(a(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")};function isCallToHelper(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&(e.getEmitFlags(t.expression)&4096)!==0&&t.expression.escapedText===r}e.isCallToHelper=isCallToHelper})(u||(u={}));var u;(function(e){function isNumericLiteral(e){return e.kind===8}e.isNumericLiteral=isNumericLiteral;function isBigIntLiteral(e){return e.kind===9}e.isBigIntLiteral=isBigIntLiteral;function isStringLiteral(e){return e.kind===10}e.isStringLiteral=isStringLiteral;function isJsxText(e){return e.kind===11}e.isJsxText=isJsxText;function isRegularExpressionLiteral(e){return e.kind===13}e.isRegularExpressionLiteral=isRegularExpressionLiteral;function isNoSubstitutionTemplateLiteral(e){return e.kind===14}e.isNoSubstitutionTemplateLiteral=isNoSubstitutionTemplateLiteral;function isTemplateHead(e){return e.kind===15}e.isTemplateHead=isTemplateHead;function isTemplateMiddle(e){return e.kind===16}e.isTemplateMiddle=isTemplateMiddle;function isTemplateTail(e){return e.kind===17}e.isTemplateTail=isTemplateTail;function isDotDotDotToken(e){return e.kind===25}e.isDotDotDotToken=isDotDotDotToken;function isCommaToken(e){return e.kind===27}e.isCommaToken=isCommaToken;function isPlusToken(e){return e.kind===39}e.isPlusToken=isPlusToken;function isMinusToken(e){return e.kind===40}e.isMinusToken=isMinusToken;function isAsteriskToken(e){return e.kind===41}e.isAsteriskToken=isAsteriskToken;function isExclamationToken(e){return e.kind===53}e.isExclamationToken=isExclamationToken;function isQuestionToken(e){return e.kind===57}e.isQuestionToken=isQuestionToken;function isColonToken(e){return e.kind===58}e.isColonToken=isColonToken;function isQuestionDotToken(e){return e.kind===28}e.isQuestionDotToken=isQuestionDotToken;function isEqualsGreaterThanToken(e){return e.kind===38}e.isEqualsGreaterThanToken=isEqualsGreaterThanToken;function isIdentifier(e){return e.kind===79}e.isIdentifier=isIdentifier;function isPrivateIdentifier(e){return e.kind===80}e.isPrivateIdentifier=isPrivateIdentifier;function isExportModifier(e){return e.kind===93}e.isExportModifier=isExportModifier;function isAsyncModifier(e){return e.kind===130}e.isAsyncModifier=isAsyncModifier;function isAssertsKeyword(e){return e.kind===128}e.isAssertsKeyword=isAssertsKeyword;function isAwaitKeyword(e){return e.kind===131}e.isAwaitKeyword=isAwaitKeyword;function isReadonlyKeyword(e){return e.kind===143}e.isReadonlyKeyword=isReadonlyKeyword;function isStaticModifier(e){return e.kind===124}e.isStaticModifier=isStaticModifier;function isAbstractModifier(e){return e.kind===126}e.isAbstractModifier=isAbstractModifier;function isSuperKeyword(e){return e.kind===106}e.isSuperKeyword=isSuperKeyword;function isImportKeyword(e){return e.kind===100}e.isImportKeyword=isImportKeyword;function isQualifiedName(e){return e.kind===159}e.isQualifiedName=isQualifiedName;function isComputedPropertyName(e){return e.kind===160}e.isComputedPropertyName=isComputedPropertyName;function isTypeParameterDeclaration(e){return e.kind===161}e.isTypeParameterDeclaration=isTypeParameterDeclaration;function isParameter(e){return e.kind===162}e.isParameter=isParameter;function isDecorator(e){return e.kind===163}e.isDecorator=isDecorator;function isPropertySignature(e){return e.kind===164}e.isPropertySignature=isPropertySignature;function isPropertyDeclaration(e){return e.kind===165}e.isPropertyDeclaration=isPropertyDeclaration;function isMethodSignature(e){return e.kind===166}e.isMethodSignature=isMethodSignature;function isMethodDeclaration(e){return e.kind===167}e.isMethodDeclaration=isMethodDeclaration;function isClassStaticBlockDeclaration(e){return e.kind===168}e.isClassStaticBlockDeclaration=isClassStaticBlockDeclaration;function isConstructorDeclaration(e){return e.kind===169}e.isConstructorDeclaration=isConstructorDeclaration;function isGetAccessorDeclaration(e){return e.kind===170}e.isGetAccessorDeclaration=isGetAccessorDeclaration;function isSetAccessorDeclaration(e){return e.kind===171}e.isSetAccessorDeclaration=isSetAccessorDeclaration;function isCallSignatureDeclaration(e){return e.kind===172}e.isCallSignatureDeclaration=isCallSignatureDeclaration;function isConstructSignatureDeclaration(e){return e.kind===173}e.isConstructSignatureDeclaration=isConstructSignatureDeclaration;function isIndexSignatureDeclaration(e){return e.kind===174}e.isIndexSignatureDeclaration=isIndexSignatureDeclaration;function isTypePredicateNode(e){return e.kind===175}e.isTypePredicateNode=isTypePredicateNode;function isTypeReferenceNode(e){return e.kind===176}e.isTypeReferenceNode=isTypeReferenceNode;function isFunctionTypeNode(e){return e.kind===177}e.isFunctionTypeNode=isFunctionTypeNode;function isConstructorTypeNode(e){return e.kind===178}e.isConstructorTypeNode=isConstructorTypeNode;function isTypeQueryNode(e){return e.kind===179}e.isTypeQueryNode=isTypeQueryNode;function isTypeLiteralNode(e){return e.kind===180}e.isTypeLiteralNode=isTypeLiteralNode;function isArrayTypeNode(e){return e.kind===181}e.isArrayTypeNode=isArrayTypeNode;function isTupleTypeNode(e){return e.kind===182}e.isTupleTypeNode=isTupleTypeNode;function isNamedTupleMember(e){return e.kind===195}e.isNamedTupleMember=isNamedTupleMember;function isOptionalTypeNode(e){return e.kind===183}e.isOptionalTypeNode=isOptionalTypeNode;function isRestTypeNode(e){return e.kind===184}e.isRestTypeNode=isRestTypeNode;function isUnionTypeNode(e){return e.kind===185}e.isUnionTypeNode=isUnionTypeNode;function isIntersectionTypeNode(e){return e.kind===186}e.isIntersectionTypeNode=isIntersectionTypeNode;function isConditionalTypeNode(e){return e.kind===187}e.isConditionalTypeNode=isConditionalTypeNode;function isInferTypeNode(e){return e.kind===188}e.isInferTypeNode=isInferTypeNode;function isParenthesizedTypeNode(e){return e.kind===189}e.isParenthesizedTypeNode=isParenthesizedTypeNode;function isThisTypeNode(e){return e.kind===190}e.isThisTypeNode=isThisTypeNode;function isTypeOperatorNode(e){return e.kind===191}e.isTypeOperatorNode=isTypeOperatorNode;function isIndexedAccessTypeNode(e){return e.kind===192}e.isIndexedAccessTypeNode=isIndexedAccessTypeNode;function isMappedTypeNode(e){return e.kind===193}e.isMappedTypeNode=isMappedTypeNode;function isLiteralTypeNode(e){return e.kind===194}e.isLiteralTypeNode=isLiteralTypeNode;function isImportTypeNode(e){return e.kind===198}e.isImportTypeNode=isImportTypeNode;function isTemplateLiteralTypeSpan(e){return e.kind===197}e.isTemplateLiteralTypeSpan=isTemplateLiteralTypeSpan;function isTemplateLiteralTypeNode(e){return e.kind===196}e.isTemplateLiteralTypeNode=isTemplateLiteralTypeNode;function isObjectBindingPattern(e){return e.kind===199}e.isObjectBindingPattern=isObjectBindingPattern;function isArrayBindingPattern(e){return e.kind===200}e.isArrayBindingPattern=isArrayBindingPattern;function isBindingElement(e){return e.kind===201}e.isBindingElement=isBindingElement;function isArrayLiteralExpression(e){return e.kind===202}e.isArrayLiteralExpression=isArrayLiteralExpression;function isObjectLiteralExpression(e){return e.kind===203}e.isObjectLiteralExpression=isObjectLiteralExpression;function isPropertyAccessExpression(e){return e.kind===204}e.isPropertyAccessExpression=isPropertyAccessExpression;function isElementAccessExpression(e){return e.kind===205}e.isElementAccessExpression=isElementAccessExpression;function isCallExpression(e){return e.kind===206}e.isCallExpression=isCallExpression;function isNewExpression(e){return e.kind===207}e.isNewExpression=isNewExpression;function isTaggedTemplateExpression(e){return e.kind===208}e.isTaggedTemplateExpression=isTaggedTemplateExpression;function isTypeAssertionExpression(e){return e.kind===209}e.isTypeAssertionExpression=isTypeAssertionExpression;function isParenthesizedExpression(e){return e.kind===210}e.isParenthesizedExpression=isParenthesizedExpression;function isFunctionExpression(e){return e.kind===211}e.isFunctionExpression=isFunctionExpression;function isArrowFunction(e){return e.kind===212}e.isArrowFunction=isArrowFunction;function isDeleteExpression(e){return e.kind===213}e.isDeleteExpression=isDeleteExpression;function isTypeOfExpression(e){return e.kind===214}e.isTypeOfExpression=isTypeOfExpression;function isVoidExpression(e){return e.kind===215}e.isVoidExpression=isVoidExpression;function isAwaitExpression(e){return e.kind===216}e.isAwaitExpression=isAwaitExpression;function isPrefixUnaryExpression(e){return e.kind===217}e.isPrefixUnaryExpression=isPrefixUnaryExpression;function isPostfixUnaryExpression(e){return e.kind===218}e.isPostfixUnaryExpression=isPostfixUnaryExpression;function isBinaryExpression(e){return e.kind===219}e.isBinaryExpression=isBinaryExpression;function isConditionalExpression(e){return e.kind===220}e.isConditionalExpression=isConditionalExpression;function isTemplateExpression(e){return e.kind===221}e.isTemplateExpression=isTemplateExpression;function isYieldExpression(e){return e.kind===222}e.isYieldExpression=isYieldExpression;function isSpreadElement(e){return e.kind===223}e.isSpreadElement=isSpreadElement;function isClassExpression(e){return e.kind===224}e.isClassExpression=isClassExpression;function isOmittedExpression(e){return e.kind===225}e.isOmittedExpression=isOmittedExpression;function isExpressionWithTypeArguments(e){return e.kind===226}e.isExpressionWithTypeArguments=isExpressionWithTypeArguments;function isAsExpression(e){return e.kind===227}e.isAsExpression=isAsExpression;function isNonNullExpression(e){return e.kind===228}e.isNonNullExpression=isNonNullExpression;function isMetaProperty(e){return e.kind===229}e.isMetaProperty=isMetaProperty;function isSyntheticExpression(e){return e.kind===230}e.isSyntheticExpression=isSyntheticExpression;function isPartiallyEmittedExpression(e){return e.kind===345}e.isPartiallyEmittedExpression=isPartiallyEmittedExpression;function isCommaListExpression(e){return e.kind===346}e.isCommaListExpression=isCommaListExpression;function isTemplateSpan(e){return e.kind===231}e.isTemplateSpan=isTemplateSpan;function isSemicolonClassElement(e){return e.kind===232}e.isSemicolonClassElement=isSemicolonClassElement;function isBlock(e){return e.kind===233}e.isBlock=isBlock;function isVariableStatement(e){return e.kind===235}e.isVariableStatement=isVariableStatement;function isEmptyStatement(e){return e.kind===234}e.isEmptyStatement=isEmptyStatement;function isExpressionStatement(e){return e.kind===236}e.isExpressionStatement=isExpressionStatement;function isIfStatement(e){return e.kind===237}e.isIfStatement=isIfStatement;function isDoStatement(e){return e.kind===238}e.isDoStatement=isDoStatement;function isWhileStatement(e){return e.kind===239}e.isWhileStatement=isWhileStatement;function isForStatement(e){return e.kind===240}e.isForStatement=isForStatement;function isForInStatement(e){return e.kind===241}e.isForInStatement=isForInStatement;function isForOfStatement(e){return e.kind===242}e.isForOfStatement=isForOfStatement;function isContinueStatement(e){return e.kind===243}e.isContinueStatement=isContinueStatement;function isBreakStatement(e){return e.kind===244}e.isBreakStatement=isBreakStatement;function isReturnStatement(e){return e.kind===245}e.isReturnStatement=isReturnStatement;function isWithStatement(e){return e.kind===246}e.isWithStatement=isWithStatement;function isSwitchStatement(e){return e.kind===247}e.isSwitchStatement=isSwitchStatement;function isLabeledStatement(e){return e.kind===248}e.isLabeledStatement=isLabeledStatement;function isThrowStatement(e){return e.kind===249}e.isThrowStatement=isThrowStatement;function isTryStatement(e){return e.kind===250}e.isTryStatement=isTryStatement;function isDebuggerStatement(e){return e.kind===251}e.isDebuggerStatement=isDebuggerStatement;function isVariableDeclaration(e){return e.kind===252}e.isVariableDeclaration=isVariableDeclaration;function isVariableDeclarationList(e){return e.kind===253}e.isVariableDeclarationList=isVariableDeclarationList;function isFunctionDeclaration(e){return e.kind===254}e.isFunctionDeclaration=isFunctionDeclaration;function isClassDeclaration(e){return e.kind===255}e.isClassDeclaration=isClassDeclaration;function isInterfaceDeclaration(e){return e.kind===256}e.isInterfaceDeclaration=isInterfaceDeclaration;function isTypeAliasDeclaration(e){return e.kind===257}e.isTypeAliasDeclaration=isTypeAliasDeclaration;function isEnumDeclaration(e){return e.kind===258}e.isEnumDeclaration=isEnumDeclaration;function isModuleDeclaration(e){return e.kind===259}e.isModuleDeclaration=isModuleDeclaration;function isModuleBlock(e){return e.kind===260}e.isModuleBlock=isModuleBlock;function isCaseBlock(e){return e.kind===261}e.isCaseBlock=isCaseBlock;function isNamespaceExportDeclaration(e){return e.kind===262}e.isNamespaceExportDeclaration=isNamespaceExportDeclaration;function isImportEqualsDeclaration(e){return e.kind===263}e.isImportEqualsDeclaration=isImportEqualsDeclaration;function isImportDeclaration(e){return e.kind===264}e.isImportDeclaration=isImportDeclaration;function isImportClause(e){return e.kind===265}e.isImportClause=isImportClause;function isNamespaceImport(e){return e.kind===266}e.isNamespaceImport=isNamespaceImport;function isNamespaceExport(e){return e.kind===272}e.isNamespaceExport=isNamespaceExport;function isNamedImports(e){return e.kind===267}e.isNamedImports=isNamedImports;function isImportSpecifier(e){return e.kind===268}e.isImportSpecifier=isImportSpecifier;function isExportAssignment(e){return e.kind===269}e.isExportAssignment=isExportAssignment;function isExportDeclaration(e){return e.kind===270}e.isExportDeclaration=isExportDeclaration;function isNamedExports(e){return e.kind===271}e.isNamedExports=isNamedExports;function isExportSpecifier(e){return e.kind===273}e.isExportSpecifier=isExportSpecifier;function isMissingDeclaration(e){return e.kind===274}e.isMissingDeclaration=isMissingDeclaration;function isNotEmittedStatement(e){return e.kind===344}e.isNotEmittedStatement=isNotEmittedStatement;function isSyntheticReference(e){return e.kind===349}e.isSyntheticReference=isSyntheticReference;function isMergeDeclarationMarker(e){return e.kind===347}e.isMergeDeclarationMarker=isMergeDeclarationMarker;function isEndOfDeclarationMarker(e){return e.kind===348}e.isEndOfDeclarationMarker=isEndOfDeclarationMarker;function isExternalModuleReference(e){return e.kind===275}e.isExternalModuleReference=isExternalModuleReference;function isJsxElement(e){return e.kind===276}e.isJsxElement=isJsxElement;function isJsxSelfClosingElement(e){return e.kind===277}e.isJsxSelfClosingElement=isJsxSelfClosingElement;function isJsxOpeningElement(e){return e.kind===278}e.isJsxOpeningElement=isJsxOpeningElement;function isJsxClosingElement(e){return e.kind===279}e.isJsxClosingElement=isJsxClosingElement;function isJsxFragment(e){return e.kind===280}e.isJsxFragment=isJsxFragment;function isJsxOpeningFragment(e){return e.kind===281}e.isJsxOpeningFragment=isJsxOpeningFragment;function isJsxClosingFragment(e){return e.kind===282}e.isJsxClosingFragment=isJsxClosingFragment;function isJsxAttribute(e){return e.kind===283}e.isJsxAttribute=isJsxAttribute;function isJsxAttributes(e){return e.kind===284}e.isJsxAttributes=isJsxAttributes;function isJsxSpreadAttribute(e){return e.kind===285}e.isJsxSpreadAttribute=isJsxSpreadAttribute;function isJsxExpression(e){return e.kind===286}e.isJsxExpression=isJsxExpression;function isCaseClause(e){return e.kind===287}e.isCaseClause=isCaseClause;function isDefaultClause(e){return e.kind===288}e.isDefaultClause=isDefaultClause;function isHeritageClause(e){return e.kind===289}e.isHeritageClause=isHeritageClause;function isCatchClause(e){return e.kind===290}e.isCatchClause=isCatchClause;function isPropertyAssignment(e){return e.kind===291}e.isPropertyAssignment=isPropertyAssignment;function isShorthandPropertyAssignment(e){return e.kind===292}e.isShorthandPropertyAssignment=isShorthandPropertyAssignment;function isSpreadAssignment(e){return e.kind===293}e.isSpreadAssignment=isSpreadAssignment;function isEnumMember(e){return e.kind===294}e.isEnumMember=isEnumMember;function isUnparsedPrepend(e){return e.kind===296}e.isUnparsedPrepend=isUnparsedPrepend;function isSourceFile(e){return e.kind===300}e.isSourceFile=isSourceFile;function isBundle(e){return e.kind===301}e.isBundle=isBundle;function isUnparsedSource(e){return e.kind===302}e.isUnparsedSource=isUnparsedSource;function isJSDocTypeExpression(e){return e.kind===304}e.isJSDocTypeExpression=isJSDocTypeExpression;function isJSDocNameReference(e){return e.kind===305}e.isJSDocNameReference=isJSDocNameReference;function isJSDocMemberName(e){return e.kind===306}e.isJSDocMemberName=isJSDocMemberName;function isJSDocLink(e){return e.kind===319}e.isJSDocLink=isJSDocLink;function isJSDocLinkCode(e){return e.kind===320}e.isJSDocLinkCode=isJSDocLinkCode;function isJSDocLinkPlain(e){return e.kind===321}e.isJSDocLinkPlain=isJSDocLinkPlain;function isJSDocAllType(e){return e.kind===307}e.isJSDocAllType=isJSDocAllType;function isJSDocUnknownType(e){return e.kind===308}e.isJSDocUnknownType=isJSDocUnknownType;function isJSDocNullableType(e){return e.kind===309}e.isJSDocNullableType=isJSDocNullableType;function isJSDocNonNullableType(e){return e.kind===310}e.isJSDocNonNullableType=isJSDocNonNullableType;function isJSDocOptionalType(e){return e.kind===311}e.isJSDocOptionalType=isJSDocOptionalType;function isJSDocFunctionType(e){return e.kind===312}e.isJSDocFunctionType=isJSDocFunctionType;function isJSDocVariadicType(e){return e.kind===313}e.isJSDocVariadicType=isJSDocVariadicType;function isJSDocNamepathType(e){return e.kind===314}e.isJSDocNamepathType=isJSDocNamepathType;function isJSDoc(e){return e.kind===315}e.isJSDoc=isJSDoc;function isJSDocTypeLiteral(e){return e.kind===317}e.isJSDocTypeLiteral=isJSDocTypeLiteral;function isJSDocSignature(e){return e.kind===318}e.isJSDocSignature=isJSDocSignature;function isJSDocAugmentsTag(e){return e.kind===323}e.isJSDocAugmentsTag=isJSDocAugmentsTag;function isJSDocAuthorTag(e){return e.kind===325}e.isJSDocAuthorTag=isJSDocAuthorTag;function isJSDocClassTag(e){return e.kind===327}e.isJSDocClassTag=isJSDocClassTag;function isJSDocCallbackTag(e){return e.kind===333}e.isJSDocCallbackTag=isJSDocCallbackTag;function isJSDocPublicTag(e){return e.kind===328}e.isJSDocPublicTag=isJSDocPublicTag;function isJSDocPrivateTag(e){return e.kind===329}e.isJSDocPrivateTag=isJSDocPrivateTag;function isJSDocProtectedTag(e){return e.kind===330}e.isJSDocProtectedTag=isJSDocProtectedTag;function isJSDocReadonlyTag(e){return e.kind===331}e.isJSDocReadonlyTag=isJSDocReadonlyTag;function isJSDocOverrideTag(e){return e.kind===332}e.isJSDocOverrideTag=isJSDocOverrideTag;function isJSDocDeprecatedTag(e){return e.kind===326}e.isJSDocDeprecatedTag=isJSDocDeprecatedTag;function isJSDocSeeTag(e){return e.kind===341}e.isJSDocSeeTag=isJSDocSeeTag;function isJSDocEnumTag(e){return e.kind===334}e.isJSDocEnumTag=isJSDocEnumTag;function isJSDocParameterTag(e){return e.kind===335}e.isJSDocParameterTag=isJSDocParameterTag;function isJSDocReturnTag(e){return e.kind===336}e.isJSDocReturnTag=isJSDocReturnTag;function isJSDocThisTag(e){return e.kind===337}e.isJSDocThisTag=isJSDocThisTag;function isJSDocTypeTag(e){return e.kind===338}e.isJSDocTypeTag=isJSDocTypeTag;function isJSDocTemplateTag(e){return e.kind===339}e.isJSDocTemplateTag=isJSDocTemplateTag;function isJSDocTypedefTag(e){return e.kind===340}e.isJSDocTypedefTag=isJSDocTypedefTag;function isJSDocUnknownTag(e){return e.kind===322}e.isJSDocUnknownTag=isJSDocUnknownTag;function isJSDocPropertyTag(e){return e.kind===342}e.isJSDocPropertyTag=isJSDocPropertyTag;function isJSDocImplementsTag(e){return e.kind===324}e.isJSDocImplementsTag=isJSDocImplementsTag;function isSyntaxList(e){return e.kind===343}e.isSyntaxList=isSyntaxList})(u||(u={}));var u;(function(e){function createEmptyExports(e){return e.createExportDeclaration(undefined,undefined,false,e.createNamedExports([]),undefined)}e.createEmptyExports=createEmptyExports;function createMemberAccessForPropertyName(t,r,n,i){if(e.isComputedPropertyName(n)){return e.setTextRange(t.createElementAccessExpression(r,n.expression),i)}else{var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);e.getOrCreateEmitNode(a).flags|=64;return a}}e.createMemberAccessForPropertyName=createMemberAccessForPropertyName;function createReactNamespace(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");e.setParent(n,e.getParseTreeNode(r));return n}function createJsxFactoryExpressionFromEntityName(t,r,n){if(e.isQualifiedName(r)){var i=createJsxFactoryExpressionFromEntityName(t,r.left,n);var a=t.createIdentifier(e.idText(r.right));a.escapedText=r.right.escapedText;return t.createPropertyAccessExpression(i,a)}else{return createReactNamespace(e.idText(r),n)}}function createJsxFactoryExpression(e,t,r,n){return t?createJsxFactoryExpressionFromEntityName(e,t,n):e.createPropertyAccessExpression(createReactNamespace(r,n),"createElement")}e.createJsxFactoryExpression=createJsxFactoryExpression;function createJsxFragmentFactoryExpression(e,t,r,n){return t?createJsxFactoryExpressionFromEntityName(e,t,n):e.createPropertyAccessExpression(createReactNamespace(r,n),"Fragment")}function createExpressionForJsxElement(t,r,n,i,a,s){var o=[n];if(i){o.push(i)}if(a&&a.length>0){if(!i){o.push(t.createNull())}if(a.length>1){for(var c=0,u=a;c0){if(a.length>1){for(var l=0,p=a;l=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){var p=[];for(var d=0,f=l;d0?a[r-1]:undefined;e.Debug.assertEqual(n[r],enter);a[r]=t.onEnter(i[r],c,o);n[r]=nextState(t,enter);return r}t.enter=enter;function left(t,r,n,i,a,s,o){e.Debug.assertEqual(n[r],left);e.Debug.assertIsDefined(t.onLeft);n[r]=nextState(t,left);var c=t.onLeft(i[r].left,a[r],i[r]);if(c){checkCircularity(r,i,c);return pushStack(r,n,i,a,c)}return r}t.left=left;function operator(t,r,n,i,a,s,o){e.Debug.assertEqual(n[r],operator);e.Debug.assertIsDefined(t.onOperator);n[r]=nextState(t,operator);t.onOperator(i[r].operatorToken,a[r],i[r]);return r}t.operator=operator;function right(t,r,n,i,a,s,o){e.Debug.assertEqual(n[r],right);e.Debug.assertIsDefined(t.onRight);n[r]=nextState(t,right);var c=t.onRight(i[r].right,a[r],i[r]);if(c){checkCircularity(r,i,c);return pushStack(r,n,i,a,c)}return r}t.right=right;function exit(t,r,n,i,a,s,o){e.Debug.assertEqual(n[r],exit);n[r]=nextState(t,exit);var c=t.onExit(i[r],a[r]);if(r>0){r--;if(t.foldState){var u=n[r]===exit?"right":"left";a[r]=t.foldState(a[r],c,u)}}else{s.value=c}return r}t.exit=exit;function done(t,r,n,i,a,s,o){e.Debug.assertEqual(n[r],done);return r}t.done=done;function nextState(t,r){switch(r){case enter:if(t.onLeft)return left;case left:if(t.onOperator)return operator;case operator:if(t.onRight)return right;case right:return exit;case exit:return done;case done:return done;default:e.Debug.fail("Invalid state")}}t.nextState=nextState;function pushStack(e,t,r,n,i){e++;t[e]=enter;r[e]=i;n[e]=undefined;return e}function checkCircularity(t,r,n){if(e.Debug.shouldAssert(2)){while(t>=0){e.Debug.assert(r[t]!==n,"Circular traversal detected.");t--}}}})(t||(t={}));var r=function(){function BinaryExpressionStateMachine(e,t,r,n,i,a){this.onEnter=e;this.onLeft=t;this.onOperator=r;this.onRight=n;this.onExit=i;this.foldState=a}return BinaryExpressionStateMachine}();function createBinaryExpressionTrampoline(n,i,a,s,o,c){var u=new r(n,i,a,s,o,c);return trampoline;function trampoline(r,n){var i={value:undefined};var a=[t.enter];var s=[r];var o=[undefined];var c=0;while(a[c]!==t.done){c=a[c](u,c,a,s,o,i,n)}e.Debug.assertEqual(c,0);return i.value}}e.createBinaryExpressionTrampoline=createBinaryExpressionTrampoline})(u||(u={}));var u;(function(e){function setTextRange(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}e.setTextRange=setTextRange})(u||(u={}));var u;(function(e){var t;(function(e){e[e["None"]=0]="None";e[e["Yield"]=1]="Yield";e[e["Await"]=2]="Await";e[e["Type"]=4]="Type";e[e["IgnoreMissingOpenBrace"]=16]="IgnoreMissingOpenBrace";e[e["JSDoc"]=32]="JSDoc"})(t||(t={}));var r;(function(e){e[e["TryParse"]=0]="TryParse";e[e["Lookahead"]=1]="Lookahead";e[e["Reparse"]=2]="Reparse"})(r||(r={}));var i;var a;var s;var o;var c;e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(s||(s=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(a||(a=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(i||(i=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}};e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function visitNode(e,t){return t&&e(t)}function visitNodes(e,t,r){if(r){if(t){return t(r)}for(var n=0,i=r;n=0;--u){i.push(s[u]);a.push(o)}}else{var c=r(s,o);if(c){if(c==="skip")continue;return c}if(s.kind>=159){for(var l=0,p=gatherPossibleChildren(s);l=n.pos});var l=u>=0?e.findIndex(s,function(e){return e.start>=i.pos},u):-1;if(u>=0){e.addRange(v,s,u,l>=0?l:undefined)}speculationHelper(function(){var e=P;P|=32768;r.setTextPos(i.pos);nextToken();while(token()!==1){var n=r.getStartPos();var s=parseListElement(0,parseStatement);a.push(s);if(n===r.getStartPos()){nextToken()}if(o>=0){var c=t.statements[o];if(s.end===c.pos){break}if(s.end>c.pos){o=findNextStatementWithoutAwait(t.statements,o+1)}}}P=e},2);c=o>=0?findNextStatementWithAwait(t.statements,o):-1};while(c!==-1){u()}if(o>=0){var p=t.statements[o];e.addRange(a,t.statements,o);var f=e.findIndex(s,function(e){return e.start>=p.pos});if(f>=0){e.addRange(v,s,f)}}S=n;return d.updateSourceFile(t,e.setTextRange(d.createNodeArray(a),t.statements));function containsPossibleTopLevelAwait(e){return!(e.flags&32768)&&!!(e.transformFlags&16777216)}function findNextStatementWithAwait(e,t){for(var r=t;r116}function isIdentifier(){if(token()===79){return true}if(token()===125&&inYieldContext()){return false}if(token()===131&&inAwaitContext()){return false}return token()>116}function parseExpected(t,r,n){if(n===void 0){n=true}if(token()===t){if(n){nextToken()}return true}if(r){parseErrorAtCurrentToken(r)}else{parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(t))}return false}var w=Object.keys(e.textToKeywordObj).filter(function(e){return e.length>2});function parseErrorForMissingSemicolonAfter(t){var n;if(e.isTaggedTemplateExpression(t)){parseErrorAt(e.skipTrivia(g,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var i=e.isIdentifier(t)?e.idText(t):undefined;if(!i||!e.isIdentifierText(i,_)){parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(26));return}var a=e.skipTrivia(g,t.pos);switch(i){case"const":case"let":case"var":parseErrorAt(a,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":parseErrorForInvalidName(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":parseErrorAt(a,r.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":parseErrorForInvalidName(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":parseErrorForInvalidName(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var s=(n=e.getSpellingSuggestion(i,w,function(e){return e}))!==null&&n!==void 0?n:getSpaceSuggestion(i);if(s){parseErrorAt(a,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,s);return}if(token()===0){return}parseErrorAt(a,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function parseErrorForInvalidName(t,r,n){if(token()===n){parseErrorAtCurrentToken(r)}else{parseErrorAtCurrentToken(t,e.tokenToString(token()))}}function getSpaceSuggestion(t){for(var r=0,n=w;ri.length+2&&e.startsWith(t,i)){return i+" "+t.slice(i.length)}}return undefined}function parseSemicolonAfterPropertyName(t,n,i){if(token()===59&&!r.hasPrecedingLineBreak()){parseErrorAtCurrentToken(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(token()===20){parseErrorAtCurrentToken(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation);nextToken();return}if(n&&!canParseSemicolon()){if(i){parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(26))}else{parseErrorAtCurrentToken(e.Diagnostics.Expected_for_property_initializer)}return}if(tryParseSemicolon()){return}if(i){if(token()===18){parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(26))}return}parseErrorForMissingSemicolonAfter(t)}function parseExpectedJSDoc(t){if(token()===t){nextTokenJSDoc();return true}parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(t));return false}function parseOptional(e){if(token()===e){nextToken();return true}return false}function parseOptionalToken(e){if(token()===e){return parseTokenNode()}return undefined}function parseOptionalTokenJSDoc(e){if(token()===e){return parseTokenNodeJSDoc()}return undefined}function parseExpectedToken(t,r,n){return parseOptionalToken(t)||createMissingNode(t,false,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function parseExpectedTokenJSDoc(t){return parseOptionalTokenJSDoc(t)||createMissingNode(t,false,e.Diagnostics._0_expected,e.tokenToString(t))}function parseTokenNode(){var e=getNodePos();var t=token();nextToken();return finishNode(d.createToken(t),e)}function parseTokenNodeJSDoc(){var e=getNodePos();var t=token();nextTokenJSDoc();return finishNode(d.createToken(t),e)}function canParseSemicolon(){if(token()===26){return true}return token()===19||token()===1||r.hasPrecedingLineBreak()}function tryParseSemicolon(){if(!canParseSemicolon()){return false}if(token()===26){nextToken()}return true}function parseSemicolon(){return tryParseSemicolon()||parseExpected(26)}function createNodeArray(t,n,i,a){var s=d.createNodeArray(t,a);e.setTextRangePosEnd(s,n,i!==null&&i!==void 0?i:r.getStartPos());return s}function finishNode(t,n,i){e.setTextRangePosEnd(t,n,i!==null&&i!==void 0?i:r.getStartPos());if(P){t.flags|=P}if(O){O=false;t.flags|=65536}return t}function createMissingNode(t,n,i,a){if(n){parseErrorAtPosition(r.getStartPos(),0,i,a)}else if(i){parseErrorAtCurrentToken(i,a)}var s=getNodePos();var o=t===79?d.createIdentifier("",undefined,undefined):e.isTemplateLiteralKind(t)?d.createTemplateLiteralLikeNode(t,"","",undefined):t===8?d.createNumericLiteral("",undefined):t===10?d.createStringLiteral("",undefined):t===274?d.createMissingDeclaration():d.createToken(t);return finishNode(o,s)}function internIdentifier(e){var t=x.get(e);if(t===undefined){x.set(e,t=e)}return t}function createIdentifier(t,n,i){if(t){C++;var a=getNodePos();var s=token();var o=internIdentifier(r.getTokenValue());nextTokenWithoutCheck();return finishNode(d.createIdentifier(o,undefined,s),a)}if(token()===80){parseErrorAtCurrentToken(i||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);return createIdentifier(true)}if(token()===0&&r.tryScan(function(){return r.reScanInvalidIdentifier()===79})){return createIdentifier(true)}C++;var c=token()===1;var u=r.isReservedWord();var l=r.getTokenText();var p=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return createMissingNode(79,c,n||p,l)}function parseBindingIdentifier(e){return createIdentifier(isBindingIdentifier(),undefined,e)}function parseIdentifier(e,t){return createIdentifier(isIdentifier(),e,t)}function parseIdentifierName(t){return createIdentifier(e.tokenIsIdentifierOrKeyword(token()),t)}function isLiteralPropertyName(){return e.tokenIsIdentifierOrKeyword(token())||token()===10||token()===8}function parsePropertyNameWorker(e){if(token()===10||token()===8){var t=parseLiteralNode();t.text=internIdentifier(t.text);return t}if(e&&token()===22){return parseComputedPropertyName()}if(token()===80){return parsePrivateIdentifier()}return parseIdentifierName()}function parsePropertyName(){return parsePropertyNameWorker(true)}function parseComputedPropertyName(){var e=getNodePos();parseExpected(22);var t=allowInAnd(parseExpression);parseExpected(23);return finishNode(d.createComputedPropertyName(t),e)}function internPrivateIdentifier(e){var t=D.get(e);if(t===undefined){D.set(e,t=e)}return t}function parsePrivateIdentifier(){var e=getNodePos();var t=d.createPrivateIdentifier(internPrivateIdentifier(r.getTokenText()));nextToken();return finishNode(t,e)}function parseContextualModifier(e){return token()===e&&tryParse(nextTokenCanFollowModifier)}function nextTokenIsOnSameLineAndCanFollowModifier(){nextToken();if(r.hasPrecedingLineBreak()){return false}return canFollowModifier()}function nextTokenCanFollowModifier(){switch(token()){case 85:return nextToken()===92;case 93:nextToken();if(token()===88){return lookAhead(nextTokenCanFollowDefaultKeyword)}if(token()===150){return lookAhead(nextTokenCanFollowExportModifier)}return canFollowExportModifier();case 88:return nextTokenCanFollowDefaultKeyword();case 124:return nextTokenIsOnSameLineAndCanFollowModifier();case 135:case 147:nextToken();return canFollowModifier();default:return nextTokenIsOnSameLineAndCanFollowModifier()}}function canFollowExportModifier(){return token()!==41&&token()!==127&&token()!==18&&canFollowModifier()}function nextTokenCanFollowExportModifier(){nextToken();return canFollowExportModifier()}function parseAnyContextualModifier(){return e.isModifierKind(token())&&tryParse(nextTokenCanFollowModifier)}function canFollowModifier(){return token()===22||token()===18||token()===41||token()===25||isLiteralPropertyName()}function nextTokenCanFollowDefaultKeyword(){nextToken();return token()===84||token()===98||token()===118||token()===126&&lookAhead(nextTokenIsClassKeywordOnSameLine)||token()===130&&lookAhead(nextTokenIsFunctionKeywordOnSameLine)}function isListElement(t,r){var n=currentNode(t);if(n){return true}switch(t){case 0:case 1:case 3:return!(token()===26&&r)&&isStartOfStatement();case 2:return token()===82||token()===88;case 4:return lookAhead(isTypeMemberStart);case 5:return lookAhead(isClassMemberStart)||token()===26&&!r;case 6:return token()===22||isLiteralPropertyName();case 12:switch(token()){case 22:case 41:case 25:case 24:return true;default:return isLiteralPropertyName()}case 18:return isLiteralPropertyName();case 9:return token()===22||token()===25||isLiteralPropertyName();case 7:if(token()===18){return lookAhead(isValidHeritageClauseObjectLiteral)}if(!r){return isStartOfLeftHandSideExpression()&&!isHeritageClauseExtendsOrImplementsKeyword()}else{return isIdentifier()&&!isHeritageClauseExtendsOrImplementsKeyword()}case 8:return isBindingIdentifierOrPrivateIdentifierOrPattern();case 10:return token()===27||token()===25||isBindingIdentifierOrPrivateIdentifierOrPattern();case 19:return isIdentifier();case 15:switch(token()){case 27:case 24:return true}case 11:return token()===25||isStartOfExpression();case 16:return isStartOfParameter(false);case 17:return isStartOfParameter(true);case 20:case 21:return token()===27||isStartOfType();case 22:return isHeritageClause();case 23:return e.tokenIsIdentifierOrKeyword(token());case 13:return e.tokenIsIdentifierOrKeyword(token())||token()===18;case 14:return true}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function isValidHeritageClauseObjectLiteral(){e.Debug.assert(token()===18);if(nextToken()===19){var t=nextToken();return t===27||t===18||t===94||t===117}return true}function nextTokenIsIdentifier(){nextToken();return isIdentifier()}function nextTokenIsIdentifierOrKeyword(){nextToken();return e.tokenIsIdentifierOrKeyword(token())}function nextTokenIsIdentifierOrKeywordOrGreaterThan(){nextToken();return e.tokenIsIdentifierOrKeywordOrGreaterThan(token())}function isHeritageClauseExtendsOrImplementsKeyword(){if(token()===117||token()===94){return lookAhead(nextTokenIsStartOfExpression)}return false}function nextTokenIsStartOfExpression(){nextToken();return isStartOfExpression()}function nextTokenIsStartOfType(){nextToken();return isStartOfType()}function isListTerminator(e){if(token()===1){return true}switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return token()===19;case 3:return token()===19||token()===82||token()===88;case 7:return token()===18||token()===94||token()===117;case 8:return isVariableDeclaratorListTerminator();case 19:return token()===31||token()===20||token()===18||token()===94||token()===117;case 11:return token()===21||token()===26;case 15:case 21:case 10:return token()===23;case 17:case 16:case 18:return token()===21||token()===23;case 20:return token()!==27;case 22:return token()===18||token()===19;case 13:return token()===31||token()===43;case 14:return token()===29&&lookAhead(nextTokenIsSlash);default:return false}}function isVariableDeclaratorListTerminator(){if(canParseSemicolon()){return true}if(isInOrOfKeyword(token())){return true}if(token()===38){return true}return false}function isInSomeParsingContext(){for(var e=0;e<24;e++){if(A&1<=0)}function getExpectedCommaDiagnostic(t){return t===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:undefined}function createMissingList(){var e=createNodeArray([],getNodePos());e.isMissingList=true;return e}function isMissingList(e){return!!e.isMissingList}function parseBracketedList(e,t,r,n){if(parseExpected(r)){var i=parseDelimitedList(e,t);parseExpected(n);return i}return createMissingList()}function parseEntityName(e,t){var r=getNodePos();var n=e?parseIdentifierName(t):parseIdentifier(t);var i=getNodePos();while(parseOptional(24)){if(token()===29){n.jsdocDotPos=i;break}i=getNodePos();n=finishNode(d.createQualifiedName(n,parseRightSideOfDot(e,false)),r)}return n}function createQualifiedName(e,t){return finishNode(d.createQualifiedName(e,t),e.pos)}function parseRightSideOfDot(t,n){if(r.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(token())){var i=lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);if(i){return createMissingNode(79,true,e.Diagnostics.Identifier_expected)}}if(token()===80){var a=parsePrivateIdentifier();return n?a:createMissingNode(79,true,e.Diagnostics.Identifier_expected)}return t?parseIdentifierName():parseIdentifier()}function parseTemplateSpans(e){var t=getNodePos();var r=[];var n;do{n=parseTemplateSpan(e);r.push(n)}while(n.literal.kind===16);return createNodeArray(r,t)}function parseTemplateExpression(e){var t=getNodePos();return finishNode(d.createTemplateExpression(parseTemplateHead(e),parseTemplateSpans(e)),t)}function parseTemplateType(){var e=getNodePos();return finishNode(d.createTemplateLiteralType(parseTemplateHead(false),parseTemplateTypeSpans()),e)}function parseTemplateTypeSpans(){var e=getNodePos();var t=[];var r;do{r=parseTemplateTypeSpan();t.push(r)}while(r.literal.kind===16);return createNodeArray(t,e)}function parseTemplateTypeSpan(){var e=getNodePos();return finishNode(d.createTemplateLiteralTypeSpan(parseType(),parseLiteralOfTemplateSpan(false)),e)}function parseLiteralOfTemplateSpan(t){if(token()===19){reScanTemplateToken(t);return parseTemplateMiddleOrTemplateTail()}else{return parseExpectedToken(17,e.Diagnostics._0_expected,e.tokenToString(19))}}function parseTemplateSpan(e){var t=getNodePos();return finishNode(d.createTemplateSpan(allowInAnd(parseExpression),parseLiteralOfTemplateSpan(e)),t)}function parseLiteralNode(){return parseLiteralLikeNode(token())}function parseTemplateHead(t){if(t){reScanTemplateHeadOrNoSubstitutionTemplate()}var r=parseLiteralLikeNode(token());e.Debug.assert(r.kind===15,"Template head has wrong token kind");return r}function parseTemplateMiddleOrTemplateTail(){var t=parseLiteralLikeNode(token());e.Debug.assert(t.kind===16||t.kind===17,"Template fragment has wrong token kind");return t}function getTemplateLiteralRawText(e){var t=e===14||e===17;var n=r.getTokenText();return n.substring(1,n.length-(r.isUnterminated()?0:t?1:2))}function parseLiteralLikeNode(t){var n=getNodePos();var i=e.isTemplateLiteralKind(t)?d.createTemplateLiteralLikeNode(t,r.getTokenValue(),getTemplateLiteralRawText(t),r.getTokenFlags()&2048):t===8?d.createNumericLiteral(r.getTokenValue(),r.getNumericLiteralFlags()):t===10?d.createStringLiteral(r.getTokenValue(),undefined,r.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?d.createLiteralLikeNode(t,r.getTokenValue()):e.Debug.fail();if(r.hasExtendedUnicodeEscape()){i.hasExtendedUnicodeEscape=true}if(r.isUnterminated()){i.isUnterminated=true}nextToken();return finishNode(i,n)}function parseEntityNameOfTypeReference(){return parseEntityName(true,e.Diagnostics.Type_expected)}function parseTypeArgumentsOfTypeReference(){if(!r.hasPrecedingLineBreak()&&reScanLessThanToken()===29){return parseBracketedList(20,parseType,29,31)}}function parseTypeReference(){var e=getNodePos();return finishNode(d.createTypeReferenceNode(parseEntityNameOfTypeReference(),parseTypeArgumentsOfTypeReference()),e)}function typeHasArrowFunctionBlockingParseError(t){switch(t.kind){case 176:return e.nodeIsMissing(t.typeName);case 177:case 178:{var r=t,n=r.parameters,i=r.type;return isMissingList(n)||typeHasArrowFunctionBlockingParseError(i)}case 189:return typeHasArrowFunctionBlockingParseError(t.type);default:return false}}function parseThisTypePredicate(e){nextToken();return finishNode(d.createTypePredicateNode(undefined,e,parseType()),e.pos)}function parseThisTypeNode(){var e=getNodePos();nextToken();return finishNode(d.createThisTypeNode(),e)}function parseJSDocAllType(){var e=getNodePos();nextToken();return finishNode(d.createJSDocAllType(),e)}function parseJSDocNonNullableType(){var e=getNodePos();nextToken();return finishNode(d.createJSDocNonNullableType(parseNonArrayType()),e)}function parseJSDocUnknownOrNullableType(){var e=getNodePos();nextToken();if(token()===27||token()===19||token()===21||token()===31||token()===63||token()===51){return finishNode(d.createJSDocUnknownType(),e)}else{return finishNode(d.createJSDocNullableType(parseType()),e)}}function parseJSDocFunctionType(){var e=getNodePos();var t=hasPrecedingJSDocComment();if(lookAhead(nextTokenIsOpenParen)){nextToken();var r=parseParameters(4|32);var n=parseReturnType(58,false);return withJSDoc(finishNode(d.createJSDocFunctionType(r,n),e),t)}return finishNode(d.createTypeReferenceNode(parseIdentifierName(),undefined),e)}function parseJSDocParameter(){var e=getNodePos();var t;if(token()===108||token()===103){t=parseIdentifierName();parseExpected(58)}return finishNode(d.createParameterDeclaration(undefined,undefined,undefined,t,undefined,parseJSDocType(),undefined),e)}function parseJSDocType(){r.setInJSDocType(true);var e=getNodePos();if(parseOptional(140)){var t=d.createJSDocNamepathType(undefined);e:while(true){switch(token()){case 19:case 1:case 27:case 5:break e;default:nextTokenJSDoc()}}r.setInJSDocType(false);return finishNode(t,e)}var n=parseOptional(25);var i=parseTypeOrTypePredicate();r.setInJSDocType(false);if(n){i=finishNode(d.createJSDocVariadicType(i),e)}if(token()===63){nextToken();return finishNode(d.createJSDocOptionalType(i),e)}return i}function parseTypeQuery(){var e=getNodePos();parseExpected(112);return finishNode(d.createTypeQueryNode(parseEntityName(true)),e)}function parseTypeParameter(){var e=getNodePos();var t=parseIdentifier();var r;var n;if(parseOptional(94)){if(isStartOfType()||!isStartOfExpression()){r=parseType()}else{n=parseUnaryExpressionOrHigher()}}var i=parseOptional(63)?parseType():undefined;var a=d.createTypeParameterDeclaration(t,r,i);a.expression=n;return finishNode(a,e)}function parseTypeParameters(){if(token()===29){return parseBracketedList(19,parseTypeParameter,29,31)}}function isStartOfParameter(t){return token()===25||isBindingIdentifierOrPrivateIdentifierOrPattern()||e.isModifierKind(token())||token()===59||isStartOfType(!t)}function parseNameOfParameter(t){var r=parseIdentifierOrPattern(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);if(e.getFullWidth(r)===0&&!e.some(t)&&e.isModifierKind(token())){nextToken()}return r}function parseParameterInOuterAwaitContext(){return parseParameterWorker(true)}function parseParameter(){return parseParameterWorker(false)}function parseParameterWorker(t){var r=getNodePos();var n=hasPrecedingJSDocComment();var i=t?doInAwaitContext(parseDecorators):parseDecorators();if(token()===108){var a=d.createParameterDeclaration(i,undefined,undefined,createIdentifier(true),undefined,parseTypeAnnotation(),undefined);if(i){parseErrorAtRange(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters)}return withJSDoc(finishNode(a,r),n)}var s=N;N=false;var o=parseModifiers();var c=withJSDoc(finishNode(d.createParameterDeclaration(i,o,parseOptionalToken(25),parseNameOfParameter(o),parseOptionalToken(57),parseTypeAnnotation(),parseInitializer()),r),n);N=s;return c}function parseReturnType(e,t){if(shouldParseReturnType(e,t)){return parseTypeOrTypePredicate()}}function shouldParseReturnType(t,r){if(t===38){parseExpected(t);return true}else if(parseOptional(58)){return true}else if(r&&token()===38){parseErrorAtCurrentToken(e.Diagnostics._0_expected,e.tokenToString(58));nextToken();return true}return false}function parseParametersWorker(e){var t=inYieldContext();var r=inAwaitContext();setYieldContext(!!(e&1));setAwaitContext(!!(e&2));var n=e&32?parseDelimitedList(17,parseJSDocParameter):parseDelimitedList(16,r?parseParameterInOuterAwaitContext:parseParameter);setYieldContext(t);setAwaitContext(r);return n}function parseParameters(e){if(!parseExpected(20)){return createMissingList()}var t=parseParametersWorker(e);parseExpected(21);return t}function parseTypeMemberSemicolon(){if(parseOptional(27)){return}parseSemicolon()}function parseSignatureMember(e){var t=getNodePos();var r=hasPrecedingJSDocComment();if(e===173){parseExpected(103)}var n=parseTypeParameters();var i=parseParameters(4);var a=parseReturnType(58,true);parseTypeMemberSemicolon();var s=e===172?d.createCallSignature(n,i,a):d.createConstructSignature(n,i,a);return withJSDoc(finishNode(s,t),r)}function isIndexSignature(){return token()===22&&lookAhead(isUnambiguouslyIndexSignature)}function isUnambiguouslyIndexSignature(){nextToken();if(token()===25||token()===23){return true}if(e.isModifierKind(token())){nextToken();if(isIdentifier()){return true}}else if(!isIdentifier()){return false}else{nextToken()}if(token()===58||token()===27){return true}if(token()!==57){return false}nextToken();return token()===58||token()===27||token()===23}function parseIndexSignatureDeclaration(e,t,r,n){var i=parseBracketedList(16,parseParameter,22,23);var a=parseTypeAnnotation();parseTypeMemberSemicolon();var s=d.createIndexSignature(r,n,i,a);return withJSDoc(finishNode(s,e),t)}function parsePropertyOrMethodSignature(e,t,r){var n=parsePropertyName();var i=parseOptionalToken(57);var a;if(token()===20||token()===29){var s=parseTypeParameters();var o=parseParameters(4);var c=parseReturnType(58,true);a=d.createMethodSignature(r,n,i,s,o,c)}else{var c=parseTypeAnnotation();a=d.createPropertySignature(r,n,i,c);if(token()===63)a.initializer=parseInitializer()}parseTypeMemberSemicolon();return withJSDoc(finishNode(a,e),t)}function isTypeMemberStart(){if(token()===20||token()===29||token()===135||token()===147){return true}var t=false;while(e.isModifierKind(token())){t=true;nextToken()}if(token()===22){return true}if(isLiteralPropertyName()){t=true;nextToken()}if(t){return token()===20||token()===29||token()===57||token()===58||token()===27||canParseSemicolon()}return false}function parseTypeMember(){if(token()===20||token()===29){return parseSignatureMember(172)}if(token()===103&&lookAhead(nextTokenIsOpenParenOrLessThan)){return parseSignatureMember(173)}var e=getNodePos();var t=hasPrecedingJSDocComment();var r=parseModifiers();if(parseContextualModifier(135)){return parseAccessorDeclaration(e,t,undefined,r,170)}if(parseContextualModifier(147)){return parseAccessorDeclaration(e,t,undefined,r,171)}if(isIndexSignature()){return parseIndexSignatureDeclaration(e,t,undefined,r)}return parsePropertyOrMethodSignature(e,t,r)}function nextTokenIsOpenParenOrLessThan(){nextToken();return token()===20||token()===29}function nextTokenIsDot(){return nextToken()===24}function nextTokenIsOpenParenOrLessThanOrDot(){switch(nextToken()){case 20:case 29:case 24:return true}return false}function parseTypeLiteral(){var e=getNodePos();return finishNode(d.createTypeLiteralNode(parseObjectTypeMembers()),e)}function parseObjectTypeMembers(){var e;if(parseExpected(18)){e=parseList(4,parseTypeMember);parseExpected(19)}else{e=createMissingList()}return e}function isStartOfMappedType(){nextToken();if(token()===39||token()===40){return nextToken()===143}if(token()===143){nextToken()}return token()===22&&nextTokenIsIdentifier()&&nextToken()===101}function parseMappedTypeParameter(){var e=getNodePos();var t=parseIdentifierName();parseExpected(101);var r=parseType();return finishNode(d.createTypeParameterDeclaration(t,r,undefined),e)}function parseMappedType(){var e=getNodePos();parseExpected(18);var t;if(token()===143||token()===39||token()===40){t=parseTokenNode();if(t.kind!==143){parseExpected(143)}}parseExpected(22);var r=parseMappedTypeParameter();var n=parseOptional(127)?parseType():undefined;parseExpected(23);var i;if(token()===57||token()===39||token()===40){i=parseTokenNode();if(i.kind!==57){parseExpected(57)}}var a=parseTypeAnnotation();parseSemicolon();parseExpected(19);return finishNode(d.createMappedTypeNode(t,r,n,i,a),e)}function parseTupleElementType(){var t=getNodePos();if(parseOptional(25)){return finishNode(d.createRestTypeNode(parseType()),t)}var r=parseType();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=d.createOptionalTypeNode(r.type);e.setTextRange(n,r);n.flags=r.flags;return n}return r}function isNextTokenColonOrQuestionColon(){return nextToken()===58||token()===57&&nextToken()===58}function isTupleElementName(){if(token()===25){return e.tokenIsIdentifierOrKeyword(nextToken())&&isNextTokenColonOrQuestionColon()}return e.tokenIsIdentifierOrKeyword(token())&&isNextTokenColonOrQuestionColon()}function parseTupleElementNameOrTupleElementType(){if(lookAhead(isTupleElementName)){var e=getNodePos();var t=hasPrecedingJSDocComment();var r=parseOptionalToken(25);var n=parseIdentifierName();var i=parseOptionalToken(57);parseExpected(58);var a=parseTupleElementType();var s=d.createNamedTupleMember(r,n,i,a);return withJSDoc(finishNode(s,e),t)}return parseTupleElementType()}function parseTupleType(){var e=getNodePos();return finishNode(d.createTupleTypeNode(parseBracketedList(21,parseTupleElementNameOrTupleElementType,22,23)),e)}function parseParenthesizedType(){var e=getNodePos();parseExpected(20);var t=parseType();parseExpected(21);return finishNode(d.createParenthesizedType(t),e)}function parseModifiersForConstructorType(){var e;if(token()===126){var t=getNodePos();nextToken();var r=finishNode(d.createToken(126),t);e=createNodeArray([r],t)}return e}function parseFunctionOrConstructorType(){var e=getNodePos();var t=hasPrecedingJSDocComment();var r=parseModifiersForConstructorType();var n=parseOptional(103);var i=parseTypeParameters();var a=parseParameters(4);var s=parseReturnType(38,false);var o=n?d.createConstructorTypeNode(r,i,a,s):d.createFunctionTypeNode(i,a,s);if(!n)o.modifiers=r;return withJSDoc(finishNode(o,e),t)}function parseKeywordAndNoDot(){var e=parseTokenNode();return token()===24?undefined:e}function parseLiteralTypeNode(e){var t=getNodePos();if(e){nextToken()}var r=token()===110||token()===95||token()===104?parseTokenNode():parseLiteralLikeNode(token());if(e){r=finishNode(d.createPrefixUnaryExpression(40,r),t)}return finishNode(d.createLiteralTypeNode(r),t)}function isStartOfTypeOfImportType(){nextToken();return token()===100}function parseImportType(){m|=1048576;var e=getNodePos();var t=parseOptional(112);parseExpected(100);parseExpected(20);var r=parseType();parseExpected(21);var n=parseOptional(24)?parseEntityNameOfTypeReference():undefined;var i=parseTypeArgumentsOfTypeReference();return finishNode(d.createImportTypeNode(r,n,i,t),e)}function nextTokenIsNumericOrBigIntLiteral(){nextToken();return token()===8||token()===9}function parseNonArrayType(){switch(token()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return tryParse(parseKeywordAndNoDot)||parseTypeReference();case 66:r.reScanAsteriskEqualsToken();case 41:return parseJSDocAllType();case 60:r.reScanQuestionToken();case 57:return parseJSDocUnknownOrNullableType();case 98:return parseJSDocFunctionType();case 53:return parseJSDocNonNullableType();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return parseLiteralTypeNode();case 40:return lookAhead(nextTokenIsNumericOrBigIntLiteral)?parseLiteralTypeNode(true):parseTypeReference();case 114:return parseTokenNode();case 108:{var e=parseThisTypeNode();if(token()===138&&!r.hasPrecedingLineBreak()){return parseThisTypePredicate(e)}else{return e}}case 112:return lookAhead(isStartOfTypeOfImportType)?parseImportType():parseTypeQuery();case 18:return lookAhead(isStartOfMappedType)?parseMappedType():parseTypeLiteral();case 22:return parseTupleType();case 20:return parseParenthesizedType();case 100:return parseImportType();case 128:return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine)?parseAssertsTypePredicate():parseTypeReference();case 15:return parseTemplateType();default:return parseTypeReference()}}function isStartOfType(e){switch(token()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return true;case 98:return!e;case 40:return!e&&lookAhead(nextTokenIsNumericOrBigIntLiteral);case 20:return!e&&lookAhead(isStartOfParenthesizedOrFunctionType);default:return isIdentifier()}}function isStartOfParenthesizedOrFunctionType(){nextToken();return token()===21||isStartOfParameter(false)||isStartOfType()}function parsePostfixTypeOrHigher(){var e=getNodePos();var t=parseNonArrayType();while(!r.hasPrecedingLineBreak()){switch(token()){case 53:nextToken();t=finishNode(d.createJSDocNonNullableType(t),e);break;case 57:if(lookAhead(nextTokenIsStartOfType)){return t}nextToken();t=finishNode(d.createJSDocNullableType(t),e);break;case 22:parseExpected(22);if(isStartOfType()){var n=parseType();parseExpected(23);t=finishNode(d.createIndexedAccessTypeNode(t,n),e)}else{parseExpected(23);t=finishNode(d.createArrayTypeNode(t),e)}break;default:return t}}return t}function parseTypeOperator(e){var t=getNodePos();parseExpected(e);return finishNode(d.createTypeOperatorNode(e,parseTypeOperatorOrHigher()),t)}function parseTypeParameterOfInferType(){var e=getNodePos();return finishNode(d.createTypeParameterDeclaration(parseIdentifier(),undefined,undefined),e)}function parseInferType(){var e=getNodePos();parseExpected(136);return finishNode(d.createInferTypeNode(parseTypeParameterOfInferType()),e)}function parseTypeOperatorOrHigher(){var e=token();switch(e){case 139:case 152:case 143:return parseTypeOperator(e);case 136:return parseInferType()}return parsePostfixTypeOrHigher()}function parseFunctionOrConstructorTypeToError(t){if(isStartOfFunctionTypeOrConstructorType()){var r=parseFunctionOrConstructorType();var n=void 0;if(e.isFunctionTypeNode(r)){n=t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type}else{n=t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type}parseErrorAtRange(r,n);return r}return undefined}function parseUnionOrIntersectionType(e,t,r){var n=getNodePos();var i=e===51;var a=parseOptional(e);var s=a&&parseFunctionOrConstructorTypeToError(i)||t();if(token()===e||a){var o=[s];while(parseOptional(e)){o.push(parseFunctionOrConstructorTypeToError(i)||t())}s=finishNode(r(createNodeArray(o,n)),n)}return s}function parseIntersectionTypeOrHigher(){return parseUnionOrIntersectionType(50,parseTypeOperatorOrHigher,d.createIntersectionTypeNode)}function parseUnionTypeOrHigher(){return parseUnionOrIntersectionType(51,parseIntersectionTypeOrHigher,d.createUnionTypeNode)}function nextTokenIsNewKeyword(){nextToken();return token()===103}function isStartOfFunctionTypeOrConstructorType(){if(token()===29){return true}if(token()===20&&lookAhead(isUnambiguouslyStartOfFunctionType)){return true}return token()===103||token()===126&&lookAhead(nextTokenIsNewKeyword)}function skipParameterStart(){if(e.isModifierKind(token())){parseModifiers()}if(isIdentifier()||token()===108){nextToken();return true}if(token()===22||token()===18){var t=v.length;parseIdentifierOrPattern();return t===v.length}return false}function isUnambiguouslyStartOfFunctionType(){nextToken();if(token()===21||token()===25){return true}if(skipParameterStart()){if(token()===58||token()===27||token()===57||token()===63){return true}if(token()===21){nextToken();if(token()===38){return true}}}return false}function parseTypeOrTypePredicate(){var e=getNodePos();var t=isIdentifier()&&tryParse(parseTypePredicatePrefix);var r=parseType();if(t){return finishNode(d.createTypePredicateNode(undefined,t,r),e)}else{return r}}function parseTypePredicatePrefix(){var e=parseIdentifier();if(token()===138&&!r.hasPrecedingLineBreak()){nextToken();return e}}function parseAssertsTypePredicate(){var e=getNodePos();var t=parseExpectedToken(128);var r=token()===108?parseThisTypeNode():parseIdentifier();var n=parseOptional(138)?parseType():undefined;return finishNode(d.createTypePredicateNode(t,r,n),e)}function parseType(){return doOutsideOfContext(40960,parseTypeWorker)}function parseTypeWorker(e){if(isStartOfFunctionTypeOrConstructorType()){return parseFunctionOrConstructorType()}var t=getNodePos();var n=parseUnionTypeOrHigher();if(!e&&!r.hasPrecedingLineBreak()&&parseOptional(94)){var i=parseTypeWorker(true);parseExpected(57);var a=parseTypeWorker();parseExpected(58);var s=parseTypeWorker();return finishNode(d.createConditionalTypeNode(n,i,a,s),t)}return n}function parseTypeAnnotation(){return parseOptional(58)?parseType():undefined}function isStartOfLeftHandSideExpression(){switch(token()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return true;case 100:return lookAhead(nextTokenIsOpenParenOrLessThanOrDot);default:return isIdentifier()}}function isStartOfExpression(){if(isStartOfLeftHandSideExpression()){return true}switch(token()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return true;default:if(isBinaryOperator()){return true}return isIdentifier()}}function isStartOfExpressionStatement(){return token()!==18&&token()!==98&&token()!==84&&token()!==59&&isStartOfExpression()}function parseExpression(){var e=inDecoratorContext();if(e){setDecoratorContext(false)}var t=getNodePos();var r=parseAssignmentExpressionOrHigher();var n;while(n=parseOptionalToken(27)){r=makeBinaryExpression(r,n,parseAssignmentExpressionOrHigher(),t)}if(e){setDecoratorContext(true)}return r}function parseInitializer(){return parseOptional(63)?parseAssignmentExpressionOrHigher():undefined}function parseAssignmentExpressionOrHigher(){if(isYieldExpression()){return parseYieldExpression()}var t=tryParseParenthesizedArrowFunctionExpression()||tryParseAsyncSimpleArrowFunctionExpression();if(t){return t}var r=getNodePos();var n=parseBinaryExpressionOrHigher(0);if(n.kind===79&&token()===38){return parseSimpleArrowFunctionExpression(r,n,undefined)}if(e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(reScanGreaterToken())){return makeBinaryExpression(n,parseTokenNode(),parseAssignmentExpressionOrHigher(),r)}return parseConditionalExpressionRest(n,r)}function isYieldExpression(){if(token()===125){if(inYieldContext()){return true}return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine)}return false}function nextTokenIsIdentifierOnSameLine(){nextToken();return!r.hasPrecedingLineBreak()&&isIdentifier()}function parseYieldExpression(){var e=getNodePos();nextToken();if(!r.hasPrecedingLineBreak()&&(token()===41||isStartOfExpression())){return finishNode(d.createYieldExpression(parseOptionalToken(41),parseAssignmentExpressionOrHigher()),e)}else{return finishNode(d.createYieldExpression(undefined,undefined),e)}}function parseSimpleArrowFunctionExpression(t,r,n){e.Debug.assert(token()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=d.createParameterDeclaration(undefined,undefined,undefined,r,undefined,undefined,undefined);finishNode(i,r.pos);var a=createNodeArray([i],i.pos,i.end);var s=parseExpectedToken(38);var o=parseArrowFunctionExpressionBody(!!n);var c=d.createArrowFunction(n,undefined,a,undefined,s,o);return addJSDocComment(finishNode(c,t))}function tryParseParenthesizedArrowFunctionExpression(){var e=isParenthesizedArrowFunctionExpression();if(e===0){return undefined}return e===1?parseParenthesizedArrowFunctionExpression(true):tryParse(parsePossibleParenthesizedArrowFunctionExpression)}function isParenthesizedArrowFunctionExpression(){if(token()===20||token()===29||token()===130){return lookAhead(isParenthesizedArrowFunctionExpressionWorker)}if(token()===38){return 1}return 0}function isParenthesizedArrowFunctionExpressionWorker(){if(token()===130){nextToken();if(r.hasPrecedingLineBreak()){return 0}if(token()!==20&&token()!==29){return 0}}var t=token();var n=nextToken();if(t===20){if(n===21){var i=nextToken();switch(i){case 38:case 58:case 18:return 1;default:return 0}}if(n===22||n===18){return 2}if(n===25){return 1}if(e.isModifierKind(n)&&n!==130&&lookAhead(nextTokenIsIdentifier)){return 1}if(!isIdentifier()&&n!==108){return 0}switch(nextToken()){case 58:return 1;case 57:nextToken();if(token()===58||token()===27||token()===63||token()===21){return 1}return 0;case 27:case 63:case 21:return 2}return 0}else{e.Debug.assert(t===29);if(!isIdentifier()){return 0}if(y===1){var a=lookAhead(function(){var e=nextToken();if(e===94){var t=nextToken();switch(t){case 63:case 31:return false;default:return true}}else if(e===27){return true}return false});if(a){return 1}return 0}return 2}}function parsePossibleParenthesizedArrowFunctionExpression(){var t=r.getTokenPos();if(k===null||k===void 0?void 0:k.has(t)){return undefined}var n=parseParenthesizedArrowFunctionExpression(false);if(!n){(k||(k=new e.Set)).add(t)}return n}function tryParseAsyncSimpleArrowFunctionExpression(){if(token()===130){if(lookAhead(isUnParenthesizedAsyncArrowFunctionWorker)===1){var e=getNodePos();var t=parseModifiersForArrowFunction();var r=parseBinaryExpressionOrHigher(0);return parseSimpleArrowFunctionExpression(e,r,t)}}return undefined}function isUnParenthesizedAsyncArrowFunctionWorker(){if(token()===130){nextToken();if(r.hasPrecedingLineBreak()||token()===38){return 0}var e=parseBinaryExpressionOrHigher(0);if(!r.hasPrecedingLineBreak()&&e.kind===79&&token()===38){return 1}}return 0}function parseParenthesizedArrowFunctionExpression(t){var r=getNodePos();var n=hasPrecedingJSDocComment();var i=parseModifiersForArrowFunction();var a=e.some(i,e.isAsyncModifier)?2:0;var s=parseTypeParameters();var o;if(!parseExpected(20)){if(!t){return undefined}o=createMissingList()}else{o=parseParametersWorker(a);if(!parseExpected(21)&&!t){return undefined}}var c=parseReturnType(58,false);if(c&&!t&&typeHasArrowFunctionBlockingParseError(c)){return undefined}var u=c&&e.isJSDocFunctionType(c);if(!t&&token()!==38&&(u||token()!==18)){return undefined}var l=token();var p=parseExpectedToken(38);var f=l===38||l===18?parseArrowFunctionExpressionBody(e.some(i,e.isAsyncModifier)):parseIdentifier();var m=d.createArrowFunction(i,s,o,c,p,f);return withJSDoc(finishNode(m,r),n)}function parseArrowFunctionExpressionBody(e){if(token()===18){return parseFunctionBlock(e?2:0)}if(token()!==26&&token()!==98&&token()!==84&&isStartOfStatement()&&!isStartOfExpressionStatement()){return parseFunctionBlock(16|(e?2:0))}var t=N;N=false;var r=e?doInAwaitContext(parseAssignmentExpressionOrHigher):doOutsideOfAwaitContext(parseAssignmentExpressionOrHigher);N=t;return r}function parseConditionalExpressionRest(t,r){var n=parseOptionalToken(57);if(!n){return t}var a;return finishNode(d.createConditionalExpression(t,n,doOutsideOfContext(i,parseAssignmentExpressionOrHigher),a=parseExpectedToken(58),e.nodeIsPresent(a)?parseAssignmentExpressionOrHigher():createMissingNode(79,false,e.Diagnostics._0_expected,e.tokenToString(58))),r)}function parseBinaryExpressionOrHigher(e){var t=getNodePos();var r=parseUnaryExpressionOrHigher();return parseBinaryExpressionRest(e,r,t)}function isInOrOfKeyword(e){return e===101||e===158}function parseBinaryExpressionRest(t,n,i){while(true){reScanGreaterToken();var a=e.getBinaryOperatorPrecedence(token());var s=token()===42?a>=t:a>t;if(!s){break}if(token()===101&&inDisallowInContext()){break}if(token()===127){if(r.hasPrecedingLineBreak()){break}else{nextToken();n=makeAsExpression(n,parseType())}}else{n=makeBinaryExpression(n,parseTokenNode(),parseBinaryExpressionOrHigher(a),i)}}return n}function isBinaryOperator(){if(inDisallowInContext()&&token()===101){return false}return e.getBinaryOperatorPrecedence(token())>0}function makeBinaryExpression(e,t,r,n){return finishNode(d.createBinaryExpression(e,t,r),n)}function makeAsExpression(e,t){return finishNode(d.createAsExpression(e,t),e.pos)}function parsePrefixUnaryExpression(){var e=getNodePos();return finishNode(d.createPrefixUnaryExpression(token(),nextTokenAnd(parseSimpleUnaryExpression)),e)}function parseDeleteExpression(){var e=getNodePos();return finishNode(d.createDeleteExpression(nextTokenAnd(parseSimpleUnaryExpression)),e)}function parseTypeOfExpression(){var e=getNodePos();return finishNode(d.createTypeOfExpression(nextTokenAnd(parseSimpleUnaryExpression)),e)}function parseVoidExpression(){var e=getNodePos();return finishNode(d.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)),e)}function isAwaitExpression(){if(token()===131){if(inAwaitContext()){return true}return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine)}return false}function parseAwaitExpression(){var e=getNodePos();return finishNode(d.createAwaitExpression(nextTokenAnd(parseSimpleUnaryExpression)),e)}function parseUnaryExpressionOrHigher(){if(isUpdateExpression()){var t=getNodePos();var r=parseUpdateExpression();return token()===42?parseBinaryExpressionRest(e.getBinaryOperatorPrecedence(token()),r,t):r}var n=token();var i=parseSimpleUnaryExpression();if(token()===42){var t=e.skipTrivia(g,i.pos);var a=i.end;if(i.kind===209){parseErrorAt(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses)}else{parseErrorAt(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}}return i}function parseSimpleUnaryExpression(){switch(token()){case 39:case 40:case 54:case 53:return parsePrefixUnaryExpression();case 89:return parseDeleteExpression();case 112:return parseTypeOfExpression();case 114:return parseVoidExpression();case 29:return parseTypeAssertion();case 131:if(isAwaitExpression()){return parseAwaitExpression()}default:return parseUpdateExpression()}}function isUpdateExpression(){switch(token()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return false;case 29:if(y!==1){return false}default:return true}}function parseUpdateExpression(){if(token()===45||token()===46){var t=getNodePos();return finishNode(d.createPrefixUnaryExpression(token(),nextTokenAnd(parseLeftHandSideExpressionOrHigher)),t)}else if(y===1&&token()===29&&lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)){return parseJsxElementOrSelfClosingElementOrFragment(true)}var n=parseLeftHandSideExpressionOrHigher();e.Debug.assert(e.isLeftHandSideExpression(n));if((token()===45||token()===46)&&!r.hasPrecedingLineBreak()){var i=token();nextToken();return finishNode(d.createPostfixUnaryExpression(n,i),n.pos)}return n}function parseLeftHandSideExpressionOrHigher(){var e=getNodePos();var t;if(token()===100){if(lookAhead(nextTokenIsOpenParenOrLessThan)){m|=1048576;t=parseTokenNode()}else if(lookAhead(nextTokenIsDot)){nextToken();nextToken();t=finishNode(d.createMetaProperty(100,parseIdentifierName()),e);m|=2097152}else{t=parseMemberExpressionOrHigher()}}else{t=token()===106?parseSuperExpression():parseMemberExpressionOrHigher()}return parseCallExpressionRest(e,t)}function parseMemberExpressionOrHigher(){var e=getNodePos();var t=parsePrimaryExpression();return parseMemberExpressionRest(e,t,true)}function parseSuperExpression(){var t=getNodePos();var r=parseTokenNode();if(token()===29){var n=getNodePos();var i=tryParse(parseTypeArgumentsInExpression);if(i!==undefined){parseErrorAt(n,getNodePos(),e.Diagnostics.super_may_not_use_type_arguments)}}if(token()===20||token()===24||token()===22){return r}parseExpectedToken(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access);return finishNode(d.createPropertyAccessExpression(r,parseRightSideOfDot(true,true)),t)}function parseJsxElementOrSelfClosingElementOrFragment(t,r,i){var a=getNodePos();var s=parseJsxOpeningOrSelfClosingElementOrOpeningFragment(t);var o;if(s.kind===278){var c=parseJsxChildren(s);var u=void 0;var l=c[c.length-1];if((l===null||l===void 0?void 0:l.kind)===276&&!tagNamesAreEquivalent(l.openingElement.tagName,l.closingElement.tagName)&&tagNamesAreEquivalent(s.tagName,l.closingElement.tagName)){var p=l.openingElement.end;var f=finishNode(d.createJsxElement(l.openingElement,createNodeArray([],p,p),finishNode(d.createJsxClosingElement(finishNode(d.createIdentifier(""),p,p)),p,p)),l.openingElement.pos,p);c=createNodeArray(n(n([],c.slice(0,c.length-1),true),[f],false),c.pos,p);u=l.closingElement}else{u=parseJsxClosingElement(s,t);if(!tagNamesAreEquivalent(s.tagName,u.tagName)){if(i&&e.isJsxOpeningElement(i)&&tagNamesAreEquivalent(u.tagName,i.tagName)){parseErrorAtRange(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,s.tagName))}else{parseErrorAtRange(u.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,s.tagName))}}}o=finishNode(d.createJsxElement(s,c,u),a)}else if(s.kind===281){o=finishNode(d.createJsxFragment(s,parseJsxChildren(s),parseJsxClosingFragment(t)),a)}else{e.Debug.assert(s.kind===277);o=s}if(t&&token()===29){var m=typeof r==="undefined"?o.pos:r;var _=tryParse(function(){return parseJsxElementOrSelfClosingElementOrFragment(true,m)});if(_){var h=createMissingNode(27,false);e.setTextRangePosWidth(h,_.pos,0);parseErrorAt(e.skipTrivia(g,m),_.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element);return finishNode(d.createBinaryExpression(o,h,_),a)}}return o}function parseJsxText(){var e=getNodePos();var t=d.createJsxText(r.getTokenValue(),b===12);b=r.scanJsxToken();return finishNode(t,e)}function parseJsxChild(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t)){parseErrorAtRange(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag)}else{var n=t.tagName;var i=e.skipTrivia(g,n.pos);parseErrorAt(i,n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,t.tagName))}return undefined;case 30:case 7:return undefined;case 11:case 12:return parseJsxText();case 18:return parseJsxExpression(false);case 29:return parseJsxElementOrSelfClosingElementOrFragment(false,undefined,t);default:return e.Debug.assertNever(r)}}function parseJsxChildren(t){var n=[];var i=getNodePos();var a=A;A|=1<<14;while(true){var s=parseJsxChild(t,b=r.reScanJsxToken());if(!s)break;n.push(s);if(e.isJsxOpeningElement(t)&&(s===null||s===void 0?void 0:s.kind)===276&&!tagNamesAreEquivalent(s.openingElement.tagName,s.closingElement.tagName)&&tagNamesAreEquivalent(t.tagName,s.closingElement.tagName)){break}}A=a;return createNodeArray(n,i)}function parseJsxAttributes(){var e=getNodePos();return finishNode(d.createJsxAttributes(parseList(13,parseJsxAttribute)),e)}function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(e){var t=getNodePos();parseExpected(29);if(token()===31){scanJsxText();return finishNode(d.createJsxOpeningFragment(),t)}var r=parseJsxElementName();var n=(P&131072)===0?tryParseTypeArguments():undefined;var i=parseJsxAttributes();var a;if(token()===31){scanJsxText();a=d.createJsxOpeningElement(r,n,i)}else{parseExpected(43);if(parseExpected(31,undefined,false)){if(e){nextToken()}else{scanJsxText()}}a=d.createJsxSelfClosingElement(r,n,i)}return finishNode(a,t)}function parseJsxElementName(){var e=getNodePos();scanJsxIdentifier();var t=token()===108?parseTokenNode():parseIdentifierName();while(parseOptional(24)){t=finishNode(d.createPropertyAccessExpression(t,parseRightSideOfDot(true,false)),e)}return t}function parseJsxExpression(e){var t=getNodePos();if(!parseExpected(18)){return undefined}var r;var n;if(token()!==19){r=parseOptionalToken(25);n=parseExpression()}if(e){parseExpected(19)}else{if(parseExpected(19,undefined,false)){scanJsxText()}}return finishNode(d.createJsxExpression(r,n),t)}function parseJsxAttribute(){if(token()===18){return parseJsxSpreadAttribute()}scanJsxIdentifier();var e=getNodePos();return finishNode(d.createJsxAttribute(parseIdentifierName(),token()!==63?undefined:scanJsxAttributeValue()===10?parseLiteralNode():parseJsxExpression(true)),e)}function parseJsxSpreadAttribute(){var e=getNodePos();parseExpected(18);parseExpected(25);var t=parseExpression();parseExpected(19);return finishNode(d.createJsxSpreadAttribute(t),e)}function parseJsxClosingElement(e,t){var r=getNodePos();parseExpected(30);var n=parseJsxElementName();if(parseExpected(31,undefined,false)){if(t||!tagNamesAreEquivalent(e.tagName,n)){nextToken()}else{scanJsxText()}}return finishNode(d.createJsxClosingElement(n),r)}function parseJsxClosingFragment(t){var r=getNodePos();parseExpected(30);if(e.tokenIsIdentifierOrKeyword(token())){parseErrorAtRange(parseJsxElementName(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}if(parseExpected(31,undefined,false)){if(t){nextToken()}else{scanJsxText()}}return finishNode(d.createJsxJsxClosingFragment(),r)}function parseTypeAssertion(){var e=getNodePos();parseExpected(29);var t=parseType();parseExpected(31);var r=parseSimpleUnaryExpression();return finishNode(d.createTypeAssertion(t,r),e)}function nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate(){nextToken();return e.tokenIsIdentifierOrKeyword(token())||token()===22||isTemplateStartOfTaggedTemplate()}function isStartOfOptionalPropertyOrElementAccessChain(){return token()===28&&lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate)}function tryReparseOptionalChain(t){if(t.flags&32){return true}if(e.isNonNullExpression(t)){var r=t.expression;while(e.isNonNullExpression(r)&&!(r.flags&32)){r=r.expression}if(r.flags&32){while(e.isNonNullExpression(t)){t.flags|=32;t=t.expression}return true}}return false}function parsePropertyAccessExpressionRest(t,r,n){var i=parseRightSideOfDot(true,true);var a=n||tryReparseOptionalChain(r);var s=a?d.createPropertyAccessChain(r,n,i):d.createPropertyAccessExpression(r,i);if(a&&e.isPrivateIdentifier(s.name)){parseErrorAtRange(s.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers)}return finishNode(s,t)}function parseElementAccessExpressionRest(t,r,n){var i;if(token()===23){i=createMissingNode(79,true,e.Diagnostics.An_element_access_expression_should_take_an_argument)}else{var a=allowInAnd(parseExpression);if(e.isStringOrNumericLiteralLike(a)){a.text=internIdentifier(a.text)}i=a}parseExpected(23);var s=n||tryReparseOptionalChain(r)?d.createElementAccessChain(r,n,i):d.createElementAccessExpression(r,i);return finishNode(s,t)}function parseMemberExpressionRest(t,n,i){while(true){var a=void 0;var s=false;if(i&&isStartOfOptionalPropertyOrElementAccessChain()){a=parseExpectedToken(28);s=e.tokenIsIdentifierOrKeyword(token())}else{s=parseOptional(24)}if(s){n=parsePropertyAccessExpressionRest(t,n,a);continue}if(!a&&token()===53&&!r.hasPrecedingLineBreak()){nextToken();n=finishNode(d.createNonNullExpression(n),t);continue}if((a||!inDecoratorContext())&&parseOptional(22)){n=parseElementAccessExpressionRest(t,n,a);continue}if(isTemplateStartOfTaggedTemplate()){n=parseTaggedTemplateRest(t,n,a,undefined);continue}return n}}function isTemplateStartOfTaggedTemplate(){return token()===14||token()===15}function parseTaggedTemplateRest(e,t,r,n){var i=d.createTaggedTemplateExpression(t,n,token()===14?(reScanTemplateHeadOrNoSubstitutionTemplate(),parseLiteralNode()):parseTemplateExpression(true));if(r||t.flags&32){i.flags|=32}i.questionDotToken=r;return finishNode(i,e)}function parseCallExpressionRest(t,r){while(true){r=parseMemberExpressionRest(t,r,true);var n=parseOptionalToken(28);if((P&131072)===0&&(token()===29||token()===47)){var i=tryParse(parseTypeArgumentsInExpression);if(i){if(isTemplateStartOfTaggedTemplate()){r=parseTaggedTemplateRest(t,r,n,i);continue}var a=parseArgumentList();var s=n||tryReparseOptionalChain(r)?d.createCallChain(r,n,i,a):d.createCallExpression(r,i,a);r=finishNode(s,t);continue}}else if(token()===20){var a=parseArgumentList();var s=n||tryReparseOptionalChain(r)?d.createCallChain(r,n,undefined,a):d.createCallExpression(r,undefined,a);r=finishNode(s,t);continue}if(n){var o=createMissingNode(79,false,e.Diagnostics.Identifier_expected);r=finishNode(d.createPropertyAccessChain(r,n,o),t)}break}return r}function parseArgumentList(){parseExpected(20);var e=parseDelimitedList(11,parseArgumentExpression);parseExpected(21);return e}function parseTypeArgumentsInExpression(){if((P&131072)!==0){return undefined}if(reScanLessThanToken()!==29){return undefined}nextToken();var e=parseDelimitedList(20,parseType);if(!parseExpected(31)){return undefined}return e&&canFollowTypeArgumentsInExpression()?e:undefined}function canFollowTypeArgumentsInExpression(){switch(token()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return true;case 27:case 18:default:return false}}function parsePrimaryExpression(){switch(token()){case 8:case 9:case 10:case 14:return parseLiteralNode();case 108:case 106:case 104:case 110:case 95:return parseTokenNode();case 20:return parseParenthesizedExpression();case 22:return parseArrayLiteralExpression();case 18:return parseObjectLiteralExpression();case 130:if(!lookAhead(nextTokenIsFunctionKeywordOnSameLine)){break}return parseFunctionExpression();case 84:return parseClassExpression();case 98:return parseFunctionExpression();case 103:return parseNewExpressionOrNewDotTarget();case 43:case 68:if(reScanSlashToken()===13){return parseLiteralNode()}break;case 15:return parseTemplateExpression(false)}return parseIdentifier(e.Diagnostics.Expression_expected)}function parseParenthesizedExpression(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(20);var r=allowInAnd(parseExpression);parseExpected(21);return withJSDoc(finishNode(d.createParenthesizedExpression(r),e),t)}function parseSpreadElement(){var e=getNodePos();parseExpected(25);var t=parseAssignmentExpressionOrHigher();return finishNode(d.createSpreadElement(t),e)}function parseArgumentOrArrayLiteralElement(){return token()===25?parseSpreadElement():token()===27?finishNode(d.createOmittedExpression(),getNodePos()):parseAssignmentExpressionOrHigher()}function parseArgumentExpression(){return doOutsideOfContext(i,parseArgumentOrArrayLiteralElement)}function parseArrayLiteralExpression(){var e=getNodePos();parseExpected(22);var t=r.hasPrecedingLineBreak();var n=parseDelimitedList(15,parseArgumentOrArrayLiteralElement);parseExpected(23);return finishNode(d.createArrayLiteralExpression(n,t),e)}function parseObjectLiteralElement(){var e=getNodePos();var t=hasPrecedingJSDocComment();if(parseOptionalToken(25)){var r=parseAssignmentExpressionOrHigher();return withJSDoc(finishNode(d.createSpreadAssignment(r),e),t)}var n=parseDecorators();var i=parseModifiers();if(parseContextualModifier(135)){return parseAccessorDeclaration(e,t,n,i,170)}if(parseContextualModifier(147)){return parseAccessorDeclaration(e,t,n,i,171)}var a=parseOptionalToken(41);var s=isIdentifier();var o=parsePropertyName();var c=parseOptionalToken(57);var u=parseOptionalToken(53);if(a||token()===20||token()===29){return parseMethodDeclaration(e,t,n,i,a,o,c,u)}var l;var p=s&&token()!==58;if(p){var f=parseOptionalToken(63);var m=f?allowInAnd(parseAssignmentExpressionOrHigher):undefined;l=d.createShorthandPropertyAssignment(o,m);l.equalsToken=f}else{parseExpected(58);var g=allowInAnd(parseAssignmentExpressionOrHigher);l=d.createPropertyAssignment(o,g)}l.decorators=n;l.modifiers=i;l.questionToken=c;l.exclamationToken=u;return withJSDoc(finishNode(l,e),t)}function parseObjectLiteralExpression(){var t=getNodePos();var n=r.getTokenPos();parseExpected(18);var i=r.hasPrecedingLineBreak();var a=parseDelimitedList(12,parseObjectLiteralElement,true);if(!parseExpected(19)){var s=e.lastOrUndefined(v);if(s&&s.code===e.Diagnostics._0_expected.code){e.addRelatedInfo(s,e.createDetachedDiagnostic(f,n,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}}return finishNode(d.createObjectLiteralExpression(a,i),t)}function parseFunctionExpression(){var t=inDecoratorContext();setDecoratorContext(false);var r=getNodePos();var n=hasPrecedingJSDocComment();var i=parseModifiers();parseExpected(98);var a=parseOptionalToken(41);var s=a?1:0;var o=e.some(i,e.isAsyncModifier)?2:0;var c=s&&o?doInYieldAndAwaitContext(parseOptionalBindingIdentifier):s?doInYieldContext(parseOptionalBindingIdentifier):o?doInAwaitContext(parseOptionalBindingIdentifier):parseOptionalBindingIdentifier();var u=parseTypeParameters();var l=parseParameters(s|o);var p=parseReturnType(58,false);var f=parseFunctionBlock(s|o);setDecoratorContext(t);var m=d.createFunctionExpression(i,a,c,u,l,p,f);return withJSDoc(finishNode(m,r),n)}function parseOptionalBindingIdentifier(){return isBindingIdentifier()?parseBindingIdentifier():undefined}function parseNewExpressionOrNewDotTarget(){var t=getNodePos();parseExpected(103);if(parseOptional(24)){var n=parseIdentifierName();return finishNode(d.createMetaProperty(103,n),t)}var i=getNodePos();var a=parsePrimaryExpression();var s;while(true){a=parseMemberExpressionRest(i,a,false);s=tryParse(parseTypeArgumentsInExpression);if(isTemplateStartOfTaggedTemplate()){e.Debug.assert(!!s,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'");a=parseTaggedTemplateRest(i,a,undefined,s);s=undefined}break}var o;if(token()===20){o=parseArgumentList()}else if(s){parseErrorAt(t,r.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list)}return finishNode(d.createNewExpression(a,s,o),t)}function parseBlock(t,n){var i=getNodePos();var a=hasPrecedingJSDocComment();var s=r.getTokenPos();if(parseExpected(18,n)||t){var o=r.hasPrecedingLineBreak();var c=parseList(1,parseStatement);if(!parseExpected(19)){var u=e.lastOrUndefined(v);if(u&&u.code===e.Diagnostics._0_expected.code){e.addRelatedInfo(u,e.createDetachedDiagnostic(f,s,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}}var l=withJSDoc(finishNode(d.createBlock(c,o),i),a);if(token()===63){parseErrorAtCurrentToken(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses);nextToken()}return l}else{var c=createMissingList();return withJSDoc(finishNode(d.createBlock(c,undefined),i),a)}}function parseFunctionBlock(e,t){var r=inYieldContext();setYieldContext(!!(e&1));var n=inAwaitContext();setAwaitContext(!!(e&2));var i=N;N=false;var a=inDecoratorContext();if(a){setDecoratorContext(false)}var s=parseBlock(!!(e&16),t);if(a){setDecoratorContext(true)}N=i;setYieldContext(r);setAwaitContext(n);return s}function parseEmptyStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(26);return withJSDoc(finishNode(d.createEmptyStatement(),e),t)}function parseIfStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(99);parseExpected(20);var r=allowInAnd(parseExpression);parseExpected(21);var n=parseStatement();var i=parseOptional(91)?parseStatement():undefined;return withJSDoc(finishNode(d.createIfStatement(r,n,i),e),t)}function parseDoStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(90);var r=parseStatement();parseExpected(115);parseExpected(20);var n=allowInAnd(parseExpression);parseExpected(21);parseOptional(26);return withJSDoc(finishNode(d.createDoStatement(r,n),e),t)}function parseWhileStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(115);parseExpected(20);var r=allowInAnd(parseExpression);parseExpected(21);var n=parseStatement();return withJSDoc(finishNode(d.createWhileStatement(r,n),e),t)}function parseForOrForInOrForOfStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(97);var r=parseOptionalToken(131);parseExpected(20);var n;if(token()!==26){if(token()===113||token()===119||token()===85){n=parseVariableDeclarationList(true)}else{n=disallowInAnd(parseExpression)}}var i;if(r?parseExpected(158):parseOptional(158)){var a=allowInAnd(parseAssignmentExpressionOrHigher);parseExpected(21);i=d.createForOfStatement(r,n,a,parseStatement())}else if(parseOptional(101)){var a=allowInAnd(parseExpression);parseExpected(21);i=d.createForInStatement(n,a,parseStatement())}else{parseExpected(26);var s=token()!==26&&token()!==21?allowInAnd(parseExpression):undefined;parseExpected(26);var o=token()!==21?allowInAnd(parseExpression):undefined;parseExpected(21);i=d.createForStatement(n,s,o,parseStatement())}return withJSDoc(finishNode(i,e),t)}function parseBreakOrContinueStatement(e){var t=getNodePos();var r=hasPrecedingJSDocComment();parseExpected(e===244?81:86);var n=canParseSemicolon()?undefined:parseIdentifier();parseSemicolon();var i=e===244?d.createBreakStatement(n):d.createContinueStatement(n);return withJSDoc(finishNode(i,t),r)}function parseReturnStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(105);var r=canParseSemicolon()?undefined:allowInAnd(parseExpression);parseSemicolon();return withJSDoc(finishNode(d.createReturnStatement(r),e),t)}function parseWithStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(116);parseExpected(20);var r=allowInAnd(parseExpression);parseExpected(21);var n=doInsideOfContext(16777216,parseStatement);return withJSDoc(finishNode(d.createWithStatement(r,n),e),t)}function parseCaseClause(){var e=getNodePos();parseExpected(82);var t=allowInAnd(parseExpression);parseExpected(58);var r=parseList(3,parseStatement);return finishNode(d.createCaseClause(t,r),e)}function parseDefaultClause(){var e=getNodePos();parseExpected(88);parseExpected(58);var t=parseList(3,parseStatement);return finishNode(d.createDefaultClause(t),e)}function parseCaseOrDefaultClause(){return token()===82?parseCaseClause():parseDefaultClause()}function parseCaseBlock(){var e=getNodePos();parseExpected(18);var t=parseList(2,parseCaseOrDefaultClause);parseExpected(19);return finishNode(d.createCaseBlock(t),e)}function parseSwitchStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(107);parseExpected(20);var r=allowInAnd(parseExpression);parseExpected(21);var n=parseCaseBlock();return withJSDoc(finishNode(d.createSwitchStatement(r,n),e),t)}function parseThrowStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(109);var n=r.hasPrecedingLineBreak()?undefined:allowInAnd(parseExpression);if(n===undefined){C++;n=finishNode(d.createIdentifier(""),getNodePos())}if(!tryParseSemicolon()){parseErrorForMissingSemicolonAfter(n)}return withJSDoc(finishNode(d.createThrowStatement(n),e),t)}function parseTryStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(111);var r=parseBlock(false);var n=token()===83?parseCatchClause():undefined;var i;if(!n||token()===96){parseExpected(96);i=parseBlock(false)}return withJSDoc(finishNode(d.createTryStatement(r,n,i),e),t)}function parseCatchClause(){var e=getNodePos();parseExpected(83);var t;if(parseOptional(20)){t=parseVariableDeclaration();parseExpected(21)}else{t=undefined}var r=parseBlock(false);return finishNode(d.createCatchClause(t,r),e)}function parseDebuggerStatement(){var e=getNodePos();var t=hasPrecedingJSDocComment();parseExpected(87);parseSemicolon();return withJSDoc(finishNode(d.createDebuggerStatement(),e),t)}function parseExpressionOrLabeledStatement(){var t=getNodePos();var r=hasPrecedingJSDocComment();var n;var i=token()===20;var a=allowInAnd(parseExpression);if(e.isIdentifier(a)&&parseOptional(58)){n=d.createLabeledStatement(a,parseStatement())}else{if(!tryParseSemicolon()){parseErrorForMissingSemicolonAfter(a)}n=d.createExpressionStatement(a);if(i){r=false}}return withJSDoc(finishNode(n,t),r)}function nextTokenIsIdentifierOrKeywordOnSameLine(){nextToken();return e.tokenIsIdentifierOrKeyword(token())&&!r.hasPrecedingLineBreak()}function nextTokenIsClassKeywordOnSameLine(){nextToken();return token()===84&&!r.hasPrecedingLineBreak()}function nextTokenIsFunctionKeywordOnSameLine(){nextToken();return token()===98&&!r.hasPrecedingLineBreak()}function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine(){nextToken();return(e.tokenIsIdentifierOrKeyword(token())||token()===8||token()===9||token()===10)&&!r.hasPrecedingLineBreak()}function isDeclaration(){while(true){switch(token()){case 113:case 119:case 85:case 98:case 84:case 92:return true;case 118:case 150:return nextTokenIsIdentifierOnSameLine();case 140:case 141:return nextTokenIsIdentifierOrStringLiteralOnSameLine();case 126:case 130:case 134:case 121:case 122:case 123:case 143:nextToken();if(r.hasPrecedingLineBreak()){return false}continue;case 155:nextToken();return token()===18||token()===79||token()===93;case 100:nextToken();return token()===10||token()===41||token()===18||e.tokenIsIdentifierOrKeyword(token());case 93:var t=nextToken();if(t===150){t=lookAhead(nextToken)}if(t===63||t===41||t===18||t===88||t===127){return true}continue;case 124:nextToken();continue;default:return false}}}function isStartOfDeclaration(){return lookAhead(isDeclaration)}function isStartOfStatement(){switch(token()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return true;case 100:return isStartOfDeclaration()||lookAhead(nextTokenIsOpenParenOrLessThanOrDot);case 85:case 93:return isStartOfDeclaration();case 130:case 134:case 118:case 140:case 141:case 150:case 155:return true;case 123:case 121:case 122:case 124:case 143:return isStartOfDeclaration()||!lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);default:return isStartOfExpression()}}function nextTokenIsBindingIdentifierOrStartOfDestructuring(){nextToken();return isBindingIdentifier()||token()===18||token()===22}function isLetDeclaration(){return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring)}function parseStatement(){switch(token()){case 26:return parseEmptyStatement();case 18:return parseBlock(false);case 113:return parseVariableStatement(getNodePos(),hasPrecedingJSDocComment(),undefined,undefined);case 119:if(isLetDeclaration()){return parseVariableStatement(getNodePos(),hasPrecedingJSDocComment(),undefined,undefined)}break;case 98:return parseFunctionDeclaration(getNodePos(),hasPrecedingJSDocComment(),undefined,undefined);case 84:return parseClassDeclaration(getNodePos(),hasPrecedingJSDocComment(),undefined,undefined);case 99:return parseIfStatement();case 90:return parseDoStatement();case 115:return parseWhileStatement();case 97:return parseForOrForInOrForOfStatement();case 86:return parseBreakOrContinueStatement(243);case 81:return parseBreakOrContinueStatement(244);case 105:return parseReturnStatement();case 116:return parseWithStatement();case 107:return parseSwitchStatement();case 109:return parseThrowStatement();case 111:case 83:case 96:return parseTryStatement();case 87:return parseDebuggerStatement();case 59:return parseDeclaration();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(isStartOfDeclaration()){return parseDeclaration()}break}return parseExpressionOrLabeledStatement()}function isDeclareModifier(e){return e.kind===134}function parseDeclaration(){var t=e.some(lookAhead(function(){return parseDecorators(),parseModifiers()}),isDeclareModifier);if(t){var r=tryReuseAmbientDeclaration();if(r){return r}}var n=getNodePos();var i=hasPrecedingJSDocComment();var a=parseDecorators();var s=parseModifiers();if(t){for(var o=0,c=s;o=0);e.Debug.assert(t<=a);e.Debug.assert(a<=i.length);if(!isJSDocLikeText(i,t)){return undefined}var s;var o;var c;var u;var l;var p=[];var m=[];return r.scanRange(t+3,n-5,function(){var n=1;var f;var g=t-(i.lastIndexOf("\n",t)+1)+4;function pushComment(e){if(!f){f=g}p.push(e);g+=e.length}nextTokenJSDoc();while(parseOptionalJsdoc(5));if(parseOptionalJsdoc(4)){n=0;g=0}e:while(true){switch(token()){case 59:if(n===0||n===1){removeTrailingWhitespace(p);if(!l)l=getNodePos();addTag(parseTag(g));n=0;f=undefined}else{pushComment(r.getTokenText())}break;case 4:p.push(r.getTokenText());n=0;g=0;break;case 41:var _=r.getTokenText();if(n===1||n===2){n=2;pushComment(_)}else{n=1;g+=_.length}break;case 5:var h=r.getTokenText();if(n===2){p.push(h)}else if(f!==undefined&&g+h.length>f){p.push(h.slice(f-g))}g+=h.length;break;case 1:break e;case 18:n=2;var y=r.getStartPos();var v=r.getTextPos()-1;var T=parseJSDocLink(v);if(T){if(!u){removeLeadingNewlines(p)}m.push(finishNode(d.createJSDocText(p.join("")),u!==null&&u!==void 0?u:t,y));m.push(T);p=[];u=r.getTextPos();break}default:n=2;pushComment(r.getTokenText());break}nextTokenJSDoc()}removeTrailingWhitespace(p);if(m.length&&p.length){m.push(finishNode(d.createJSDocText(p.join("")),u!==null&&u!==void 0?u:t,l))}if(m.length&&s)e.Debug.assertIsDefined(l,"having parsed tags implies that the end of the comment span should be set");var S=s&&createNodeArray(s,o,c);return finishNode(d.createJSDocComment(m.length?createNodeArray(m,t,l):p.length?p.join(""):undefined,S),t,a)});function removeLeadingNewlines(e){while(e.length&&(e[0]==="\n"||e[0]==="\r")){e.shift()}}function removeTrailingWhitespace(e){while(e.length&&e[e.length-1].trim()===""){e.pop()}}function isNextNonwhitespaceTokenEndOfFile(){while(true){nextTokenJSDoc();if(token()===1){return true}if(!(token()===5||token()===4)){return false}}}function skipWhitespace(){if(token()===5||token()===4){if(lookAhead(isNextNonwhitespaceTokenEndOfFile)){return}}while(token()===5||token()===4){nextTokenJSDoc()}}function skipWhitespaceOrAsterisk(){if(token()===5||token()===4){if(lookAhead(isNextNonwhitespaceTokenEndOfFile)){return""}}var e=r.hasPrecedingLineBreak();var t=false;var n="";while(e&&token()===41||token()===5||token()===4){n+=r.getTokenText();if(token()===4){e=true;t=true;n=""}else if(token()===41){e=false}nextTokenJSDoc()}return t?n:""}function parseTag(t){e.Debug.assert(token()===59);var n=r.getTokenPos();nextTokenJSDoc();var i=parseJSDocIdentifierName(undefined);var a=skipWhitespaceOrAsterisk();var s;switch(i.escapedText){case"author":s=parseAuthorTag(n,i,t,a);break;case"implements":s=parseImplementsTag(n,i,t,a);break;case"augments":case"extends":s=parseAugmentsTag(n,i,t,a);break;case"class":case"constructor":s=parseSimpleTag(n,d.createJSDocClassTag,i,t,a);break;case"public":s=parseSimpleTag(n,d.createJSDocPublicTag,i,t,a);break;case"private":s=parseSimpleTag(n,d.createJSDocPrivateTag,i,t,a);break;case"protected":s=parseSimpleTag(n,d.createJSDocProtectedTag,i,t,a);break;case"readonly":s=parseSimpleTag(n,d.createJSDocReadonlyTag,i,t,a);break;case"override":s=parseSimpleTag(n,d.createJSDocOverrideTag,i,t,a);break;case"deprecated":F=true;s=parseSimpleTag(n,d.createJSDocDeprecatedTag,i,t,a);break;case"this":s=parseThisTag(n,i,t,a);break;case"enum":s=parseEnumTag(n,i,t,a);break;case"arg":case"argument":case"param":return parseParameterOrPropertyTag(n,i,2,t);case"return":case"returns":s=parseReturnTag(n,i,t,a);break;case"template":s=parseTemplateTag(n,i,t,a);break;case"type":s=parseTypeTag(n,i,t,a);break;case"typedef":s=parseTypedefTag(n,i,t,a);break;case"callback":s=parseCallbackTag(n,i,t,a);break;case"see":s=parseSeeTag(n,i,t,a);break;default:s=parseUnknownTag(n,i,t,a);break}return s}function parseTrailingTagComments(e,t,r,n){if(!n){r+=t-e}return parseTagComments(r,n.slice(r))}function parseTagComments(e,t){var n=getNodePos();var i=[];var a=[];var s;var o=0;var c=true;var u;function pushComment(t){if(!u){u=e}i.push(t);e+=t.length}if(t!==undefined){if(t!==""){pushComment(t)}o=1}var l=token();e:while(true){switch(l){case 4:o=0;i.push(r.getTokenText());e=0;break;case 59:if(o===3||o===2&&(!c||lookAhead(isNextJSDocTokenWhitespace))){i.push(r.getTokenText());break}r.setTextPos(r.getTextPos()-1);case 1:break e;case 5:if(o===2||o===3){pushComment(r.getTokenText())}else{var p=r.getTokenText();if(u!==undefined&&e+p.length>u){i.push(p.slice(u-e))}e+=p.length}break;case 18:o=2;var f=r.getStartPos();var m=r.getTextPos()-1;var g=parseJSDocLink(m);if(g){a.push(finishNode(d.createJSDocText(i.join("")),s!==null&&s!==void 0?s:n,f));a.push(g);i=[];s=r.getTextPos()}else{pushComment(r.getTokenText())}break;case 61:if(o===3){o=2}else{o=3}pushComment(r.getTokenText());break;case 41:if(o===0){o=1;e+=1;break}default:if(o!==3){o=2}pushComment(r.getTokenText());break}c=token()===5;l=nextTokenJSDoc()}removeLeadingNewlines(i);removeTrailingWhitespace(i);if(a.length){if(i.length){a.push(finishNode(d.createJSDocText(i.join("")),s!==null&&s!==void 0?s:n))}return createNodeArray(a,n,r.getTextPos())}else if(i.length){return i.join("")}}function isNextJSDocTokenWhitespace(){var e=nextTokenJSDoc();return e===5||e===4}function parseJSDocLink(t){var n=tryParse(parseJSDocLinkPrefix);if(!n){return undefined}nextTokenJSDoc();skipWhitespace();var i=getNodePos();var a=e.tokenIsIdentifierOrKeyword(token())?parseEntityName(true):undefined;if(a){while(token()===80){reScanHashToken();nextTokenJSDoc();a=finishNode(d.createJSDocMemberName(a,parseIdentifier()),i)}}var s=[];while(token()!==19&&token()!==4&&token()!==1){s.push(r.getTokenText());nextTokenJSDoc()}var o=n==="link"?d.createJSDocLink:n==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return finishNode(o(a,s.join("")),t,r.getTextPos())}function parseJSDocLinkPrefix(){skipWhitespaceOrAsterisk();if(token()===18&&nextTokenJSDoc()===59&&e.tokenIsIdentifierOrKeyword(nextTokenJSDoc())){var t=r.getTokenValue();if(t==="link"||t==="linkcode"||t==="linkplain"){return t}}}function parseUnknownTag(e,t,r,n){return finishNode(d.createJSDocUnknownTag(t,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function addTag(e){if(!e){return}if(!s){s=[e];o=e.pos}else{s.push(e)}c=e.end}function tryParseTypeExpression(){skipWhitespaceOrAsterisk();return token()===18?parseJSDocTypeExpression():undefined}function parseBracketNameInPropertyAndParamTag(){var e=parseOptionalJsdoc(22);if(e){skipWhitespace()}var t=parseOptionalJsdoc(61);var r=parseJSDocEntityName();if(t){parseExpectedTokenJSDoc(61)}if(e){skipWhitespace();if(parseOptionalToken(63)){parseExpression()}parseExpected(23)}return{name:r,isBracketed:e}}function isObjectOrObjectArrayTypeReference(t){switch(t.kind){case 146:return true;case 181:return isObjectOrObjectArrayTypeReference(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&t.typeName.escapedText==="Object"&&!t.typeArguments}}function parseParameterOrPropertyTag(e,t,r,n){var i=tryParseTypeExpression();var a=!i;skipWhitespaceOrAsterisk();var s=parseBracketNameInPropertyAndParamTag(),o=s.name,c=s.isBracketed;var u=skipWhitespaceOrAsterisk();if(a&&!lookAhead(parseJSDocLinkPrefix)){i=tryParseTypeExpression()}var l=parseTrailingTagComments(e,getNodePos(),n,u);var p=r!==4&&parseNestedTypeLiteral(i,o,r,n);if(p){i=p;a=true}var f=r===1?d.createJSDocPropertyTag(t,o,c,i,a,l):d.createJSDocParameterTag(t,o,c,i,a,l);return finishNode(f,e)}function parseNestedTypeLiteral(t,r,n,i){if(t&&isObjectOrObjectArrayTypeReference(t.type)){var a=getNodePos();var s=void 0;var o=void 0;while(s=tryParse(function(){return parseChildParameterOrPropertyTag(n,i,r)})){if(s.kind===335||s.kind===342){o=e.append(o,s)}}if(o){var c=finishNode(d.createJSDocTypeLiteral(o,t.type.kind===181),a);return finishNode(d.createJSDocTypeExpression(c),a)}}}function parseReturnTag(t,n,i,a){if(e.some(s,e.isJSDocReturnTag)){parseErrorAt(n.pos,r.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText)}var o=tryParseTypeExpression();return finishNode(d.createJSDocReturnTag(n,o,parseTrailingTagComments(t,getNodePos(),i,a)),t)}function parseTypeTag(t,n,i,a){if(e.some(s,e.isJSDocTypeTag)){parseErrorAt(n.pos,r.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText)}var o=parseJSDocTypeExpression(true);var c=i!==undefined&&a!==undefined?parseTrailingTagComments(t,getNodePos(),i,a):undefined;return finishNode(d.createJSDocTypeTag(n,o,c),t)}function parseSeeTag(t,n,i,a){var s=lookAhead(function(){return nextTokenJSDoc()===59&&e.tokenIsIdentifierOrKeyword(nextTokenJSDoc())&&r.getTokenValue()==="link"});var o=s?undefined:parseJSDocNameReference();var c=i!==undefined&&a!==undefined?parseTrailingTagComments(t,getNodePos(),i,a):undefined;return finishNode(d.createJSDocSeeTag(n,o,c),t)}function parseAuthorTag(t,n,i,a){var s=getNodePos();var o=parseAuthorNameAndEmail();var c=r.getStartPos();var u=parseTrailingTagComments(t,c,i,a);if(!u){c=r.getStartPos()}var l=typeof u!=="string"?createNodeArray(e.concatenate([finishNode(o,s,c)],u),s):o.text+u;return finishNode(d.createJSDocAuthorTag(n,l),t)}function parseAuthorNameAndEmail(){var e=[];var t=false;var n=r.getToken();while(n!==1&&n!==4){if(n===29){t=true}else if(n===59&&!t){break}else if(n===31&&t){e.push(r.getTokenText());r.setTextPos(r.getTokenPos()+1);break}e.push(r.getTokenText());n=nextTokenJSDoc()}return d.createJSDocText(e.join(""))}function parseImplementsTag(e,t,r,n){var i=parseExpressionWithTypeArgumentsForAugments();return finishNode(d.createJSDocImplementsTag(t,i,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function parseAugmentsTag(e,t,r,n){var i=parseExpressionWithTypeArgumentsForAugments();return finishNode(d.createJSDocAugmentsTag(t,i,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function parseExpressionWithTypeArgumentsForAugments(){var e=parseOptional(18);var t=getNodePos();var r=parsePropertyAccessEntityNameExpression();var n=tryParseTypeArguments();var i=d.createExpressionWithTypeArguments(r,n);var a=finishNode(i,t);if(e){parseExpected(19)}return a}function parsePropertyAccessEntityNameExpression(){var e=getNodePos();var t=parseJSDocIdentifierName();while(parseOptional(24)){var r=parseJSDocIdentifierName();t=finishNode(d.createPropertyAccessExpression(t,r),e)}return t}function parseSimpleTag(e,t,r,n,i){return finishNode(t(r,parseTrailingTagComments(e,getNodePos(),n,i)),e)}function parseThisTag(e,t,r,n){var i=parseJSDocTypeExpression(true);skipWhitespace();return finishNode(d.createJSDocThisTag(t,i,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function parseEnumTag(e,t,r,n){var i=parseJSDocTypeExpression(true);skipWhitespace();return finishNode(d.createJSDocEnumTag(t,i,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function parseTypedefTag(t,r,n,i){var a;var s=tryParseTypeExpression();skipWhitespaceOrAsterisk();var o=parseJSDocTypeNameWithNamespace();skipWhitespace();var c=parseTagComments(n);var u;if(!s||isObjectOrObjectArrayTypeReference(s.type)){var l=void 0;var p=void 0;var m=void 0;var g=false;while(l=tryParse(function(){return parseChildPropertyTag(n)})){g=true;if(l.kind===338){if(p){parseErrorAtCurrentToken(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(v);if(_){e.addRelatedInfo(_,e.createDetachedDiagnostic(f,0,0,e.Diagnostics.The_tag_was_first_specified_here))}break}else{p=l}}else{m=e.append(m,l)}}if(g){var h=s&&s.type.kind===181;var y=d.createJSDocTypeLiteral(m,h);s=p&&p.typeExpression&&!isObjectOrObjectArrayTypeReference(p.typeExpression.type)?p.typeExpression:finishNode(y,t);u=s.end}}u=u||c!==undefined?getNodePos():((a=o!==null&&o!==void 0?o:s)!==null&&a!==void 0?a:r).end;if(!c){c=parseTrailingTagComments(t,u,n,i)}var T=d.createJSDocTypedefTag(r,s,o,c);return finishNode(T,t,u)}function parseJSDocTypeNameWithNamespace(t){var n=r.getTokenPos();if(!e.tokenIsIdentifierOrKeyword(token())){return undefined}var i=parseJSDocIdentifierName();if(parseOptional(24)){var a=parseJSDocTypeNameWithNamespace(true);var s=d.createModuleDeclaration(undefined,undefined,i,a,t?4:undefined);return finishNode(s,n)}if(t){i.isInJSDocNamespace=true}return i}function parseCallbackTagParameters(t){var r=getNodePos();var n;var i;while(n=tryParse(function(){return parseChildParameterOrPropertyTag(4,t)})){i=e.append(i,n)}return createNodeArray(i||[],r)}function parseCallbackTag(e,t,r,n){var i=parseJSDocTypeNameWithNamespace();skipWhitespace();var a=parseTagComments(r);var s=parseCallbackTagParameters(r);var o=tryParse(function(){if(parseOptionalJsdoc(59)){var e=parseTag(r);if(e&&e.kind===336){return e}}});var c=finishNode(d.createJSDocSignature(undefined,s,o),e);if(!a){a=parseTrailingTagComments(e,getNodePos(),r,n)}return finishNode(d.createJSDocCallbackTag(t,c,i,a),e)}function escapedTextsEqual(t,r){while(!e.isIdentifier(t)||!e.isIdentifier(r)){if(!e.isIdentifier(t)&&!e.isIdentifier(r)&&t.right.escapedText===r.right.escapedText){t=t.left;r=r.left}else{return false}}return t.escapedText===r.escapedText}function parseChildPropertyTag(e){return parseChildParameterOrPropertyTag(1,e)}function parseChildParameterOrPropertyTag(t,r,n){var i=true;var a=false;while(true){switch(nextTokenJSDoc()){case 59:if(i){var s=tryParseChildTag(t,r);if(s&&(s.kind===335||s.kind===342)&&t!==4&&n&&(e.isIdentifier(s.name)||!escapedTextsEqual(n,s.name.left))){return false}return s}a=false;break;case 4:i=true;a=false;break;case 41:if(a){i=false}a=true;break;case 79:i=false;break;case 1:return false}}}function tryParseChildTag(t,n){e.Debug.assert(token()===59);var i=r.getStartPos();nextTokenJSDoc();var a=parseJSDocIdentifierName();skipWhitespace();var s;switch(a.escapedText){case"type":return t===1&&parseTypeTag(i,a);case"prop":case"property":s=1;break;case"arg":case"argument":case"param":s=2|4;break;default:return false}if(!(t&s)){return false}return parseParameterOrPropertyTag(i,a,t,n)}function parseTemplateTagTypeParameter(){var t=getNodePos();var r=parseJSDocIdentifierName(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(e.nodeIsMissing(r)){return undefined}return finishNode(d.createTypeParameterDeclaration(r,undefined,undefined),t)}function parseTemplateTagTypeParameters(){var e=getNodePos();var t=[];do{skipWhitespace();var r=parseTemplateTagTypeParameter();if(r!==undefined){t.push(r)}skipWhitespaceOrAsterisk()}while(parseOptionalJsdoc(27));return createNodeArray(t,e)}function parseTemplateTag(e,t,r,n){var i=token()===18?parseJSDocTypeExpression():undefined;var a=parseTemplateTagTypeParameters();return finishNode(d.createJSDocTemplateTag(t,i,a,parseTrailingTagComments(e,getNodePos(),r,n)),e)}function parseOptionalJsdoc(e){if(token()===e){nextTokenJSDoc();return true}return false}function parseJSDocEntityName(){var e=parseJSDocIdentifierName();if(parseOptional(22)){parseExpected(23)}while(parseOptional(24)){var t=parseJSDocIdentifierName();if(parseOptional(22)){parseExpected(23)}e=createQualifiedName(e,t)}return e}function parseJSDocIdentifierName(t){if(!e.tokenIsIdentifierOrKeyword(token())){return createMissingNode(79,!t,t||e.Diagnostics.Identifier_expected)}C++;var n=r.getTokenPos();var i=r.getTextPos();var a=token();var s=internIdentifier(r.getTokenValue());var o=finishNode(d.createIdentifier(s,undefined,a),n,i);nextTokenJSDoc();return o}}})(M=t.JSDocParser||(t.JSDocParser={}))})(u||(u={}));var l;(function(t){function updateSourceFile(t,r,n,i){i=i||e.Debug.shouldAssert(2);checkChangeRange(t,r,n,i);if(e.textChangeRangeIsUnchanged(n)){return t}if(t.statements.length===0){return u.parseSourceFile(t.fileName,r,t.languageVersion,undefined,true,t.scriptKind)}var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed);a.hasBeenIncrementallyParsed=true;u.fixupParentReferences(a);var s=t.text;var o=createSyntaxCursor(t);var c=extendToAffectedRange(t,n);checkChangeRange(t,r,c,i);e.Debug.assert(c.span.start<=n.span.start);e.Debug.assert(e.textSpanEnd(c.span)===e.textSpanEnd(n.span));e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(c))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var l=e.textChangeRangeNewSpan(c).length-c.span.length;updateTokenPositionsAndMarkElements(a,c.span.start,e.textSpanEnd(c.span),e.textSpanEnd(e.textChangeRangeNewSpan(c)),l,s,r,i);var p=u.parseSourceFile(t.fileName,r,t.languageVersion,o,true,t.scriptKind);p.commentDirectives=getNewCommentDirectives(t.commentDirectives,p.commentDirectives,c.span.start,e.textSpanEnd(c.span),l,s,r,i);return p}t.updateSourceFile=updateSourceFile;function getNewCommentDirectives(t,r,n,i,a,s,o,c){if(!t)return r;var u;var l=false;for(var p=0,d=t;pi){addNewlyScannedDirectives();var _={range:{pos:m.pos+a,end:m.end+a},type:g};u=e.append(u,_);if(c){e.Debug.assert(s.substring(m.pos,m.end)===o.substring(_.range.pos,_.range.end))}}}addNewlyScannedDirectives();return u;function addNewlyScannedDirectives(){if(l)return;l=true;if(!u){u=r}else if(r){u.push.apply(u,r)}}}function moveElementEntirelyPastChangeRange(t,r,n,i,a,s){if(r){visitArray(t)}else{visitNode(t)}return;function visitNode(t){var r="";if(s&&shouldCheckNode(t)){r=i.substring(t.pos,t.end)}if(t._children){t._children=undefined}e.setTextRangePosEnd(t,t.pos+n,t.end+n);if(s&&shouldCheckNode(t)){e.Debug.assert(r===a.substring(t.pos,t.end))}forEachChild(t,visitNode,visitArray);if(e.hasJSDocNodes(t)){for(var o=0,c=t.jsDoc;o=r,"Adjusting an element that was entirely before the change range");e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range");e.Debug.assert(t.pos<=t.end);var s=Math.min(t.pos,i);var o=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(s<=o);if(t.parent){e.Debug.assertGreaterThanOrEqual(s,t.parent.pos);e.Debug.assertLessThanOrEqual(o,t.parent.end)}e.setTextRangePosEnd(t,s,o)}function checkNodePositions(t,r){if(r){var n=t.pos;var i=function(t){e.Debug.assert(t.pos>=n);n=t.end};if(e.hasJSDocNodes(t)){for(var a=0,s=t.jsDoc;an){moveElementEntirelyPastChangeRange(t,false,a,s,o,c);return}var u=t.end;if(u>=r){t.intersectsChange=true;t._children=undefined;adjustIntersectingElement(t,r,n,i,a);forEachChild(t,visitNode,visitArray);if(e.hasJSDocNodes(t)){for(var l=0,p=t.jsDoc;ln){moveElementEntirelyPastChangeRange(t,true,a,s,o,c);return}var u=t.end;if(u>=r){t.intersectsChange=true;t._children=undefined;adjustIntersectingElement(t,r,n,i,a);for(var l=0,p=t;l0&&a<=n;a++){var s=findNearestNodeStartingBeforeOrAtPosition(t,i);e.Debug.assert(s.pos<=i);var o=s.pos;i=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span));var u=r.newLength+(r.span.start-i);return e.createTextChangeRange(c,u)}function findNearestNodeStartingBeforeOrAtPosition(t,r){var n=t;var i;forEachChild(t,visit);if(i){var a=getLastDescendant(i);if(a.pos>n.pos){n=a}}return n;function getLastDescendant(t){while(true){var r=e.getLastChild(t);if(r){t=r}else{return t}}}function visit(t){if(e.nodeIsMissing(t)){return}if(t.pos<=r){if(t.pos>=n.pos){n=t}if(rr);return true}}}function checkChangeRange(t,r,n,i){var a=t.text;if(n){e.Debug.assert(a.length-n.span.length+n.newLength===r.length);if(i||e.Debug.shouldAssert(3)){var s=a.substr(0,n.span.start);var o=r.substr(0,n.span.start);e.Debug.assert(s===o);var c=a.substring(e.textSpanEnd(n.span),a.length);var u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}}function createSyntaxCursor(t){var r=t.statements;var n=0;e.Debug.assert(n=t.pos&&e=t.pos&&et.checkJsDirective.pos){t.checkJsDirective={enabled:i==="ts-check",end:e.range.end,pos:e.range.pos}}});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=processPragmasIntoFields;var p=new e.Map;function getNamedArgRegEx(e){if(p.has(e)){return p.get(e)}var t=new RegExp("(\\s"+e+"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))","im");p.set(e,t);return t}var d=/^\/\/\/\s*<(\S+)\s.*?\/>/im;var f=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function extractPragmas(t,r,n){var i=r.kind===2&&d.exec(n);if(i){var a=i[1].toLowerCase();var s=e.commentPragmas[a];if(!s||!(s.kind&1)){return}if(s.args){var o={};for(var c=0,u=s.args;c=r.length)break;var s=a;if(r.charCodeAt(s)===34){a++;while(a32)a++;i.push(r.substring(s,a))}}parseStrings(i)}}e.parseCommandLineWorker=parseCommandLineWorker;function parseOptionValue(t,r,n,i,a,s){if(i.isTSConfigOnly){var o=t[r];if(o==="null"){a[i.name]=undefined;r++}else if(i.type==="boolean"){if(o==="false"){a[i.name]=validateJsonOptionValue(i,false,s);r++}else{if(o==="true")r++;s.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))}}else{s.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name));if(o&&!e.startsWith(o,"-"))r++}}else{if(!t[r]&&i.type!=="boolean"){s.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,getCompilerOptionValueTypeString(i)))}if(t[r]!=="null"){switch(i.type){case"number":a[i.name]=validateJsonOptionValue(i,parseInt(t[r]),s);r++;break;case"boolean":var o=t[r];a[i.name]=validateJsonOptionValue(i,o!=="false",s);if(o==="false"||o==="true"){r++}break;case"string":a[i.name]=validateJsonOptionValue(i,t[r]||"",s);r++;break;case"list":var c=parseListTypeOption(i,t[r],s);a[i.name]=c||[];if(c){r++}break;default:a[i.name]=parseCustomTypeOption(i,t[r],s);r++;break}}else{a[i.name]=undefined;r++}}return r}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:o,getOptionsNameMap:getOptionsNameMap,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function parseCommandLine(t,r){return parseCommandLineWorker(e.compilerOptionsDidYouMeanDiagnostics,t,r)}e.parseCommandLine=parseCommandLine;function getOptionFromName(e,t){return getOptionDeclarationFromName(getOptionsNameMap,e,t)}e.getOptionFromName=getOptionFromName;function getOptionDeclarationFromName(e,t,r){if(r===void 0){r=false}t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var s=a.get(t);if(s!==undefined){t=s}}return i.get(t)}var c;function getBuildOptionsNameMap(){return c||(c=createOptionNameMap(e.buildOpts))}var u={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:getOptionsNameMap};var l={alternateMode:u,getOptionsNameMap:getBuildOptionsNameMap,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function parseBuildCommand(t){var r=parseCommandLineWorker(l,t),n=r.options,i=r.watchOptions,a=r.fileNames,s=r.errors;var o=n;if(a.length===0){a.push(".")}if(o.clean&&o.force){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force"))}if(o.clean&&o.verbose){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose"))}if(o.clean&&o.watch){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch"))}if(o.watch&&o.dry){s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry"))}return{buildOptions:o,watchOptions:i,projects:a,errors:s}}e.parseBuildCommand=parseBuildCommand;function getDiagnosticText(t){var r=[];for(var n=1;n=0){c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,n(n([],o,true),[p],false).join(" -> ")));return{raw:t||convertToObject(r,c)}}var d=t?parseOwnConfigOfJson(t,i,a,s,c):parseOwnConfigOfJsonSourceFile(r,i,a,s,c);if((l=d.options)===null||l===void 0?void 0:l.paths){d.options.pathsBasePath=a}if(d.extendedConfigPath){o=o.concat([p]);var f=getExtendedConfig(r,d.extendedConfigPath,i,o,c,u);if(f&&isSuccessfulParsedTsconfig(f)){var m=f.raw;var g=d.raw;var _;var h=function(t){if(!g[t]&&m[t]){g[t]=e.map(m[t],function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_||(_=e.convertToRelativePath(e.getDirectoryPath(d.extendedConfigPath),a,e.createGetCanonicalFileName(i.useCaseSensitiveFileNames))),t)})}};h("include");h("exclude");h("files");if(g.compileOnSave===undefined){g.compileOnSave=m.compileOnSave}d.options=e.assign({},f.options,d.options);d.watchOptions=d.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,d.watchOptions):d.watchOptions||f.watchOptions}}return d}function parseOwnConfigOfJson(t,r,n,i,a){if(e.hasProperty(t,"excludes")){a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}var s=convertCompilerOptionsFromJsonWorker(t.compilerOptions,n,a,i);var o=convertTypeAcquisitionFromJsonWorker(t.typeAcquisition||t.typingOptions,n,a,i);var c=convertWatchOptionsFromJsonWorker(t.watchOptions,n,a);t.compileOnSave=convertCompileOnSaveOptionFromJson(t,n,a);var u;if(t.extends){if(!e.isString(t.extends)){a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"))}else{var l=i?directoryOfCombinedPath(i,n):n;u=getExtendsConfigPath(t.extends,r,l,a,e.createCompilerDiagnostic)}}return{raw:t,options:s,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}function parseOwnConfigOfJsonSourceFile(t,r,n,i,a){var s=getDefaultCompilerOptions(i);var o,c;var u;var l;var p={onSetValidOptionKeyValueInParent:function(t,r,a){var l;switch(t){case"compilerOptions":l=s;break;case"watchOptions":l=u||(u={});break;case"typeAcquisition":l=o||(o=getDefaultTypeAcquisition(i));break;case"typingOptions":l=c||(c=getDefaultTypeAcquisition(i));break;default:e.Debug.fail("Unknown option")}l[r.name]=normalizeOptionValue(r,n,a)},onSetValidOptionKeyValueInRoot:function(s,o,c,u){switch(s){case"extends":var p=i?directoryOfCombinedPath(i,n):n;l=getExtendsConfigPath(c,r,p,a,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,u,r,n)});return}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,s){if(r==="excludes"){a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}}};var d=convertConfigFileToObject(t,a,true,p);if(!o){if(c){o=c.enableAutoDiscovery!==undefined?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c}else{o=getDefaultTypeAcquisition(i)}}return{raw:d,options:s,watchOptions:u,typeAcquisition:o,extendedConfigPath:l}}function getExtendsConfigPath(t,r,n,i,a){t=e.normalizeSlashes(t);if(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.getNormalizedAbsolutePath(t,n);if(!r.fileExists(s)&&!e.endsWith(s,".json")){s=s+".json";if(!r.fileExists(s)){i.push(a(e.Diagnostics.File_0_not_found,t));return undefined}}return s}var o=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,undefined,undefined,true);if(o.resolvedModule){return o.resolvedModule.resolvedFileName}i.push(a(e.Diagnostics.File_0_not_found,t));return undefined}function getExtendedConfig(t,r,n,i,a,s){var o;var c=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);var u;var l;var p;if(s&&(u=s.get(c))){l=u.extendedResult,p=u.extendedConfig}else{l=readJsonConfigFile(r,function(e){return n.readFile(e)});if(!l.parseDiagnostics.length){p=parseConfig(undefined,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,s)}if(s){s.set(c,{extendedResult:l,extendedConfig:p})}}if(t){t.extendedSourceFiles=[l.fileName];if(l.extendedSourceFiles){(o=t.extendedSourceFiles).push.apply(o,l.extendedSourceFiles)}}if(l.parseDiagnostics.length){a.push.apply(a,l.parseDiagnostics);return undefined}return p}function convertCompileOnSaveOptionFromJson(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){return false}var i=convertJsonOption(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return typeof i==="boolean"&&i}function convertCompilerOptionsFromJson(e,t,r){var n=[];var i=convertCompilerOptionsFromJsonWorker(e,t,n,r);return{options:i,errors:n}}e.convertCompilerOptionsFromJson=convertCompilerOptionsFromJson;function convertTypeAcquisitionFromJson(e,t,r){var n=[];var i=convertTypeAcquisitionFromJsonWorker(e,t,n,r);return{options:i,errors:n}}e.convertTypeAcquisitionFromJson=convertTypeAcquisitionFromJson;function getDefaultCompilerOptions(t){var r=t&&e.getBaseFileName(t)==="jsconfig.json"?{allowJs:true,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:true,skipLibCheck:true,noEmit:true}:{};return r}function convertCompilerOptionsFromJsonWorker(t,r,n,i){var a=getDefaultCompilerOptions(i);convertOptionsFromJson(getCommandLineCompilerOptionsMap(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n);if(i){a.configFilePath=e.normalizeSlashes(i)}return a}function getDefaultTypeAcquisition(t){return{enable:!!t&&e.getBaseFileName(t)==="jsconfig.json",include:[],exclude:[]}}function convertTypeAcquisitionFromJsonWorker(e,t,r,n){var i=getDefaultTypeAcquisition(n);var a=convertEnableAutoDiscoveryToEnable(e);convertOptionsFromJson(getCommandLineTypeAcquisitionMap(),a,t,i,p,r);return i}function convertWatchOptionsFromJsonWorker(e,t,r){return convertOptionsFromJson(getCommandLineWatchOptionsMap(),e,t,undefined,f,r)}function convertOptionsFromJson(t,r,n,i,a,s){if(!r){return}for(var o in r){var c=t.get(o);if(c){(i||(i={}))[c.name]=convertJsonOption(c,r[o],n,s)}else{s.push(createUnknownOptionError(o,a,e.createCompilerDiagnostic))}}return i}function convertJsonOption(t,r,n,i){if(isCompilerOptionsValue(t,r)){var a=t.type;if(a==="list"&&e.isArray(r)){return convertJsonOptionOfListType(t,r,n,i)}else if(!e.isString(a)){return convertJsonOptionOfCustomType(t,r,i)}var s=validateJsonOptionValue(t,r,i);return isNullOrUndefined(s)?s:normalizeNonListOptionValue(t,n,s)}else{i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,getCompilerOptionValueTypeString(t)))}}e.convertJsonOption=convertJsonOption;function normalizeOptionValue(t,r,n){if(isNullOrUndefined(n))return undefined;if(t.type==="list"){var i=t;if(i.element.isFilePath||!e.isString(i.element.type)){return e.filter(e.map(n,function(e){return normalizeOptionValue(i.element,r,e)}),function(e){return!!e})}return n}else if(!e.isString(t.type)){return t.type.get(e.isString(n)?n.toLowerCase():n)}return normalizeNonListOptionValue(t,r,n)}function normalizeNonListOptionValue(t,r,n){if(t.isFilePath){n=e.getNormalizedAbsolutePath(n,r);if(n===""){n="."}}return n}function validateJsonOptionValue(t,r,n){var i;if(isNullOrUndefined(r))return undefined;var a=(i=t.extraValidation)===null||i===void 0?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a));return undefined}function convertJsonOptionOfCustomType(e,t,r){if(isNullOrUndefined(t))return undefined;var n=t.toLowerCase();var i=e.type.get(n);if(i!==undefined){return validateJsonOptionValue(e,i,r)}else{r.push(createCompilerDiagnosticForInvalidCustomType(e))}}function convertJsonOptionOfListType(t,r,n,i){return e.filter(e.map(r,function(e){return convertJsonOption(t.element,e,n,i)}),function(e){return!!e})}var y=/(^|\/)\*\*\/?$/;var v=/^[^*?]*(?=\/[^/]*[*?])/;function getFileNamesFromConfigSpecs(t,r,n,i,a){if(a===void 0){a=e.emptyArray}r=e.normalizePath(r);var s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames);var o=new e.Map;var c=new e.Map;var u=new e.Map;var l=t.validatedFilesSpec,p=t.validatedIncludeSpecs,d=t.validatedExcludeSpecs;var f=e.getSupportedExtensions(n,a);var m=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,f);if(l){for(var g=0,_=l;g<_.length;g++){var h=_[g];var y=e.getNormalizedAbsolutePath(h,r);o.set(s(y),y)}}var v;if(p&&p.length>0){var T=function(t){if(e.fileExtensionIs(t,".json")){if(!v){var n=p.filter(function(t){return e.endsWith(t,".json")});var a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});v=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}var l=e.findIndex(v,function(e){return e.test(t)});if(l!==-1){var d=s(t);if(!o.has(d)&&!u.has(d)){u.set(d,t)}}return"continue"}if(hasFileWithHigherPriorityExtension(t,o,c,f,s)){return"continue"}removeWildcardFilesWithLowerPriorityExtension(t,c,f,s);var m=s(t);if(!o.has(m)&&!c.has(m)){c.set(m,t)}};for(var S=0,b=i.readDirectory(r,m,d,p,undefined);Sr}function matchesExclude(t,r,n,i){return matchesExcludeWorker(t,e.filter(r,function(e){return!invalidDotDotAfterRecursiveWildcard(e)}),n,i)}e.matchesExclude=matchesExclude;function matchesExcludeWorker(t,r,n,i,a){var s=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude");var o=s&&e.getRegexFromPattern(s,n);if(!o)return false;if(o.test(t))return true;return!e.hasExtension(t)&&o.test(e.ensureTrailingDirectorySeparator(t))}function validateSpecs(t,r,n,i,a){return t.filter(function(t){if(!e.isString(t))return false;var i=specToDiagnostic(t,n);if(i!==undefined){r.push(createDiagnostic.apply(void 0,i))}return i===undefined});function createDiagnostic(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function specToDiagnostic(t,r){if(r&&y.test(t)){return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}else if(invalidDotDotAfterRecursiveWildcard(t)){return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}}function getWildcardDirectories(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs;var s=e.getRegularExpressionForWildcard(a,r,"exclude");var o=s&&new RegExp(s,n?"":"i");var c={};if(i!==undefined){var u=[];for(var l=0,p=i;l0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i));n===null||n===void 0?void 0:n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t);n===null||n===void 0?void 0:n.setOwnOptions(t)}function createPerDirectoryResolutionCache(t,r,n){return{getOrCreateCacheForDirectory:getOrCreateCacheForDirectory,clear:clear,update:update};function clear(){n.clear()}function update(e){updateRedirectsMap(e,n)}function getOrCreateCacheForDirectory(i,a){var s=e.toPath(i,t,r);return getOrCreateCache(n,a,s,function(){return new e.Map})}}function createModuleResolutionCache(t,r,n,a,s){var o=createPerDirectoryResolutionCache(t,r,a||(a=createCacheWithRedirects(n)));s||(s=createCacheWithRedirects(n));var c=createPackageJsonInfoCache(t,r);return i(i(i({},c),o),{getOrCreateCacheForModuleName:getOrCreateCacheForModuleName,clear:clear,update:update,getPackageJsonInfoCache:function(){return c}});function clear(){o.clear();s.clear();c.clear()}function update(e){updateRedirectsMap(e,a,s)}function getOrCreateCacheForModuleName(t,r){e.Debug.assert(!e.isExternalModuleNameRelative(t));return getOrCreateCache(s,r,t,createPerModuleNameCache)}function createPerModuleNameCache(){var n=new e.Map;return{get:get,set:set};function get(i){return n.get(e.toPath(i,t,r))}function set(i,a){var s=e.toPath(i,t,r);if(n.has(s)){return}n.set(s,a);var o=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName);var c=o&&getCommonPrefix(s,o);var u=s;while(u!==c){var l=e.getDirectoryPath(u);if(l===u||n.has(l)){break}n.set(l,a);u=l}}function getCommonPrefix(n,i){var a=e.toPath(e.getDirectoryPath(i),t,r);var s=0;var o=Math.min(n.length,a.length);while(si){i=c}if(i===1){return i}}return i}break;case 260:{var u=0;e.forEachChild(t,function(t){var n=getModuleInstanceStateCached(t,r);switch(n){case 0:return;case 2:u=2;return;case 1:u=1;return true;default:e.Debug.assertNever(n)}});return u}case 259:return getModuleInstanceState(t,r);case 79:if(t.isInJSDocNamespace){return 0}}return 1}function getModuleInstanceStateForAliasTarget(t,r){var n=t.propertyName||t.name;var i=t.parent;while(i){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){var a=i.statements;var s=void 0;for(var o=0,c=a;os){s=l}if(s===1){return s}}}if(s!==undefined){return s}}i=i.parent}return 1}var r;(function(e){e[e["None"]=0]="None";e[e["IsContainer"]=1]="IsContainer";e[e["IsBlockScopedContainer"]=2]="IsBlockScopedContainer";e[e["IsControlFlowContainer"]=4]="IsControlFlowContainer";e[e["IsFunctionLike"]=8]="IsFunctionLike";e[e["IsFunctionExpression"]=16]="IsFunctionExpression";e[e["HasLocals"]=32]="HasLocals";e[e["IsInterface"]=64]="IsInterface";e[e["IsObjectLiteralOrClassExpressionMethod"]=128]="IsObjectLiteralOrClassExpressionMethod"})(r||(r={}));function initFlowNode(t){e.Debug.attachFlowNodeDebugInfo(t);return t}var a=createBinder();function bindSourceFile(t,r){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("bind","bindSourceFile",{path:t.path},true);e.performance.mark("beforeBind");e.perfLogger.logStartBindFile(""+t.fileName);a(t,r);e.perfLogger.logStopBindFile();e.performance.mark("afterBind");e.performance.measure("Bind","beforeBind","afterBind");e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop()}e.bindSourceFile=bindSourceFile;function createBinder(){var t;var r;var a;var s;var o;var c;var u;var l;var p;var d;var f;var m;var g;var _;var h;var y;var v;var T;var S;var b;var E;var x;var D=false;var C=0;var A;var k;var P={flags:1};var N={flags:1};var O=createBindBinaryExpressionFlow();function createDiagnosticForNode(r,n,i,a,s){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,s)}function bindSourceFile(n,i){t=n;r=i;a=e.getEmitScriptTarget(r);x=bindInStrictMode(t,i);k=new e.Set;C=0;A=e.objectAllocator.getSymbolConstructor();e.Debug.attachFlowNodeDebugInfo(P);e.Debug.attachFlowNodeDebugInfo(N);if(!t.locals){bind(t);t.symbolCount=C;t.classifiableNames=k;delayedBindJSDocTypedefTag()}t=undefined;r=undefined;a=undefined;s=undefined;o=undefined;c=undefined;u=undefined;l=undefined;p=undefined;d=false;f=undefined;m=undefined;g=undefined;_=undefined;h=undefined;y=undefined;v=undefined;S=undefined;b=false;D=false;E=0}return bindSourceFile;function bindInStrictMode(t,r){if(e.getStrictOptionValue(r,"alwaysStrict")&&!t.isDeclarationFile){return true}else{return!!t.externalModuleIndicator}}function createSymbol(e,t){C++;return new A(e,t)}function addDeclarationToSymbol(t,r,n){t.flags|=n;r.symbol=t;t.declarations=e.appendIfUnique(t.declarations,r);if(n&(32|384|1536|3)&&!t.exports){t.exports=e.createSymbolTable()}if(n&(32|64|2048|4096)&&!t.members){t.members=e.createSymbolTable()}if(t.constEnumOnlyModule&&t.flags&(16|32|256)){t.constEnumOnlyModule=false}if(n&111551){e.setValueDeclaration(t,r)}}function getDeclarationName(t){if(t.kind===269){return t.isExportEquals?"export=":"default"}var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(r.kind===160){var i=r.expression;if(e.isStringOrNumericLiteralLike(i)){return e.escapeLeadingUnderscores(i.text)}if(e.isSignedNumericLiteral(i)){return e.tokenToString(i.operator)+i.operand.text}else{e.Debug.fail("Only computed properties with literal names have declaration names")}}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a){return undefined}var s=a.symbol;return e.getSymbolNameForPrivateIdentifier(s,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):undefined}switch(t.kind){case 169:return"__constructor";case 177:case 172:case 318:return"__call";case 178:case 173:return"__new";case 174:return"__index";case 270:return"__export";case 300:return"export=";case 219:if(e.getAssignmentDeclarationKind(t)===2){return"export="}e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(t)?"__new":"__call";case 162:e.Debug.assert(t.parent.kind===312,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"});var o=t.parent;var c=o.parameters.indexOf(t);return"arg"+c}}function getDisplayName(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(getDeclarationName(t)))}function declareSymbol(r,i,a,s,o,c,u){e.Debug.assert(u||!e.hasDynamicName(a));var l=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&a.name.escapedText==="default";var p=u?"__computed":l&&i?"default":getDeclarationName(a);var d;if(p===undefined){d=createSymbol(0,"__missing")}else{d=r.get(p);if(s&2885600){k.add(p)}if(!d){r.set(p,d=createSymbol(0,p));if(c)d.isReplaceableByMethod=true}else if(c&&!d.isReplaceableByMethod){return d}else if(d.flags&o){if(d.isReplaceableByMethod){r.set(p,d=createSymbol(0,p))}else if(!(s&3&&d.flags&67108864)){if(e.isNamedDeclaration(a)){e.setParent(a.name,a)}var f=d.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;var m=true;if(d.flags&384||s&384){f=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations;m=false}var g=false;if(e.length(d.declarations)){if(l){f=e.Diagnostics.A_module_cannot_have_multiple_default_exports;m=false;g=true}else{if(d.declarations&&d.declarations.length&&(a.kind===269&&!a.isExportEquals)){f=e.Diagnostics.A_module_cannot_have_multiple_default_exports;m=false;g=true}}}var _=[];if(e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&d.flags&(2097152|788968|1920)){_.push(createDiagnosticForNode(a,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(a.name.escapedText)+" }"))}var h=e.getNameOfDeclaration(a)||a;e.forEach(d.declarations,function(r,n){var i=e.getNameOfDeclaration(r)||r;var a=createDiagnosticForNode(i,f,m?getDisplayName(r):undefined);t.bindDiagnostics.push(g?e.addRelatedInfo(a,createDiagnosticForNode(h,n===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a);if(g){_.push(createDiagnosticForNode(i,e.Diagnostics.The_first_export_default_is_here))}});var y=createDiagnosticForNode(h,f,m?getDisplayName(a):undefined);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,n([y],_,false)));d=createSymbol(0,p)}}}addDeclarationToSymbol(d,a,s);if(d.parent){e.Debug.assert(d.parent===i,"Existing symbol parent should match new one")}else{d.parent=i}return d}function declareModuleMember(t,r,n){var i=!!(e.getCombinedModifierFlags(t)&1)||jsdocTreatAsExported(t);if(r&2097152){if(t.kind===273||t.kind===263&&i){return declareSymbol(o.symbol.exports,o.symbol,t,r,n)}else{return declareSymbol(o.locals,undefined,t,r,n)}}else{if(e.isJSDocTypeAlias(t))e.Debug.assert(e.isInJSFile(t));if(!e.isAmbientModule(t)&&(i||o.flags&64)){if(!o.locals||e.hasSyntacticModifier(t,512)&&!getDeclarationName(t)){return declareSymbol(o.symbol.exports,o.symbol,t,r,n)}var a=r&111551?1048576:0;var s=declareSymbol(o.locals,undefined,t,a,n);s.exportSymbol=declareSymbol(o.symbol.exports,o.symbol,t,r,n);t.localSymbol=s;return s}else{return declareSymbol(o.locals,undefined,t,r,n)}}}function jsdocTreatAsExported(t){if(t.parent&&e.isModuleDeclaration(t)){t=t.parent}if(!e.isJSDocTypeAlias(t))return false;if(!e.isJSDocEnumTag(t)&&!!t.fullName)return true;var r=e.getNameOfDeclaration(t);if(!r)return false;if(e.isPropertyAccessEntityNameExpression(r.parent)&&isTopLevelNamespaceAssignment(r.parent))return true;if(e.isDeclaration(r.parent)&&e.getCombinedModifierFlags(r.parent)&1)return true;return false}function bindContainer(t,r){var n=o;var i=c;var a=u;if(r&1){if(t.kind!==212){c=o}o=u=t;if(r&32){o.locals=e.createSymbolTable()}addToContainerChain(o)}else if(r&2){u=t;u.locals=undefined}if(r&4){var s=f;var l=m;var p=g;var h=_;var y=v;var T=S;var x=b;var D=r&16&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);if(!D){f=initFlowNode({flags:2});if(r&(16|128)){f.node=t}}_=D||t.kind===169||t.kind===168||e.isInJSFile(t)&&(t.kind===254||t.kind===211)?createBranchLabel():undefined;v=undefined;m=undefined;g=undefined;S=undefined;b=false;bindChildren(t);t.flags&=~2816;if(!(f.flags&1)&&r&8&&e.nodeIsPresent(t.body)){t.flags|=256;if(b)t.flags|=512;t.endFlowNode=f}if(t.kind===300){t.flags|=E;t.endFlowNode=f}if(_){addAntecedent(_,f);f=finishFlowLabel(_);if(t.kind===169||t.kind===168||e.isInJSFile(t)&&(t.kind===254||t.kind===211)){t.returnFlowNode=f}}if(!D){f=s}m=l;g=p;_=h;v=y;S=T;b=x}else if(r&64){d=false;bindChildren(t);t.flags=d?t.flags|128:t.flags&~128}else{bindChildren(t)}o=n;c=i;u=a}function bindEachFunctionsFirst(e){bindEach(e,function(e){return e.kind===254?bind(e):undefined});bindEach(e,function(e){return e.kind!==254?bind(e):undefined})}function bindEach(t,r){if(r===void 0){r=bind}if(t===undefined){return}e.forEach(t,r)}function bindEachChild(t){e.forEachChild(t,bind,bindEach)}function bindChildren(t){var n=D;D=false;if(checkUnreachable(t)){bindEachChild(t);bindJSDoc(t);D=n;return}if(t.kind>=235&&t.kind<=251&&!r.allowUnreachableCode){t.flowNode=f}switch(t.kind){case 239:bindWhileStatement(t);break;case 238:bindDoStatement(t);break;case 240:bindForStatement(t);break;case 241:case 242:bindForInOrForOfStatement(t);break;case 237:bindIfStatement(t);break;case 245:case 249:bindReturnOrThrow(t);break;case 244:case 243:bindBreakOrContinueStatement(t);break;case 250:bindTryStatement(t);break;case 247:bindSwitchStatement(t);break;case 261:bindCaseBlock(t);break;case 287:bindCaseClause(t);break;case 236:bindExpressionStatement(t);break;case 248:bindLabeledStatement(t);break;case 217:bindPrefixUnaryExpressionFlow(t);break;case 218:bindPostfixUnaryExpressionFlow(t);break;case 219:if(e.isDestructuringAssignment(t)){D=n;bindDestructuringAssignmentFlow(t);return}O(t);break;case 213:bindDeleteExpressionFlow(t);break;case 220:bindConditionalExpressionFlow(t);break;case 252:bindVariableDeclarationFlow(t);break;case 204:case 205:bindAccessExpressionFlow(t);break;case 206:bindCallExpressionFlow(t);break;case 228:bindNonNullExpressionFlow(t);break;case 340:case 333:case 334:bindJSDocTypeAlias(t);break;case 300:{bindEachFunctionsFirst(t.statements);bind(t.endOfFileToken);break}case 233:case 260:bindEachFunctionsFirst(t.statements);break;case 201:bindBindingElementFlow(t);break;case 203:case 202:case 291:case 223:D=n;default:bindEachChild(t);break}bindJSDoc(t);D=n}function isNarrowingExpression(e){switch(e.kind){case 79:case 80:case 108:case 204:case 205:return containsNarrowableReference(e);case 206:return hasNarrowableArgument(e);case 210:case 228:return isNarrowingExpression(e.expression);case 219:return isNarrowingBinaryExpression(e);case 217:return e.operator===53&&isNarrowingExpression(e.operand);case 214:return isNarrowingExpression(e.expression)}return false}function isNarrowableReference(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&isNarrowableReference(t.expression)||e.isBinaryExpression(t)&&t.operatorToken.kind===27&&isNarrowableReference(t.right)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&isNarrowableReference(t.expression)||e.isAssignmentExpression(t)&&isNarrowableReference(t.left)}function containsNarrowableReference(t){return isNarrowableReference(t)||e.isOptionalChain(t)&&containsNarrowableReference(t.expression)}function hasNarrowableArgument(e){if(e.arguments){for(var t=0,r=e.arguments;t=117&&r.originalKeywordKind<=125){t.bindDiagnostics.push(createDiagnosticForNode(r,getStrictModeIdentifierMessage(r),e.declarationNameToString(r)))}else if(r.originalKeywordKind===131){if(e.isExternalModule(t)&&e.isInTopLevelContext(r)){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r)))}else if(r.flags&32768){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r)))}}else if(r.originalKeywordKind===125&&r.flags&8192){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r)))}}}function getStrictModeIdentifierMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function checkPrivateIdentifier(r){if(r.escapedText==="#constructor"){if(!t.parseDiagnostics.length){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r)))}}}function checkStrictModeBinaryExpression(t){if(x&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)){checkStrictModeEvalOrArguments(t,t.left)}}function checkStrictModeCatchClause(e){if(x&&e.variableDeclaration){checkStrictModeEvalOrArguments(e,e.variableDeclaration.name)}}function checkStrictModeDeleteExpression(r){if(x&&r.expression.kind===79){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function isEvalOrArgumentsIdentifier(t){return e.isIdentifier(t)&&(t.escapedText==="eval"||t.escapedText==="arguments")}function checkStrictModeEvalOrArguments(r,n){if(n&&n.kind===79){var i=n;if(isEvalOrArgumentsIdentifier(i)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,getStrictModeEvalOrArgumentsMessage(r),e.idText(i)))}}}function getStrictModeEvalOrArgumentsMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Invalid_use_of_0_in_strict_mode}function checkStrictModeFunctionName(e){if(x){checkStrictModeEvalOrArguments(e,e.name)}}function getStrictModeBlockScopeFunctionDeclarationMessage(r){if(e.getContainingClass(r)){return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode}if(t.externalModuleIndicator){return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode}return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function checkStrictModeFunctionDeclaration(r){if(a<2){if(u.kind!==300&&u.kind!==259&&!e.isFunctionLikeOrClassStaticBlockDeclaration(u)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,getStrictModeBlockScopeFunctionDeclarationMessage(r)))}}}function checkStrictModeNumericLiteral(r){if(x&&r.numericLiteralFlags&32){t.bindDiagnostics.push(createDiagnosticForNode(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}}function checkStrictModePostfixUnaryExpression(e){if(x){checkStrictModeEvalOrArguments(e,e.operand)}}function checkStrictModePrefixUnaryExpression(e){if(x){if(e.operator===45||e.operator===46){checkStrictModeEvalOrArguments(e,e.operand)}}}function checkStrictModeWithStatement(t){if(x){errorOnFirstToken(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}}function checkStrictModeLabeledStatement(t){if(x&&r.target>=2){if(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement)){errorOnFirstToken(t.label,e.Diagnostics.A_label_is_not_allowed_here)}}}function errorOnFirstToken(r,n,i,a,s){var o=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,o.start,o.length,n,i,a,s))}function errorOrSuggestionOnNode(e,t,r){errorOrSuggestionOnRange(e,t,t,r)}function errorOrSuggestionOnRange(r,n,i,a){addErrorOrSuggestionDiagnostic(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function addErrorOrSuggestionDiagnostic(r,n,a){var s=e.createFileDiagnostic(t,n.pos,n.end-n.pos,a);if(r){t.bindDiagnostics.push(s)}else{t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,i(i({},s),{category:e.DiagnosticCategory.Suggestion}))}}function bind(t){if(!t){return}e.setParent(t,s);var r=x;bindWorker(t);if(t.kind>158){var n=s;s=t;var i=getContainerFlags(t);if(i===0){bindChildren(t)}else{bindContainer(t,i)}s=n}else{var n=s;if(t.kind===1)s=t;bindJSDoc(t);s=n}x=r}function bindJSDoc(t){if(e.hasJSDocNodes(t)){if(e.isInJSFile(t)){for(var r=0,n=t.jsDoc;r>",0,ye);var ft=createSignature(undefined,undefined,undefined,e.emptyArray,ye,undefined,0,0);var mt=createSignature(undefined,undefined,undefined,e.emptyArray,Se,undefined,0,0);var gt=createSignature(undefined,undefined,undefined,e.emptyArray,ye,undefined,0,0);var _t=createSignature(undefined,undefined,undefined,e.emptyArray,Ve,undefined,0,0);var ht=createIndexInfo(Fe,Oe,true);var yt=new e.Map;var vt={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}};var Tt=createIterationTypes(ye,ye,ye);var St=createIterationTypes(ye,ye,xe);var bt=createIterationTypes(Ue,ye,De);var Et={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:getGlobalAsyncIteratorType,getGlobalIterableType:getGlobalAsyncIterableType,getGlobalIterableIteratorType:getGlobalAsyncIterableIteratorType,getGlobalGeneratorType:getGlobalAsyncGeneratorType,resolveIterationType:getAwaitedType,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property};var xt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:getGlobalIteratorType,getGlobalIterableType:getGlobalIterableType,getGlobalIterableIteratorType:getGlobalIterableIteratorType,getGlobalGeneratorType:getGlobalGeneratorType,resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property};var Dt;var Ct=new e.Map;var At=false;var kt;var Pt;var Nt;var Ot;var Ft;var wt;var It;var Lt;var Mt;var Rt;var Bt;var jt;var Jt;var Ut;var Vt;var Wt;var Kt;var Gt;var zt;var Ht;var qt;var $t;var Yt;var Xt;var Qt;var Zt;var er;var tr;var rr;var nr;var ir;var ar;var sr;var or;var cr;var ur;var lr;var pr;var dr;var fr;var mr;var gr;var _r=new e.Map;var hr=0;var yr=0;var vr=0;var Tr=false;var Sr=0;var br;var Er;var xr;var Dr=getStringLiteralType("");var Cr=getNumberLiteralType(0);var Ar=getBigIntLiteralType({negative:false,base10Value:"0"});var kr=[];var Pr=[];var Nr=[];var Or=0;var Fr=10;var wr=[];var Ir=[];var Lr=[];var Mr=[];var Rr=[];var Br=[];var jr=[];var Jr=[];var Ur=[];var Vr=[];var Wr=[];var Kr=[];var Gr=[];var zr=[];var Hr=[];var qr=[];var $r=e.createDiagnosticCollection();var Yr=e.createDiagnosticCollection();var Xr=new e.Map(e.getEntries({string:Oe,number:Fe,bigint:we,boolean:Be,symbol:je,undefined:De}));var Qr=createTypeofType();var Zr;var en;var tn;var rn=new e.Map;var nn=new e.Map;var an=new e.Map;var sn=new e.Map;var on=new e.Map;var cn=new e.Map;var un=e.createSymbolTable();un.set(Y.escapedName,Y);initializeTypeChecker();return te;function getJsxNamespace(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace){return r.localJsxFragmentNamespace}var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,F);e.visitNode(r.localJsxFragmentFactory,markAsSynthetic);if(r.localJsxFragmentFactory){return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}}var a=getJsxFragmentFactoryEntity(t);if(a){r.localJsxFragmentFactory=a;return r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}}else{if(r.localJsxNamespace){return r.localJsxNamespace}var s=r.pragmas.get("jsx");if(s){var i=e.isArray(s)?s[0]:s;r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,F);e.visitNode(r.localJsxFactory,markAsSynthetic);if(r.localJsxFactory){return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}}}if(!Zr){Zr="React";if(O.jsxFactory){en=e.parseIsolatedEntityName(O.jsxFactory,F);e.visitNode(en,markAsSynthetic);if(en){Zr=e.getFirstIdentifier(en).escapedText}}else if(O.reactNamespace){Zr=e.escapeLeadingUnderscores(O.reactNamespace)}}if(!en){en=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Zr)),"createElement")}return Zr;function markAsSynthetic(t){e.setTextRangePosEnd(t,-1,-1);return e.visitEachChild(t,markAsSynthetic,e.nullTransformationContext)}}function getEmitResolver(e,t){getDiagnostics(e,t);return H}function lookupOrIssueError(t,r,n,i,a,s){var o=t?e.createDiagnosticForNode(t,r,n,i,a,s):e.createCompilerDiagnostic(r,n,i,a,s);var c=$r.lookup(o);if(c){return c}else{$r.add(o);return o}}function errorSkippedOn(e,t,r,n,i,a,s){var o=error(t,r,n,i,a,s);o.skippedOn=e;return o}function createError(t,r,n,i,a,s){return t?e.createDiagnosticForNode(t,r,n,i,a,s):e.createCompilerDiagnostic(r,n,i,a,s)}function error(e,t,r,n,i,a){var s=createError(e,t,r,n,i,a);$r.add(s);return s}function addErrorOrSuggestion(t,r){if(t){$r.add(r)}else{Yr.add(i(i({},r),{category:e.DiagnosticCategory.Suggestion}))}}function errorOrSuggestion(t,r,n,i,a,s,o){if(r.pos<0||r.end<0){if(!t){return}var c=e.getSourceFileOfNode(r);addErrorOrSuggestion(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,s,o):e.createDiagnosticForFileFromMessageChain(c,n));return}addErrorOrSuggestion(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,s,o):e.createDiagnosticForNodeFromMessageChain(r,n))}function errorAndMaybeSuggestAwait(t,r,n,i,a,s,o){var c=error(t,n,i,a,s,o);if(r){var u=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,u)}return c}function addDeprecatedSuggestionWorker(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);if(n){e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here))}Yr.add(r);return r}function addDeprecatedSuggestion(t,r,n){var i=e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n);return addDeprecatedSuggestionWorker(r,i)}function addDeprecatedSuggestionWithSignature(t,r,n,i){var a=n?e.createDiagnosticForNode(t,e.Diagnostics.The_signature_0_of_1_is_deprecated,i,n):e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,i);return addDeprecatedSuggestionWorker(r,a)}function createSymbol(e,t,r){T++;var n=new _(e|33554432,t);n.checkFlags=r||0;return n}function getExcludedSymbolFlags(e){var t=0;if(e&2)t|=111551;if(e&1)t|=111550;if(e&4)t|=0;if(e&8)t|=900095;if(e&16)t|=110991;if(e&32)t|=899503;if(e&64)t|=788872;if(e&256)t|=899327;if(e&128)t|=899967;if(e&512)t|=110735;if(e&8192)t|=103359;if(e&32768)t|=46015;if(e&65536)t|=78783;if(e&262144)t|=526824;if(e&524288)t|=788968;if(e&2097152)t|=2097152;return t}function recordMergedSymbol(e,t){if(!t.mergeId){t.mergeId=c;c++}wr[t.mergeId]=e}function cloneSymbol(t){var r=createSymbol(t.flags,t.escapedName);r.declarations=t.declarations?t.declarations.slice():[];r.parent=t.parent;if(t.valueDeclaration)r.valueDeclaration=t.valueDeclaration;if(t.constEnumOnlyModule)r.constEnumOnlyModule=true;if(t.members)r.members=new e.Map(t.members);if(t.exports)r.exports=new e.Map(t.exports);recordMergedSymbol(r,t);return r}function mergeSymbol(t,r,n){if(n===void 0){n=false}if(!(t.flags&getExcludedSymbolFlags(r.flags))||(r.flags|t.flags)&67108864){if(r===t){return t}if(!(t.flags&33554432)){var i=resolveSymbol(t);if(i===_e){return r}t=cloneSymbol(i)}if(r.flags&512&&t.flags&512&&t.constEnumOnlyModule&&!r.constEnumOnlyModule){t.constEnumOnlyModule=false}t.flags|=r.flags;if(r.valueDeclaration){e.setValueDeclaration(t,r.valueDeclaration)}e.addRange(t.declarations,r.declarations);if(r.members){if(!t.members)t.members=e.createSymbolTable();mergeSymbolTable(t.members,r.members,n)}if(r.exports){if(!t.exports)t.exports=e.createSymbolTable();mergeSymbolTable(t.exports,r.exports,n)}if(!n){recordMergedSymbol(t,r)}}else if(t.flags&1024){if(t!==X){error(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,symbolToString(t))}}else{var a=!!(t.flags&384||r.flags&384);var s=!!(t.flags&2||r.flags&2);var o=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:s?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;var c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]);var u=t.declarations&&e.getSourceFileOfNode(t.declarations[0]);var l=symbolToString(r);if(c&&u&&Dt&&!a&&c!==u){var p=e.comparePaths(c.path,u.path)===-1?c:u;var d=p===c?u:c;var f=e.getOrUpdate(Dt,p.path+"|"+d.path,function(){return{firstFile:p,secondFile:d,conflictingSymbols:new e.Map}});var m=e.getOrUpdate(f.conflictingSymbols,l,function(){return{isBlockScoped:s,firstFileLocations:[],secondFileLocations:[]}});addDuplicateLocations(m.firstFileLocations,r);addDuplicateLocations(m.secondFileLocations,t)}else{addDuplicateDeclarationErrorsForSymbols(r,o,l,t);addDuplicateDeclarationErrorsForSymbols(t,o,l,r)}}return t;function addDuplicateLocations(t,r){if(r.declarations){for(var n=0,i=r.declarations;n=5||e.some(s.relatedInformation,function(t){return e.compareDiagnostics(t,o)===0||e.compareDiagnostics(t,i)===0}))return"continue";e.addRelatedInfo(s,!e.length(s.relatedInformation)?i:o)};for(var c=0,u=i||e.emptyArray;c1);return}if(e.isGlobalScopeAugmentation(a)){mergeSymbolTable($,a.symbol.exports)}else{var s=!(t.parent.parent.flags&8388608)?e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found:undefined;var o=resolveExternalModuleNameWorker(t,t,s,true);if(!o){return}o=resolveExternalModuleSymbol(o);if(o.flags&1920){if(e.some(Pt,function(e){return o===e.symbol})){var c=mergeSymbol(a.symbol,o,true);if(!Nt){Nt=new e.Map}Nt.set(t.text,c)}else{if(((n=o.exports)===null||n===void 0?void 0:n.get("__export"))&&((i=a.symbol.exports)===null||i===void 0?void 0:i.size)){var u=getResolvedMembersOrExportsOfSymbol(o,"resolvedExports");for(var l=0,p=e.arrayFrom(a.symbol.exports.entries());lt.end){return false}var i=e.findAncestor(r,function(r){if(r===t){return"quit"}switch(r.kind){case 212:return true;case 165:return n&&(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)?"quit":true;case 233:switch(r.parent.kind){case 170:case 167:case 171:return true;default:return false}default:return false}});return i===undefined}}function useOuterVariableScopeInParameter(t,r,n){var i=e.getEmitScriptTarget(O);var a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end){if(i>=2){var s=getNodeLinks(a);if(s.declarationRequiresScopeChange===undefined){s.declarationRequiresScopeChange=e.forEach(a.parameters,requiresScopeChange)||false}return!s.declarationRequiresScopeChange}}return false;function requiresScopeChange(e){return requiresScopeChangeWorker(e.name)||!!e.initializer&&requiresScopeChangeWorker(e.initializer)}function requiresScopeChangeWorker(t){switch(t.kind){case 212:case 211:case 254:case 169:return false;case 167:case 170:case 171:case 291:return requiresScopeChangeWorker(t.name);case 165:if(e.hasStaticModifier(t)){return i<99||!I}return requiresScopeChangeWorker(t.name);default:if(e.isNullishCoalesce(t)||e.isOptionalChain(t)){return i<7}if(e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)){return i<4}if(e.isTypeNode(t))return false;return e.forEachChild(t,requiresScopeChangeWorker)||false}}}function resolveName(e,t,r,n,i,a,s,o){if(s===void 0){s=false}return resolveNameHelper(e,t,r,n,i,a,s,getSymbol,o)}function resolveNameHelper(t,r,n,i,a,s,o,c,u){var l;var p=t;var d;var f;var m;var g;var _;var h=false;var y=t;var v;var T=false;e:while(t){if(t.locals&&!isGlobalSourceFile(t)){if(d=c(t.locals,r,n)){var S=true;if(e.isFunctionLike(t)&&f&&f!==t.body){if(n&d.flags&788968&&f.kind!==315){S=d.flags&262144?f===t.type||f.kind===162||f.kind===161:false}if(n&d.flags&3){if(useOuterVariableScopeInParameter(d,t,f)){S=false}else if(d.flags&1){S=f.kind===162||f===t.type&&!!e.findAncestor(d.valueDeclaration,e.isParameter)}}}else if(t.kind===187){S=f===t.trueType}if(S){break e}else{d=undefined}}}h=h||getIsDeferredContext(t,f);switch(t.kind){case 300:if(!e.isExternalOrCommonJsModule(t))break;T=true;case 259:var b=getSymbolOfNode(t).exports||A;if(t.kind===300||e.isModuleDeclaration(t)&&t.flags&8388608&&!e.isGlobalScopeAugmentation(t)){if(d=b.get("default")){var E=e.getLocalSymbolForExportDefault(d);if(E&&d.flags&n&&E.escapedName===r){break e}d=undefined}var x=b.get(r);if(x&&x.flags===2097152&&(e.getDeclarationOfKind(x,273)||e.getDeclarationOfKind(x,272))){break}}if(r!=="default"&&(d=c(b,r,n&2623475))){if(e.isSourceFile(t)&&t.commonJsModuleIndicator&&!((l=d.declarations)===null||l===void 0?void 0:l.some(e.isJSDocTypeAlias))){d=undefined}else{break e}}break;case 258:if(d=c(getSymbolOfNode(t).exports,r,n&8)){break e}break;case 165:if(!e.isStatic(t)){var D=findConstructorDeclaration(t.parent);if(D&&D.locals){if(c(D.locals,r,n&111551)){g=t}}}break;case 255:case 224:case 256:if(d=c(getSymbolOfNode(t).members||A,r,n&788968)){if(!isTypeParameterSymbolDeclaredInContainer(d,t)){d=undefined;break}if(f&&e.isStatic(f)){error(y,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return undefined}break e}if(t.kind===224&&n&32){var C=t.name;if(C&&r===C.escapedText){d=t.symbol;break e}}break;case 226:if(f===t.expression&&t.parent.token===94){var k=t.parent.parent;if(e.isClassLike(k)&&(d=c(getSymbolOfNode(k).members,r,n&788968))){if(i){error(y,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters)}return undefined}}break;case 160:v=t.parent.parent;if(e.isClassLike(v)||v.kind===256){if(d=c(getSymbolOfNode(v).members,r,n&788968)){error(y,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return undefined}}break;case 212:if(O.target>=2){break}case 167:case 169:case 170:case 171:case 254:if(n&3&&r==="arguments"){d=Q;break e}break;case 211:if(n&3&&r==="arguments"){d=Q;break e}if(n&16){var P=t.name;if(P&&r===P.escapedText){d=t.symbol;break e}}break;case 163:if(t.parent&&t.parent.kind===162){t=t.parent}if(t.parent&&(e.isClassElement(t.parent)||t.parent.kind===255)){t=t.parent}break;case 340:case 333:case 334:var N=e.getJSDocRoot(t);if(N){t=N.parent}break;case 162:if(f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))){if(!_){_=t}}break;case 201:if(f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))){if(e.isParameterDeclaration(t)&&!_){_=t}}break;case 188:if(n&262144){var F=t.typeParameter.name;if(F&&r===F.escapedText){d=t.typeParameter.symbol;break e}}break}if(isSelfReferenceLocation(t)){m=t}f=t;t=t.parent}if(s&&d&&(!m||d!==m.symbol)){d.isReferenced|=n}if(!d){if(f){e.Debug.assert(f.kind===300);if(f.commonJsModuleIndicator&&r==="exports"&&n&f.symbol.flags){return f.symbol}}if(!o){d=c($,r,n)}}if(!d){if(p&&e.isInJSFile(p)&&p.parent){if(e.isRequireCall(p.parent,false)){return Z}}}if(!d){if(i){if(!y||!checkAndReportErrorForMissingPrefix(y,r,a)&&!checkAndReportErrorForExtendingInterface(y)&&!checkAndReportErrorForUsingTypeAsNamespace(y,r,n)&&!checkAndReportErrorForExportingPrimitiveType(y,r)&&!checkAndReportErrorForUsingTypeAsValue(y,r,n)&&!checkAndReportErrorForUsingNamespaceModuleAsValue(y,r,n)&&!checkAndReportErrorForUsingValueAsType(y,r,n)){var w=void 0;if(u&&Or_.pos&&N.parent.locals&&c(N.parent.locals,K.escapedName,n)===K){error(y,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(_.name),e.declarationNameToString(y))}}if(d&&y&&n&111551&&d.flags&2097152){checkSymbolUsageInExpressionContext(d,r,y)}}return d}function checkSymbolUsageInExpressionContext(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=getTypeOnlyAliasDeclaration(t);if(i){var a=e.typeOnlyDeclarationIsExport(i);var s=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type;var o=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here;var c=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(error(n,s,c),e.createDiagnosticForNode(i,o,c))}}}function getIsDeferredContext(t,r){if(t.kind!==212&&t.kind!==211){return e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||t.kind===165&&!e.isStatic(t))&&(!r||r!==t.name)}if(r&&r===t.name){return false}if(t.asteriskToken||e.hasSyntacticModifier(t,256)){return true}return!e.getImmediatelyInvokedFunctionExpression(t)}function isSelfReferenceLocation(e){switch(e.kind){case 254:case 255:case 256:case 258:case 257:case 259:return true;default:return false}}function diagnosticName(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function isTypeParameterSymbolDeclaredInContainer(t,r){if(t.declarations){for(var n=0,i=t.declarations;n=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";var u=i.exports.get("export=");var l=u.valueDeclaration;var p=error(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,symbolToString(i),c);if(l){e.addRelatedInfo(p,e.createDiagnosticForNode(l,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,c))}}else{reportNonDefaultExport(i,t)}}else if(o){var d=resolveExternalModuleSymbol(i,r)||resolveSymbol(i,r);markSymbolOfAliasDeclarationIfTypeOnly(t,i,d,false);return d}markSymbolOfAliasDeclarationIfTypeOnly(t,a,undefined,false);return a}}function reportNonDefaultExport(t,r){var n,i,a;if((n=t.exports)===null||n===void 0?void 0:n.has(r.symbol.escapedName)){error(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,symbolToString(t),symbolToString(r.symbol))}else{var s=error(r.name,e.Diagnostics.Module_0_has_no_default_export,symbolToString(t));var o=(i=t.exports)===null||i===void 0?void 0:i.get("__export");if(o){var c=(a=o.declarations)===null||a===void 0?void 0:a.find(function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&((n=(r=resolveExternalModuleName(t,t.moduleSpecifier))===null||r===void 0?void 0:r.exports)===null||n===void 0?void 0:n.has("default")))});if(c){e.addRelatedInfo(s,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}}function getTargetOfNamespaceImport(e,t){var r=e.parent.parent.moduleSpecifier;var n=resolveExternalModuleName(e,r);var i=resolveESModuleSymbol(n,r,t,false);markSymbolOfAliasDeclarationIfTypeOnly(e,n,i,false);return i}function getTargetOfNamespaceExport(e,t){var r=e.parent.moduleSpecifier;var n=r&&resolveExternalModuleName(e,r);var i=r&&resolveESModuleSymbol(n,r,t,false);markSymbolOfAliasDeclarationIfTypeOnly(e,n,i,false);return i}function combineValueAndTypeSymbols(t,r){if(t===_e&&r===_e){return _e}if(t.flags&(788968|1920)){return t}var n=createSymbol(t.flags|r.flags,t.escapedName);n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues);n.parent=t.parent||r.parent;if(t.valueDeclaration)n.valueDeclaration=t.valueDeclaration;if(r.members)n.members=new e.Map(r.members);if(t.exports)n.exports=new e.Map(t.exports);return n}function getExportOfModule(e,t,r,n){if(e.flags&1536){var i=getExportsOfSymbol(e).get(t.escapedText);var a=resolveSymbol(i,n);markSymbolOfAliasDeclarationIfTypeOnly(r,i,a,false);return a}}function getPropertyOfVariable(e,t){if(e.flags&3){var r=e.valueDeclaration.type;if(r){return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(r),t))}}}function getExternalModuleMember(t,r,n){var i,a;if(n===void 0){n=false}var s=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier;var o=resolveExternalModuleName(t,s);var c=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(!e.isIdentifier(c)){return undefined}var u=c.escapedText==="default"&&!!(O.allowSyntheticDefaultImports||O.esModuleInterop);var l=resolveESModuleSymbol(o,s,false,u);if(l){if(c.escapedText){if(e.isShorthandAmbientModuleSymbol(o)){return o}var p=void 0;if(o&&o.exports&&o.exports.get("export=")){p=getPropertyOfType(getTypeOfSymbol(l),c.escapedText,true)}else{p=getPropertyOfVariable(l,c.escapedText)}p=resolveSymbol(p,n);var d=getExportOfModule(l,c,r,n);if(d===undefined&&c.escapedText==="default"){var f=(i=o.declarations)===null||i===void 0?void 0:i.find(e.isSourceFile);if(canHaveSyntheticDefault(f,o,n)){d=resolveExternalModuleSymbol(o,n)||resolveSymbol(o,n)}}var m=d&&p&&d!==p?combineValueAndTypeSymbols(p,d):d||p;if(!m){var g=getFullyQualifiedName(o,t);var _=e.declarationNameToString(c);var h=getSuggestedSymbolForNonexistentModule(c,l);if(h!==undefined){var y=symbolToString(h);var v=error(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,_,y);if(h.valueDeclaration){e.addRelatedInfo(v,e.createDiagnosticForNode(h.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}}else{if((a=o.exports)===null||a===void 0?void 0:a.has("default")){error(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,_)}else{reportNonExportedMember(t,c,_,o,g)}}}return m}}}function reportNonExportedMember(t,r,i,a,s){var o,c;var u=(c=(o=a.valueDeclaration)===null||o===void 0?void 0:o.locals)===null||c===void 0?void 0:c.get(r.escapedText);var l=a.exports;if(u){var p=l===null||l===void 0?void 0:l.get("export=");if(p){getSymbolIfSameReference(p,u)?reportInvalidImportEqualsExportMember(t,r,i,s):error(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}else{var d=l?e.find(symbolsToArray(l),function(e){return!!getSymbolIfSameReference(e,u)}):undefined;var f=d?error(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,i,symbolToString(d)):error(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,i);if(u.declarations){e.addRelatedInfo.apply(void 0,n([f],e.map(u.declarations,function(t,r){return e.createDiagnosticForNode(t,r===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}),false))}}}else{error(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}}function reportInvalidImportEqualsExportMember(t,r,n,i){if(w>=e.ModuleKind.ES2015){var a=O.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;error(r,a,n)}else{if(e.isInJSFile(t)){var a=O.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;error(r,a,n)}else{var a=O.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;error(r,a,n,n,i)}}}function getTargetOfImportSpecifier(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent;var i=getCommonJSPropertyAccess(n);var a=getExternalModuleMember(n,i||t,r);var s=t.propertyName||t.name;if(i&&a&&e.isIdentifier(s)){return resolveSymbol(getPropertyOfType(getTypeOfSymbol(a),s.escapedText),r)}markSymbolOfAliasDeclarationIfTypeOnly(t,undefined,a,false);return a}function getCommonJSPropertyAccess(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer)){return t.initializer}}function getTargetOfNamespaceExportDeclaration(e,t){var r=resolveExternalModuleSymbol(e.parent.symbol,t);markSymbolOfAliasDeclarationIfTypeOnly(e,undefined,r,false);return r}function getTargetOfExportSpecifier(e,t,r){var n=e.parent.parent.moduleSpecifier?getExternalModuleMember(e.parent.parent,e,r):resolveEntityName(e.propertyName||e.name,t,false,r);markSymbolOfAliasDeclarationIfTypeOnly(e,undefined,n,false);return n}function getTargetOfExportAssignment(t,r){var n=e.isExportAssignment(t)?t.expression:t.right;var i=getTargetOfAliasLikeExpression(n,r);markSymbolOfAliasDeclarationIfTypeOnly(t,undefined,i,false);return i}function getTargetOfAliasLikeExpression(t,r){if(e.isClassExpression(t)){return checkExpressionCached(t).symbol}if(!e.isEntityName(t)&&!e.isEntityNameExpression(t)){return undefined}var n=resolveEntityName(t,111551|788968|1920,true,r);if(n){return n}checkExpressionCached(t);return getNodeLinks(t).resolvedSymbol}function getTargetOfPropertyAssignment(e,t){var r=e.initializer;return getTargetOfAliasLikeExpression(r,t)}function getTargetOfAccessExpression(t,r){if(!(e.isBinaryExpression(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===63)){return undefined}return getTargetOfAliasLikeExpression(t.parent.right,r)}function getTargetOfAliasDeclaration(t,r){if(r===void 0){r=false}switch(t.kind){case 263:case 252:return getTargetOfImportEqualsDeclaration(t,r);case 265:return getTargetOfImportClause(t,r);case 266:return getTargetOfNamespaceImport(t,r);case 272:return getTargetOfNamespaceExport(t,r);case 268:case 201:return getTargetOfImportSpecifier(t,r);case 273:return getTargetOfExportSpecifier(t,111551|788968|1920,r);case 269:case 219:return getTargetOfExportAssignment(t,r);case 262:return getTargetOfNamespaceExportDeclaration(t,r);case 292:return resolveEntityName(t.name,111551|788968|1920,true,r);case 291:return getTargetOfPropertyAssignment(t,r);case 205:case 204:return getTargetOfAccessExpression(t,r);default:return e.Debug.fail()}}function isNonLocalAlias(e,t){if(t===void 0){t=111551|788968|1920}if(!e)return false;return(e.flags&(2097152|t))===2097152||!!(e.flags&2097152&&e.flags&67108864)}function resolveSymbol(e,t){return!t&&isNonLocalAlias(e)?resolveAlias(e):e}function resolveAlias(t){e.Debug.assert((t.flags&2097152)!==0,"Should only get Alias here.");var r=getSymbolLinks(t);if(!r.target){r.target=he;var n=getDeclarationOfAliasSymbol(t);if(!n)return e.Debug.fail();var i=getTargetOfAliasDeclaration(n);if(r.target===he){r.target=i||_e}else{error(n,e.Diagnostics.Circular_definition_of_import_alias_0,symbolToString(t))}}else if(r.target===he){r.target=_e}return r.target}function tryResolveAlias(e){var t=getSymbolLinks(e);if(t.target!==he){return resolveAlias(e)}return undefined}function markSymbolOfAliasDeclarationIfTypeOnly(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return false;var a=getSymbolOfNode(t);if(e.isTypeOnlyImportOrExportDeclaration(t)){var s=getSymbolLinks(a);s.typeOnlyDeclaration=t;return true}var o=getSymbolLinks(a);return markSymbolOfAliasDeclarationIfTypeOnlyWorker(o,r,i)||markSymbolOfAliasDeclarationIfTypeOnlyWorker(o,n,i)}function markSymbolOfAliasDeclarationIfTypeOnlyWorker(t,r,n){var i,a,s;if(r&&(t.typeOnlyDeclaration===undefined||n&&t.typeOnlyDeclaration===false)){var o=(a=(i=r.exports)===null||i===void 0?void 0:i.get("export="))!==null&&a!==void 0?a:r;var c=o.declarations&&e.find(o.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=(s=c!==null&&c!==void 0?c:getSymbolLinks(o).typeOnlyDeclaration)!==null&&s!==void 0?s:false}return!!t.typeOnlyDeclaration}function getTypeOnlyAliasDeclaration(e){if(!(e.flags&2097152)){return undefined}var t=getSymbolLinks(e);return t.typeOnlyDeclaration||undefined}function markExportAsReferenced(e){var t=getSymbolOfNode(e);var r=resolveAlias(t);if(r){var n=r===_e||r.flags&111551&&!isConstEnumOrConstEnumOnlyModule(r)&&!getTypeOnlyAliasDeclaration(t);if(n){markAliasSymbolAsReferenced(t)}}}function markAliasSymbolAsReferenced(t){var r=getSymbolLinks(t);if(!r.referenced){r.referenced=true;var n=getDeclarationOfAliasSymbol(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=resolveSymbol(t);if(i===_e||i.flags&111551){checkExpressionCached(n.moduleReference)}}}}function markConstEnumAliasAsReferenced(e){var t=getSymbolLinks(e);if(!t.constEnumReferenced){t.constEnumReferenced=true}}function getSymbolOfPartOfRightHandSideOfImportEquals(t,r){if(t.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}if(t.kind===79||t.parent.kind===159){return resolveEntityName(t,1920,false,r)}else{e.Debug.assert(t.parent.kind===263);return resolveEntityName(t,111551|788968|1920,false,r)}}function getFullyQualifiedName(e,t){return e.parent?getFullyQualifiedName(e.parent,t)+"."+symbolToString(e):symbolToString(e,t,undefined,16|4)}function resolveEntityName(t,r,n,i,a){if(e.nodeIsMissing(t)){return undefined}var s=1920|(e.isInJSFile(t)?r&111551:0);var o;if(t.kind===79){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:getCannotFindNameDiagnosticForName(e.getFirstIdentifier(t));var u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?resolveEntityNameFromAssignmentDeclaration(t,r):undefined;o=getMergedSymbol(resolveName(a||t,t.escapedText,r,n||u?undefined:c,t,true));if(!o){return getMergedSymbol(u)}}else if(t.kind===159||t.kind===204){var l=t.kind===159?t.left:t.expression;var p=t.kind===159?t.right:t.name;var d=resolveEntityName(l,s,n,false,a);if(!d||e.nodeIsMissing(p)){return undefined}else if(d===_e){return d}if(d.valueDeclaration&&e.isInJSFile(d.valueDeclaration)&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&isCommonJsRequire(d.valueDeclaration.initializer)){var f=d.valueDeclaration.initializer.arguments[0];var m=resolveExternalModuleName(f,f);if(m){var g=resolveExternalModuleSymbol(m);if(g){d=g}}}o=getMergedSymbol(getSymbol(getExportsOfSymbol(d),p.escapedText,r));if(!o){if(!n){var _=getFullyQualifiedName(d);var h=e.declarationNameToString(p);var y=getSuggestedSymbolForNonexistentModule(p,d);y?error(p,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,_,h,symbolToString(y)):error(p,e.Diagnostics.Namespace_0_has_no_exported_member_1,_,h)}return undefined}}else{throw e.Debug.assertNever(t,"Unknown entity name kind.")}e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here.");if(!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(o.flags&2097152||t.parent.kind===269)){markSymbolOfAliasDeclarationIfTypeOnly(e.getAliasDeclarationFromName(t),o,undefined,true)}return o.flags&r||i?o:resolveAlias(o)}function resolveEntityNameFromAssignmentDeclaration(e,t){if(isJSDocTypeReference(e.parent)){var r=getAssignmentDeclarationLocation(e.parent);if(r){return resolveName(r,e.escapedText,t,undefined,e,true)}}}function getAssignmentDeclarationLocation(t){var r=e.findAncestor(t,function(t){return!(e.isJSDocNode(t)||t.flags&4194304)?"quit":e.isJSDocTypeAlias(t)});if(r){return}var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&e.getAssignmentDeclarationKind(n.expression)===3){var i=getSymbolOfNode(n.expression.left);if(i){return getDeclarationOfJSPrototypeContainer(i)}}if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6){var i=getSymbolOfNode(n.parent.parent.left);if(i){return getDeclarationOfJSPrototypeContainer(i)}}var a=e.getEffectiveJSDocHost(t);if(a&&e.isFunctionLike(a)){var i=getSymbolOfNode(a);return i&&i.valueDeclaration}}function getDeclarationOfJSPrototypeContainer(t){var r=t.parent.valueDeclaration;if(!r){return undefined}var n=e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):undefined;return n||r}function getExpandoSymbol(t){var r=t.valueDeclaration;if(!r||!e.isInJSFile(r)||t.flags&524288||e.getExpandoInitializer(r,false)){return undefined}var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=getSymbolOfNode(n);if(i){return mergeJSSymbols(i,t)}}}function resolveExternalModuleName(t,r,n){var i=e.getEmitModuleResolutionKind(O)===e.ModuleResolutionKind.Classic;var a=i?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return resolveExternalModuleNameWorker(t,r,n?undefined:a)}function resolveExternalModuleNameWorker(t,r,n,i){if(i===void 0){i=false}return e.isStringLiteralLike(r)?resolveExternalModule(t,r.text,n,r,i):undefined}function resolveExternalModule(t,r,n,i,s){if(s===void 0){s=false}if(e.startsWith(r,"@types/")){var o=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;var c=e.removePrefix(r,"@types/");error(i,o,c,r)}var u=tryFindAmbientModule(r,true);if(u){return u}var l=e.getSourceFileOfNode(t);var p=e.getResolvedModule(l,r);var d=p&&e.getResolutionDiagnostic(O,p);var f=p&&!d&&a.getSourceFile(p.resolvedFileName);if(f){if(f.symbol){if(p.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(p.extension)){errorOnImplicitAnyModule(false,i,p,r)}return getMergedSymbol(f.symbol)}if(n){error(i,e.Diagnostics.File_0_is_not_a_module,f.fileName)}return undefined}if(Pt){var m=e.findBestPatternMatch(Pt,function(e){return e.pattern},r);if(m){var g=Nt&&Nt.get(r);if(g){return getMergedSymbol(g)}return getMergedSymbol(m.symbol)}}if(p&&!e.resolutionExtensionIsTSOrJson(p.extension)&&d===undefined||d===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var o=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;error(i,o,r,p.resolvedFileName)}else{errorOnImplicitAnyModule(J&&!!n,i,p,r)}return undefined}if(n){if(p){var _=a.getProjectReferenceRedirect(p.resolvedFileName);if(_){error(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,_,p.resolvedFileName);return undefined}}if(d){error(i,d,r,p.resolvedFileName)}else{var h=e.tryExtractTSExtension(r);if(h){var o=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;var y=e.removeExtension(r,h);var v=y;var T=e.getEmitModuleKind(O);if(T>=e.ModuleKind.ES2015){v+=".js"}error(i,o,h,v)}else if(!O.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(O)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(O)){error(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r)}else{error(i,n,r)}}}return undefined}function errorOnImplicitAnyModule(t,r,n,i){var a=n.packageId,s=n.resolvedFileName;var o=!e.isExternalModuleNameRelative(i)&&a?typesPackageExists(a.name)?e.chainDiagnosticMessages(undefined,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,a.name,e.mangleScopedPackageName(a.name)):e.chainDiagnosticMessages(undefined,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(a.name)):undefined;errorOrSuggestion(t,r,e.chainDiagnosticMessages(o,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function typesPackageExists(t){return l().has(e.getTypesPackageName(t))}function resolveExternalModuleSymbol(e,t){if(e===null||e===void 0?void 0:e.exports){var r=resolveSymbol(e.exports.get("export="),t);var n=getCommonJsExportEquals(getMergedSymbol(r),getMergedSymbol(e));return getMergedSymbol(n)||e}return undefined}function getCommonJsExportEquals(t,r){if(!t||t===_e||t===r||r.exports.size===1||t.flags&2097152){return t}var n=getSymbolLinks(t);if(n.cjsExportMerged){return n.cjsExportMerged}var i=t.flags&33554432?t:cloneSymbol(t);i.flags=i.flags|512;if(i.exports===undefined){i.exports=e.createSymbolTable()}r.exports.forEach(function(e,t){if(t==="export=")return;i.exports.set(t,i.exports.has(t)?mergeSymbol(i.exports.get(t),e):e)});getSymbolLinks(i).cjsExportMerged=i;return n.cjsExportMerged=i}function resolveESModuleSymbol(t,r,n,i){var a=resolveExternalModuleSymbol(t,n);if(!n&&a){if(!i&&!(a.flags&(1536|3))&&!e.getDeclarationOfKind(a,300)){var s=w>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";error(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s);return a}if(O.esModuleInterop){var o=r.parent;if(e.isImportDeclaration(o)&&e.getNamespaceDeclarationNode(o)||e.isImportCall(o)){var c=getTypeOfSymbol(a);var u=getSignaturesOfStructuredType(c,0);if(!u||!u.length){u=getSignaturesOfStructuredType(c,1)}if(u&&u.length){var l=getTypeWithSyntheticDefaultImportType(c,a,t);var p=createSymbol(a.flags,a.escapedName);p.declarations=a.declarations?a.declarations.slice():[];p.parent=a.parent;p.target=a;p.originatingImport=o;if(a.valueDeclaration)p.valueDeclaration=a.valueDeclaration;if(a.constEnumOnlyModule)p.constEnumOnlyModule=true;if(a.members)p.members=new e.Map(a.members);if(a.exports)p.exports=new e.Map(a.exports);var d=resolveStructuredTypeMembers(l);p.type=createAnonymousType(p,d.members,e.emptyArray,e.emptyArray,d.indexInfos);return p}}}}return a}function hasExportAssignmentSymbol(e){return e.exports.get("export=")!==undefined}function getExportsOfModuleAsArray(e){return symbolsToArray(getExportsOfModule(e))}function getExportsAndPropertiesOfModule(t){var r=getExportsOfModuleAsArray(t);var n=resolveExternalModuleSymbol(t);if(n!==t){var i=getTypeOfSymbol(n);if(shouldTreatPropertiesOfExternalModuleAsExports(i)){e.addRange(r,getPropertiesOfType(i))}}return r}function forEachExportAndPropertyOfModule(e,t){var r=getExportsOfModule(e);r.forEach(function(e,r){if(!isReservedMemberName(r)){t(e,r)}});var n=resolveExternalModuleSymbol(e);if(n!==e){var i=getTypeOfSymbol(n);if(shouldTreatPropertiesOfExternalModuleAsExports(i)){getPropertiesOfType(i).forEach(function(e){t(e,e.escapedName)})}}}function tryGetMemberInModuleExports(e,t){var r=getExportsOfModule(t);if(r){return r.get(e)}}function tryGetMemberInModuleExportsAndProperties(e,t){var r=tryGetMemberInModuleExports(e,t);if(r){return r}var n=resolveExternalModuleSymbol(t);if(n===t){return undefined}var i=getTypeOfSymbol(n);return shouldTreatPropertiesOfExternalModuleAsExports(i)?getPropertyOfType(i,e):undefined}function shouldTreatPropertiesOfExternalModuleAsExports(t){return!(t.flags&131068||e.getObjectFlags(t)&1||isArrayType(t)||isTupleType(t))}function getExportsOfSymbol(e){return e.flags&6256?getResolvedMembersOrExportsOfSymbol(e,"resolvedExports"):e.flags&1536?getExportsOfModule(e):e.exports||A}function getExportsOfModule(e){var t=getSymbolLinks(e);return t.resolvedExports||(t.resolvedExports=getExportsOfModuleWorker(e))}function extendExportSymbols(t,r,n,i){if(!r)return;r.forEach(function(r,a){if(a==="default")return;var s=t.get(a);if(!s){t.set(a,r);if(n&&i){n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}else if(n&&i&&s&&resolveSymbol(s)!==resolveSymbol(r)){var o=n.get(a);if(!o.exportsWithDuplicate){o.exportsWithDuplicate=[i]}else{o.exportsWithDuplicate.push(i)}}})}function getExportsOfModuleWorker(t){var r=[];t=resolveExternalModuleSymbol(t);return visit(t)||A;function visit(t){if(!(t&&t.exports&&e.pushIfUnique(r,t))){return}var n=new e.Map(t.exports);var i=t.exports.get("__export");if(i){var a=e.createSymbolTable();var s=new e.Map;if(i.declarations){for(var o=0,c=i.declarations;o=p){return l.substr(0,p-"...".length)+"..."}return l}function getTypeNamesForErrorDisplay(e,t){var r=symbolValueDeclarationIsContextSensitive(e.symbol)?typeToString(e,e.symbol.valueDeclaration):typeToString(e);var n=symbolValueDeclarationIsContextSensitive(t.symbol)?typeToString(t,t.symbol.valueDeclaration):typeToString(t);if(r===n){r=getTypeNameForErrorDisplay(e);n=getTypeNameForErrorDisplay(t)}return[r,n]}function getTypeNameForErrorDisplay(e){return typeToString(e,undefined,64)}function symbolValueDeclarationIsContextSensitive(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!isContextSensitive(t.valueDeclaration)}function toNodeBuilderFlags(e){if(e===void 0){e=0}return e&814775659}function isClassInstanceSide(t){return!!t.symbol&&!!(t.symbol.flags&32)&&(t===getDeclaredTypeOfClassOrInterface(t.symbol)||!!(t.flags&524288)&&!!(e.getObjectFlags(t)&16777216))}function createNodeBuilder(){return{typeToTypeNode:function(e,t,r,n){return withContext(t,r,n,function(t){return typeToTypeNodeHelper(e,t)})},indexInfoToIndexSignatureDeclaration:function(e,t,r,n){return withContext(t,r,n,function(t){return indexInfoToIndexSignatureDeclarationHelper(e,t,undefined)})},signatureToSignatureDeclaration:function(e,t,r,n,i){return withContext(r,n,i,function(r){return signatureToSignatureDeclarationHelper(e,t,r)})},symbolToEntityName:function(e,t,r,n,i){return withContext(r,n,i,function(r){return symbolToName(e,r,t,false)})},symbolToExpression:function(e,t,r,n,i){return withContext(r,n,i,function(r){return symbolToExpression(e,r,t)})},symbolToTypeParameterDeclarations:function(e,t,r,n){return withContext(t,r,n,function(t){return typeParametersToTypeParameterDeclarations(e,t)})},symbolToParameterDeclaration:function(e,t,r,n){return withContext(t,r,n,function(t){return symbolToParameterDeclaration(e,t)})},typeParameterToDeclaration:function(e,t,r,n){return withContext(t,r,n,function(t){return typeParameterToDeclaration(e,t)})},symbolTableToDeclarationStatements:function(e,t,r,n,i){return withContext(t,r,n,function(t){return symbolTableToDeclarationStatements(e,t,i)})}};function withContext(t,r,n,i){var s,o;e.Debug.assert(t===undefined||(t.flags&8)===0);var c={enclosingDeclaration:t,flags:r||0,tracker:n&&n.trackSymbol?n:{trackSymbol:function(){return false},moduleResolverHost:r&134217728?{getCommonSourceDirectory:!!a.getCommonSourceDirectory?function(){return a.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return a.getCurrentDirectory()},getSymlinkCache:e.maybeBind(a,a.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(a,a.useCaseSensitiveFileNames),redirectTargetsMap:a.redirectTargetsMap,getProjectReferenceRedirect:function(e){return a.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return a.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return a.fileExists(e)},getFileIncludeReasons:function(){return a.getFileIncludeReasons()}}:undefined},encounteredError:false,reportedDiagnostic:false,visitedTypes:undefined,symbolDepth:undefined,inferTypeParameters:undefined,approximateLength:0};c.tracker=wrapSymbolTrackerToReportForContext(c,c.tracker);var u=i(c);if(c.truncating&&c.flags&1){(o=(s=c.tracker)===null||s===void 0?void 0:s.reportTruncationError)===null||o===void 0?void 0:o.call(s)}return c.encounteredError?undefined:u}function wrapSymbolTrackerToReportForContext(e,t){var r=t.trackSymbol;return i(i({},t),{reportCyclicStructureError:wrapReportedDiagnostic(t.reportCyclicStructureError),reportInaccessibleThisError:wrapReportedDiagnostic(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:wrapReportedDiagnostic(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:wrapReportedDiagnostic(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:wrapReportedDiagnostic(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:wrapReportedDiagnostic(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:wrapReportedDiagnostic(t.reportNonSerializableProperty),trackSymbol:r&&function(){var t=[];for(var n=0;n(t.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function typeToTypeNodeHelper(t,r){if(p&&p.throwIfCancellationRequested){p.throwIfCancellationRequested()}var n=r.flags&8388608;r.flags&=~8388608;if(!t){if(!(r.flags&262144)){r.encounteredError=true;return undefined}r.approximateLength+=3;return e.factory.createKeywordTypeNode(129)}if(!(r.flags&536870912)){t=getReducedType(t)}if(t.flags&1){r.approximateLength+=3;return e.factory.createKeywordTypeNode(t===Ee?137:129)}if(t.flags&2){return e.factory.createKeywordTypeNode(153)}if(t.flags&4){r.approximateLength+=6;return e.factory.createKeywordTypeNode(148)}if(t.flags&8){r.approximateLength+=6;return e.factory.createKeywordTypeNode(145)}if(t.flags&64){r.approximateLength+=6;return e.factory.createKeywordTypeNode(156)}if(t.flags&16&&!t.aliasSymbol){r.approximateLength+=7;return e.factory.createKeywordTypeNode(132)}if(t.flags&1024&&!(t.flags&1048576)){var i=getParentOfSymbol(t.symbol);var a=symbolToTypeNode(i,r,788968);if(getDeclaredTypeOfSymbol(i)===t){return a}var s=e.symbolName(t.symbol);if(e.isIdentifierText(s,0)){return appendReferenceToType(a,e.factory.createTypeReferenceNode(s,undefined))}if(e.isImportTypeNode(a)){a.isTypeOf=true;return e.factory.createIndexedAccessTypeNode(a,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))}else if(e.isTypeReferenceNode(a)){return e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(a.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))}else{return e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}}if(t.flags&1056){return symbolToTypeNode(t.symbol,r,788968)}if(t.flags&128){r.approximateLength+=t.value.length+2;return e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(r.flags&268435456)),16777216))}if(t.flags&256){var o=t.value;r.approximateLength+=(""+o).length;return e.factory.createLiteralTypeNode(o<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-o)):e.factory.createNumericLiteral(o))}if(t.flags&2048){r.approximateLength+=e.pseudoBigIntToString(t.value).length+1;return e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value))}if(t.flags&512){r.approximateLength+=t.intrinsicName.length;return e.factory.createLiteralTypeNode(t.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse())}if(t.flags&8192){if(!(r.flags&1048576)){if(isValueSymbolAccessible(t.symbol,r.enclosingDeclaration)){r.approximateLength+=6;return symbolToTypeNode(t.symbol,r,111551)}if(r.tracker.reportInaccessibleUniqueSymbolError){r.tracker.reportInaccessibleUniqueSymbolError()}}r.approximateLength+=13;return e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(t.flags&16384){r.approximateLength+=4;return e.factory.createKeywordTypeNode(114)}if(t.flags&32768){r.approximateLength+=9;return e.factory.createKeywordTypeNode(151)}if(t.flags&65536){r.approximateLength+=4;return e.factory.createLiteralTypeNode(e.factory.createNull())}if(t.flags&131072){r.approximateLength+=5;return e.factory.createKeywordTypeNode(142)}if(t.flags&4096){r.approximateLength+=6;return e.factory.createKeywordTypeNode(149)}if(t.flags&67108864){r.approximateLength+=6;return e.factory.createKeywordTypeNode(146)}if(isThisTypeParameter(t)){if(r.flags&4194304){if(!r.encounteredError&&!(r.flags&32768)){r.encounteredError=true}if(r.tracker.reportInaccessibleThisError){r.tracker.reportInaccessibleThisError()}}r.approximateLength+=4;return e.factory.createThisTypeNode()}if(!n&&t.aliasSymbol&&(r.flags&16384||isTypeSymbolAccessible(t.aliasSymbol,r.enclosingDeclaration))){var c=mapToTypeNodes(t.aliasTypeArguments,r);if(isReservedMemberName(t.aliasSymbol.escapedName)&&!(t.aliasSymbol.flags&32))return e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),c);return symbolToTypeNode(t.aliasSymbol,r,788968,c)}var u=e.getObjectFlags(t);if(u&4){e.Debug.assert(!!(t.flags&524288));return t.node?visitAndTransformType(t,typeReferenceToTypeNode):typeReferenceToTypeNode(t)}if(t.flags&262144||u&3){if(t.flags&262144&&e.contains(r.inferTypeParameters,t)){r.approximateLength+=e.symbolName(t.symbol).length+6;return e.factory.createInferTypeNode(typeParameterToDeclarationWithConstraint(t,r,undefined))}if(r.flags&4&&t.flags&262144&&!isTypeSymbolAccessible(t.symbol,r.enclosingDeclaration)){var l=typeParameterToName(t,r);r.approximateLength+=e.idText(l).length;return e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(l)),undefined)}return t.symbol?symbolToTypeNode(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),undefined)}if(t.flags&1048576&&t.origin){t=t.origin}if(t.flags&(1048576|2097152)){var d=t.flags&1048576?formatUnionTypes(t.types):t.types;if(e.length(d)===1){return typeToTypeNodeHelper(d[0],r)}var f=mapToTypeNodes(d,r,true);if(f&&f.length>0){return t.flags&1048576?e.factory.createUnionTypeNode(f):e.factory.createIntersectionTypeNode(f)}else{if(!r.encounteredError&&!(r.flags&262144)){r.encounteredError=true}return undefined}}if(u&(16|32)){e.Debug.assert(!!(t.flags&524288));return createAnonymousTypeNode(t)}if(t.flags&4194304){var m=t.type;r.approximateLength+=6;var g=typeToTypeNodeHelper(m,r);return e.factory.createTypeOperatorNode(139,g)}if(t.flags&134217728){var _=t.texts;var h=t.types;var y=e.factory.createTemplateHead(_[0]);var v=e.factory.createNodeArray(e.map(h,function(t,n){return e.factory.createTemplateLiteralTypeSpan(typeToTypeNodeHelper(t,r),(n10){return createElidedInformationPlaceholder(r)}r.symbolDepth.set(c,d+1)}r.visitedTypes.add(s);var f=r.approximateLength;var m=n(t);var g=r.approximateLength-f;if(!r.reportedDiagnostic&&!r.encounteredError){if(r.truncating){m.truncating=true}m.addedLength=g;(a=u===null||u===void 0?void 0:u.serializedTypes)===null||a===void 0?void 0:a.set(l,m)}r.visitedTypes.delete(s);if(c){r.symbolDepth.set(c,d)}return m;function deepCloneOrReuseNode(t){if(!e.nodeIsSynthesized(t)&&e.getParseTreeNode(t)===t){return t}return e.setTextRange(e.factory.cloneNode(e.visitEachChild(t,deepCloneOrReuseNode,e.nullTransformationContext)),t)}}function createTypeNodeFromObjectType(t){if(isGenericMappedType(t)||t.containsError){return createMappedTypeNodeFromType(t)}var n=resolveStructuredTypeMembers(t);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length){r.approximateLength+=2;return e.setEmitFlags(e.factory.createTypeLiteralNode(undefined),1)}if(n.callSignatures.length===1&&!n.constructSignatures.length){var i=n.callSignatures[0];var a=signatureToSignatureDeclarationHelper(i,177,r);return a}if(n.constructSignatures.length===1&&!n.callSignatures.length){var i=n.constructSignatures[0];var a=signatureToSignatureDeclarationHelper(i,178,r);return a}}var s=e.filter(n.constructSignatures,function(e){return!!(e.flags&4)});if(e.some(s)){var o=e.map(s,getOrCreateTypeFromSignature);var c=n.callSignatures.length+(n.constructSignatures.length-s.length)+n.indexInfos.length+(r.flags&2048?e.countWhere(n.properties,function(e){return!(e.flags&4194304)}):e.length(n.properties));if(c){o.push(getResolvedTypeWithoutAbstractConstructSignatures(n))}return typeToTypeNodeHelper(getIntersectionType(o),r)}var u=r.flags;r.flags|=4194304;var l=createTypeNodesFromResolvedType(n);r.flags=u;var p=e.factory.createTypeLiteralNode(l);r.approximateLength+=2;e.setEmitFlags(p,r.flags&1024?0:1);return p}function typeReferenceToTypeNode(t){var n=getTypeArguments(t);if(t.target===Lt||t.target===Mt){if(r.flags&2){var i=typeToTypeNodeHelper(n[0],r);return e.factory.createTypeReferenceNode(t.target===Lt?"Array":"ReadonlyArray",[i])}var a=typeToTypeNodeHelper(n[0],r);var s=e.factory.createArrayTypeNode(a);return t.target===Lt?s:e.factory.createTypeOperatorNode(143,s)}else if(t.target.objectFlags&8){n=e.sameMap(n,function(e,r){return removeMissingType(e,!!(t.target.elementFlags[r]&2))});if(n.length>0){var o=getTypeReferenceArity(t);var c=mapToTypeNodes(n.slice(0,o),r);if(c){if(t.target.labeledElementDeclarations){for(var u=0;u0){var S=(t.target.typeParameters||e.emptyArray).length;T=mapToTypeNodes(n.slice(u,S),r)}var l=r.flags;r.flags|=16;var b=symbolToTypeNode(t.symbol,r,788968,T);r.flags=l;return!f?b:appendReferenceToType(f,b)}}function appendReferenceToType(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments;var i=t.qualifier;if(i){if(e.isIdentifier(i)){i=e.factory.updateIdentifier(i,n)}else{i=e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))}}n=r.typeArguments;var a=getAccessStack(r);for(var s=0,o=a;s2){return[typeToTypeNodeHelper(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",undefined),typeToTypeNodeHelper(t[t.length-1],r)]}}var i=!(r.flags&64);var a=i?e.createUnderscoreEscapedMultiMap():undefined;var s=[];var o=0;for(var c=0,u=t;c0)}else{a=[t]}return a;function getSymbolChain(t,n,a){var s=getAccessibleSymbolChain(t,r.enclosingDeclaration,n,!!(r.flags&128));var o;if(!s||needsQualification(s[0],r.enclosingDeclaration,s.length===1?n:getQualifiedLeftMeaning(n))){var c=getContainersOfSymbol(s?s[0]:t,r.enclosingDeclaration,n);if(e.length(c)){o=c.map(function(t){return e.some(t.declarations,hasNonGlobalAugmentationExternalModuleSymbol)?getSpecifierForModuleSymbol(t,r):undefined});var u=c.map(function(e,t){return t});u.sort(sortByBestName);var l=u.map(function(e){return c[e]});for(var p=0,d=l;p1?createAccessFromSymbolChain(a,a.length-1,1):undefined;var c=i||lookupTypeParameterNodes(a,0,r);var u=getSpecifierForModuleSymbol(a[0],r);if(!(r.flags&67108864)&&e.getEmitModuleResolutionKind(O)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0){r.encounteredError=true;if(r.tracker.reportLikelyUnsafeImportRequiredError){r.tracker.reportLikelyUnsafeImportRequiredError(u)}}var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode)r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]);r.approximateLength+=u.length+10;if(!o||e.isEntityName(o)){if(o){var p=e.isIdentifier(o)?o:o.right;p.typeArguments=undefined}return e.factory.createImportTypeNode(l,o,c,s)}else{var d=getTopmostIndexedAccessType(o);var f=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,f,c,s),d.indexType)}}var m=createAccessFromSymbolChain(a,a.length-1,0);if(e.isIndexedAccessTypeNode(m)){return m}if(s){return e.factory.createTypeQueryNode(m)}else{var p=e.isIdentifier(m)?m:m.right;var g=p.typeArguments;p.typeArguments=undefined;return e.factory.createTypeReferenceNode(m,g)}function createAccessFromSymbolChain(t,n,a){var s=n===t.length-1?i:lookupTypeParameterNodes(t,n,r);var o=t[n];var c=t[n-1];var u;if(n===0){r.flags|=16777216;u=getNameOfSymbolAsWritten(o,r);r.approximateLength+=(u?u.length:0)+1;r.flags^=16777216}else{if(c&&getExportsOfSymbol(c)){var l=getExportsOfSymbol(c);e.forEachEntry(l,function(t,r){if(getSymbolIfSameReference(t,o)&&!isLateBoundName(r)&&r!=="export="){u=e.unescapeLeadingUnderscores(r);return true}})}}if(!u){u=getNameOfSymbolAsWritten(o,r)}r.approximateLength+=u.length+1;if(!(r.flags&16)&&c&&getMembersOfSymbol(c)&&getMembersOfSymbol(c).get(o.escapedName)&&getSymbolIfSameReference(getMembersOfSymbol(c).get(o.escapedName),o)){var p=createAccessFromSymbolChain(t,n-1,a);if(e.isIndexedAccessTypeNode(p)){return e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u)))}else{return e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u)))}}var d=e.setEmitFlags(e.factory.createIdentifier(u,s),16777216);d.symbol=o;if(n>a){var p=createAccessFromSymbolChain(t,n-1,a);if(!e.isEntityName(p)){return e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return e.factory.createQualifiedName(p,d)}return d}}function typeParameterShadowsNameInScope(e,t,r){var n=resolveName(t.enclosingDeclaration,e,788968,undefined,e,false);if(n){if(n.flags&262144&&n===r.symbol){return false}return true}return false}function typeParameterToName(t,r){var n,i;if(r.flags&4&&r.typeParameterNames){var a=r.typeParameterNames.get(getTypeId(t));if(a){return a}}var s=symbolToName(t.symbol,r,788968,true);if(!(s.kind&79)){return e.factory.createIdentifier("(Missing type parameter)")}if(r.flags&4){var o=s.escapedText;var c=((n=r.typeParameterNamesByTextNextNameCount)===null||n===void 0?void 0:n.get(o))||0;var u=o;while(((i=r.typeParameterNamesByText)===null||i===void 0?void 0:i.has(u))||typeParameterShadowsNameInScope(u,r,t)){c++;u=o+"_"+c}if(u!==o){s=e.factory.createIdentifier(u,s.typeArguments)}(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(o,c);(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(getTypeId(t),s);(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(o)}return s}function symbolToName(t,r,n,i){var a=lookupSymbolChain(t,r,n);if(i&&a.length!==1&&!r.encounteredError&&!(r.flags&65536)){r.encounteredError=true}return createEntityNameFromSymbolChain(a,a.length-1);function createEntityNameFromSymbolChain(t,n){var i=lookupTypeParameterNodes(t,n,r);var a=t[n];if(n===0){r.flags|=16777216}var s=getNameOfSymbolAsWritten(a,r);if(n===0){r.flags^=16777216}var o=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);o.symbol=a;return n>0?e.factory.createQualifiedName(createEntityNameFromSymbolChain(t,n-1),o):o}}function symbolToExpression(t,r,n){var i=lookupSymbolChain(t,r,n);return createExpressionFromSymbolChain(i,i.length-1);function createExpressionFromSymbolChain(t,n){var i=lookupTypeParameterNodes(t,n,r);var a=t[n];if(n===0){r.flags|=16777216}var s=getNameOfSymbolAsWritten(a,r);if(n===0){r.flags^=16777216}var o=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(o)&&e.some(a.declarations,hasNonGlobalAugmentationExternalModuleSymbol)){return e.factory.createStringLiteral(getSpecifierForModuleSymbol(a,r))}var c=o===35?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),F):e.isIdentifierStart(o,F);if(n===0||c){var u=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);u.symbol=a;return n>0?e.factory.createPropertyAccessExpression(createExpressionFromSymbolChain(t,n-1),u):u}else{if(o===91){s=s.substring(1,s.length-1);o=s.charCodeAt(0)}var l=void 0;if(e.isSingleOrDoubleQuote(o)){l=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}),o===39)}else if(""+ +s===s){l=e.factory.createNumericLiteral(+s)}if(!l){l=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);l.symbol=a}return e.factory.createElementAccessExpression(createExpressionFromSymbolChain(t,n-1),l)}}}function isStringNamed(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function isSingleQuotedStringNamed(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,false),"'")))}function getPropertyNameNodeForSymbol(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,isSingleQuotedStringNamed);var i=getPropertyNameNodeForSymbolFromNameType(t,r,n);if(i){return i}var a=e.unescapeLeadingUnderscores(t.escapedName);var s=!!e.length(t.declarations)&&e.every(t.declarations,isStringNamed);return createPropertyNameNodeForIdentifierOrLiteral(a,s,n)}function getPropertyNameNodeForSymbolFromNameType(t,r,n){var i=getSymbolLinks(t).nameType;if(i){if(i.flags&384){var a=""+i.value;if(!e.isIdentifierText(a,O.target)&&!isNumericLiteralName(a)){return e.factory.createStringLiteral(a,!!n)}if(isNumericLiteralName(a)&&e.startsWith(a,"-")){return e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a))}return createPropertyNameNodeForIdentifierOrLiteral(a)}if(i.flags&8192){return e.factory.createComputedPropertyName(symbolToExpression(i.symbol,r,111551))}}}function createPropertyNameNodeForIdentifierOrLiteral(t,r,n){return e.isIdentifierText(t,O.target)?e.factory.createIdentifier(t):!r&&isNumericLiteralName(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function cloneNodeBuilderContext(t){var r=i({},t);if(r.typeParameterNames){r.typeParameterNames=new e.Map(r.typeParameterNames)}if(r.typeParameterNamesByText){r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)}if(r.typeParameterSymbolList){r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)}r.tracker=wrapSymbolTrackerToReportForContext(r,r.tracker);return r}function getDeclarationWithTypeAnnotation(t,r){return t.declarations&&e.find(t.declarations,function(t){return!!e.getEffectiveTypeAnnotationNode(t)&&(!r||!!e.findAncestor(t,function(e){return e===r}))})}function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(t,r){return!(e.getObjectFlags(r)&4)||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=getMinTypeArgumentCount(r.target.typeParameters)}function serializeTypeForDeclaration(t,r,n,i,a,s){if(r!==Se&&i){var o=getDeclarationWithTypeAnnotation(n,i);if(o&&!e.isFunctionLikeDeclaration(o)&&!e.isGetAccessorDeclaration(o)){var c=e.getEffectiveTypeAnnotationNode(o);if(getTypeFromTypeNode(c)===r&&existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(c,r)){var u=serializeExistingTypeNode(t,c,a,s);if(u){return u}}}}var l=t.flags;if(r.flags&8192&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)}))){t.flags|=1048576}var p=typeToTypeNodeHelper(r,t);t.flags=l;return p}function serializeReturnTypeForSignature(t,r,n,i,a){if(r!==Se&&t.enclosingDeclaration){var s=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(!!e.findAncestor(s,function(e){return e===t.enclosingDeclaration})&&s){var o=getTypeFromTypeNode(s);var c=o.flags&262144&&o.isThisType?instantiateType(o,n.mapper):o;if(c===r&&existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(s,r)){var u=serializeExistingTypeNode(t,s,i,a);if(u){return u}}}}return typeToTypeNodeHelper(r,t)}function trackExistingEntityName(t,r,n){var i,a;var s=false;var o=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(o)||e.isModuleExportsAccessExpression(o.parent)||e.isQualifiedName(o.parent)&&e.isModuleIdentifier(o.parent.left)&&e.isExportsIdentifier(o.parent.right))){s=true;return{introducesError:s,node:t}}var c=resolveEntityName(o,67108863,true,true);if(c){if(isSymbolAccessible(c,r.enclosingDeclaration,67108863,false).accessibility!==0){s=true}else{(a=(i=r.tracker)===null||i===void 0?void 0:i.trackSymbol)===null||a===void 0?void 0:a.call(i,c,r.enclosingDeclaration,67108863);n===null||n===void 0?void 0:n(c)}if(e.isIdentifier(t)){var u=c.flags&262144?typeParameterToName(getDeclaredTypeOfSymbol(c),r):e.factory.cloneNode(t);u.symbol=c;return{introducesError:s,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}}return{introducesError:s,node:t}}function serializeExistingTypeNode(t,r,n,i){if(p&&p.throwIfCancellationRequested){p.throwIfCancellationRequested()}var s=false;var o=e.getSourceFileOfNode(r);var c=e.visitNode(r,visitExistingNodeTreeSymbols);if(s){return undefined}return c===r?e.setTextRange(e.factory.cloneNode(r),r):c;function visitExistingNodeTreeSymbols(r){if(e.isJSDocAllType(r)||r.kind===314){return e.factory.createKeywordTypeNode(129)}if(e.isJSDocUnknownType(r)){return e.factory.createKeywordTypeNode(153)}if(e.isJSDocNullableType(r)){return e.factory.createUnionTypeNode([e.visitNode(r.type,visitExistingNodeTreeSymbols),e.factory.createLiteralTypeNode(e.factory.createNull())])}if(e.isJSDocOptionalType(r)){return e.factory.createUnionTypeNode([e.visitNode(r.type,visitExistingNodeTreeSymbols),e.factory.createKeywordTypeNode(151)])}if(e.isJSDocNonNullableType(r)){return e.visitNode(r.type,visitExistingNodeTreeSymbols)}if(e.isJSDocVariadicType(r)){return e.factory.createArrayTypeNode(e.visitNode(r.type,visitExistingNodeTreeSymbols))}if(e.isJSDocTypeLiteral(r)){return e.factory.createTypeLiteralNode(e.map(r.jsDocPropertyTags,function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right;var a=getTypeOfPropertyOfType(getTypeFromTypeNode(r),i.escapedText);var s=a&&n.typeExpression&&getTypeFromTypeNode(n.typeExpression.type)!==a?typeToTypeNodeHelper(a,t):undefined;return e.factory.createPropertySignature(undefined,i,n.isBracketed||n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):undefined,s||n.typeExpression&&e.visitNode(n.typeExpression.type,visitExistingNodeTreeSymbols)||e.factory.createKeywordTypeNode(129))}))}if(e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&r.typeName.escapedText===""){return e.setOriginalNode(e.factory.createKeywordTypeNode(129),r)}if((e.isExpressionWithTypeArguments(r)||e.isTypeReferenceNode(r))&&e.isJSDocIndexSignature(r)){return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(undefined,undefined,[e.factory.createParameterDeclaration(undefined,undefined,undefined,"x",undefined,e.visitNode(r.typeArguments[0],visitExistingNodeTreeSymbols))],e.visitNode(r.typeArguments[1],visitExistingNodeTreeSymbols))])}if(e.isJSDocFunctionType(r)){if(e.isJSDocConstructSignature(r)){var c;return e.factory.createConstructorTypeNode(r.modifiers,e.visitNodes(r.typeParameters,visitExistingNodeTreeSymbols),e.mapDefined(r.parameters,function(t,r){return t.name&&e.isIdentifier(t.name)&&t.name.escapedText==="new"?(c=t.type,undefined):e.factory.createParameterDeclaration(undefined,undefined,getEffectiveDotDotDotForParameter(t),getNameForJSDocFunctionParameter(t,r),t.questionToken,e.visitNode(t.type,visitExistingNodeTreeSymbols),undefined)}),e.visitNode(c||r.type,visitExistingNodeTreeSymbols)||e.factory.createKeywordTypeNode(129))}else{return e.factory.createFunctionTypeNode(e.visitNodes(r.typeParameters,visitExistingNodeTreeSymbols),e.map(r.parameters,function(t,r){return e.factory.createParameterDeclaration(undefined,undefined,getEffectiveDotDotDotForParameter(t),getNameForJSDocFunctionParameter(t,r),t.questionToken,e.visitNode(t.type,visitExistingNodeTreeSymbols),undefined)}),e.visitNode(r.type,visitExistingNodeTreeSymbols)||e.factory.createKeywordTypeNode(129))}}if(e.isTypeReferenceNode(r)&&e.isInJSDoc(r)&&(!existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(r,getTypeFromTypeNode(r))||getIntendedTypeFromJSDocTypeReference(r)||_e===resolveTypeReferenceName(getTypeReferenceName(r),788968,true))){return e.setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(r),t),r)}if(e.isLiteralImportTypeNode(r)){var u=getNodeLinks(r).resolvedSymbol;if(e.isInJSDoc(r)&&u&&(!r.isTypeOf&&!(u.flags&788968)||!(e.length(r.typeArguments)>=getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(u))))){return e.setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(r),t),r)}return e.factory.updateImportTypeNode(r,e.factory.updateLiteralTypeNode(r.argument,rewriteModuleSpecifier(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,visitExistingNodeTreeSymbols,e.isTypeNode),r.isTypeOf)}if(e.isEntityName(r)||e.isEntityNameExpression(r)){var l=trackExistingEntityName(r,t,n),p=l.introducesError,d=l.node;s=s||p;if(d!==r){return d}}if(o&&e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(o,r.pos).line===e.getLineAndCharacterOfPosition(o,r.end).line){e.setEmitFlags(r,1)}return e.visitEachChild(r,visitExistingNodeTreeSymbols,e.nullTransformationContext);function getEffectiveDotDotDotForParameter(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):undefined)}function getNameForJSDocFunctionParameter(t,r){return t.name&&e.isIdentifier(t.name)&&t.name.escapedText==="this"?"this":getEffectiveDotDotDotForParameter(t)?"args":"arg"+r}function rewriteModuleSpecifier(r,n){if(i){if(t.tracker&&t.tracker.moduleResolverHost){var s=getExternalModuleFileFromDeclaration(r);if(s){var o=e.createGetCanonicalFileName(!!a.useCaseSensitiveFileNames);var c={getCanonicalFileName:o,getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}};var u=e.getResolvedExternalModuleName(c,s);return e.factory.createStringLiteral(u)}}}else{if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=resolveExternalModuleNameWorker(n,n,undefined);if(l){t.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}}}return n}}}function symbolTableToDeclarationStatements(t,r,a){var s=makeSerializePropertySymbol(e.factory.createPropertyDeclaration,167,true);var o=makeSerializePropertySymbol(function(t,r,n,i,a){return e.factory.createPropertySignature(r,n,i,a)},166,false);var c=r.enclosingDeclaration;var u=[];var l=new e.Set;var p=[];var d=r;r=i(i({},d),{usedSymbolNames:new e.Set(d.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:i(i({},d.tracker),{trackSymbol:function(e,t,n){var i=isSymbolAccessible(e,t,n,false);if(i.accessibility===0){var a=lookupSymbolChainWorker(e,r,n);if(!(e.flags&4)){includePrivateSymbol(a[0])}}else if(d.tracker&&d.tracker.trackSymbol){return d.tracker.trackSymbol(e,t,n)}return false}})});r.tracker=wrapSymbolTrackerToReportForContext(r,r.tracker);e.forEachEntry(t,function(t,r){var n=e.unescapeLeadingUnderscores(r);void getInternalSymbolName(t,n)});var f=!a;var m=t.get("export=");if(m&&t.size>1&&m.flags&2097152){t=e.createSymbolTable();t.set("export=",m)}visitSymbolTable(t);return mergeRedundantStatements(u);function isIdentifierAndNotUndefined(e){return!!e&&e.kind===79}function getNamesOfDeclaration(t){if(e.isVariableStatement(t)){return e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),isIdentifierAndNotUndefined)}return e.filter([e.getNameOfDeclaration(t)],isIdentifierAndNotUndefined)}function flattenExportAssignedNamespace(t){var r=e.find(t,e.isExportAssignment);var i=e.findIndex(t,e.isModuleDeclaration);var a=i!==-1?t[i]:undefined;if(a&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(r.expression)&&a.body&&e.isModuleBlock(a.body)){var s=e.filter(t,function(t){return!!(e.getEffectiveModifierFlags(t)&1)});var o=a.name;var c=a.body;if(e.length(s)){a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(n(n([],a.body.statements,true),[e.factory.createExportDeclaration(undefined,undefined,false,e.factory.createNamedExports(e.map(e.flatMap(s,function(e){return getNamesOfDeclaration(e)}),function(t){return e.factory.createExportSpecifier(undefined,t)})),undefined)],false))));t=n(n(n([],t.slice(0,i),true),[a],false),t.slice(i+1),true)}if(!e.find(t,function(t){return t!==a&&e.nodeHasName(t,o)})){u=[];var l=!e.some(c.statements,function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)});e.forEach(c.statements,function(e){addResult(e,l?1:0)});t=n(n([],e.filter(t,function(e){return e!==a&&e!==r}),true),u,true)}}return t}function mergeExportDeclarations(t){var r=e.filter(t,function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(e.length(r)>1){var i=e.filter(t,function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause});t=n(n([],i,true),[e.factory.createExportDeclaration(undefined,undefined,false,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),undefined)],false)}var a=e.filter(t,function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(e.length(a)>1){var s=e.group(a,function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"});if(s.length!==a.length){var o=function(r){if(r.length>1){t=n(n([],e.filter(t,function(e){return r.indexOf(e)===-1}),true),[e.factory.createExportDeclaration(undefined,undefined,false,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),r[0].moduleSpecifier)],false)}};for(var c=0,u=s;c=0){var n=t[r];var i=e.mapDefined(n.exportClause.elements,function(r){if(!r.propertyName){var n=e.indicesOf(t);var i=e.filter(n,function(n){return e.nodeHasName(t[n],r.name)});if(e.length(i)&&e.every(i,function(e){return canHaveExportModifier(t[e])})){for(var a=0,s=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}if(n==="default"){n="_default"}else if(n==="export="){n="_exports"}n=e.isIdentifierText(n,F)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_");return n}function getInternalSymbolName(e,t){var n=getSymbolId(e);if(r.remappedSymbolNames.has(n)){return r.remappedSymbolNames.get(n)}t=getNameCandidateWorker(e,t);r.remappedSymbolNames.set(n,t);return t}}}function typePredicateToString(t,r,n,i){if(n===void 0){n=16384}return i?typePredicateToStringWorker(i).getText():e.usingSingleLineStringWriter(typePredicateToStringWorker);function typePredicateToStringWorker(i){var a=e.factory.createTypePredicateNode(t.kind===2||t.kind===3?e.factory.createToken(128):undefined,t.kind===1||t.kind===3?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&q.typeToTypeNode(t.type,r,toNodeBuilderFlags(n)|70221824|512));var s=e.createPrinter({removeComments:true});var o=r&&e.getSourceFileOfNode(r);s.writeNode(4,a,o,i);return i}}function formatUnionTypes(e){var t=[];var r=0;for(var n=0;n=0){var n=kr.length;for(var i=r;i=0;r--){if(hasType(kr[r],Nr[r])){return-1}if(kr[r]===e&&Nr[r]===t){return r}}return-1}function hasType(t,r){switch(r){case 0:return!!getSymbolLinks(t).type;case 5:return!!getNodeLinks(t).resolvedEnumType;case 2:return!!getSymbolLinks(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function popTypeResolution(){kr.pop();Nr.pop();return Pr.pop()}function getDeclarationContainer(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 252:case 253:case 268:case 267:case 266:case 265:return false;default:return true}}).parent}function getTypeOfPrototypeProperty(t){var r=getDeclaredTypeOfSymbol(getParentOfSymbol(t));return r.typeParameters?createTypeReference(r,e.map(r.typeParameters,function(e){return ye})):r}function getTypeOfPropertyOfType(e,t){var r=getPropertyOfType(e,t);return r?getTypeOfSymbol(r):undefined}function getTypeOfPropertyOrIndexSignature(e,t){var r;return getTypeOfPropertyOfType(e,t)||((r=getApplicableIndexInfoForName(e,t))===null||r===void 0?void 0:r.type)||xe}function isTypeAny(e){return e&&(e.flags&1)!==0}function getTypeForBindingElementParent(e){var t=getSymbolOfNode(e);return t&&getSymbolLinks(t).type||getTypeForVariableLikeDeclaration(e,false)}function getRestType(t,r,n){t=filterType(t,function(e){return!(e.flags&98304)});if(t.flags&131072){return et}if(t.flags&1048576){return mapType(t,function(e){return getRestType(e,r,n)})}var i=getUnionType(e.map(r,getLiteralTypeFromPropertyName));if(isGenericObjectType(t)||isGenericIndexType(i)){if(i.flags&131072){return t}var a=getGlobalOmitSymbol();if(!a){return Se}return getTypeAliasInstantiation(a,[t,i])}var s=e.createSymbolTable();for(var o=0,c=getPropertiesOfType(t);o=2?createIterableType(ye):Vt}var o=e.map(i,function(t){return e.isOmittedExpression(t)?ye:getTypeFromBindingElement(t,r,n)});var c=e.findLastIndex(i,function(t){return!(t===s||e.isOmittedExpression(t)||hasDefaultValue(t))},i.length-1)+1;var u=e.map(i,function(e,t){return e===s?4:t>=c?2:1});var l=createTupleType(o,u);if(r){l=cloneTypeReference(l);l.pattern=t;l.objectFlags|=262144}return l}function getTypeFromBindingPattern(e,t,r){if(t===void 0){t=false}if(r===void 0){r=false}return e.kind===199?getTypeFromObjectBindingPattern(e,t,r):getTypeFromArrayBindingPattern(e,t,r)}function getWidenedTypeForVariableLikeDeclaration(e,t){return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration(e,true),e,t)}function isGlobalSymbolConstructor(e){var t=getSymbolOfNode(e);var r=getGlobalESSymbolConstructorTypeSymbol(false);return r&&t&&t===r}function widenTypeForVariableLikeDeclaration(t,r,n){if(t){if(t.flags&4096&&isGlobalSymbolConstructor(r.parent)){t=getESSymbolLikeTypeForNode(r)}if(n){reportErrorsFromWidening(r,t)}if(t.flags&8192&&(e.isBindingElement(r)||!r.type)&&t.symbol!==getSymbolOfNode(r)){t=je}return getWidenedType(t)}t=e.isParameter(r)&&r.dotDotDotToken?Vt:ye;if(n){if(!declarationBelongsToPrivateAmbientMember(r)){reportImplicitAny(r,t)}}return t}function declarationBelongsToPrivateAmbientMember(t){var r=e.getRootDeclaration(t);var n=r.kind===162?r.parent:r;return isPrivateWithinAmbient(n)}function tryGetTypeFromEffectiveTypeNode(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r){return getTypeFromTypeNode(r)}}function getTypeOfVariableOrParameterOrProperty(e){var t=getSymbolLinks(e);if(!t.type){var r=getTypeOfVariableOrParameterOrPropertyWorker(e);if(!t.type){t.type=r}}return t.type}function getTypeOfVariableOrParameterOrPropertyWorker(t){if(t.flags&4194304){return getTypeOfPrototypeProperty(t)}if(t===Z){return ye}if(t.flags&134217728&&t.valueDeclaration){var r=getSymbolOfNode(e.getSourceFileOfNode(t.valueDeclaration));var n=createSymbol(r.flags,"exports");n.declarations=r.declarations?r.declarations.slice():[];n.parent=t;n.target=r;if(r.valueDeclaration)n.valueDeclaration=r.valueDeclaration;if(r.members)n.members=new e.Map(r.members);if(r.exports)n.exports=new e.Map(r.exports);var i=e.createSymbolTable();i.set("exports",n);return createAnonymousType(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var a=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(a)){var s=e.getEffectiveTypeAnnotationNode(a);if(s===undefined){return V?xe:ye}var o=getTypeOfNode(s);return isTypeAny(o)||o===xe?o:Se}if(e.isSourceFile(a)&&e.isJsonSourceFile(a)){if(!a.statements.length){return et}return getWidenedType(getWidenedLiteralType(checkExpression(a.statements[0].expression)))}if(!pushTypeResolution(t,0)){if(t.flags&512&&!(t.flags&67108864)){return getTypeOfFuncClassEnumModule(t)}return reportCircularityError(t)}var c;if(a.kind===269){c=widenTypeForVariableLikeDeclaration(checkExpressionCached(a.expression),a)}else if(e.isBinaryExpression(a)||e.isInJSFile(a)&&(e.isCallExpression(a)||(e.isPropertyAccessExpression(a)||e.isBindableStaticElementAccessExpression(a))&&e.isBinaryExpression(a.parent))){c=getWidenedTypeForAssignmentDeclaration(t)}else if(e.isPropertyAccessExpression(a)||e.isElementAccessExpression(a)||e.isIdentifier(a)||e.isStringLiteralLike(a)||e.isNumericLiteral(a)||e.isClassDeclaration(a)||e.isFunctionDeclaration(a)||e.isMethodDeclaration(a)&&!e.isObjectLiteralMethod(a)||e.isMethodSignature(a)||e.isSourceFile(a)){if(t.flags&(16|8192|32|384|512)){return getTypeOfFuncClassEnumModule(t)}c=e.isBinaryExpression(a.parent)?getWidenedTypeForAssignmentDeclaration(t):tryGetTypeFromEffectiveTypeNode(a)||ye}else if(e.isPropertyAssignment(a)){c=tryGetTypeFromEffectiveTypeNode(a)||checkPropertyAssignment(a)}else if(e.isJsxAttribute(a)){c=tryGetTypeFromEffectiveTypeNode(a)||checkJsxAttribute(a)}else if(e.isShorthandPropertyAssignment(a)){c=tryGetTypeFromEffectiveTypeNode(a)||checkExpressionForMutableLocation(a.name,0)}else if(e.isObjectLiteralMethod(a)){c=tryGetTypeFromEffectiveTypeNode(a)||checkObjectLiteralMethod(a,0)}else if(e.isParameter(a)||e.isPropertyDeclaration(a)||e.isPropertySignature(a)||e.isVariableDeclaration(a)||e.isBindingElement(a)||e.isJSDocPropertyLikeTag(a)){c=getWidenedTypeForVariableLikeDeclaration(a,true)}else if(e.isEnumDeclaration(a)){c=getTypeOfFuncClassEnumModule(t)}else if(e.isEnumMember(a)){c=getTypeOfEnumMember(t)}else if(e.isAccessor(a)){c=resolveTypeOfAccessors(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}else{return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(a.kind)+" for "+e.Debug.formatSymbol(t))}if(!popTypeResolution()){if(t.flags&512&&!(t.flags&67108864)){return getTypeOfFuncClassEnumModule(t)}return reportCircularityError(t)}return c}function getAnnotatedAccessorTypeNode(t){if(t){if(t.kind===170){var r=e.getEffectiveReturnTypeNode(t);return r}else{var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n}}return undefined}function getAnnotatedAccessorType(e){var t=getAnnotatedAccessorTypeNode(e);return t&&getTypeFromTypeNode(t)}function getAnnotatedAccessorThisParameter(e){var t=getAccessorThisParameter(e);return t&&t.symbol}function getThisTypeOfDeclaration(e){return getThisTypeOfSignature(getSignatureFromDeclaration(e))}function getTypeOfAccessors(t){var r=getSymbolLinks(t);return r.type||(r.type=getTypeOfAccessorsWorker(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function getTypeOfSetAccessor(e){var t=getSymbolLinks(e);return t.writeType||(t.writeType=getTypeOfAccessorsWorker(e,true))}function getTypeOfAccessorsWorker(t,r){if(r===void 0){r=false}if(!pushTypeResolution(t,0)){return Se}var n=resolveTypeOfAccessors(t,r);if(!popTypeResolution()){n=ye;if(J){var i=e.getDeclarationOfKind(t,170);error(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,symbolToString(t))}}return n}function resolveTypeOfAccessors(t,r){if(r===void 0){r=false}var n=e.getDeclarationOfKind(t,170);var i=e.getDeclarationOfKind(t,171);var a=getAnnotatedAccessorType(i);if(r&&a){return instantiateTypeIfNeeded(a,t)}if(n&&e.isInJSFile(n)){var s=getTypeForDeclarationFromJSDocComment(n);if(s){return instantiateTypeIfNeeded(s,t)}}var o=getAnnotatedAccessorType(n);if(o){return instantiateTypeIfNeeded(o,t)}if(a){return a}if(n&&n.body){var c=getReturnTypeFromBody(n);return instantiateTypeIfNeeded(c,t)}if(i){if(!isPrivateWithinAmbient(i)){errorOrSuggestion(J,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,symbolToString(t))}return ye}else if(n){e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function");if(!isPrivateWithinAmbient(n)){errorOrSuggestion(J,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,symbolToString(t))}return ye}return undefined;function instantiateTypeIfNeeded(t,r){if(e.getCheckFlags(r)&1){var n=getSymbolLinks(r);return instantiateType(t,n.mapper)}return t}}function getBaseTypeVariableOfClass(t){var r=getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(t));return r.flags&8650752?r:r.flags&2097152?e.find(r.types,function(e){return!!(e.flags&8650752)}):undefined}function getTypeOfFuncClassEnumModule(e){var t=getSymbolLinks(e);var r=t;if(!t.type){var n=e.valueDeclaration&&getSymbolOfExpando(e.valueDeclaration,false);if(n){var i=mergeJSSymbols(e,n);if(i){e=t=i}}r.type=t.type=getTypeOfFuncClassEnumModuleWorker(e)}return t.type}function getTypeOfFuncClassEnumModuleWorker(t){var r=t.valueDeclaration;if(t.flags&1536&&e.isShorthandAmbientModuleSymbol(t)){return ye}else if(r&&(r.kind===219||e.isAccessExpression(r)&&r.parent.kind===219)){return getWidenedTypeForAssignmentDeclaration(t)}else if(t.flags&512&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=resolveExternalModuleSymbol(t);if(n!==t){if(!pushTypeResolution(t,0)){return Se}var i=getMergedSymbol(t.exports.get("export="));var a=getWidenedTypeForAssignmentDeclaration(i,i===n?undefined:n);if(!popTypeResolution()){return reportCircularityError(t)}return a}}var s=createObjectType(16,t);if(t.flags&32){var o=getBaseTypeVariableOfClass(t);return o?getIntersectionType([s,o]):s}else{return M&&t.flags&16777216?getOptionalType(s):s}}function getTypeOfEnumMember(e){var t=getSymbolLinks(e);return t.type||(t.type=getDeclaredTypeOfEnumMember(e))}function getTypeOfAlias(e){var t=getSymbolLinks(e);if(!t.type){var r=resolveAlias(e);var n=e.declarations&&getTargetOfAliasDeclaration(getDeclarationOfAliasSymbol(e),true);t.type=(n===null||n===void 0?void 0:n.declarations)&&isDuplicatedCommonJSExport(n.declarations)&&e.declarations.length?getFlowTypeFromCommonJSExport(n):isDuplicatedCommonJSExport(e.declarations)?ve:r.flags&111551?getTypeOfSymbol(r):Se}return t.type}function getTypeOfInstantiatedSymbol(e){var t=getSymbolLinks(e);if(!t.type){if(!pushTypeResolution(e,0)){return t.type=Se}var r=instantiateType(getTypeOfSymbol(t.target),t.mapper);if(!popTypeResolution()){r=reportCircularityError(e)}t.type=r}return t.type}function reportCircularityError(t){var r=t.valueDeclaration;if(e.getEffectiveTypeAnnotationNode(r)){error(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,symbolToString(t));return Se}if(J&&(r.kind!==162||r.initializer)){error(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,symbolToString(t))}return ye}function getTypeOfSymbolWithDeferredType(t){var r=getSymbolLinks(t);if(!r.type){e.Debug.assertIsDefined(r.deferralParent);e.Debug.assertIsDefined(r.deferralConstituents);r.type=r.deferralParent.flags&1048576?getUnionType(r.deferralConstituents):getIntersectionType(r.deferralConstituents)}return r.type}function getSetAccessorTypeOfSymbol(e){if(e.flags&98304){var t=getTypeOfSetAccessor(e);if(t){return t}}return getTypeOfSymbol(e)}function getTypeOfSymbol(t){var r=e.getCheckFlags(t);if(r&65536){return getTypeOfSymbolWithDeferredType(t)}if(r&1){return getTypeOfInstantiatedSymbol(t)}if(r&262144){return getTypeOfMappedSymbol(t)}if(r&8192){return getTypeOfReverseMappedSymbol(t)}if(t.flags&(3|4)){return getTypeOfVariableOrParameterOrProperty(t)}if(t.flags&(16|8192|32|384|512)){return getTypeOfFuncClassEnumModule(t)}if(t.flags&8){return getTypeOfEnumMember(t)}if(t.flags&98304){return getTypeOfAccessors(t)}if(t.flags&2097152){return getTypeOfAlias(t)}return Se}function getNonMissingTypeOfSymbol(e){return removeMissingType(getTypeOfSymbol(e),!!(e.flags&16777216))}function isReferenceToType(t,r){return t!==undefined&&r!==undefined&&(e.getObjectFlags(t)&4)!==0&&t.target===r}function getTargetType(t){return e.getObjectFlags(t)&4?t.target:t}function hasBaseType(t,r){return check(t);function check(t){if(e.getObjectFlags(t)&(3|4)){var n=getTargetType(t);return n===r||e.some(getBaseTypes(n),check)}else if(t.flags&2097152){return e.some(t.types,check)}return false}}function appendTypeParameters(t,r){for(var n=0,i=r;n0){return true}if(e.flags&8650752){var t=getBaseConstraintOfType(e);return!!t&&isMixinConstructorType(t)}return false}function getBaseTypeNodeOfClass(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function getConstructorsForTypeArguments(t,r,n){var i=e.length(r);var a=e.isInJSFile(n);return e.filter(getSignaturesOfType(t,1),function(t){return(a||i>=getMinTypeArgumentCount(t.typeParameters))&&i<=e.length(t.typeParameters)})}function getInstantiatedConstructorsForTypeArguments(t,r,n){var i=getConstructorsForTypeArguments(t,r,n);var a=e.map(r,getTypeFromTypeNode);return e.sameMap(i,function(t){return e.some(t.typeParameters)?getSignatureInstantiation(t,a,e.isInJSFile(n)):t})}function getBaseConstructorTypeOfClass(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration;var n=e.getEffectiveBaseTypeNode(r);var i=getBaseTypeNodeOfClass(t);if(!i){return t.resolvedBaseConstructorType=De}if(!pushTypeResolution(t,1)){return Se}var a=checkExpression(i.expression);if(n&&i!==n){e.Debug.assert(!n.typeArguments);checkExpression(n.expression)}if(a.flags&(524288|2097152)){resolveStructuredTypeMembers(a)}if(!popTypeResolution()){error(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,symbolToString(t.symbol));return t.resolvedBaseConstructorType=Se}if(!(a.flags&1)&&a!==Ne&&!isConstructorType(a)){var s=error(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,typeToString(a));if(a.flags&262144){var o=getConstraintFromTypeParameter(a);var c=xe;if(o){var u=getSignaturesOfType(o,1);if(u[0]){c=getReturnTypeOfSignature(u[0])}}if(a.symbol.declarations){e.addRelatedInfo(s,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,symbolToString(a.symbol),typeToString(c)))}}return t.resolvedBaseConstructorType=Se}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function getImplementsTypes(t){var r=e.emptyArray;if(t.symbol.declarations){for(var n=0,i=t.symbol.declarations;n=m&&u<=g){var _=g?createSignatureInstantiation(f,fillMissingTypeArguments(c,f.typeParameters,m,o)):cloneSignature(f);_.typeParameters=t.localTypeParameters;_.resolvedReturnType=t;_.flags=a?_.flags|4:_.flags&~4;l.push(_)}}return l}function findMatchingSignature(e,t,r,n,i){for(var a=0,s=e;a0){return undefined}for(var i=1;i1){n=n===undefined?i:-1}for(var a=0,s=t[i];a1){var l=o.thisParameter;var p=e.forEach(c,function(e){return e.thisParameter});if(p){var d=getIntersectionType(e.mapDefined(c,function(e){return e.thisParameter&&getTypeOfSymbol(e.thisParameter)}));l=createSymbolWithType(p,d)}u=createUnionSignature(o,c);u.thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&n!==-1){var f=t[n!==undefined?n:0];var m=f.slice();var g=function(t){if(t!==f){var r=t[0];e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass");m=!!r.typeParameters&&e.some(m,function(e){return!!e.typeParameters&&!compareTypeParametersIdentical(r.typeParameters,e.typeParameters)})?undefined:e.map(m,function(e){return combineSignaturesOfUnionMembers(e,r)});if(!m){return"break"}}};for(var _=0,h=t;_=i?e:t;var s=a===e?t:e;var o=a===e?n:i;var c=hasEffectiveRestParameter(e)||hasEffectiveRestParameter(t);var u=c&&!hasEffectiveRestParameter(a);var l=new Array(o+(u?1:0));for(var p=0;p=getMinArgumentCount(a)&&p>=getMinArgumentCount(s);var h=p>=n?undefined:getParameterNameAtPosition(e,p);var y=p>=i?undefined:getParameterNameAtPosition(t,p);var v=h===y?h:!h?y:!y?h:undefined;var T=createSymbol(1|(_&&!g?16777216:0),v||"arg"+p);T.type=g?createArrayType(m):m;l[p]=T}if(u){var S=createSymbol(1,"args");S.type=createArrayType(getTypeAtPosition(s,o));if(s===t){S.type=instantiateType(S.type,r)}l[o]=S}return l}function combineSignaturesOfUnionMembers(t,r){var n=t.typeParameters||r.typeParameters;var i;if(t.typeParameters&&r.typeParameters){i=createTypeMapper(r.typeParameters,t.typeParameters)}var a=t.declaration;var s=combineUnionParameters(t,r,i);var o=combineUnionThisParam(t.thisParameter,r.thisParameter,i);var c=Math.max(t.minArgumentCount,r.minArgumentCount);var u=createSignature(a,n,o,s,undefined,undefined,c,(t.flags|r.flags)&39);u.compositeKind=1048576;u.compositeSignatures=e.concatenate(t.compositeKind!==2097152&&t.compositeSignatures||[t],[r]);if(i){u.mapper=t.compositeKind!==2097152&&t.mapper&&t.compositeSignatures?combineTypeMappers(t.mapper,i):i}return u}function getUnionIndexInfos(t){var r=getIndexInfosOfType(t[0]);if(r){var n=[];var i=function(r){var i=r.keyType;if(e.every(t,function(e){return!!getIndexInfoOfType(e,i)})){n.push(createIndexInfo(i,getUnionType(e.map(t,function(e){return getIndexTypeOfType(e,i)})),e.some(t,function(e){return getIndexInfoOfType(e,i).isReadonly})))}};for(var a=0,s=r;a0});var n=e.map(t,isMixinConstructorType);if(r>0&&r===e.countWhere(n,function(e){return e})){var i=n.indexOf(true);n[i]=false}return n}function includeMixinType(e,t,r,n){var i=[];for(var a=0;a0){l=e.map(l,function(e){var t=cloneSignature(e);t.resolvedReturnType=includeMixinType(getReturnTypeOfSignature(e),a,s,c);return t})}n=appendSignatures(n,l)}r=appendSignatures(r,getSignaturesOfType(u,0));i=e.reduceLeft(getIndexInfosOfType(u),function(e,t){return appendIndexInfo(e,t,false)},i)};for(var u=0;u=7):r.flags&528?jt:r.flags&12288?getGlobalESSymbolType(F>=2):r.flags&67108864?et:r.flags&4194304?$e:r.flags&2&&!M?et:r}function getReducedApparentType(e){return getReducedType(getApparentType(getReducedType(e)))}function createUnionOrIntersectionProperty(t,r,n){var i,a;var s;var o;var c;var u=t.flags&1048576;var l=u?0:16777216;var p=4;var d=0;var f=false;for(var m=0,g=t.types;m2){w.checkFlags|=65536;w.deferralParent=t;w.deferralConstituents=k}else{w.type=u?getUnionType(k):getIntersectionType(k)}return w}function getUnionOrIntersectionProperty(t,r,n){var i,a;var s=((i=t.propertyCacheWithoutObjectFunctionPropertyAugment)===null||i===void 0?void 0:i.get(r))||!n?(a=t.propertyCache)===null||a===void 0?void 0:a.get(r):undefined;if(!s){s=createUnionOrIntersectionProperty(t,r,n);if(s){var o=n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable());o.set(r,s)}}return s}function getPropertyOfUnionOrIntersectionType(t,r,n){var i=getUnionOrIntersectionProperty(t,r,n);return i&&!(e.getCheckFlags(i)&16)?i:undefined}function getReducedType(t){if(t.flags&1048576&&t.objectFlags&33554432){return t.resolvedReducedType||(t.resolvedReducedType=getReducedUnionType(t))}else if(t.flags&2097152){if(!(t.objectFlags&33554432)){t.objectFlags|=33554432|(e.some(getPropertiesOfUnionOrIntersectionType(t),isNeverReducedProperty)?67108864:0)}return t.objectFlags&67108864?Ue:t}return t}function getReducedUnionType(t){var r=e.sameMap(t.types,getReducedType);if(r===t.types){return t}var n=getUnionType(r);if(n.flags&1048576){n.resolvedReducedType=n}return n}function isNeverReducedProperty(e){return isDiscriminantWithNeverType(e)||isConflictingPrivateProperty(e)}function isDiscriminantWithNeverType(t){return!(t.flags&16777216)&&(e.getCheckFlags(t)&(192|131072))===192&&!!(getTypeOfSymbol(t).flags&131072)}function isConflictingPrivateProperty(t){return!t.valueDeclaration&&!!(e.getCheckFlags(t)&1024)}function elaborateNeverIntersection(t,r){if(r.flags&2097152&&e.getObjectFlags(r)&67108864){var n=e.find(getPropertiesOfUnionOrIntersectionType(r),isDiscriminantWithNeverType);if(n){return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,typeToString(r,undefined,536870912),symbolToString(n))}var i=e.find(getPropertiesOfUnionOrIntersectionType(r),isConflictingPrivateProperty);if(i){return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,typeToString(r,undefined,536870912),symbolToString(i))}}return t}function getPropertyOfType(e,t,r){e=getReducedApparentType(e);if(e.flags&524288){var n=resolveStructuredTypeMembers(e);var i=n.members.get(t);if(i&&symbolIsValue(i)){return i}if(r)return undefined;var a=n===at?Ft:n.callSignatures.length?wt:n.constructSignatures.length?It:undefined;if(a){var s=getPropertyOfObjectType(a,t);if(s){return s}}return getPropertyOfObjectType(Ot,t)}if(e.flags&3145728){return getPropertyOfUnionOrIntersectionType(e,t,r)}return undefined}function getSignaturesOfStructuredType(t,r){if(t.flags&3670016){var n=resolveStructuredTypeMembers(t);return r===0?n.callSignatures:n.constructSignatures}return e.emptyArray}function getSignaturesOfType(e,t){return getSignaturesOfStructuredType(getReducedApparentType(e),t)}function findIndexInfo(t,r){return e.find(t,function(e){return e.keyType===r})}function findApplicableIndexInfo(t,r){var n;var i;var a;for(var s=0,o=t;s=0);return n>=getMinArgumentCount(r,1|2)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);if(i){return!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}return false}function isOptionalPropertyDeclaration(t){return e.isPropertyDeclaration(t)&&t.questionToken}function isOptionalJSDocPropertyLikeTag(t){if(!e.isJSDocPropertyLikeTag(t)){return false}var r=t.isBracketed,n=t.typeExpression;return r||!!n&&n.type.kind===311}function createTypePredicate(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function getMinTypeArgumentCount(e){var t=0;if(e){for(var r=0;r=n&&s<=a){var o=t?t.slice():[];for(var c=s;cc.arguments.length&&!m||isJSDocOptionalParameter(d);if(!_){a=n.length}}if((t.kind===170||t.kind===171)&&hasBindableName(t)&&(!o||!s)){var h=t.kind===170?171:170;var y=e.getDeclarationOfKind(getSymbolOfNode(t),h);if(y){s=getAnnotatedAccessorThisParameter(y)}}var v=t.kind===169?getDeclaredTypeOfClassOrInterface(getMergedSymbol(t.parent.symbol)):undefined;var T=v?v.localTypeParameters:getTypeParametersFromDeclaration(t);if(e.hasRestParameter(t)||e.isInJSFile(t)&&maybeAddJsSyntheticRestParameter(t,n)){i|=1}if(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128)){i|=4}r.resolvedSignature=createSignature(t,T,s,n,undefined,undefined,a,i)}return r.resolvedSignature}function maybeAddJsSyntheticRestParameter(t,r){if(e.isJSDocSignature(t)||!containsArgumentsReference(t)){return false}var n=e.lastOrUndefined(t.parameters);var i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag);var a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:undefined});var s=createSymbol(3,"args",32768);s.type=a?createArrayType(getTypeFromTypeNode(a.type)):Vt;if(a){r.pop()}r.push(s);return true}function getSignatureOfTypeTag(t){if(!(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)))return undefined;var r=e.getJSDocTypeTag(t);return(r===null||r===void 0?void 0:r.typeExpression)&&getSingleCallSignature(getTypeFromTypeNode(r.typeExpression))}function getReturnTypeOfTypeTag(e){var t=getSignatureOfTypeTag(e);return t&&getReturnTypeOfSignature(t)}function containsArgumentsReference(t){var r=getNodeLinks(t);if(r.containsArgumentsReference===undefined){if(r.flags&8192){r.containsArgumentsReference=true}else{r.containsArgumentsReference=traverse(t.body)}}return r.containsArgumentsReference;function traverse(t){if(!t)return false;switch(t.kind){case 79:return t.escapedText===Q.escapedName&&getResolvedSymbol(t)===Q;case 165:case 167:case 170:case 171:return t.name.kind===160&&traverse(t.name);case 204:case 205:return traverse(t.expression);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,traverse)}}}function getSignaturesOfSymbol(t){if(!t||!t.declarations)return e.emptyArray;var r=[];for(var n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end){continue}}r.push(getSignatureFromDeclaration(i))}return r}function resolveExternalModuleTypeByLiteral(e){var t=resolveExternalModuleName(e,e);if(t){var r=resolveExternalModuleSymbol(t);if(r){return getTypeOfSymbol(r)}}return ye}function getThisTypeOfSignature(e){if(e.thisParameter){return getTypeOfSymbol(e.thisParameter)}}function getTypePredicateOfSignature(t){if(!t.resolvedTypePredicate){if(t.target){var r=getTypePredicateOfSignature(t.target);t.resolvedTypePredicate=r?instantiateTypePredicate(r,t.mapper):dt}else if(t.compositeSignatures){t.resolvedTypePredicate=getUnionOrIntersectionTypePredicate(t.compositeSignatures,t.compositeKind)||dt}else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration);var i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=getSignatureOfTypeTag(t.declaration);if(a&&t!==a){i=getTypePredicateOfSignature(a)}}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?createTypePredicateFromTypePredicateNode(n,t):i||dt}e.Debug.assert(!!t.resolvedTypePredicate)}return t.resolvedTypePredicate===dt?undefined:t.resolvedTypePredicate}function createTypePredicateFromTypePredicateNode(t,r){var n=t.parameterName;var i=t.type&&getTypeFromTypeNode(t.type);return n.kind===190?createTypePredicate(t.assertsModifier?2:0,undefined,undefined,i):createTypePredicate(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,function(e){return e.escapedName===n.escapedText}),i)}function getUnionOrIntersectionType(e,t,r){return t!==2097152?getUnionType(e,r):getIntersectionType(e)}function getReturnTypeOfSignature(t){if(!t.resolvedReturnType){if(!pushTypeResolution(t,3)){return Se}var r=t.target?instantiateType(getReturnTypeOfSignature(t.target),t.mapper):t.compositeSignatures?instantiateType(getUnionOrIntersectionType(e.map(t.compositeSignatures,getReturnTypeOfSignature),t.compositeKind,2),t.mapper):getReturnTypeFromAnnotation(t.declaration)||(e.nodeIsMissing(t.declaration.body)?ye:getReturnTypeFromBody(t.declaration));if(t.flags&8){r=addOptionalTypeMarker(r)}else if(t.flags&16){r=getOptionalType(r)}if(!popTypeResolution()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n){error(n,e.Diagnostics.Return_type_annotation_circularly_references_itself)}else if(J){var i=t.declaration;var a=e.getNameOfDeclaration(i);if(a){error(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a))}else{error(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}}r=ye}t.resolvedReturnType=r}return t.resolvedReturnType}function getReturnTypeFromAnnotation(t){if(t.kind===169){return getDeclaredTypeOfClassOrInterface(getMergedSymbol(t.parent.symbol))}if(e.isJSDocConstructSignature(t)){return getTypeFromTypeNode(t.parameters[0].type)}var r=e.getEffectiveReturnTypeNode(t);if(r){return getTypeFromTypeNode(r)}if(t.kind===170&&hasBindableName(t)){var n=e.isInJSFile(t)&&getTypeForDeclarationFromJSDocComment(t);if(n){return n}var i=e.getDeclarationOfKind(getSymbolOfNode(t),171);var a=getAnnotatedAccessorType(i);if(a){return a}}return getReturnTypeOfTypeTag(t)}function isResolvingReturnTypeOfSignature(e){return!e.resolvedReturnType&&findResolutionCycleStartIndex(e,3)>=0}function getRestTypeOfSignature(e){return tryGetRestTypeOfSignature(e)||ye}function tryGetRestTypeOfSignature(e){if(signatureHasRestParameter(e)){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);var r=isTupleType(t)?getRestTypeOfTupleType(t):t;return r&&getIndexTypeOfType(r,Fe)}return undefined}function getSignatureInstantiation(e,t,r,n){var i=getSignatureInstantiationWithoutFillingInTypeArguments(e,fillMissingTypeArguments(t,e.typeParameters,getMinTypeArgumentCount(e.typeParameters),r));if(n){var a=getSingleCallOrConstructSignature(getReturnTypeOfSignature(i));if(a){var s=cloneSignature(a);s.typeParameters=n;var o=cloneSignature(i);o.resolvedReturnType=getOrCreateTypeFromSignature(s);return o}}return i}function getSignatureInstantiationWithoutFillingInTypeArguments(t,r){var n=t.instantiations||(t.instantiations=new e.Map);var i=getTypeListId(r);var a=n.get(i);if(!a){n.set(i,a=createSignatureInstantiation(t,r))}return a}function createSignatureInstantiation(e,t){return instantiateSignature(e,createSignatureTypeMapper(e,t),true)}function createSignatureTypeMapper(e,t){return createTypeMapper(e.typeParameters,t)}function getErasedSignature(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=createErasedSignature(e)):e}function createErasedSignature(e){return instantiateSignature(e,createTypeEraser(e.typeParameters),true)}function getCanonicalSignature(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=createCanonicalSignature(e)):e}function createCanonicalSignature(t){return getSignatureInstantiation(t,e.map(t.typeParameters,function(e){return e.target&&!getConstraintOfTypeParameter(e.target)?e.target:e}),e.isInJSFile(t.declaration))}function getBaseSignature(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache){return t.baseSignatureCache}var n=createTypeEraser(r);var i=createTypeMapper(r,e.map(r,function(e){return getConstraintOfTypeParameter(e)||xe}));var a=e.map(r,function(e){return instantiateType(e,i)||xe});for(var s=0;s1){t+=":"+a}n+=a}}return t}function getAliasId(e,t){return e?"@"+getSymbolId(e)+(t?":"+getTypeListId(t):""):""}function getPropagatingFlagsOfTypes(t,r){var n=0;for(var i=0,a=t;ii.length)){var u=o&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);var l=s===i.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments;var p=typeToString(n,undefined,2);error(t,l,p,s,i.length);if(!o){return Se}}if(t.kind===176&&isDeferredTypeReferenceNode(t,e.length(t.typeArguments)!==i.length)){return createDeferredTypeReference(n,t,undefined)}var d=e.concatenate(n.outerTypeParameters,fillMissingTypeArguments(typeArgumentsFromTypeReferenceNode(t),i,s,o));return createTypeReference(n,d)}return checkNoTypeArguments(t,r)?n:Se}function getTypeAliasInstantiation(t,r,n,i){var a=getDeclaredTypeOfSymbol(t);if(a===Ee&&P.has(t.escapedName)&&r&&r.length===1){return getStringMappingType(t,r[0])}var s=getSymbolLinks(t);var o=s.typeParameters;var c=getTypeListId(r)+getAliasId(n,i);var u=s.instantiations.get(c);if(!u){s.instantiations.set(c,u=instantiateTypeWithAlias(a,createTypeMapper(o,fillMissingTypeArguments(r,o,getMinTypeArgumentCount(o),e.isInJSFile(t.valueDeclaration))),n,i))}return u}function getTypeFromTypeAliasReference(t,r){var n=getDeclaredTypeOfSymbol(r);var i=getSymbolLinks(r).typeParameters;if(i){var a=e.length(t.typeArguments);var s=getMinTypeArgumentCount(i);if(ai.length){error(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,symbolToString(r),s,i.length);return Se}var o=getAliasSymbolForTypeNode(t);var c=o&&(isLocalTypeAlias(r)||!isLocalTypeAlias(o))?o:undefined;return getTypeAliasInstantiation(r,typeArgumentsFromTypeReferenceNode(t),c,getTypeArgumentsForAliasSymbol(c))}return checkNoTypeArguments(t,r)?n:Se}function isLocalTypeAlias(t){var r;var n=(r=t.declarations)===null||r===void 0?void 0:r.find(e.isTypeAlias);return!!(n&&e.getContainingFunction(n))}function getTypeReferenceName(t){switch(t.kind){case 176:return t.typeName;case 226:var r=t.expression;if(e.isEntityNameExpression(r)){return r}}return undefined}function resolveTypeReferenceName(e,t,r){if(!e){return _e}return resolveEntityName(e,t,r)||_e}function getTypeReferenceType(e,t){if(t===_e){return Se}t=getExpandoSymbol(t)||t;if(t.flags&(32|64)){return getTypeFromClassOrInterfaceReference(e,t)}if(t.flags&524288){return getTypeFromTypeAliasReference(e,t)}var r=tryGetDeclaredTypeOfSymbol(t);if(r){return checkNoTypeArguments(e,t)?getRegularTypeOfLiteralType(r):Se}if(t.flags&111551&&isJSDocTypeReference(e)){var n=getTypeFromJSDocValueReference(e,t);if(n){return n}else{resolveTypeReferenceName(getTypeReferenceName(e),788968);return getTypeOfSymbol(t)}}return Se}function getTypeFromJSDocValueReference(e,t){var r=getNodeLinks(e);if(!r.resolvedJSDocType){var n=getTypeOfSymbol(t);var i=n;if(t.valueDeclaration){var a=e.kind===198&&e.qualifier;if(n.symbol&&n.symbol!==t&&a){i=getTypeReferenceType(e,n.symbol)}}r.resolvedJSDocType=i}return r.resolvedJSDocType}function getSubstitutionType(e,t){if(t.flags&3||t===e){return e}var r=getTypeId(e)+">"+getTypeId(t);var n=de.get(r);if(n){return n}var i=createType(33554432);i.baseType=e;i.substitute=t;de.set(r,i);return i}function isUnaryTupleTypeNode(e){return e.kind===182&&e.elements.length===1}function getImpliedConstraint(e,t,r){return isUnaryTupleTypeNode(t)&&isUnaryTupleTypeNode(r)?getImpliedConstraint(e,t.elements[0],r.elements[0]):getActualTypeVariable(getTypeFromTypeNode(t))===e?getTypeFromTypeNode(r):undefined}function getConditionalFlowTypeOfType(t,r){var n;var i=true;while(r&&!e.isStatement(r)&&r.kind!==315){var a=r.parent;if(a.kind===162){i=!i}if((i||t.flags&8650752)&&a.kind===187&&r===a.trueType){var s=getImpliedConstraint(t,a.checkType,a.extendsType);if(s){n=e.append(n,s)}}r=a}return n?getSubstitutionType(t,getIntersectionType(e.append(n,t))):t}function isJSDocTypeReference(e){return!!(e.flags&4194304)&&(e.kind===176||e.kind===198)}function checkNoTypeArguments(t,n){if(t.typeArguments){error(t,e.Diagnostics.Type_0_is_not_generic,n?symbolToString(n):t.typeName?e.declarationNameToString(t.typeName):r);return false}return true}function getIntendedTypeFromJSDocTypeReference(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":checkNoTypeArguments(t);return Oe;case"Number":checkNoTypeArguments(t);return Fe;case"Boolean":checkNoTypeArguments(t);return Be;case"Void":checkNoTypeArguments(t);return Je;case"Undefined":checkNoTypeArguments(t);return De;case"Null":checkNoTypeArguments(t);return Pe;case"Function":case"function":checkNoTypeArguments(t);return Ft;case"array":return(!r||!r.length)&&!J?Vt:undefined;case"promise":return(!r||!r.length)&&!J?createPromiseType(ye):undefined;case"Object":if(r&&r.length===2){if(e.isJSDocIndexSignature(t)){var n=getTypeFromTypeNode(r[0]);var i=getTypeFromTypeNode(r[1]);var a=n===Oe||n===Fe?[createIndexInfo(n,i,false)]:e.emptyArray;return createAnonymousType(undefined,A,e.emptyArray,e.emptyArray,a)}return ye}checkNoTypeArguments(t);return!J?ye:undefined}}}function getTypeFromJSDocNullableTypeNode(e){var t=getTypeFromTypeNode(e.type);return M?getNullableType(t,65536):t}function getTypeFromTypeReference(t){var r=getNodeLinks(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent)){r.resolvedSymbol=_e;return r.resolvedType=checkExpressionCached(t.parent.expression)}var n=void 0;var i=void 0;var a=788968;if(isJSDocTypeReference(t)){i=getIntendedTypeFromJSDocTypeReference(t);if(!i){n=resolveTypeReferenceName(getTypeReferenceName(t),a,true);if(n===_e){n=resolveTypeReferenceName(getTypeReferenceName(t),a|111551)}else{resolveTypeReferenceName(getTypeReferenceName(t),a)}i=getTypeReferenceType(t,n)}}if(!i){n=resolveTypeReferenceName(getTypeReferenceName(t),a);i=getTypeReferenceType(t,n)}r.resolvedSymbol=n;r.resolvedType=i}return r.resolvedType}function typeArgumentsFromTypeReferenceNode(t){return e.map(t.typeArguments,getTypeFromTypeNode)}function getTypeFromTypeQueryNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?checkThisExpression(t.exprName):checkExpression(t.exprName);r.resolvedType=getRegularTypeOfLiteralType(getWidenedType(n))}return r.resolvedType}function getTypeOfGlobalSymbol(t,r){function getTypeDeclaration(e){var t=e.declarations;if(t){for(var r=0,n=t;r=0){return checkCrossProductUnion(e.map(r,function(e,r){return t.elementFlags[r]&8?e:xe}))?mapType(r[s],function(n){return createNormalizedTupleType(t,e.replaceElement(r,s,n))}):Se}}var o=[];var c=[];var u=[];var l=-1;var p=-1;var d=-1;var f=function(s){var c=r[s];var u=t.elementFlags[s];if(u&8){if(c.flags&58982400||isGenericMappedType(c)){addElement(c,8,(n=t.labeledElementDeclarations)===null||n===void 0?void 0:n[s])}else if(isTupleType(c)){var l=getTypeArguments(c);if(l.length+o.length>=1e4){error(C,e.isPartOfTypeNode(C)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent);return{value:Se}}e.forEach(l,function(e,t){var r;return addElement(e,c.target.elementFlags[t],(r=c.target.labeledElementDeclarations)===null||r===void 0?void 0:r[t])})}else{addElement(isArrayLikeType(c)&&getIndexTypeOfType(c,Fe)||Se,4,(i=t.labeledElementDeclarations)===null||i===void 0?void 0:i[s])}}else{addElement(c,u,(a=t.labeledElementDeclarations)===null||a===void 0?void 0:a[s])}};for(var m=0;m=0&&pi.fixedLength?getRestArrayTypeOfTupleType(t)||createTupleType(e.emptyArray):createTupleType(getTypeArguments(t).slice(r,a),i.elementFlags.slice(r,a),false,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function getKnownKeysOfTupleType(t){return getUnionType(e.append(e.arrayOf(t.target.fixedLength,function(e){return getStringLiteralType(""+e)}),getIndexType(t.target.readonly?Mt:Lt)))}function getStartElementCount(t,r){var n=e.findIndex(t.elementFlags,function(e){return!(e&r)});return n>=0?n:t.elementFlags.length}function getEndElementCount(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,function(e){return!(e&r)})-1}function getTypeFromOptionalTypeNode(e){return addOptionality(getTypeFromTypeNode(e.type),true)}function getTypeId(e){return e.id}function containsType(t,r){return e.binarySearch(t,r,getTypeId,e.compareValues)>=0}function insertType(t,r){var n=e.binarySearch(t,r,getTypeId,e.compareValues);if(n<0){t.splice(~n,0,r);return true}return false}function addTypeToUnion(t,r,n){var i=n.flags;if(i&1048576){return addTypesToUnion(t,r|(isNamedUnionType(n)?1048576:0),n.types)}if(!(i&131072)){r|=i&205258751;if(i&469499904)r|=262144;if(n===Te)r|=8388608;if(!M&&i&98304){if(!(e.getObjectFlags(n)&131072))r|=4194304}else{var a=t.length;var s=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,getTypeId,e.compareValues);if(s<0){t.splice(~s,0,n)}}}return r}function addTypesToUnion(e,t,r){for(var n=0,i=r;n0){o--;var u=t[o];if(a||u.flags&469499904){var l=u.flags&(524288|2097152|58982400)?e.find(getPropertiesOfType(u),function(e){return isUnitType(getTypeOfSymbol(e))}):undefined;var p=l&&getRegularTypeOfLiteralType(getTypeOfSymbol(l));for(var d=0,f=t;d1e6){e.tracing===null||e.tracing===void 0?void 0:e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map(function(e){return e.id})});error(C,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return undefined}}c++;if(l&&m.flags&(524288|2097152|58982400)){var _=getTypeOfPropertyOfType(m,l.escapedName);if(_&&isUnitType(_)&&getRegularTypeOfLiteralType(_)!==p){continue}}if(isTypeRelatedTo(u,m,nn)&&(!(e.getObjectFlags(getTargetType(u))&1)||!(e.getObjectFlags(getTargetType(m))&1)||isTypeDerivedFrom(u,m))){e.orderedRemoveItemAt(t,o);break}}}}}fe.set(n,t);return t}function removeRedundantLiteralTypes(t,r,n){var i=t.length;while(i>0){i--;var a=t[i];var s=a.flags;var o=s&(128|134217728|268435456)&&r&4||s&256&&r&8||s&2048&&r&64||s&8192&&r&4096||n&&s&32768&&r&16384||isFreshLiteralType(a)&&containsType(t,a.regularType);if(o){e.orderedRemoveItemAt(t,i)}}}function removeStringLiteralsMatchedByTemplateLiterals(t){var r=e.filter(t,isPatternLiteralType);if(r.length){var n=t.length;var i=function(){n--;var i=t[n];if(i.flags&128&&e.some(r,function(e){return isTypeSubtypeOf(i,e)})){e.orderedRemoveItemAt(t,n)}};while(n>0){i()}}}function isNamedUnionType(e){return!!(e.flags&1048576&&(e.aliasSymbol||e.origin))}function addNamedUnions(t,r){for(var n=0,i=r;n=0&&containsType(s,De)){e.orderedRemoveItemAt(s,c)}}if(o&(2944|8192|134217728|268435456)||o&16384&&o&32768){removeRedundantLiteralTypes(s,o,!!(r&2))}if(o&128&&o&134217728){removeStringLiteralsMatchedByTemplateLiterals(s)}if(r===2){s=removeSubtypes(s,!!(o&524288));if(!s){return Se}}if(s.length===0){return o&65536?o&4194304?Pe:Ne:o&32768?o&4194304?De:Ce:Ue}}if(!a&&o&1048576){var u=[];addNamedUnions(u,t);var l=[];var p=function(t){if(!e.some(u,function(e){return containsType(e.types,t)})){l.push(t)}};for(var d=0,f=s;d0){n--;var i=t[n];var a=i.flags&4&&r&128||i.flags&8&&r&256||i.flags&64&&r&2048||i.flags&4096&&r&8192;if(a){e.orderedRemoveItemAt(t,n)}}}function eachUnionContains(e,t){for(var r=0,n=e;r0){r--;var i=t[r];if(!(i.flags&134217728))continue;for(var a=0,s=n;a=1e5){e.tracing===null||e.tracing===void 0?void 0:e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map(function(e){return e.id}),size:r});error(C,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return false}return true}function getCrossProductIntersections(e){var t=getCrossProductUnionSize(e);var r=[];for(var n=0;n=0;s--){if(e[s].flags&1048576){var o=e[s].types;var c=o.length;i[s]=o[a%c];a=Math.floor(a/c)}}var u=getIntersectionType(i);if(!(u.flags&131072))r.push(u)}return r}function getTypeFromIntersectionTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){var n=getAliasSymbolForTypeNode(t);r.resolvedType=getIntersectionType(e.map(t.types,getTypeFromTypeNode),n,getTypeArgumentsForAliasSymbol(n))}return r.resolvedType}function createIndexType(e,t){var r=createType(4194304);r.type=e;r.stringsOnly=t;return r}function createOriginIndexType(e){var t=createOriginType(4194304);t.type=e;return t}function getIndexTypeForGenericType(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=createIndexType(e,true)):e.resolvedIndexType||(e.resolvedIndexType=createIndexType(e,false))}function instantiateTypeAsMappedNameType(e,t,r){return instantiateType(e,appendTypeMapping(t.mapper,getTypeParameterFromMappedType(t),r))}function getIndexTypeForMappedType(t,r){var n=filterType(getConstraintTypeFromMappedType(t),function(e){return!(r&&e.flags&(1|4))});var i=t.declaration.nameType&&getTypeFromTypeNode(t.declaration.nameType);var a=i&&everyType(n,function(e){return!!(e.flags&(4|8|131072))})&&getPropertiesOfType(getApparentType(getModifiersTypeFromMappedType(t)));return i?getUnionType([mapType(n,function(e){return instantiateTypeAsMappedNameType(i,t,e)}),mapType(getUnionType(e.map(a||e.emptyArray,function(e){return getLiteralTypeFromProperty(e,8576)})),function(e){return instantiateTypeAsMappedNameType(i,t,e)})]):n}function hasDistributiveNameType(t){var r=getTypeParameterFromMappedType(t);return isDistributive(getNameTypeFromMappedType(t)||r);function isDistributive(t){return t.flags&(3|131068|131072|262144|524288|67108864)?true:t.flags&16777216?t.root.isDistributive&&t.checkType===r:t.flags&(3145728|134217728)?e.every(t.types,isDistributive):t.flags&8388608?isDistributive(t.objectType)&&isDistributive(t.indexType):t.flags&33554432?isDistributive(t.substitute):t.flags&268435456?isDistributive(t.type):false}}function getLiteralTypeFromPropertyName(t){if(e.isPrivateIdentifier(t)){return Ue}return e.isIdentifier(t)?getStringLiteralType(e.unescapeLeadingUnderscores(t.escapedText)):getRegularTypeOfLiteralType(e.isComputedPropertyName(t)?checkComputedPropertyName(t):checkExpression(t))}function getLiteralTypeFromProperty(t,r,n){if(n||!(e.getDeclarationModifierFlagsFromSymbol(t)&24)){var i=getSymbolLinks(getLateBoundSymbol(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i=t.escapedName==="default"?getStringLiteralType("default"):a&&getLiteralTypeFromPropertyName(a)||(!e.isKnownSymbol(t)?getStringLiteralType(e.symbolName(t)):undefined)}if(i&&i.flags&r){return i}}return Ue}function getLiteralTypeFromProperties(t,r,n){var i=n&&(e.getObjectFlags(t)&(3|4)||t.aliasSymbol)?createOriginIndexType(t):undefined;var a=e.map(getPropertiesOfType(t),function(e){return getLiteralTypeFromProperty(e,r)});var s=e.map(getIndexInfosOfType(t),function(e){return e!==ht&&e.keyType.flags&r?e.keyType===Oe&&r&8?He:e.keyType:Ue});return getUnionType(e.concatenate(a,s),1,undefined,undefined,i)}function getIndexType(t,r,n){if(r===void 0){r=W}t=getReducedType(t);return t.flags&1048576?getIntersectionType(e.map(t.types,function(e){return getIndexType(e,r,n)})):t.flags&2097152?getUnionType(e.map(t.types,function(e){return getIndexType(e,r,n)})):t.flags&58982400||isGenericTupleType(t)||isGenericMappedType(t)&&!hasDistributiveNameType(t)?getIndexTypeForGenericType(t,r):e.getObjectFlags(t)&32?getIndexTypeForMappedType(t,n):t===Te?Te:t.flags&2?Ue:t.flags&(1|131072)?$e:getLiteralTypeFromProperties(t,(n?128:402653316)|(r?0:296|12288),r===W&&!n)}function getExtractStringType(e){if(W){return e}var t=getGlobalExtractSymbol();return t?getTypeAliasInstantiation(t,[e,Oe]):Oe}function getIndexTypeOrString(e){var t=getExtractStringType(getIndexType(e));return t.flags&131072?Oe:t}function getTypeFromTypeOperatorNode(t){var r=getNodeLinks(t);if(!r.resolvedType){switch(t.operator){case 139:r.resolvedType=getIndexType(getTypeFromTypeNode(t.type));break;case 152:r.resolvedType=t.type.kind===149?getESSymbolLikeTypeForNode(e.walkUpParenthesizedTypes(t.parent)):Se;break;case 143:r.resolvedType=getTypeFromTypeNode(t.type);break;default:throw e.Debug.assertNever(t.operator)}}return r.resolvedType}function getTypeFromTemplateTypeNode(t){var r=getNodeLinks(t);if(!r.resolvedType){r.resolvedType=getTemplateLiteralType(n([t.head.text],e.map(t.templateSpans,function(e){return e.literal.text}),true),e.map(t.templateSpans,function(e){return getTypeFromTypeNode(e.type)}))}return r.resolvedType}function getTemplateLiteralType(t,r){var n=e.findIndex(r,function(e){return!!(e.flags&(131072|1048576))});if(n>=0){return checkCrossProductUnion(r)?mapType(r[n],function(i){return getTemplateLiteralType(t,e.replaceElement(r,n,i))}):Se}if(e.contains(r,Te)){return Te}var i=[];var a=[];var s=t[0];if(!addSpans(t,r)){return Oe}if(i.length===0){return getStringLiteralType(s)}a.push(s);if(e.every(a,function(e){return e===""})&&e.every(i,function(e){return!!(e.flags&4)})){return Oe}var o=getTypeListId(i)+"|"+e.map(a,function(e){return e.length}).join(",")+"|"+a.join("");var c=le.get(o);if(!c){le.set(o,c=createTemplateLiteralType(a,i))}return c;function addSpans(e,t){for(var r=0;r=0){if(a&&everyType(r,function(e){return!e.target.hasRestElement})&&!(s&16)){var f=getIndexNodeForAccessExpression(a);if(isTupleType(r)){error(f,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,typeToString(r),getTypeReferenceArity(r),e.unescapeLeadingUnderscores(u))}else{error(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),typeToString(r))}}errorIfWritingToReadonlyIndex(getIndexInfoOfType(r,Fe));return mapType(r,function(e){var t=getRestTypeOfTupleType(e)||De;return s&1?getUnionType([t,De]):t})}}if(!(n.flags&98304)&&isTypeAssignableToKind(n,402653316|296|12288)){if(r.flags&(1|131072)){return r}var m=getApplicableIndexInfo(r,n)||getIndexInfoOfType(r,Oe);if(m){if(s&2&&m.keyType!==Fe){if(c){error(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,typeToString(n),typeToString(t))}return undefined}if(a&&m.keyType===Oe&&!isTypeAssignableToKind(n,4|8)){var f=getIndexNodeForAccessExpression(a);error(f,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,typeToString(n));return s&1?getUnionType([m.type,De]):m.type}errorIfWritingToReadonlyIndex(m);return s&1?getUnionType([m.type,De]):m.type}if(n.flags&131072){return Ue}if(isJSLiteralType(r)){return ye}if(c&&!isConstEnumObjectType(r)){if(isObjectLiteralType(r)){if(J&&n.flags&(128|256)){$r.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,typeToString(r)));return De}else if(n.flags&(8|4)){var g=e.map(r.properties,function(e){return getTypeOfSymbol(e)});return getUnionType(e.append(g,De))}}if(r.symbol===X&&u!==undefined&&X.exports.has(u)&&X.exports.get(u).flags&418){error(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),typeToString(r))}else if(J&&!O.suppressImplicitAnyIndexErrors&&!(s&128)){if(u!==undefined&&typeHasStaticProperty(u,r)){var _=typeToString(r);error(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,u,_,_+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(getIndexTypeOfType(r,Fe)){error(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number)}else{var h=void 0;if(u!==undefined&&(h=getSuggestionForNonexistentProperty(u,r))){if(h!==undefined){error(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,typeToString(r),h)}}else{var y=getSuggestionForNonexistentIndexSignature(r,c,n);if(y!==undefined){error(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,typeToString(r),y)}else{var v=void 0;if(n.flags&1024){v=e.chainDiagnosticMessages(undefined,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+typeToString(n)+"]",typeToString(r))}else if(n.flags&8192){var T=getFullyQualifiedName(n.symbol,c);v=e.chainDiagnosticMessages(undefined,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+T+"]",typeToString(r))}else if(n.flags&128){v=e.chainDiagnosticMessages(undefined,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,typeToString(r))}else if(n.flags&256){v=e.chainDiagnosticMessages(undefined,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,typeToString(r))}else if(n.flags&(8|4)){v=e.chainDiagnosticMessages(undefined,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,typeToString(n),typeToString(r))}v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,typeToString(i),typeToString(r));$r.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}}return undefined}}if(isJSLiteralType(r)){return ye}if(a){var f=getIndexNodeForAccessExpression(a);if(n.flags&(128|256)){error(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,typeToString(r))}else if(n.flags&(4|8)){error(f,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,typeToString(r),typeToString(n))}else{error(f,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,typeToString(n))}}if(isTypeAny(n)){return n}return undefined;function errorIfWritingToReadonlyIndex(t){if(t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))){error(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,typeToString(r))}}}function getIndexNodeForAccessExpression(e){return e.kind===205?e.argumentExpression:e.kind===192?e.indexType:e.kind===160?e.expression:e}function isPatternLiteralPlaceholderType(e){return!!(e.flags&(1|4|8|64))}function isPatternLiteralType(t){return!!(t.flags&134217728)&&e.every(t.types,isPatternLiteralPlaceholderType)}function isGenericType(e){return!!getGenericObjectFlags(e)}function isGenericObjectType(e){return!!(getGenericObjectFlags(e)&8388608)}function isGenericIndexType(e){return!!(getGenericObjectFlags(e)&16777216)}function getGenericObjectFlags(t){if(t.flags&3145728){if(!(t.objectFlags&4194304)){t.objectFlags|=4194304|e.reduceLeft(t.types,function(e,t){return e|getGenericObjectFlags(t)},0)}return t.objectFlags&25165824}if(t.flags&33554432){if(!(t.objectFlags&4194304)){t.objectFlags|=4194304|getGenericObjectFlags(t.substitute)|getGenericObjectFlags(t.baseType)}return t.objectFlags&25165824}return(t.flags&58982400||isGenericMappedType(t)||isGenericTupleType(t)?8388608:0)|(t.flags&(58982400|4194304|134217728|268435456)&&!isPatternLiteralType(t)?16777216:0)}function isThisTypeParameter(e){return!!(e.flags&262144&&e.isThisType)}function getSimplifiedType(e,t){return e.flags&8388608?getSimplifiedIndexedAccessType(e,t):e.flags&16777216?getSimplifiedConditionalType(e,t):e}function distributeIndexOverObjectType(t,r,n){if(t.flags&3145728){var i=e.map(t.types,function(e){return getSimplifiedType(getIndexedAccessType(e,r),n)});return t.flags&2097152||n?getIntersectionType(i):getUnionType(i)}}function distributeObjectOverIndexType(t,r,n){if(r.flags&1048576){var i=e.map(r.types,function(e){return getSimplifiedType(getIndexedAccessType(t,e),n)});return n?getIntersectionType(i):getUnionType(i)}}function getSimplifiedIndexedAccessType(e,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(e[r]){return e[r]===ot?e:e[r]}e[r]=ot;var n=getSimplifiedType(e.objectType,t);var i=getSimplifiedType(e.indexType,t);var a=distributeObjectOverIndexType(n,i,t);if(a){return e[r]=a}if(!(i.flags&465829888)){var s=distributeIndexOverObjectType(n,i,t);if(s){return e[r]=s}}if(isGenericTupleType(n)&&i.flags&296){var o=getElementTypeOfSliceOfTupleType(n,i.flags&8?0:n.target.fixedLength,0,t);if(o){return e[r]=o}}if(isGenericMappedType(n)){return e[r]=mapType(substituteIndexedMappedType(n,e.indexType),function(e){return getSimplifiedType(e,t)})}return e[r]=e}function isConditionalTypeAlwaysTrueDisregardingInferTypes(t){var r=t.root.inferTypeParameters&&createTypeMapper(t.root.inferTypeParameters,e.map(t.root.inferTypeParameters,function(){return Te}));var n=t.checkType;var i=t.extendsType;return isTypeAssignableTo(getRestrictiveInstantiation(n),getRestrictiveInstantiation(instantiateType(i,r)))}function getSimplifiedConditionalType(e,t){var r=e.checkType;var n=e.extendsType;var i=getTrueTypeFromConditionalType(e);var a=getFalseTypeFromConditionalType(e);if(a.flags&131072&&getActualTypeVariable(i)===getActualTypeVariable(r)){if(r.flags&1||isTypeAssignableTo(getRestrictiveInstantiation(r),getRestrictiveInstantiation(n))){return getSimplifiedType(i,t)}else if(isIntersectionEmpty(r,n)){return Ue}}else if(i.flags&131072&&getActualTypeVariable(a)===getActualTypeVariable(r)){if(!(r.flags&1)&&isTypeAssignableTo(getRestrictiveInstantiation(r),getRestrictiveInstantiation(n))){return Ue}else if(r.flags&1||isIntersectionEmpty(r,n)){return getSimplifiedType(a,t)}}return e}function isIntersectionEmpty(e,t){return!!(getUnionType([intersectTypes(e,t),Ue]).flags&131072)}function substituteIndexedMappedType(e,t){var r=createTypeMapper([getTypeParameterFromMappedType(e)],[t]);var n=combineTypeMappers(e.mapper,r);return instantiateType(getTemplateTypeFromMappedType(e),n)}function getIndexedAccessType(e,t,r,n,i,a){if(r===void 0){r=0}return getIndexedAccessTypeOrUndefined(e,t,r,n,i,a)||(n?Se:xe)}function indexTypeLessThan(e,t){return everyType(e,function(e){if(e.flags&384){var r=getPropertyNameFromType(e);if(isNumericLiteralName(r)){var n=+r;return n>=0&&n=r?xe:n})}function combineTypeMappers(e,t){return e?makeCompositeTypeMapper(3,e,t):t}function mergeTypeMappers(e,t){return e?makeCompositeTypeMapper(4,e,t):t}function prependTypeMapping(e,t,r){return!r?makeUnaryTypeMapper(e,t):makeCompositeTypeMapper(4,makeUnaryTypeMapper(e,t),r)}function appendTypeMapping(e,t,r){return!e?makeUnaryTypeMapper(t,r):makeCompositeTypeMapper(4,e,makeUnaryTypeMapper(t,r))}function getRestrictiveTypeParameter(e){return e.constraint===xe?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=createTypeParameter(e.symbol),e.restrictiveInstantiation.constraint=xe,e.restrictiveInstantiation)}function cloneTypeParameter(e){var t=createTypeParameter(e.symbol);t.target=e;return t}function instantiateTypePredicate(e,t){return createTypePredicate(e.kind,e.parameterName,e.parameterIndex,instantiateType(e.type,t))}function instantiateSignature(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,cloneTypeParameter);r=combineTypeMappers(createTypeMapper(t.typeParameters,i),r);for(var a=0,s=i;a=5e6){e.tracing===null||e.tracing===void 0?void 0:e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:D,instantiationCount:E});error(C,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);return Se}b++;E++;D++;var a=instantiateTypeWorker(t,r,n,i);D--;return a}function instantiateTypeWorker(e,t,r,n){var i=e.flags;if(i&262144){return getMappedType(e,t)}if(i&524288){var a=e.objectFlags;if(a&(4|16|32)){if(a&4&&!e.node){var s=e.resolvedTypeArguments;var o=instantiateTypes(s,t);return o!==s?createNormalizedTypeReference(e.target,o):e}if(a&1024){return instantiateReverseMappedType(e,t)}return getObjectTypeInstantiation(e,t,r,n)}return e}if(i&3145728){var c=e.flags&1048576?e.origin:undefined;var u=c&&c.flags&3145728?c.types:e.types;var l=instantiateTypes(u,t);if(l===u&&r===e.aliasSymbol){return e}var p=r||e.aliasSymbol;var d=r?n:instantiateTypes(e.aliasTypeArguments,t);return i&2097152||c&&c.flags&2097152?getIntersectionType(l,p,d):getUnionType(l,1,p,d)}if(i&4194304){return getIndexType(instantiateType(e.type,t))}if(i&134217728){return getTemplateLiteralType(e.texts,instantiateTypes(e.types,t))}if(i&268435456){return getStringMappingType(e.symbol,instantiateType(e.type,t))}if(i&8388608){var p=r||e.aliasSymbol;var d=r?n:instantiateTypes(e.aliasTypeArguments,t);return getIndexedAccessType(instantiateType(e.objectType,t),instantiateType(e.indexType,t),e.accessFlags,undefined,p,d)}if(i&16777216){return getConditionalTypeInstantiation(e,combineTypeMappers(e.mapper,t),r,n)}if(i&33554432){var f=instantiateType(e.baseType,t);if(f.flags&8650752){return getSubstitutionType(f,instantiateType(e.substitute,t))}else{var m=instantiateType(e.substitute,t);if(m.flags&3||isTypeAssignableTo(getRestrictiveInstantiation(f),getRestrictiveInstantiation(m))){return f}return m}}return e}function instantiateReverseMappedType(t,r){var n=instantiateType(t.mappedType,r);if(!(e.getObjectFlags(n)&32)){return t}var i=instantiateType(t.constraintType,r);if(!(i.flags&4194304)){return t}var a=inferTypeForHomomorphicMappedType(instantiateType(t.source,r),n,i);if(a){return a}return t}function getPermissiveInstantiation(e){return e.flags&(131068|3|131072)?e:e.permissiveInstantiation||(e.permissiveInstantiation=instantiateType(e,Ze))}function getRestrictiveInstantiation(e){if(e.flags&(131068|3|131072)){return e}if(e.restrictiveInstantiation){return e.restrictiveInstantiation}e.restrictiveInstantiation=instantiateType(e,Qe);e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation;return e.restrictiveInstantiation}function instantiateIndexInfo(e,t){return createIndexInfo(e.keyType,instantiateType(e.type,t),e.isReadonly,e.declaration)}function isContextSensitive(t){e.Debug.assert(t.kind!==167||e.isObjectLiteralMethod(t));switch(t.kind){case 211:case 212:case 167:case 254:return isContextSensitiveFunctionLikeDeclaration(t);case 203:return e.some(t.properties,isContextSensitive);case 202:return e.some(t.elements,isContextSensitive);case 220:return isContextSensitive(t.whenTrue)||isContextSensitive(t.whenFalse);case 219:return(t.operatorToken.kind===56||t.operatorToken.kind===60)&&(isContextSensitive(t.left)||isContextSensitive(t.right));case 291:return isContextSensitive(t.initializer);case 210:return isContextSensitive(t.expression);case 284:return e.some(t.properties,isContextSensitive)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,isContextSensitive);case 283:{var r=t.initializer;return!!r&&isContextSensitive(r)}case 286:{var n=t.expression;return!!n&&isContextSensitive(n)}}return false}function isContextSensitiveFunctionLikeDeclaration(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!getTypeForDeclarationFromJSDocComment(t))&&(e.hasContextSensitiveParameters(t)||hasContextSensitiveReturnExpression(t))}function hasContextSensitiveReturnExpression(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&t.body.kind!==233&&isContextSensitive(t.body)}function isContextSensitiveFunctionOrObjectLiteralMethod(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&isContextSensitiveFunctionLikeDeclaration(t)}function getTypeWithoutSignatures(t){if(t.flags&524288){var r=resolveStructuredTypeMembers(t);if(r.constructSignatures.length||r.callSignatures.length){var n=createObjectType(16,t.symbol);n.members=r.members;n.properties=r.properties;n.callSignatures=e.emptyArray;n.constructSignatures=e.emptyArray;n.indexInfos=e.emptyArray;return n}}else if(t.flags&2097152){return getIntersectionType(e.map(t.types,getTypeWithoutSignatures))}return t}function isTypeIdenticalTo(e,t){return isTypeRelatedTo(e,t,on)}function compareTypesIdentical(e,t){return isTypeRelatedTo(e,t,on)?-1:0}function compareTypesAssignable(e,t){return isTypeRelatedTo(e,t,an)?-1:0}function compareTypesSubtypeOf(e,t){return isTypeRelatedTo(e,t,rn)?-1:0}function isTypeSubtypeOf(e,t){return isTypeRelatedTo(e,t,rn)}function isTypeAssignableTo(e,t){return isTypeRelatedTo(e,t,an)}function isTypeDerivedFrom(t,r){return t.flags&1048576?e.every(t.types,function(e){return isTypeDerivedFrom(e,r)}):r.flags&1048576?e.some(r.types,function(e){return isTypeDerivedFrom(t,e)}):t.flags&58982400?isTypeDerivedFrom(getBaseConstraintOfType(t)||xe,r):r===Ot?!!(t.flags&(524288|67108864)):r===Ft?!!(t.flags&524288)&&isFunctionObjectType(t):hasBaseType(t,getTargetType(r))||isArrayType(r)&&!isReadonlyArrayType(r)&&isTypeDerivedFrom(t,Mt)}function isTypeComparableTo(e,t){return isTypeRelatedTo(e,t,sn)}function areTypesComparable(e,t){return isTypeComparableTo(e,t)||isTypeComparableTo(t,e)}function checkTypeAssignableTo(e,t,r,n,i,a){return checkTypeRelatedTo(e,t,an,r,n,i,a)}function checkTypeAssignableToAndOptionallyElaborate(e,t,r,n,i,a){return checkTypeRelatedToAndOptionallyElaborate(e,t,an,r,n,i,a,undefined)}function checkTypeRelatedToAndOptionallyElaborate(e,t,r,n,i,a,s,o){if(isTypeRelatedTo(e,t,r))return true;if(!n||!elaborateError(i,e,t,r,a,s,o)){return checkTypeRelatedTo(e,t,r,n,a,s,o)}return false}function isOrHasGenericConditional(t){return!!(t.flags&16777216||t.flags&2097152&&e.some(t.types,isOrHasGenericConditional))}function elaborateError(e,t,r,n,i,a,s){if(!e||isOrHasGenericConditional(r))return false;if(!checkTypeRelatedTo(t,r,n,undefined)&&elaborateDidYouMeanToCallOrConstruct(e,t,r,n,i,a,s)){return true}switch(e.kind){case 286:case 210:return elaborateError(e.expression,t,r,n,i,a,s);case 219:switch(e.operatorToken.kind){case 63:case 27:return elaborateError(e.right,t,r,n,i,a,s)}break;case 203:return elaborateObjectLiteral(e,t,r,n,a,s);case 202:return elaborateArrayLiteral(e,t,r,n,a,s);case 284:return elaborateJsxComponents(e,t,r,n,a,s);case 212:return elaborateArrowFunction(e,t,r,n,a,s)}return false}function elaborateDidYouMeanToCallOrConstruct(t,r,n,i,a,s,o){var c=getSignaturesOfType(r,0);var u=getSignaturesOfType(r,1);for(var l=0,p=[u,c];l1;var y=filterType(g,isArrayOrTupleLikeType);var v=filterType(g,function(e){return!isArrayOrTupleLikeType(e)});if(h){if(y!==Ue){var T=createTupleType(checkJsxChildren(p,0));var S=generateJsxChildren(p,getInvalidTextualChildDiagnostic);u=elaborateElementwise(S,T,y,a,o,c)||u}else if(!isTypeRelatedTo(getIndexedAccessType(r,m),g,a)){u=true;var b=error(p.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,f,typeToString(g));if(c&&c.skipLogging){(c.errors||(c.errors=[])).push(b)}}}else{if(v!==Ue){var E=_[0];var x=getElaborationElementForJsxChild(E,m,getInvalidTextualChildDiagnostic);if(x){u=elaborateElementwise(function(){return s(this,function(e){switch(e.label){case 0:return[4,x];case 1:e.sent();return[2]}})}(),r,n,a,o,c)||u}}else if(!isTypeRelatedTo(getIndexedAccessType(r,m),g,a)){u=true;var b=error(p.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,f,typeToString(g));if(c&&c.skipLogging){(c.errors||(c.errors=[])).push(b)}}}}return u;function getInvalidTextualChildDiagnostic(){if(!l){var r=e.getTextOfNode(t.parent.tagName);var a=getJsxElementChildrenPropertyName(getJsxNamespaceAt(t));var s=a===undefined?"children":e.unescapeLeadingUnderscores(a);var o=getIndexedAccessType(n,getStringLiteralType(s));var c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;l=i(i({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(undefined,c,r,s,typeToString(o))})}return l}}function generateLimitedTupleElements(t,r){var n,i,a,o;return s(this,function(s){switch(s.label){case 0:n=e.length(t.elements);if(!n)return[2];i=0;s.label=1;case 1:if(!(iu:getMinArgumentCount(t)>u);if(l){return 0}if(t.typeParameters&&t.typeParameters!==r.typeParameters){r=getCanonicalSignature(r);t=instantiateSignatureInContextOf(t,r,undefined,o)}var p=getParameterCount(t);var d=getNonArrayRestType(t);var f=getNonArrayRestType(r);if(d||f){void instantiateType(d||f,c)}if(d&&f&&p!==u){return 0}var m=r.declaration?r.declaration.kind:0;var g=!(n&3)&&R&&m!==167&&m!==166&&m!==169;var _=-1;var h=getThisTypeOfSignature(t);if(h&&h!==Je){var y=getThisTypeOfSignature(r);if(y){var v=!g&&o(h,y,false)||o(y,h,i);if(!v){if(i){a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible)}return 0}_&=v}}var T=d||f?Math.min(p,u):Math.max(p,u);var S=d||f?T-1:-1;for(var b=0;b=getMinArgumentCount(t)&&b0||typeHasCallOrConstructSignatures(c));if(m&&!hasCommonProperties(c,u,d)){if(n){var g=typeToString(t.aliasSymbol?t:c);var _=typeToString(r.aliasSymbol?r:u);var h=getSignaturesOfType(c,0);var y=getSignaturesOfType(c,1);if(h.length>0&&isRelatedTo(getReturnTypeOfSignature(h[0]),u,false)||y.length>0&&isRelatedTo(getReturnTypeOfSignature(y[0]),u,false)){reportError(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,_)}else{reportError(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,_)}}return 0}traceUnionsOrIntersectionsTooLarge(c,u);var S=0;var E=captureErrorCalculationState();if(c.flags&3145728||u.flags&3145728){S=getConstituentCount(c)*getConstituentCount(u)>=4?recursiveTypeRelatedTo(c,u,n,o|8):structuredTypeRelatedTo(c,u,n,o|8)}if(!S&&!(c.flags&1048576)&&(c.flags&469499904||u.flags&469499904)){if(S=recursiveTypeRelatedTo(c,u,n,o)){resetErrorInfo(E)}}if(!S&&c.flags&(2097152|262144)){var x=getEffectiveConstraintOfIntersection(c.flags&2097152?c.types:[c],!!(u.flags&1048576));if(x&&(c.flags&2097152||u.flags&1048576)){if(everyType(x,function(e){return e!==c})){if(S=isRelatedTo(x,u,false,undefined,o)){resetErrorInfo(E)}}}}if(S&&!b&&(u.flags&2097152&&(f||m)||isNonGenericObjectType(u)&&!isArrayType(u)&&!isTupleType(u)&&c.flags&2097152&&getApparentType(c).flags&3670016&&!e.some(c.types,function(t){return!!(e.getObjectFlags(t)&524288)}))){b=true;S&=recursiveTypeRelatedTo(c,u,n,4);b=false}reportErrorResults(c,u,S,d);return S;function reportErrorResults(a,o,c,u){if(!c&&n){var p=!!getSingleBaseForNonAugmentingSubtype(t);var d=!!getSingleBaseForNonAugmentingSubtype(r);a=t.aliasSymbol||p?t:a;o=r.aliasSymbol||d?r:o;var f=v>0;if(f){v--}if(a.flags&524288&&o.flags&524288){var m=l;tryElaborateArrayLikeErrors(a,o,n);if(l!==m){f=!!l}}if(a.flags&524288&&o.flags&131068){tryElaborateErrorsForPrimitivesAndObjects(a,o)}else if(a.symbol&&a.flags&524288&&Ot===a){reportError(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead)}else if(u&&o.flags&2097152){var g=o.types;var _=getJsxType(N.IntrinsicAttributes,s);var h=getJsxType(N.IntrinsicClassAttributes,s);if(_!==Se&&h!==Se&&(e.contains(g,_)||e.contains(g,h))){return c}}else{l=elaborateNeverIntersection(l,r)}if(!i&&f){T=[a,o];return c}reportRelationError(i,a,o)}}}function traceUnionsOrIntersectionsTooLarge(t,r){if(!e.tracing){return}if(t.flags&3145728&&r.flags&3145728){var n=t;var i=r;if(n.objectFlags&i.objectFlags&65536){return}var a=n.types.length;var o=i.types.length;if(a*o>1e6){e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:a,targetId:r.id,targetSize:o,pos:s===null||s===void 0?void 0:s.pos,end:s===null||s===void 0?void 0:s.end})}}}function isIdenticalTo(e,t){if(e.flags!==t.flags)return 0;if(e.flags&67358815)return-1;traceUnionsOrIntersectionsTooLarge(e,t);if(e.flags&3145728){var r=eachTypeRelatedToSomeType(e,t);if(r){r&=eachTypeRelatedToSomeType(t,e)}return r}return recursiveTypeRelatedTo(e,t,false,0)}function getTypeOfPropertyInTypes(t,r){var n=function(t,n){var i;n=getApparentType(n);var a=n.flags&3145728?getPropertyOfUnionOrIntersectionType(n,r):getPropertyOfObjectType(n,r);var s=a&&getTypeOfSymbol(a)||((i=getApplicableIndexInfoForName(n,r))===null||i===void 0?void 0:i.type)||De;return e.append(t,s)};return getUnionType(e.reduceLeft(t,n,undefined)||e.emptyArray)}function hasExcessProperties(t,r,n){var i;if(!isExcessPropertyCheckTarget(r)||!J&&e.getObjectFlags(r)&8192){return false}var o=!!(e.getObjectFlags(t)&2048);if((a===an||a===sn)&&(isTypeSubsetOf(Ot,r)||!o&&isEmptyObjectType(r))){return false}var c=r;var u;if(r.flags&1048576){c=findMatchingDiscriminantType(t,r,isRelatedTo)||filterPrimitivesIfContainsNonPrimitive(r);u=c.flags&1048576?c.types:[c]}var l=function(r){if(shouldCheckAsExcessProperty(r,t.symbol)&&!isIgnoredJsxProperty(t,r)){if(!isKnownProperty(c,r.escapedName,o)){if(n){var a=filterType(c,isExcessPropertyCheckTarget);if(!s)return{value:e.Debug.fail()};if(e.isJsxAttributes(s)||e.isJsxOpeningLikeElement(s)||e.isJsxOpeningLikeElement(s.parent)){if(r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(s)===e.getSourceFileOfNode(r.valueDeclaration.name)){s=r.valueDeclaration.name}var l=symbolToString(r);var p=getSuggestedSymbolForNonexistentJSXAttribute(l,a);var d=p?symbolToString(p):undefined;if(d){reportError(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,typeToString(a),d)}else{reportError(e.Diagnostics.Property_0_does_not_exist_on_type_1,l,typeToString(a))}}else{var f=((i=t.symbol)===null||i===void 0?void 0:i.declarations)&&e.firstOrUndefined(t.symbol.declarations);var d=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,function(e){return e===f})&&e.getSourceFileOfNode(f)===e.getSourceFileOfNode(s)){var m=r.valueDeclaration;e.Debug.assertNode(m,e.isObjectLiteralElementLike);s=m;var g=m.name;if(e.isIdentifier(g)){d=getSuggestionForNonexistentProperty(g,a)}}if(d!==undefined){reportError(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,symbolToString(r),typeToString(a),d)}else{reportError(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,symbolToString(r),typeToString(a))}}}return{value:true}}if(u&&!isRelatedTo(getTypeOfSymbol(r),getTypeOfPropertyInTypes(u,r.escapedName),n)){if(n){reportIncompatibleError(e.Diagnostics.Types_of_property_0_are_incompatible,symbolToString(r))}return{value:true}}}};for(var p=0,d=getPropertiesOfType(t);p=s.types.length&&a.length%s.types.length===0){var u=isRelatedTo(c,s.types[o%s.types.length],false,undefined,n);if(u){i&=u;continue}}var l=isRelatedTo(c,t,r,undefined,n);if(!l){return 0}i&=l}return i}function typeArgumentsRelatedTo(t,r,n,i,s){if(t===void 0){t=e.emptyArray}if(r===void 0){r=e.emptyArray}if(n===void 0){n=e.emptyArray}if(t.length!==r.length&&a===on){return 0}var o=t.length<=r.length?t.length:r.length;var c=-1;for(var u=0;u25){e.tracing===null||e.tracing===void 0?void 0:e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:s});return 0}}var l=new Array(i.length);var p=new e.Set;for(var d=0;d5){reportError(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,typeToString(t),typeToString(i),e.map(m.slice(0,4),function(e){return symbolToString(e)}).join(", "),m.length-4)}else{reportError(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,typeToString(t),typeToString(i),e.map(m,function(e){return symbolToString(e)}).join(", "))}if(c&&l){v++}}}function propertiesRelatedTo(t,r,n,i,s){if(a===on){return propertiesIdenticalTo(t,r,i)}var o=-1;if(isTupleType(r)){if(isArrayType(t)||isTupleType(t)){if(!r.target.readonly&&(isReadonlyArrayType(t)||isTupleType(t)&&t.target.readonly)){return 0}var c=getTypeReferenceArity(t);var u=getTypeReferenceArity(r);var l=isTupleType(t)?t.target.combinedFlags&4:4;var p=r.target.combinedFlags&4;var d=isTupleType(t)?t.target.minLength:0;var f=r.target.minLength;if(!l&&c=u-h)?t.target.elementFlags[T]:4;var b=r.target.elementFlags[v];if(b&8&&!(S&8)){if(n){reportError(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,v)}return 0}if(S&8&&!(b&12)){if(n){reportError(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,T,v)}return 0}if(b&1&&!(S&1)){if(n){reportError(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,v)}return 0}if(y){if(S&12||b&12){y=false}if(y&&(i===null||i===void 0?void 0:i.has(""+v))){continue}}var E=!isTupleType(t)?m[0]:v<_||v>=u-h?removeMissingType(m[T],!!(S&b&2)):getElementTypeOfSliceOfTupleType(t,_,h)||Ue;var x=g[v];var D=S&8&&b&4?createArrayType(x):removeMissingType(x,!!(b&2));var C=isRelatedTo(E,D,n,undefined,s);if(!C){if(n&&(u>1||c>1)){if(v<_||v>=u-h||c-_-h===1){reportIncompatibleError(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,T,v)}else{reportIncompatibleError(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,_,c-h-1,v)}}return 0}o&=C}return o}if(r.target.combinedFlags&12){return 0}}var A=(a===rn||a===nn)&&!isObjectLiteralType(t)&&!isEmptyArrayLiteralType(t)&&!isTupleType(t);var k=getUnmatchedProperty(t,r,A,false);if(k){if(n){reportUnmatchedProperty(t,r,k,A)}return 0}if(isObjectLiteralType(r)){for(var P=0,N=excludeProperties(getPropertiesOfType(t),i);P0&&e.every(r.properties,function(e){return!!(e.flags&16777216)})}if(t.flags&2097152){return e.every(t.types,isWeakType)}return false}function hasCommonProperties(e,t,r){for(var n=0,i=getPropertiesOfType(e);n"}else{n+="-"+s.id}}return n}function getRelationKey(e,t,r,n){if(n===on&&e.id>t.id){var i=e;e=t;t=i}var a=r?":"+r:"";if(isTypeReferenceWithGenericArguments(e)&&isTypeReferenceWithGenericArguments(t)){var s=[];return getTypeReferenceId(e,s)+","+getTypeReferenceId(t,s)+a}return e.id+","+t.id+a}function forEachProperty(t,r){if(e.getCheckFlags(t)&6){for(var n=0,i=t.containingType.types;n=5){var n=getRecursionIdentity(e);var i=0;for(var a=0;a=5){return true}}}}return false}function getRecursionIdentity(t){if(t.flags&524288&&!isObjectOrArrayLiteralType(t)){if(e.getObjectFlags(t)&&4&&t.node){return t.node}if(t.symbol&&!(e.getObjectFlags(t)&16&&t.symbol.flags&32)){return t.symbol}if(isTupleType(t)){return t.target}}if(t.flags&262144){return t.symbol}if(t.flags&8388608){do{t=t.objectType}while(t.flags&8388608);return t}if(t.flags&16777216){return t.root}return t}function isPropertyIdenticalTo(e,t){return compareProperties(e,t,compareTypesIdentical)!==0}function compareProperties(t,r,n){if(t===r){return-1}var i=e.getDeclarationModifierFlagsFromSymbol(t)&24;var a=e.getDeclarationModifierFlagsFromSymbol(r)&24;if(i!==a){return 0}if(i){if(getTargetSymbol(t)!==getTargetSymbol(r)){return 0}}else{if((t.flags&16777216)!==(r.flags&16777216)){return 0}}if(isReadonlySymbol(t)!==isReadonlySymbol(r)){return 0}return n(getTypeOfSymbol(t),getTypeOfSymbol(r))}function isMatchingSignature(e,t,r){var n=getParameterCount(e);var i=getParameterCount(t);var a=getMinArgumentCount(e);var s=getMinArgumentCount(t);var o=hasEffectiveRestParameter(e);var c=hasEffectiveRestParameter(t);if(n===i&&a===s&&o===c){return true}if(r&&a<=s){return true}return false}function compareSignaturesIdentical(t,r,n,i,a,s){if(t===r){return-1}if(!isMatchingSignature(t,r,n)){return 0}if(e.length(t.typeParameters)!==e.length(r.typeParameters)){return 0}if(r.typeParameters){var o=createTypeMapper(t.typeParameters,r.typeParameters);for(var c=0;ce.length(r.typeParameters)){a=getTypeWithThisArgument(a,e.last(getTypeArguments(t)))}t.objectFlags|=67108864;return t.cachedEquivalentBaseType=a}function isEmptyLiteralType(e){return M?e===Ke:e===Ce}function isEmptyArrayLiteralType(e){var t=getElementTypeOfArrayType(e);return!!t&&isEmptyLiteralType(t)}function isTupleLikeType(e){return isTupleType(e)||!!getPropertyOfType(e,"0")}function isArrayOrTupleLikeType(e){return isArrayLikeType(e)||isTupleLikeType(e)}function getTupleElementType(e,t){var r=getTypeOfPropertyOfType(e,""+t);if(r){return r}if(everyType(e,isTupleType)){return mapType(e,function(e){return getRestTypeOfTupleType(e)||De})}return undefined}function isNeitherUnitTypeNorNever(e){return!(e.flags&(109440|131072))}function isUnitType(e){return!!(e.flags&109440)}function isUnitLikeType(t){return t.flags&2097152?e.some(t.types,isUnitType):!!(t.flags&109440)}function extractUnitType(t){return t.flags&2097152?e.find(t.types,isUnitType)||t:t}function isLiteralType(t){return t.flags&16?true:t.flags&1048576?t.flags&1024?true:e.every(t.types,isUnitType):isUnitType(t)}function getBaseTypeOfLiteralType(e){return e.flags&1024?getBaseTypeOfEnumLiteralType(e):e.flags&128?Oe:e.flags&256?Fe:e.flags&2048?we:e.flags&512?Be:e.flags&1048576?mapType(e,getBaseTypeOfLiteralType):e}function getWidenedLiteralType(e){return e.flags&1024&&isFreshLiteralType(e)?getBaseTypeOfEnumLiteralType(e):e.flags&128&&isFreshLiteralType(e)?Oe:e.flags&256&&isFreshLiteralType(e)?Fe:e.flags&2048&&isFreshLiteralType(e)?we:e.flags&512&&isFreshLiteralType(e)?Be:e.flags&1048576?mapType(e,getWidenedLiteralType):e}function getWidenedUniqueESSymbolType(e){return e.flags&8192?je:e.flags&1048576?mapType(e,getWidenedUniqueESSymbolType):e}function getWidenedLiteralLikeTypeForContextualType(e,t){if(!isLiteralOfContextualType(e,t)){e=getWidenedUniqueESSymbolType(getWidenedLiteralType(e))}return e}function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(e,t,r){if(e&&isUnitType(e)){var n=!t?undefined:r?getPromisedTypeOfPromise(t):t;e=getWidenedLiteralLikeTypeForContextualType(e,n)}return e}function getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(e,t,r,n){if(e&&isUnitType(e)){var i=!t?undefined:getIterationTypeOfGeneratorFunctionReturnType(r,t,n);e=getWidenedLiteralLikeTypeForContextualType(e,i)}return e}function isTupleType(t){return!!(e.getObjectFlags(t)&4&&t.target.objectFlags&8)}function isGenericTupleType(e){return isTupleType(e)&&!!(e.target.combinedFlags&8)}function isSingleElementGenericTupleType(e){return isGenericTupleType(e)&&e.target.elementFlags.length===1}function getRestTypeOfTupleType(e){return getElementTypeOfSliceOfTupleType(e,e.target.fixedLength)}function getRestArrayTypeOfTupleType(e){var t=getRestTypeOfTupleType(e);return t&&createArrayType(t)}function getElementTypeOfSliceOfTupleType(e,t,r,n){if(r===void 0){r=0}if(n===void 0){n=false}var i=getTypeReferenceArity(e)-r;if(t-1&&(resolveName(s,s.name.escapedText,788968,undefined,s.name.escapedText,true)||s.name.originalKeywordKind&&e.isTypeNodeKind(s.name.originalKeywordKind))){var o="arg"+s.parent.parameters.indexOf(s);errorOrSuggestion(J,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,e.declarationNameToString(s.name));return}a=t.dotDotDotToken?J?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:J?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;if(!J){return}break;case 312:error(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);return;case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(J&&!t.name){if(n===3){error(t,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,i)}else{error(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i)}return}a=!J?e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:n===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 193:if(J){error(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type)}return;default:a=J?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}errorOrSuggestion(J,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}function reportErrorsFromWidening(t,r,n){if(o&&J&&e.getObjectFlags(r)&131072&&(!n||!getContextualSignatureForFunctionLikeDeclaration(t))){if(!reportWideningErrorsInType(r)){reportImplicitAny(t,r,n)}}}function applyToParameterTypes(e,t,r){var n=getParameterCount(e);var i=getParameterCount(t);var a=getEffectiveRestType(e);var s=getEffectiveRestType(t);var o=s?i-1:i;var c=a?o:Math.min(n,o);var u=getThisTypeOfSignature(e);if(u){var l=getThisTypeOfSignature(t);if(l){r(u,l)}}for(var p=0;pe.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength0){var h=f;var y=m;while(true){y=getSourceText(h).indexOf(_,y);if(y>=0)break;h++;if(h===e.length)return undefined;y=0}addMatch(h,y);m+=_.length}else if(m0){for(var T=0,S=r;T1){var r=e.filter(t,isObjectOrArrayLiteralType);if(r.length){var n=getUnionType(r,2);return e.concatenate(e.filter(t,function(e){return!isObjectOrArrayLiteralType(e)}),[n])}}return t}function getContravariantInference(e){return e.priority&416?getIntersectionType(e.contraCandidates):getCommonSubtype(e.contraCandidates)}function getCovariantInference(t,r){var n=unionObjectAndArrayLiteralCandidates(t.candidates);var i=hasPrimitiveConstraint(t.typeParameter);var a=!i&&t.topLevel&&(t.isFixed||!isTypeParameterAtTopLevel(getReturnTypeOfSignature(r),t.typeParameter));var s=i?e.sameMap(n,getRegularTypeOfLiteralType):a?e.sameMap(n,getWidenedLiteralType):n;var o=t.priority&416?getUnionType(s,2):getCommonSupertype(s);return getWidenedType(o)}function getInferredType(e,t){var r=e.inferences[t];if(!r.inferredType){var n=void 0;var i=e.signature;if(i){var a=r.candidates?getCovariantInference(r,i):undefined;if(r.contraCandidates){var s=getContravariantInference(r);n=a&&!(a.flags&131072)&&isTypeSubtypeOf(a,s)?a:s}else if(a){n=a}else if(e.flags&1){n=Ve}else{var o=getDefaultFromTypeParameter(r.typeParameter);if(o){n=instantiateType(o,mergeTypeMappers(createBackreferenceMapper(e,t),e.nonFixingMapper))}}}else{n=getTypeFromInference(r)}r.inferredType=n||getDefaultTypeArgumentType(!!(e.flags&2));var c=getConstraintOfTypeParameter(r.typeParameter);if(c){var u=instantiateType(c,e.nonFixingMapper);if(!n||!e.compareTypes(n,getTypeWithThisArgument(u,n))){r.inferredType=n=u}}}return r.inferredType}function getDefaultTypeArgumentType(e){return e?ye:xe}function getInferredTypes(e){var t=[];for(var r=0;r=10&&i*2>=t.length?n:undefined}function getKeyPropertyName(t){var r=t.types;if(r.length<10||e.getObjectFlags(t)&65536){return undefined}if(t.keyPropertyName===undefined){var n=e.forEach(r,function(t){return t.flags&(524288|58982400)?e.forEach(getPropertiesOfType(t),function(e){return isUnitType(getTypeOfSymbol(e))?e.escapedName:undefined}):undefined});var i=n&&mapTypesByKeyProperty(r,n);t.keyPropertyName=i?n:"";t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:undefined}function getConstituentTypeForKeyType(e,t){var r;var n=(r=e.constituentMap)===null||r===void 0?void 0:r.get(getTypeId(getRegularTypeOfLiteralType(t)));return n!==xe?n:undefined}function getMatchingUnionConstituentForType(e,t){var r=getKeyPropertyName(e);var n=r&&getTypeOfPropertyOfType(t,r);return n&&getConstituentTypeForKeyType(e,n)}function getMatchingUnionConstituentForObjectLiteral(t,r){var n=getKeyPropertyName(t);var i=n&&e.find(r.properties,function(e){return e.symbol&&e.kind===291&&e.symbol.escapedName===n&&isPossiblyDiscriminantValue(e.initializer)});var a=i&&getTypeOfExpression(i.initializer);return a&&getConstituentTypeForKeyType(t,a)}function isOrContainsMatchingReference(e,t){return isMatchingReference(e,t)||containsMatchingReference(e,t)}function hasMatchingArgument(e,t){if(e.arguments){for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&s-1){var l=a.filter(function(e){return e!==undefined});var p=s=2||(r.flags&(2|32))===0||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||r.valueDeclaration.parent.kind===290){return}var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration);var i=isInsideFunctionOrInstancePropertyInitializer(t,n);var a=getEnclosingIterationStatement(n);if(a){if(i){var s=true;if(e.isForStatement(n)){var o=e.getAncestor(r.valueDeclaration,253);if(o&&o.parent===n){var c=getPartOfForStatementContainingNode(t.parent,n);if(c){var u=getNodeLinks(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r);if(c===n.initializer){s=false}}}}if(s){getNodeLinks(a).flags|=65536}}if(e.isForStatement(n)){var o=e.getAncestor(r.valueDeclaration,253);if(o&&o.parent===n&&isAssignedInBodyOfForStatement(t,n)){getNodeLinks(r.valueDeclaration).flags|=4194304}}getNodeLinks(r.valueDeclaration).flags|=524288}if(i){getNodeLinks(r.valueDeclaration).flags|=262144}}function isBindingCapturedByNode(t,r){var n=getNodeLinks(t);return!!n&&e.contains(n.capturedBlockScopeBindings,getSymbolOfNode(r))}function isAssignedInBodyOfForStatement(t,r){var n=t;while(n.parent.kind===210){n=n.parent}var i=false;if(e.isAssignmentTarget(n)){i=true}else if(n.parent.kind===217||n.parent.kind===218){var a=n.parent;i=a.operator===45||a.operator===46}if(!i){return false}return!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function captureLexicalThis(e,t){getNodeLinks(e).flags|=2;if(t.kind===165||t.kind===169){var r=t.parent;getNodeLinks(r).flags|=4}else{getNodeLinks(t).flags|=4}}function findFirstSuperCall(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?undefined:e.forEachChild(t,findFirstSuperCall)}function classDeclarationExtendsNull(e){var t=getSymbolOfNode(e);var r=getDeclaredTypeOfSymbol(t);var n=getBaseConstructorTypeOfClass(r);return n===Ne}function checkThisBeforeSuper(t,r,n){var i=r.parent;var a=e.getClassExtendsHeritageElement(i);if(a&&!classDeclarationExtendsNull(i)){if(t.flowNode&&!isPostSuperFlowNode(t.flowNode,false)){error(t,n)}}}function checkThisInStaticClassFieldInitializerInDecoratedClass(t,r){if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)){error(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}}function checkThisExpression(t){var r=isInTypeQuery(t);var n=e.getThisContainer(t,true);var i=false;if(n.kind===169){checkThisBeforeSuper(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class)}if(n.kind===212){n=e.getThisContainer(n,false);i=true}checkThisInStaticClassFieldInitializerInDecoratedClass(t,n);switch(n.kind){case 259:error(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:error(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:if(isInConstructorArgumentInitializer(t,n)){error(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments)}break;case 160:error(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}if(!r&&i&&F<2){captureLexicalThis(t,n)}var a=tryGetThisTypeAt(t,true,n);if(U){var s=getTypeOfSymbol(X);if(a===s&&i){error(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this)}else if(!a){var o=error(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=tryGetThisTypeAt(n);if(c&&c!==s){e.addRelatedInfo(o,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}}return a||ye}function tryGetThisTypeAt(t,r,n){if(r===void 0){r=true}if(n===void 0){n=e.getThisContainer(t,false)}var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!isInParameterInitializerBeforeContainingFunction(t)||e.getThisParameter(n))){var a=getThisTypeOfDeclaration(n)||i&&getTypeForThisExpressionFromJSDoc(n);if(!a){var s=getClassNameFromPrototypeMethod(n);if(i&&s){var o=checkExpression(s).symbol;if(o&&o.members&&o.flags&16){a=getDeclaredTypeOfSymbol(o).thisType}}else if(isJSConstructor(n)){a=getDeclaredTypeOfSymbol(getMergedSymbol(n.symbol)).thisType}a||(a=getContextualThisParameterType(n))}if(a){return getFlowTypeOfReference(t,a)}}if(e.isClassLike(n.parent)){var c=getSymbolOfNode(n.parent);var u=e.isStatic(n)?getTypeOfSymbol(c):getDeclaredTypeOfSymbol(c).thisType;return getFlowTypeOfReference(t,u)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=getSymbolOfNode(n);return l&&getTypeOfSymbol(l)}else if(n.externalModuleIndicator){return De}else if(r){return getTypeOfSymbol(X)}}}function getExplicitThisType(t){var r=e.getThisContainer(t,false);if(e.isFunctionLike(r)){var n=getSignatureFromDeclaration(r);if(n.thisParameter){return getExplicitTypeOfSymbol(n.thisParameter)}}if(e.isClassLike(r.parent)){var i=getSymbolOfNode(r.parent);return e.isStatic(r)?getTypeOfSymbol(i):getDeclaredTypeOfSymbol(i).thisType}}function getClassNameFromPrototypeMethod(t){if(t.kind===211&&e.isBinaryExpression(t.parent)&&e.getAssignmentDeclarationKind(t.parent)===3){return t.parent.left.expression.expression}else if(t.kind===167&&t.parent.kind===203&&e.isBinaryExpression(t.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent)===6){return t.parent.parent.left.expression}else if(t.kind===211&&t.parent.kind===291&&t.parent.parent.kind===203&&e.isBinaryExpression(t.parent.parent.parent)&&e.getAssignmentDeclarationKind(t.parent.parent.parent)===6){return t.parent.parent.parent.left.expression}else if(t.kind===211&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&(t.parent.name.escapedText==="value"||t.parent.name.escapedText==="get"||t.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&e.getAssignmentDeclarationKind(t.parent.parent.parent)===9){return t.parent.parent.parent.arguments[0].expression}else if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&(t.name.escapedText==="value"||t.name.escapedText==="get"||t.name.escapedText==="set")&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&e.getAssignmentDeclarationKind(t.parent.parent)===9){return t.parent.parent.arguments[0].expression}}function getTypeForThisExpressionFromJSDoc(t){var r=e.getJSDocType(t);if(r&&r.kind===312){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&n.parameters[0].name.escapedText==="this"){return getTypeFromTypeNode(n.parameters[0].type)}}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression){return getTypeFromTypeNode(i.typeExpression)}}function isInConstructorArgumentInitializer(t,r){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":t.kind===162&&t.parent===r})}function checkSuperExpression(t){var r=t.parent.kind===206&&t.parent.expression===t;var n=e.getSuperContainer(t,true);var i=n;var a=false;if(!r){while(i&&i.kind===212){i=e.getSuperContainer(i,true);a=F<2}}var s=isLegalUsageOfSuperExpression(i);var o=0;if(!s){var c=e.findAncestor(t,function(e){return e===i?"quit":e.kind===160});if(c&&c.kind===160){error(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name)}else if(r){error(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors)}else if(!i||!i.parent||!(e.isClassLike(i.parent)||i.parent.kind===203)){error(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions)}else{error(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class)}return Se}if(!r&&n.kind===169){checkThisBeforeSuper(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class)}if(e.isStatic(i)||r){o=512;if(!r&&F>=2&&F<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))){e.forEachEnclosingBlockScopeContainer(t.parent,function(t){if(!e.isSourceFile(t)||e.isExternalOrCommonJsModule(t)){getNodeLinks(t).flags|=134217728}})}}else{o=256}getNodeLinks(t).flags|=o;if(i.kind===167&&e.hasSyntacticModifier(i,256)){if(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)){getNodeLinks(i).flags|=4096}else{getNodeLinks(i).flags|=2048}}if(a){captureLexicalThis(t.parent,i)}if(i.parent.kind===203){if(F<2){error(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher);return Se}else{return ye}}var u=i.parent;if(!e.getClassExtendsHeritageElement(u)){error(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class);return Se}var l=getDeclaredTypeOfSymbol(getSymbolOfNode(u));var p=l&&getBaseTypes(l)[0];if(!p){return Se}if(i.kind===169&&isInConstructorArgumentInitializer(t,i)){error(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments);return Se}return o===512?getBaseConstructorTypeOfClass(l):getTypeWithThisArgument(p,l.thisType);function isLegalUsageOfSuperExpression(t){if(!t){return false}if(r){return t.kind===169}else{if(e.isClassLike(t.parent)||t.parent.kind===203){if(e.isStatic(t)){return t.kind===167||t.kind===166||t.kind===170||t.kind===171||t.kind===165||t.kind===168}else{return t.kind===167||t.kind===166||t.kind===170||t.kind===171||t.kind===165||t.kind===164||t.kind===169}}}return false}}function getContainingObjectLiteral(e){return(e.kind===167||e.kind===170||e.kind===171)&&e.parent.kind===203?e.parent:e.kind===211&&e.parent.kind===291?e.parent.parent:undefined}function getThisTypeArgument(t){return e.getObjectFlags(t)&4&&t.target===Ut?getTypeArguments(t)[0]:undefined}function getThisTypeFromContextualType(t){return mapType(t,function(t){return t.flags&2097152?e.forEach(t.types,getThisTypeArgument):getThisTypeArgument(t)})}function getContextualThisParameterType(t){if(t.kind===212){return undefined}if(isContextSensitiveFunctionOrObjectLiteralMethod(t)){var r=getContextualSignature(t);if(r){var n=r.thisParameter;if(n){return getTypeOfSymbol(n)}}}var i=e.isInJSFile(t);if(U||i){var a=getContainingObjectLiteral(t);if(a){var s=getApparentTypeOfContextualType(a);var o=a;var c=s;while(c){var u=getThisTypeFromContextualType(c);if(u){return instantiateType(u,getMapperFromContext(getInferenceContext(a)))}if(o.parent.kind!==291){break}o=o.parent.parent;c=getApparentTypeOfContextualType(o)}return getWidenedType(s?getNonNullableType(s):checkExpressionCached(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(l.kind===219&&l.operatorToken.kind===63){var p=l.left;if(e.isAccessExpression(p)){var d=p.expression;if(i&&e.isIdentifier(d)){var f=e.getSourceFileOfNode(l);if(f.commonJsModuleIndicator&&getResolvedSymbol(d)===f.symbol){return undefined}}return getWidenedType(checkExpressionCached(d))}}}return undefined}function getContextuallyTypedParameterType(t){var r=t.parent;if(!isContextSensitiveFunctionOrObjectLiteralMethod(r)){return undefined}var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=getEffectiveCallArguments(n);var a=r.parameters.indexOf(t);if(t.dotDotDotToken){return getSpreadArgumentType(i,a,i.length,ye,undefined,0)}var s=getNodeLinks(n);var o=s.resolvedSignature;s.resolvedSignature=ft;var c=a=i?getIndexedAccessType(getTypeOfSymbol(n.parameters[i]),getNumberLiteralType(r-i),256):getTypeAtPosition(n,r)}function getContextualTypeForSubstitutionExpression(e,t){if(e.parent.kind===208){return getContextualTypeForArgument(e.parent,t)}return undefined}function getContextualTypeForBinaryOperand(t,r){var n=t.parent;var i=n.left,a=n.operatorToken,s=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===s?getContextualTypeForAssignmentDeclaration(n):undefined;case 56:case 60:var o=getContextualType(n,r);return t===s&&(o&&o.pattern||!o&&!e.isDefaultedExpandoInitializer(n))?getTypeOfExpression(i):o;case 55:case 27:return t===s?getContextualType(n,r):undefined;default:return undefined}}function getSymbolForExpression(t){if(t.symbol){return t.symbol}if(e.isIdentifier(t)){return getResolvedSymbol(t)}if(e.isPropertyAccessExpression(t)){var r=getTypeOfExpression(t.expression);return e.isPrivateIdentifier(t.name)?tryGetPrivateIdentifierPropertyOfType(r,t.name):getPropertyOfType(r,t.name.escapedText)}return undefined;function tryGetPrivateIdentifierPropertyOfType(e,t){var r=lookupSymbolForPrivateIdentifierDeclaration(t.escapedText,t);return r&&getPrivateIdentifierPropertyOfType(e,r)}}function getContextualTypeForAssignmentDeclaration(t){var r,n;var i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=getSymbolForExpression(t.left);var s=a&&a.valueDeclaration;if(s&&(e.isPropertyDeclaration(s)||e.isPropertySignature(s))){var o=e.getEffectiveTypeAnnotationNode(s);return o&&instantiateType(getTypeFromTypeNode(o),getSymbolLinks(a).mapper)||s.initializer&&getTypeOfExpression(t.left)}if(i===0){return getTypeOfExpression(t.left)}return getContextualTypeForThisPropertyAssignment(t);case 5:if(isPossiblyAliasedThisProperty(t,i)){return getContextualTypeForThisPropertyAssignment(t)}else if(!t.left.symbol){return getTypeOfExpression(t.left)}else{var c=t.left.symbol.valueDeclaration;if(!c){return undefined}var u=e.cast(t.left,e.isAccessExpression);var o=e.getEffectiveTypeAnnotationNode(c);if(o){return getTypeFromTypeNode(o)}else if(e.isIdentifier(u.expression)){var l=u.expression;var p=resolveName(l,l.escapedText,111551,undefined,l.escapedText,true);if(p){var d=p.valueDeclaration&&e.getEffectiveTypeAnnotationNode(p.valueDeclaration);if(d){var f=e.getElementOrPropertyAccessName(u);if(f!==undefined){return getTypeOfPropertyOfContextualType(getTypeFromTypeNode(d),f)}}return undefined}}return e.isInJSFile(c)?undefined:getTypeOfExpression(t.left)}case 1:case 6:case 3:var m=(r=t.left.symbol)===null||r===void 0?void 0:r.valueDeclaration;case 2:m||(m=(n=t.symbol)===null||n===void 0?void 0:n.valueDeclaration);var g=m&&e.getEffectiveTypeAnnotationNode(m);return g?getTypeFromTypeNode(g):undefined;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}function isPossiblyAliasedThisProperty(t,r){if(r===void 0){r=e.getAssignmentDeclarationKind(t)}if(r===4){return true}if(!e.isInJSFile(t)||r!==5||!e.isIdentifier(t.left.expression)){return false}var n=t.left.expression.escapedText;var i=resolveName(t.left,n,111551,undefined,undefined,true,true);return e.isThisInitializedDeclaration(i===null||i===void 0?void 0:i.valueDeclaration)}function getContextualTypeForThisPropertyAssignment(t){if(!t.symbol)return getTypeOfExpression(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=getTypeFromTypeNode(r);if(n){return n}}}var i=e.cast(t.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(i.expression,false))){return undefined}var a=checkThisExpression(i.expression);var s=e.getElementOrPropertyAccessName(i);return s!==undefined&&getTypeOfPropertyOfContextualType(a,s)||undefined}function isCircularMappedProperty(t){return!!(e.getCheckFlags(t)&262144&&!t.type&&findResolutionCycleStartIndex(t,0)>=0)}function getTypeOfPropertyOfContextualType(t,r){return mapType(t,function(t){var n;if(isGenericMappedType(t)){var i=getConstraintTypeFromMappedType(t);var a=getBaseConstraintOfType(i)||i;var s=getStringLiteralType(e.unescapeLeadingUnderscores(r));if(isTypeAssignableTo(s,a)){return substituteIndexedMappedType(t,s)}}else if(t.flags&3670016){var o=getPropertyOfType(t,r);if(o){return isCircularMappedProperty(o)?undefined:getTypeOfSymbol(o)}if(isTupleType(t)){var c=getRestTypeOfTupleType(t);if(c&&isNumericLiteralName(r)&&+r>=0){return c}}return(n=findApplicableIndexInfo(getIndexInfosOfStructuredType(t),getStringLiteralType(e.unescapeLeadingUnderscores(r))))===null||n===void 0?void 0:n.type}return undefined},true)}function getContextualTypeForObjectLiteralMethod(t,r){e.Debug.assert(e.isObjectLiteralMethod(t));if(t.flags&16777216){return undefined}return getContextualTypeForObjectLiteralElement(t,r)}function getContextualTypeForObjectLiteralElement(t,r){var n=t.parent;var i=e.isPropertyAssignment(t)&&getContextualTypeForVariableLikeDeclaration(t);if(i){return i}var a=getApparentTypeOfContextualType(n,r);if(a){if(hasBindableName(t)){return getTypeOfPropertyOfContextualType(a,getSymbolOfNode(t).escapedName)}if(t.name){var s=getLiteralTypeFromPropertyName(t.name);return mapType(a,function(e){var t;return(t=findApplicableIndexInfo(getIndexInfosOfStructuredType(e),s))===null||t===void 0?void 0:t.type},true)}}return undefined}function getContextualTypeForElementExpression(e,t){return e&&(getTypeOfPropertyOfContextualType(e,""+t)||mapType(e,function(e){return getIteratedTypeOrElementType(1,e,De,undefined,false)},true))}function getContextualTypeForConditionalOperand(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?getContextualType(r,t):undefined}function getContextualTypeForChildJsxExpression(t,r){var n=getApparentTypeOfContextualType(t.openingElement.tagName);var i=getJsxElementChildrenPropertyName(getJsxNamespaceAt(t));if(!(n&&!isTypeAny(n)&&i&&i!=="")){return undefined}var a=e.getSemanticJsxChildren(t.children);var s=a.indexOf(r);var o=getTypeOfPropertyOfContextualType(n,i);return o&&(a.length===1?o:mapType(o,function(e){if(isArrayLikeType(e)){return getIndexedAccessType(e,getNumberLiteralType(s))}else{return e}},true))}function getContextualTypeForJsxExpression(t){var r=t.parent;return e.isJsxAttributeLike(r)?getContextualType(t):e.isJsxElement(r)?getContextualTypeForChildJsxExpression(r,t):undefined}function getContextualTypeForJsxAttribute(t){if(e.isJsxAttribute(t)){var r=getApparentTypeOfContextualType(t.parent);if(!r||isTypeAny(r)){return undefined}return getTypeOfPropertyOfContextualType(r,t.name.escapedText)}else{return getContextualType(t.parent)}}function isPossiblyDiscriminantValue(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return true;case 204:case 210:return isPossiblyDiscriminantValue(e.expression);case 286:return!e.expression||isPossiblyDiscriminantValue(e.expression)}return false}function discriminateContextualTypeByObjectMembers(t,r){return getMatchingUnionConstituentForObjectLiteral(r,t)||discriminateTypeByDiscriminableItems(r,e.concatenate(e.map(e.filter(t.properties,function(e){return!!e.symbol&&e.kind===291&&isPossiblyDiscriminantValue(e.initializer)&&isDiscriminantProperty(r,e.symbol.escapedName)}),function(e){return[function(){return getContextFreeTypeOfExpression(e.initializer)},e.symbol.escapedName]}),e.map(e.filter(getPropertiesOfType(r),function(e){var n;return!!(e.flags&16777216)&&!!((n=t===null||t===void 0?void 0:t.symbol)===null||n===void 0?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&isDiscriminantProperty(r,e.escapedName)}),function(e){return[function(){return De},e.escapedName]})),isTypeAssignableTo,r)}function discriminateContextualTypeByJSXAttributes(t,r){return discriminateTypeByDiscriminableItems(r,e.concatenate(e.map(e.filter(t.properties,function(e){return!!e.symbol&&e.kind===283&&isDiscriminantProperty(r,e.symbol.escapedName)&&(!e.initializer||isPossiblyDiscriminantValue(e.initializer))}),function(e){return[!e.initializer?function(){return Me}:function(){return checkExpression(e.initializer)},e.symbol.escapedName]}),e.map(e.filter(getPropertiesOfType(r),function(e){var n;return!!(e.flags&16777216)&&!!((n=t===null||t===void 0?void 0:t.symbol)===null||n===void 0?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&isDiscriminantProperty(r,e.escapedName)}),function(e){return[function(){return De},e.escapedName]})),isTypeAssignableTo,r)}function getApparentTypeOfContextualType(t,r){var n=e.isObjectLiteralMethod(t)?getContextualTypeForObjectLiteralMethod(t,r):getContextualType(t,r);var i=instantiateContextualType(n,t,r);if(i&&!(r&&r&2&&i.flags&8650752)){var a=mapType(i,getApparentType,true);return a.flags&1048576&&e.isObjectLiteralExpression(t)?discriminateContextualTypeByObjectMembers(t,a):a.flags&1048576&&e.isJsxAttributes(t)?discriminateContextualTypeByJSXAttributes(t,a):a}}function instantiateContextualType(t,r,n){if(t&&maybeTypeOfKind(t,465829888)){var i=getInferenceContext(r);if(i&&e.some(i.inferences,hasInferenceCandidates)){if(n&&n&1){return instantiateInstantiableTypes(t,i.nonFixingMapper)}if(i.returnMapper){return instantiateInstantiableTypes(t,i.returnMapper)}}}return t}function instantiateInstantiableTypes(t,r){if(t.flags&465829888){return instantiateType(t,r)}if(t.flags&1048576){return getUnionType(e.map(t.types,function(e){return instantiateInstantiableTypes(e,r)}),0)}if(t.flags&2097152){return getIntersectionType(e.map(t.types,function(e){return instantiateInstantiableTypes(e,r)}))}return t}function getContextualType(t,r){if(t.flags&16777216){return undefined}if(t.contextualType){return t.contextualType}var n=t.parent;switch(n.kind){case 252:case 162:case 165:case 164:case 201:return getContextualTypeForInitializerExpression(t,r);case 212:case 245:return getContextualTypeForReturnExpression(t);case 222:return getContextualTypeForYieldOperand(n);case 216:return getContextualTypeForAwaitOperand(n,r);case 206:if(n.expression.kind===100){return Oe}case 207:return getContextualTypeForArgument(n,t);case 209:case 227:return e.isConstTypeReference(n.type)?tryFindWhenConstTypeReference(n):getTypeFromTypeNode(n.type);case 219:return getContextualTypeForBinaryOperand(t,r);case 291:case 292:return getContextualTypeForObjectLiteralElement(n,r);case 293:return getContextualType(n.parent,r);case 202:{var i=n;var a=getApparentTypeOfContextualType(i,r);return getContextualTypeForElementExpression(a,e.indexOfNode(i.elements,t))}case 220:return getContextualTypeForConditionalOperand(t,r);case 231:e.Debug.assert(n.parent.kind===221);return getContextualTypeForSubstitutionExpression(n.parent,t);case 210:{var s=e.isInJSFile(n)?e.getJSDocTypeTag(n):undefined;return s?getTypeFromTypeNode(s.typeExpression.type):getContextualType(n,r)}case 228:return getContextualType(n,r);case 286:return getContextualTypeForJsxExpression(n);case 283:case 285:return getContextualTypeForJsxAttribute(n);case 278:case 277:return getContextualJsxElementAttributesType(n,r)}return undefined;function tryFindWhenConstTypeReference(e){return getContextualType(e)}}function getInferenceContext(t){var r=e.findAncestor(t,function(e){return!!e.inferenceContext});return r&&r.inferenceContext}function getContextualJsxElementAttributesType(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&r!==4){return t.parent.contextualType}return getContextualTypeForArgumentAtIndex(t,0)}function getEffectiveFirstArgumentForJsxSignature(e,t){return getJsxReferenceKind(t)!==0?getJsxPropsTypeFromCallSignature(e,t):getJsxPropsTypeFromClassType(e,t)}function getJsxPropsTypeFromCallSignature(e,t){var r=getTypeOfFirstParameterOfSignatureWithFallback(e,xe);r=getJsxManagedAttributesFromLocatedAttributes(t,getJsxNamespaceAt(t),r);var n=getJsxType(N.IntrinsicAttributes,t);if(n!==Se){r=intersectTypes(n,r)}return r}function getJsxPropsTypeForSignatureFromMember(e,t){if(e.compositeSignatures){var r=[];for(var n=0,i=e.compositeSignatures;n=2){var c=fillMissingTypeArguments([s,n],o,2,e.isInJSFile(t));return getTypeAliasInstantiation(i,c)}}if(e.length(a.typeParameters)>=2){var c=fillMissingTypeArguments([s,n],a.typeParameters,2,e.isInJSFile(t));return createTypeReference(a,c)}}return n}function getJsxPropsTypeFromClassType(t,r){var n=getJsxNamespaceAt(r);var i=getJsxElementPropertiesName(n);var a=i===undefined?getTypeOfFirstParameterOfSignatureWithFallback(t,xe):i===""?getReturnTypeOfSignature(t):getJsxPropsTypeForSignatureFromMember(t,i);if(!a){if(!!i&&!!e.length(r.attributes.properties)){error(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i))}return xe}a=getJsxManagedAttributesFromLocatedAttributes(r,n,a);if(isTypeAny(a)){return a}else{var s=a;var o=getJsxType(N.IntrinsicClassAttributes,r);if(o!==Se){var c=getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(o.symbol);var u=getReturnTypeOfSignature(t);s=intersectTypes(c?createTypeReference(o,fillMissingTypeArguments([u],c,getMinTypeArgumentCount(c),e.isInJSFile(r))):o,s)}var l=getJsxType(N.IntrinsicAttributes,r);if(l!==Se){s=intersectTypes(l,s)}return s}}function getIntersectedSignatures(t){return e.getStrictOptionValue(O,"noImplicitAny")?e.reduceLeft(t,function(e,t){return e===t||!e?e:compareTypeParametersIdentical(e.typeParameters,t.typeParameters)?combineSignaturesOfIntersectionMembers(e,t):undefined}):undefined}function combineIntersectionThisParam(e,t,r){if(!e||!t){return e||t}var n=getUnionType([getTypeOfSymbol(e),instantiateType(getTypeOfSymbol(t),r)]);return createSymbolWithType(e,n)}function combineIntersectionParameters(e,t,r){var n=getParameterCount(e);var i=getParameterCount(t);var a=n>=i?e:t;var s=a===e?t:e;var o=a===e?n:i;var c=hasEffectiveRestParameter(e)||hasEffectiveRestParameter(t);var u=c&&!hasEffectiveRestParameter(a);var l=new Array(o+(u?1:0));for(var p=0;p=getMinArgumentCount(a)&&p>=getMinArgumentCount(s);var h=p>=n?undefined:getParameterNameAtPosition(e,p);var y=p>=i?undefined:getParameterNameAtPosition(t,p);var v=h===y?h:!h?y:!y?h:undefined;var T=createSymbol(1|(_&&!g?16777216:0),v||"arg"+p);T.type=g?createArrayType(m):m;l[p]=T}if(u){var S=createSymbol(1,"args");S.type=createArrayType(getTypeAtPosition(s,o));if(s===t){S.type=instantiateType(S.type,r)}l[o]=S}return l}function combineSignaturesOfIntersectionMembers(t,r){var n=t.typeParameters||r.typeParameters;var i;if(t.typeParameters&&r.typeParameters){i=createTypeMapper(r.typeParameters,t.typeParameters)}var a=t.declaration;var s=combineIntersectionParameters(t,r,i);var o=combineIntersectionThisParam(t.thisParameter,r.thisParameter,i);var c=Math.max(t.minArgumentCount,r.minArgumentCount);var u=createSignature(a,n,o,s,undefined,undefined,c,(t.flags|r.flags)&39);u.compositeKind=2097152;u.compositeSignatures=e.concatenate(t.compositeKind===2097152&&t.compositeSignatures||[t],[r]);if(i){u.mapper=t.compositeKind===2097152&&t.mapper&&t.compositeSignatures?combineTypeMappers(t.mapper,i):i}return u}function getContextualCallSignature(t,r){var n=getSignaturesOfType(t,0);var i=e.filter(n,function(e){return!isAritySmaller(e,r)});return i.length===1?i[0]:getIntersectedSignatures(i)}function isAritySmaller(t,r){var n=0;for(;n0){o=getSpreadType(o,createObjectLiteralType(),t.symbol,g,l);s=[];a=e.createSymbolTable();h=false;y=false;v=false}var P=getReducedType(checkExpression(C.expression));if(isValidSpreadType(P)){var B=tryMergeUnionOfObjectTypeAndEmptyObject(P,l);if(i){checkSpreadPropOverrides(B,i,C)}E=s.length;if(o===Se){continue}o=getSpreadType(o,B,t.symbol,g,l)}else{error(C,e.Diagnostics.Spread_types_may_only_be_created_from_object_types);o=Se}continue}else{e.Debug.assert(C.kind===170||C.kind===171);checkNodeDeferred(C)}if(k&&!(k.flags&8576)){if(isTypeAssignableTo(k,qe)){if(isTypeAssignableTo(k,Fe)){y=true}else if(isTypeAssignableTo(k,je)){v=true}else{h=true}if(n){_=true}}}else{a.set(A.escapedName,A)}s.push(A)}if(u&&t.parent.kind!==293){for(var j=0,J=getPropertiesOfType(c);j0){o=getSpreadType(o,createObjectLiteralType(),t.symbol,g,l);s=[];a=e.createSymbolTable();h=false;y=false}return mapType(o,function(e){return e===et?createObjectLiteralType():e})}return createObjectLiteralType();function createObjectLiteralType(){var r=[];if(h)r.push(getObjectLiteralIndexInfo(t,E,s,Oe));if(y)r.push(getObjectLiteralIndexInfo(t,E,s,Fe));if(v)r.push(getObjectLiteralIndexInfo(t,E,s,je));var i=createAnonymousType(t.symbol,a,e.emptyArray,e.emptyArray,r);i.objectFlags|=g|128|262144;if(m){i.objectFlags|=8192}if(_){i.objectFlags|=512}if(n){i.pattern=t}return i}}function isValidSpreadType(t){if(t.flags&465829888){var r=getBaseConstraintOfType(t);if(r!==undefined){return isValidSpreadType(r)}}return!!(t.flags&(1|67108864|524288|58982400)||getFalsyFlags(t)&117632&&isValidSpreadType(removeDefinitelyFalsyTypes(t))||t.flags&3145728&&e.every(t.types,isValidSpreadType))}function checkJsxSelfClosingElementDeferred(e){checkJsxOpeningLikeElementOrOpeningFragment(e)}function checkJsxSelfClosingElement(e,t){checkNodeDeferred(e);return getJsxElementTypeAt(e)||ye}function checkJsxElementDeferred(e){checkJsxOpeningLikeElementOrOpeningFragment(e.openingElement);if(isJsxIntrinsicIdentifier(e.closingElement.tagName)){getIntrinsicTagSymbol(e.closingElement)}else{checkExpression(e.closingElement.tagName)}checkJsxChildren(e)}function checkJsxElement(e,t){checkNodeDeferred(e);return getJsxElementTypeAt(e)||ye}function checkJsxFragment(t){checkJsxOpeningLikeElementOrOpeningFragment(t.openingFragment);var r=e.getSourceFileOfNode(t);if(e.getJSXTransformEnabled(O)&&(O.jsxFactory||r.pragmas.has("jsx"))&&!O.jsxFragmentFactory&&!r.pragmas.has("jsxfrag")){error(t,O.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments)}checkJsxChildren(t);return getJsxElementTypeAt(t)||ye}function isHyphenatedJsxName(t){return e.stringContains(t,"-")}function isJsxIntrinsicIdentifier(t){return t.kind===79&&e.isIntrinsicJsxName(t.escapedText)}function checkJsxAttribute(e,t){return e.initializer?checkExpressionForMutableLocation(e.initializer,t):Me}function createJsxAttributesTypeFromAttributesProperty(t,r){var n=t.attributes;var i=M?e.createSymbolTable():undefined;var a=e.createSymbolTable();var s=tt;var o=false;var c;var u=false;var l=2048;var p=getJsxElementChildrenPropertyName(getJsxNamespaceAt(t));for(var d=0,f=n.properties;d0){s=getSpreadType(s,createJsxAttributesType(),n.symbol,l,false);a=e.createSymbolTable()}var _=getReducedType(checkExpressionCached(m.expression,r));if(isTypeAny(_)){o=true}if(isValidSpreadType(_)){s=getSpreadType(s,_,n.symbol,l,false);if(i){checkSpreadPropOverrides(_,i,m)}}else{c=c?getIntersectionType([c,_]):_}}}if(!o){if(a.size>0){s=getSpreadType(s,createJsxAttributesType(),n.symbol,l,false)}}var y=t.parent.kind===276?t.parent:undefined;if(y&&y.openingElement===t&&y.children.length>0){var v=checkJsxChildren(y,r);if(!o&&p&&p!==""){if(u){error(n,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(p))}var T=getApparentTypeOfContextualType(t.attributes);var S=T&&getTypeOfPropertyOfContextualType(T,p);var b=createSymbol(4,p);b.type=v.length===1?v[0]:S&&someType(S,isTupleLikeType)?createTupleType(v):createArrayType(getUnionType(v));b.valueDeclaration=e.factory.createPropertySignature(undefined,e.unescapeLeadingUnderscores(p),undefined,undefined);e.setParent(b.valueDeclaration,n);b.valueDeclaration.symbol=b;var E=e.createSymbolTable();E.set(p,b);s=getSpreadType(s,createAnonymousType(n.symbol,E,e.emptyArray,e.emptyArray,e.emptyArray),n.symbol,l,false)}}if(o){return ye}if(c&&s!==tt){return getIntersectionType([c,s])}return c||(s===tt?createJsxAttributesType():s);function createJsxAttributesType(){l|=K;var t=createAnonymousType(n.symbol,a,e.emptyArray,e.emptyArray,e.emptyArray);t.objectFlags|=l|128|262144;return t}}function checkJsxChildren(e,t){var r=[];for(var n=0,i=e.children;n1&&n.declarations){error(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}return undefined}function getJsxLibraryManagedAttributes(e){return e&&getSymbol(e.exports,N.LibraryManagedAttributes,788968)}function getJsxElementPropertiesName(e){return getNameFromJsxElementAttributesContainer(N.ElementAttributesPropertyNameContainer,e)}function getJsxElementChildrenPropertyName(e){return getNameFromJsxElementAttributesContainer(N.ElementChildrenAttributeNameContainer,e)}function getUninstantiatedJsxSignaturesOfType(t,r){if(t.flags&4){return[ft]}else if(t.flags&128){var n=getIntrinsicAttributesTypeFromStringLiteralType(t,r);if(!n){error(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements);return e.emptyArray}else{var i=createSignatureForJSXIntrinsic(r,n);return[i]}}var a=getApparentType(t);var s=getSignaturesOfType(a,1);if(s.length===0){s=getSignaturesOfType(a,0)}if(s.length===0&&a.flags&1048576){s=getUnionSignatures(e.map(a.types,function(e){return getUninstantiatedJsxSignaturesOfType(e,r)}))}return s}function getIntrinsicAttributesTypeFromStringLiteralType(t,r){var n=getJsxType(N.IntrinsicElements,r);if(n!==Se){var i=t.value;var a=getPropertyOfType(n,e.escapeLeadingUnderscores(i));if(a){return getTypeOfSymbol(a)}var s=getIndexTypeOfType(n,Oe);if(s){return s}return undefined}return ye}function checkJsxReturnAssignableToAppropriateBound(t,r,n){if(t===1){var i=getJsxStatelessElementTypeAt(n);if(i){checkTypeRelatedTo(r,i,an,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,generateInitialErrorChain)}}else if(t===0){var a=getJsxElementClassTypeAt(n);if(a){checkTypeRelatedTo(r,a,an,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,generateInitialErrorChain)}}else{var i=getJsxStatelessElementTypeAt(n);var a=getJsxElementClassTypeAt(n);if(!i||!a){return}var s=getUnionType([i,a]);checkTypeRelatedTo(r,s,an,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,generateInitialErrorChain)}function generateInitialErrorChain(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(undefined,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}}function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(t){e.Debug.assert(isJsxIntrinsicIdentifier(t.tagName));var r=getNodeLinks(t);if(!r.resolvedJsxElementAttributesType){var n=getIntrinsicTagSymbol(t);if(r.jsxFlags&1){return r.resolvedJsxElementAttributesType=getTypeOfSymbol(n)||Se}else if(r.jsxFlags&2){return r.resolvedJsxElementAttributesType=getIndexTypeOfType(getJsxType(N.IntrinsicElements,t),Oe)||Se}else{return r.resolvedJsxElementAttributesType=Se}}return r.resolvedJsxElementAttributesType}function getJsxElementClassTypeAt(e){var t=getJsxType(N.ElementClass,e);if(t===Se)return undefined;return t}function getJsxElementTypeAt(e){return getJsxType(N.Element,e)}function getJsxStatelessElementTypeAt(e){var t=getJsxElementTypeAt(e);if(t){return getUnionType([t,Pe])}}function getJsxIntrinsicTagNamesAt(t){var r=getJsxType(N.IntrinsicElements,t);return r?getPropertiesOfType(r):e.emptyArray}function checkJsxPreconditions(t){if((O.jsx||0)===0){error(t,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided)}if(getJsxElementTypeAt(t)===undefined){if(J){error(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}}}function checkJsxOpeningLikeElementOrOpeningFragment(t){var r=e.isJsxOpeningLikeElement(t);if(r){checkGrammarJsxElement(t)}checkJsxPreconditions(t);if(!getJsxNamespaceContainerForImplicitImport(t)){var n=$r&&O.jsx===2?e.Diagnostics.Cannot_find_name_0:undefined;var i=getJsxNamespace(t);var a=r?t.tagName:t;var s=void 0;if(!(e.isJsxOpeningFragment(t)&&i==="null")){s=resolveName(a,i,111551,n,i,true)}if(s){s.isReferenced=67108863;if(s.flags&2097152&&!getTypeOnlyAliasDeclaration(s)){markAliasSymbolAsReferenced(s)}}}if(r){var o=t;var c=getResolvedSignature(o);checkDeprecatedSignature(c,t);checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(o),getReturnTypeOfSignature(c),o)}}function isKnownProperty(e,t,r){if(e.flags&524288){if(getPropertyOfObjectType(e,t)||getApplicableIndexInfoForName(e,t)||isLateBoundName(t)&&getIndexInfoOfType(e,Oe)||r&&isHyphenatedJsxName(t)){return true}}else if(e.flags&3145728&&isExcessPropertyCheckTarget(e)){for(var n=0,i=e.types;n=1&&isTypeAssignableTo(n,getTypeAtPosition(i,0))}return false}var i=e.isAssignmentTarget(r)?"set":"get";if(!hasProp(i)){return undefined}var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);if(a===undefined){a=i}else{a+="."+i}return a}function getSpellingSuggestionForName(t,r,n){return e.getSpellingSuggestion(t,r,getCandidateName);function getCandidateName(t){var r=e.symbolName(t);if(e.startsWith(r,'"')){return undefined}if(t.flags&n){return r}if(t.flags&2097152){var i=tryResolveAlias(t);if(i&&i.flags&n){return r}}return undefined}}function markPropertyAsReferenced(t,r,n){var i=t&&t.flags&106500&&t.valueDeclaration;if(!i){return}var a=e.hasEffectiveModifier(i,8);var s=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if(!a&&!s){return}if(r&&e.isWriteOnlyAccess(r)&&!(t.flags&65536)){return}if(n){var o=e.findAncestor(r,e.isFunctionLikeDeclaration);if(o&&o.symbol===t){return}}(e.getCheckFlags(t)&1?getSymbolLinks(t).target:t).isReferenced=67108863}function isSelfTypeAccess(t,r){return t.kind===108||!!r&&e.isEntityNameExpression(t)&&r===getResolvedSymbol(e.getFirstIdentifier(t))}function isValidPropertyAccess(e,t){switch(e.kind){case 204:return isValidPropertyAccessWithType(e,e.expression.kind===106,t,getWidenedType(checkExpression(e.expression)));case 159:return isValidPropertyAccessWithType(e,false,t,getWidenedType(checkExpression(e.left)));case 198:return isValidPropertyAccessWithType(e,false,t,getTypeFromTypeNode(e))}}function isValidPropertyAccessForCompletions(e,t,r){return isValidPropertyAccessWithType(e,e.kind===204&&e.expression.kind===106,r.escapedName,t)}function isValidPropertyAccessWithType(t,r,n,i){if(i===Se||isTypeAny(i)){return true}var a=getPropertyOfType(i,n);if(a){if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var s=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,function(e){return e===s})}return checkPropertyAccessibility(t,r,false,i,a,false)}return e.isInJSFile(t)&&(i.flags&1048576)!==0&&i.types.some(function(e){return isValidPropertyAccessWithType(t,r,n,e)})}function getForInVariableSymbol(t){var r=t.initializer;if(r.kind===253){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name)){return getSymbolOfNode(n)}}else if(r.kind===79){return getResolvedSymbol(r)}return undefined}function hasNumericPropertyNames(e){return getIndexInfosOfType(e).length===1&&!!getIndexInfoOfType(e,Fe)}function isForInVariableForNumericPropertyNames(t){var r=e.skipParentheses(t);if(r.kind===79){var n=getResolvedSymbol(r);if(n.flags&3){var i=t;var a=t.parent;while(a){if(a.kind===241&&i===a.statement&&getForInVariableSymbol(a)===n&&hasNumericPropertyNames(getTypeOfExpression(a.expression))){return true}i=a;a=a.parent}}}return false}function checkIndexedAccess(e,t){return e.flags&32?checkElementAccessChain(e,t):checkElementAccessExpression(e,checkNonNullExpression(e.expression),t)}function checkElementAccessChain(e,t){var r=checkExpression(e.expression);var n=getOptionalExpressionType(r,e.expression);return propagateOptionalTypeMarker(checkElementAccessExpression(e,checkNonNullType(n,e.expression),t),e,n!==r)}function checkElementAccessExpression(t,r,n){var i=e.getAssignmentTargetKind(t)!==0||isMethodAccessForCall(t)?getWidenedType(r):r;var a=t.argumentExpression;var s=checkExpression(a);if(i===Se||i===Ve){return i}if(isConstEnumObjectType(i)&&!e.isStringLiteralLike(a)){error(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal);return Se}var o=isForInVariableForNumericPropertyNames(a)?Fe:s;var c=e.isAssignmentTarget(t)?4|(isGenericObjectType(i)&&!isThisTypeParameter(i)?2:0):32;var u=getIndexedAccessTypeOrUndefined(i,o,c,t)||Se;return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(t,getNodeLinks(t).resolvedSymbol,u,a,n),t)}function callLikeExpressionMayHaveTypeArguments(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function resolveUntypedCall(t){if(callLikeExpressionMayHaveTypeArguments(t)){e.forEach(t.typeArguments,checkSourceElement)}if(t.kind===208){checkExpression(t.template)}else if(e.isJsxOpeningLikeElement(t)){checkExpression(t.attributes)}else if(t.kind!==163){e.forEach(t.arguments,function(e){checkExpression(e)})}return ft}function resolveErrorCall(e){resolveUntypedCall(e);return mt}function reorderCandidates(t,r,n){var i;var a;var s=0;var o;var c=-1;var u;e.Debug.assert(!r.length);for(var l=0,p=t;l=0){return p>=getMinArgumentCount(n)&&(hasEffectiveRestParameter(n)||po){return false}if(s||a>=c){return true}for(var d=a;d=i&&r.length<=n}function getSingleCallSignature(e){return getSingleSignature(e,0,false)}function getSingleCallOrConstructSignature(e){return getSingleSignature(e,0,false)||getSingleSignature(e,1,false)}function getSingleSignature(e,t,r){if(e.flags&524288){var n=resolveStructuredTypeMembers(e);if(r||n.properties.length===0&&n.indexInfos.length===0){if(t===0&&n.callSignatures.length===1&&n.constructSignatures.length===0){return n.callSignatures[0]}if(t===1&&n.constructSignatures.length===1&&n.callSignatures.length===0){return n.constructSignatures[0]}}}return undefined}function instantiateSignatureInContextOf(t,r,n,i){var a=createInferenceContext(t.typeParameters,t,0,i);var s=getEffectiveRestType(r);var o=n&&(s&&s.flags&262144?n.nonFixingMapper:n.mapper);var c=o?instantiateSignature(r,o):r;applyToParameterTypes(c,t,function(e,t){inferTypes(a.inferences,e,t)});if(!n){applyToReturnTypes(r,t,function(e,t){inferTypes(a.inferences,e,t,128)})}return getSignatureInstantiation(t,getInferredTypes(a),e.isInJSFile(r.declaration))}function inferJsxTypeArguments(e,t,r,n){var i=getEffectiveFirstArgumentForJsxSignature(t,e);var a=checkExpressionWithContextualType(e.attributes,i,n,r);inferTypes(n.inferences,a,i);return getInferredTypes(n)}function getThisArgumentType(t){if(!t){return Je}var r=checkExpression(t);return e.isOptionalChainRoot(t.parent)?getNonNullableType(r):e.isOptionalChain(t.parent)?removeOptionalTypeMarker(r):r}function inferTypeArguments(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t)){return inferJsxTypeArguments(t,r,i,a)}if(t.kind!==163){var s=getContextualType(t,e.every(r.typeParameters,function(e){return!!getDefaultFromTypeParameter(e)})?8:0);if(s){var o=getInferenceContext(t);var c=getMapperFromContext(cloneInferenceContext(o,1));var u=instantiateType(s,c);var l=getSingleCallSignature(u);var p=l&&l.typeParameters?getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(l,l.typeParameters)):u;var d=getReturnTypeOfSignature(r);inferTypes(a.inferences,p,d,128);var f=createInferenceContext(r.typeParameters,r,a.flags);var m=instantiateType(s,o&&o.returnMapper);inferTypes(f.inferences,m,d);a.returnMapper=e.some(f.inferences,hasInferenceCandidates)?getMapperFromContext(cloneInferredPartOfContext(f)):undefined}}var g=getNonArrayRestType(r);var _=g?Math.min(getParameterCount(r)-1,n.length):n.length;if(g&&g.flags&262144){var h=e.find(a.inferences,function(e){return e.typeParameter===g});if(h){h.impliedArity=e.findIndex(n,isSpreadArgument,_)<0?n.length-_:undefined}}var y=getThisTypeOfSignature(r);if(y){var v=getThisArgumentOfCall(t);inferTypes(a.inferences,getThisArgumentType(v),y)}for(var T=0;T<_;T++){var S=n[T];if(S.kind!==225){var b=getTypeAtPosition(r,T);var E=checkExpressionWithContextualType(S,b,a,i);inferTypes(a.inferences,E,b)}}if(g){var x=getSpreadArgumentType(n,_,n.length,g,a,i);inferTypes(a.inferences,x,g)}return getInferredTypes(a)}function getMutableArrayOrTupleType(e){return e.flags&1048576?mapType(e,getMutableArrayOrTupleType):e.flags&1||isMutableArrayOrTuple(getBaseConstraintOfType(e)||e)?e:isTupleType(e)?createTupleType(getTypeArguments(e),e.target.elementFlags,false,e.target.labeledElementDeclarations):createTupleType([e],[8])}function getSpreadArgumentType(t,r,n,i,a,s){if(r>=n-1){var o=t[n-1];if(isSpreadArgument(o)){return getMutableArrayOrTupleType(o.kind===230?o.type:checkExpressionWithContextualType(o.expression,i,a,s))}}var c=[];var u=[];var l=[];for(var p=r;pd){d=S}}}if(!p){return true}var b=Infinity;for(var E=0,x=i;E0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray}var i=t.arguments||e.emptyArray;var a=getSpreadArgumentIndex(i);if(a>=0){var s=i.slice(0,a);var o=function(t){var r=i[t];var n=r.kind===223&&(yr?checkExpression(r.expression):checkExpressionCached(r.expression));if(n&&isTupleType(n)){e.forEach(getTypeArguments(n),function(e,t){var i;var a=n.target.elementFlags[t];var o=createSyntheticExpression(r,a&4?createArrayType(e):e,!!(a&12),(i=n.target.labeledElementDeclarations)===null||i===void 0?void 0:i[t]);s.push(o)})}else{s.push(r)}};for(var c=a;c-1){return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter)}var s=Number.POSITIVE_INFINITY;var o=Number.NEGATIVE_INFINITY;var c=Number.NEGATIVE_INFINITY;var u=Number.POSITIVE_INFINITY;var l;for(var p=0,d=r;pc)c=m;if(n.lengthi){u=Math.min(u,d)}else if(o1){S=chooseOverload(m,rn,_,b)}if(!S){S=chooseOverload(m,an,_,b)}if(S){return S}if(d){if(y){if(y.length===1||y.length>3){var E=y[y.length-1];var x;if(y.length>3){x=e.chainDiagnosticMessages(x,e.Diagnostics.The_last_overload_gave_the_following_error);x=e.chainDiagnosticMessages(x,e.Diagnostics.No_overload_matches_this_call)}var D=getSignatureApplicabilityError(t,g,E,an,0,true,function(){return x});if(D){for(var C=0,A=D;C3){e.addRelatedInfo(k,e.createDiagnosticForNode(E.declaration,e.Diagnostics.The_last_overload_is_declared_here))}addImplementationSuccessElaboration(E,k);$r.add(k)}}else{e.Debug.fail("No error for last overload signature")}}else{var P=[];var N=0;var O=Number.MAX_VALUE;var F=0;var w=0;var I=function(r){var n=function(){return e.chainDiagnosticMessages(undefined,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,w+1,m.length,signatureToString(r))};var i=getSignatureApplicabilityError(t,g,r,an,0,true,n);if(i){if(i.length<=O){O=i.length;F=w}N=Math.max(N,i.length);P.push(i)}else{e.Debug.fail("No error for 3 or fewer overload signatures")}w++};for(var L=0,M=y;L1?P[F]:e.flatten(P);e.Debug.assert(B.length>0,"No errors reported for 3 or fewer overload signatures");var j=e.chainDiagnosticMessages(e.map(B,function(e){return typeof e.messageText==="string"?e:e.messageText}),e.Diagnostics.No_overload_matches_this_call);var J=n([],e.flatMap(B,function(e){return e.relatedInformation}),true);var U=void 0;if(e.every(B,function(e){return e.start===B[0].start&&e.length===B[0].length&&e.file===B[0].file})){var V=B[0],W=V.file,K=V.start,G=V.length;U={file:W,start:K,length:G,code:j.code,category:j.category,messageText:j,relatedInformation:J}}else{U=e.createDiagnosticForNodeFromMessageChain(t,j,J)}addImplementationSuccessElaboration(y[0],U);$r.add(U)}}else if(v){$r.add(getArgumentArityError(t,[v],g))}else if(T){checkTypeArguments(T,t.typeArguments,true,c)}else{var z=e.filter(r,function(e){return hasCorrectTypeArgumentArity(e,f)});if(z.length===0){$r.add(getTypeArgumentArityError(t,r,f))}else if(!l){$r.add(getArgumentArityError(t,z,g))}else if(c){$r.add(getDiagnosticForCallNode(t,c))}}}return getCandidateForOverloadFailure(t,m,g,!!i);function addImplementationSuccessElaboration(t,r){var n,i;var a=y;var s=v;var o=T;var c=((i=(n=t.declaration)===null||n===void 0?void 0:n.symbol)===null||i===void 0?void 0:i.declarations)||e.emptyArray;var u=c.length>1;var l=u?e.find(c,function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)}):undefined;if(l){var p=getSignatureFromDeclaration(l);var d=!p.typeParameters;if(chooseOverload([p],an,d)){e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}}y=a;v=s;T=o}function chooseOverload(r,n,i,a){if(a===void 0){a=false}y=undefined;v=undefined;T=undefined;if(i){var s=r[0];if(e.some(f)||!hasCorrectArity(t,g,s,a)){return undefined}if(getSignatureApplicabilityError(t,g,s,n,0,false,undefined)){y=[s];return undefined}return s}for(var o=0;o0);checkNodeDeferred(t);return i||r.length===1||r.some(function(e){return!!e.typeParameters})?pickLongestCandidateSignature(t,r,n):createUnionOfSignaturesForOverloadFailure(r)}function createUnionOfSignaturesForOverloadFailure(t){var r=e.mapDefined(t,function(e){return e.thisParameter});var n;if(r.length){n=createCombinedSymbolFromTypes(r,r.map(getTypeOfParameter))}var i=e.minAndMax(t,getNumNonRestParameters),a=i.min,s=i.max;var o=[];var c=function(r){var n=e.mapDefined(t,function(t){return signatureHasRestParameter(t)?rt.length){n.pop()}while(n.length=t){return i}if(s>n){n=s;r=i}}return r}function resolveCallExpression(t,r,n){if(t.expression.kind===106){var i=checkSuperExpression(t.expression);if(isTypeAny(i)){for(var a=0,s=t.arguments;a=0){error(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}}var a=checkNonNullExpression(t.expression);if(a===Ve){return _t}a=getApparentType(a);if(a===Se){return resolveErrorCall(t)}if(isTypeAny(a)){if(t.typeArguments){error(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments)}return resolveUntypedCall(t)}var s=getSignaturesOfType(a,1);if(s.length){if(!isConstructorAccessible(t,s[0])){return resolveErrorCall(t)}if(s.some(function(e){return e.flags&4})){error(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);return resolveErrorCall(t)}var o=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);if(o&&e.hasSyntacticModifier(o,128)){error(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);return resolveErrorCall(t)}return resolveCall(t,s,r,n,0)}var c=getSignaturesOfType(a,0);if(c.length){var u=resolveCall(t,c,r,n,0);if(!J){if(u.declaration&&!isJSConstructor(u.declaration)&&getReturnTypeOfSignature(u)!==Je){error(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword)}if(getThisTypeOfSignature(u)===Je){error(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)}}return u}invocationError(t.expression,a,1);return resolveErrorCall(t)}function typeHasProtectedAccessibleBase(t,r){var n=getBaseTypes(r);if(!e.length(n)){return false}var i=n[0];if(i.flags&2097152){var a=i.types;var s=findMixins(a);var o=0;for(var c=0,u=i.types;c0;if(r.flags&1048576){var c=r.types;var u=false;for(var l=0,p=c;l=n-1){return r===n-1?a:createArrayType(getIndexedAccessType(a,Fe))}var s=[];var o=[];var c=[];for(var u=r;u0){a=t.parameters.length-1+c}}}if(a===undefined){if(!n&&t.flags&32){return 0}a=t.minArgumentCount}if(i){return a}for(var u=a-1;u>=0;u--){var l=getTypeAtPosition(t,u);if(filterType(l,acceptsVoid).flags&131072){break}a=u}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function hasEffectiveRestParameter(e){if(signatureHasRestParameter(e)){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);return!isTupleType(t)||t.target.hasRestElement}return false}function getEffectiveRestType(e){if(signatureHasRestParameter(e)){var t=getTypeOfSymbol(e.parameters[e.parameters.length-1]);if(!isTupleType(t)){return t}if(t.target.hasRestElement){return sliceTupleType(t,t.target.fixedLength)}}return undefined}function getNonArrayRestType(e){var t=getEffectiveRestType(e);return t&&!isArrayType(t)&&!isTypeAny(t)&&(getReducedType(t).flags&131072)===0?t:undefined}function getTypeOfFirstParameterOfSignature(e){return getTypeOfFirstParameterOfSignatureWithFallback(e,Ue)}function getTypeOfFirstParameterOfSignatureWithFallback(e,t){return e.parameters.length>0?getTypeAtPosition(e,0):t}function inferFromAnnotatedParameters(t,r,n){var i=t.parameters.length-(signatureHasRestParameter(t)?1:0);for(var a=0;a0){s=getUnionType(l,2)}var p=checkAndAggregateYieldOperandTypes(t,r),d=p.yieldTypes,f=p.nextTypes;o=e.some(d)?getUnionType(d,2):undefined;c=e.some(f)?getIntersectionType(f):undefined}else{var m=checkAndAggregateReturnExpressionTypes(t,r);if(!m){return n&2?createPromiseReturnType(t,Ue):Ue}if(m.length===0){return n&2?createPromiseReturnType(t,Je):Je}s=getUnionType(m,2)}if(s||o||c){if(o)reportErrorsFromWidening(t,o,3);if(s)reportErrorsFromWidening(t,s,1);if(c)reportErrorsFromWidening(t,c,2);if(s&&isUnitType(s)||o&&isUnitType(o)||c&&isUnitType(c)){var g=getContextualSignatureForFunctionLikeDeclaration(t);var _=!g?undefined:g===getSignatureFromDeclaration(t)?a?undefined:s:instantiateContextualType(getReturnTypeOfSignature(g),t);if(a){o=getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(o,_,0,i);s=getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(s,_,1,i);c=getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(c,_,2,i)}else{s=getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(s,_,i)}}if(o)o=getWidenedType(o);if(s)s=getWidenedType(s);if(c)c=getWidenedType(c)}if(a){return createGeneratorReturnType(o||Ue,s||u,c||getContextualIterationType(2,t)||xe,i)}else{return i?createPromiseType(s||u):s||u}}function createGeneratorReturnType(e,t,r,n){var i=n?Et:xt;var a=i.getGlobalGeneratorType(false);e=i.resolveIterationType(e,undefined)||xe;t=i.resolveIterationType(t,undefined)||xe;r=i.resolveIterationType(r,undefined)||xe;if(a===it){var s=i.getGlobalIterableIteratorType(false);var o=s!==it?getIterationTypesOfGlobalIterableType(s,i):undefined;var c=o?o.returnType:ye;var u=o?o.nextType:De;if(isTypeAssignableTo(t,c)&&isTypeAssignableTo(u,r)){if(s!==it){return createTypeFromGenericGlobalType(s,[e])}i.getGlobalIterableIteratorType(true);return et}i.getGlobalGeneratorType(true);return et}return createTypeFromGenericGlobalType(a,[e,t,r])}function checkAndAggregateYieldOperandTypes(t,r){var n=[];var i=[];var a=(e.getFunctionFlags(t)&2)!==0;e.forEachYieldExpression(t.body,function(t){var s=t.expression?checkExpression(t.expression,r):Ce;e.pushIfUnique(n,getYieldedTypeOfYieldExpression(t,s,ye,a));var o;if(t.asteriskToken){var c=getIterationTypesOfIterable(s,a?19:17,t.expression);o=c&&c.nextType}else{o=getContextualType(t)}if(o)e.pushIfUnique(i,o)});return{yieldTypes:n,nextTypes:i}}function getYieldedTypeOfYieldExpression(t,r,n,i){var a=t.expression||t;var s=t.asteriskToken?checkIteratedTypeOrElementType(i?19:17,r,n,a):r;return!i?s:getAwaitedType(s,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function getFactsFromTypeofSwitch(e,t,r,n){var i=0;if(n){for(var a=t;a1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57)r--;var n=t.slice(0,r);for(var i=1;true;i++){var a=n+i;if(!hasTypeParameterByName(e,a)){return a}}}function getReturnTypeOfSingleNonGenericCallSignature(e){var t=getSingleCallSignature(e);if(t&&!t.typeParameters){return getReturnTypeOfSignature(t)}}function getReturnTypeOfSingleNonGenericSignatureOfCallChain(e){var t=checkExpression(e.expression);var r=getOptionalExpressionType(t,e.expression);var n=getReturnTypeOfSingleNonGenericCallSignature(t);return n&&propagateOptionalTypeMarker(n,e,r!==t)}function getTypeOfExpression(t){var r=getQuickTypeOfExpression(t);if(r){return r}if(t.flags&67108864&&xr){var n=xr[getNodeId(t)];if(n){return n}}var i=Sr;var a=checkExpression(t);if(Sr!==i){var s=xr||(xr=[]);s[getNodeId(t)]=a;e.setNodeFlags(t,t.flags|67108864)}return a}function getQuickTypeOfExpression(t){var r=e.skipParentheses(t);if(e.isCallExpression(r)&&r.expression.kind!==106&&!e.isRequireCall(r,true)&&!isSymbolOrSymbolForCall(r)){var n=e.isCallChain(r)?getReturnTypeOfSingleNonGenericSignatureOfCallChain(r):getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(r.expression));if(n){return n}}else if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type)){return getTypeFromTypeNode(r.type)}else if(t.kind===8||t.kind===10||t.kind===110||t.kind===95){return checkExpression(t)}return undefined}function getContextFreeTypeOfExpression(e){var t=getNodeLinks(e);if(t.contextFreeType){return t.contextFreeType}var r=e.contextualType;e.contextualType=ye;try{var n=t.contextFreeType=checkExpression(e,4);return n}finally{e.contextualType=r}}function checkExpression(t,r,n){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var i=C;C=t;E=0;var a=checkExpressionWorker(t,r,n);var s=instantiateTypeWithSingleGenericCallSignature(t,a,r);if(isConstEnumObjectType(s)){checkConstEnumAccess(t,s)}C=i;e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop();return s}function checkConstEnumAccess(t,r){var n=t.parent.kind===204&&t.parent.expression===t||t.parent.kind===205&&t.parent.expression===t||((t.kind===79||t.kind===159)&&isInRightSideOfImportOrExportAssignment(t)||t.parent.kind===179&&t.parent.exprName===t)||t.parent.kind===273;if(!n){error(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query)}if(O.isolatedModules){e.Debug.assert(!!(r.symbol.flags&128));var i=r.symbol.valueDeclaration;if(i.flags&8388608){error(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}}function checkParenthesizedExpression(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):undefined;if(n){return checkAssertionWorker(n.typeExpression.type,n.typeExpression.type,t.expression,r)}return checkExpression(t.expression,r)}function checkExpressionWorker(t,r,n){var i=t.kind;if(p){switch(i){case 224:case 211:case 212:p.throwIfCancellationRequested()}}switch(i){case 79:return checkIdentifier(t,r);case 108:return checkThisExpression(t);case 106:return checkSuperExpression(t);case 104:return Ne;case 14:case 10:return getFreshTypeOfLiteralType(getStringLiteralType(t.text));case 8:checkGrammarNumericLiteral(t);return getFreshTypeOfLiteralType(getNumberLiteralType(+t.text));case 9:checkGrammarBigIntLiteral(t);return getFreshTypeOfLiteralType(getBigIntLiteralType({negative:false,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return Me;case 95:return Ie;case 221:return checkTemplateExpression(t);case 13:return Jt;case 202:return checkArrayLiteral(t,r,n);case 203:return checkObjectLiteral(t,r);case 204:return checkPropertyAccessExpression(t,r);case 159:return checkQualifiedName(t,r);case 205:return checkIndexedAccess(t,r);case 206:if(t.expression.kind===100){return checkImportCallExpression(t)}case 207:return checkCallExpression(t,r);case 208:return checkTaggedTemplateExpression(t);case 210:return checkParenthesizedExpression(t,r);case 224:return checkClassExpression(t);case 211:case 212:return checkFunctionExpressionOrObjectLiteralMethod(t,r);case 214:return checkTypeOfExpression(t);case 209:case 227:return checkAssertion(t);case 228:return checkNonNullAssertion(t);case 229:return checkMetaProperty(t);case 213:return checkDeleteExpression(t);case 215:return checkVoidExpression(t);case 216:return checkAwaitExpression(t);case 217:return checkPrefixUnaryExpression(t);case 218:return checkPostfixUnaryExpression(t);case 219:return z(t,r);case 220:return checkConditionalExpression(t,r);case 223:return checkSpreadExpression(t,r);case 225:return Ce;case 222:return checkYieldExpression(t);case 230:return checkSyntheticExpression(t);case 286:return checkJsxExpression(t,r);case 276:return checkJsxElement(t,r);case 277:return checkJsxSelfClosingElement(t,r);case 280:return checkJsxFragment(t);case 284:return checkJsxAttributes(t,r);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}function checkTypeParameter(t){if(t.expression){grammarErrorOnFirstToken(t.expression,e.Diagnostics.Type_expected)}checkSourceElement(t.constraint);checkSourceElement(t.default);var r=getDeclaredTypeOfTypeParameter(getSymbolOfNode(t));getBaseConstraintOfType(r);if(!hasNonCircularTypeParameterDefault(r)){error(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,typeToString(r))}var n=getConstraintOfTypeParameter(r);var i=getDefaultFromTypeParameter(r);if(n&&i){checkTypeAssignableTo(i,getTypeWithThisArgument(instantiateType(n,makeUnaryTypeMapper(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}if(o){checkTypeNameIsReserved(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}}function checkParameter(t){checkGrammarDecoratorsAndModifiers(t);checkVariableLikeDeclaration(t);var r=e.getContainingFunction(t);if(e.hasSyntacticModifier(t,16476)){if(!(r.kind===169&&e.nodeIsPresent(r.body))){error(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)}if(r.kind===169&&e.isIdentifier(t.name)&&t.name.escapedText==="constructor"){error(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)}}if(t.questionToken&&e.isBindingPattern(t.name)&&r.body){error(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature)}if(t.name&&e.isIdentifier(t.name)&&(t.name.escapedText==="this"||t.name.escapedText==="new")){if(r.parameters.indexOf(t)!==0){error(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText)}if(r.kind===169||r.kind===173||r.kind===178){error(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter)}if(r.kind===212){error(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)}if(r.kind===170||r.kind===171){error(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)}}if(t.dotDotDotToken&&!e.isBindingPattern(t.name)&&!isTypeAssignableTo(getReducedType(getTypeOfSymbol(t.symbol)),Kt)){error(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}}function checkTypePredicate(t){var r=getTypePredicateParent(t);if(!r){error(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var n=getSignatureFromDeclaration(r);var i=getTypePredicateOfSignature(n);if(!i){return}checkSourceElement(t.type);var a=t.parameterName;if(i.kind===0||i.kind===2){getTypeFromThisTypeNode(a)}else{if(i.parameterIndex>=0){if(signatureHasRestParameter(n)&&i.parameterIndex===n.parameters.length-1){error(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter)}else{if(i.type){var s=function(){return e.chainDiagnosticMessages(undefined,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};checkTypeAssignableTo(i.type,getTypeOfSymbol(n.parameters[i.parameterIndex]),t.type,undefined,s)}}}else if(a){var o=false;for(var c=0,u=r.parameters;c0&&r.declarations[0]!==t){return}}var n=getIndexSymbol(getSymbolOfNode(t));if(n===null||n===void 0?void 0:n.declarations){var i=new e.Map;var a=function(e){if(e.parameters.length===1&&e.parameters[0].type){forEachType(getTypeFromTypeNode(e.parameters[0].type),function(t){var r=i.get(getTypeId(t));if(r){r.declarations.push(e)}else{i.set(getTypeId(t),{type:t,declarations:[e]})}})}};for(var s=0,o=n.declarations;s1){for(var r=0,n=t.declarations;r0}function getAwaitedType(e,t,r,n){if(isTypeAny(e)){return e}var i=e;if(i.awaitedTypeOfType){return i.awaitedTypeOfType}return i.awaitedTypeOfType=mapType(e,t?function(e){return getAwaitedTypeWorker(e,t,r,n)}:getAwaitedTypeWorker)}function getAwaitedTypeWorker(t,r,n,i){var a=t;if(a.awaitedTypeOfType){return a.awaitedTypeOfType}var s=getPromisedTypeOfPromise(t);if(s){if(t.id===s.id||qr.lastIndexOf(s.id)>=0){if(r){error(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method)}return undefined}qr.push(t.id);var o=getAwaitedType(s,r,n,i);qr.pop();if(!o){return undefined}return a.awaitedTypeOfType=o}if(isThenableType(t)){if(r){if(!n)return e.Debug.fail();error(r,n,i)}return undefined}return a.awaitedTypeOfType=t}function checkAsyncFunctionReturnType(t,r){var n=getTypeFromTypeNode(r);if(F>=2){if(n===Se){return}var i=getGlobalPromiseType(true);if(i!==it&&!isReferenceToType(n,i)){error(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,typeToString(getAwaitedType(n)||Je));return}}else{markTypeNodeAsReferenced(r);if(n===Se){return}var a=e.getEntityNameFromTypeNode(r);if(a===undefined){error(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,typeToString(n));return}var s=resolveEntityName(a,111551,true);var o=s?getTypeOfSymbol(s):Se;if(o===Se){if(a.kind===79&&a.escapedText==="Promise"&&getTargetType(n)===getGlobalPromiseType(false)){error(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option)}else{error(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a))}return}var c=getGlobalPromiseConstructorLikeType(true);if(c===et){error(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));return}if(!checkTypeAssignableTo(o,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value)){return}var u=a&&e.getFirstIdentifier(a);var l=getSymbol(t.locals,u.escapedText,111551);if(l){error(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a));return}}checkAwaitedType(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function checkDecorator(t){var r=getResolvedSignature(t);checkDeprecatedSignature(r,t);var n=getReturnTypeOfSignature(r);if(n.flags&1){return}var i;var a=getDiagnosticHeadMessageForDecoratorResolution(t);var s;switch(t.parent.kind){case 255:var o=getSymbolOfNode(t.parent);var c=getTypeOfSymbol(o);i=getUnionType([c,Je]);break;case 162:i=Je;s=e.chainDiagnosticMessages(undefined,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=Je;s=e.chainDiagnosticMessages(undefined,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:var u=getTypeOfNode(t.parent);var l=createTypedPropertyDescriptorType(u);i=getUnionType([l,Je]);break;default:return e.Debug.fail()}checkTypeAssignableTo(n,i,t,a,function(){return s})}function markTypeNodeAsReferenced(t){markEntityNameOrEntityExpressionAsReference(t&&e.getEntityNameFromTypeNode(t))}function markEntityNameOrEntityExpressionAsReference(t){if(!t)return;var r=e.getFirstIdentifier(t);var n=(t.kind===79?788968:1920)|2097152;var i=resolveName(r,r.escapedText,n,undefined,undefined,true);if(i&&i.flags&2097152&&symbolIsValue(i)&&!isConstEnumOrConstEnumOnlyModule(resolveAlias(i))&&!getTypeOnlyAliasDeclaration(i)){markAliasSymbolAsReferenced(i)}}function markDecoratorMedataDataTypeNodeAsReferenced(t){var r=getEntityNameForDecoratorMetadata(t);if(r&&e.isEntityName(r)){markEntityNameOrEntityExpressionAsReference(r)}}function getEntityNameForDecoratorMetadata(e){if(e){switch(e.kind){case 186:case 185:return getEntityNameForDecoratorMetadataFromTypeList(e.types);case 187:return getEntityNameForDecoratorMetadataFromTypeList([e.trueType,e.falseType]);case 189:case 195:return getEntityNameForDecoratorMetadata(e.type);case 176:return e.typeName}}}function getEntityNameForDecoratorMetadataFromTypeList(t){var r;for(var n=0,i=t;n-1&&n0);if(n.length>1){error(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag)}var i=getIdentifierFromEntityNameExpression(t.class.expression);var a=e.getClassExtendsHeritageElement(r);if(a){var s=getIdentifierFromEntityNameExpression(a.expression);if(s&&i.escapedText!==s.escapedText){error(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(s))}}}function getIdentifierFromEntityNameExpression(e){switch(e.kind){case 79:return e;case 204:return e.name;default:return undefined}}function checkFunctionOrMethodDeclaration(t){var r;checkDecorators(t);checkSignatureDeclaration(t);var n=e.getFunctionFlags(t);if(t.name&&t.name.kind===160){checkComputedPropertyName(t.name)}if(hasBindableName(t)){var i=getSymbolOfNode(t);var a=t.localSymbol||i;var s=(r=a.declarations)===null||r===void 0?void 0:r.find(function(e){return e.kind===t.kind&&!(e.flags&131072)});if(t===s){checkFunctionOrConstructorSymbol(a)}if(i.parent){checkFunctionOrConstructorSymbol(i)}}var c=t.kind===166?undefined:t.body;checkSourceElement(c);checkAllCodePathsInNonVoidFunctionReturnOrThrow(t,getReturnTypeFromAnnotation(t));if(o&&!e.getEffectiveReturnTypeNode(t)){if(e.nodeIsMissing(c)&&!isPrivateWithinAmbient(t)){reportImplicitAny(t,ye)}if(n&1&&e.nodeIsPresent(c)){getReturnTypeOfSignature(getSignatureFromDeclaration(t))}}if(e.isInJSFile(t)){var u=e.getJSDocTypeTag(t);if(u&&u.typeExpression&&!getContextualCallSignature(getTypeFromTypeNode(u.typeExpression),t)){error(u.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}}function registerForUnusedIdentifiersCheck(t){if(o){var r=e.getSourceFileOfNode(t);var n=_r.get(r.path);if(!n){n=[];_r.set(r.path,n)}n.push(t)}}function checkUnusedIdentifiers(t,r){for(var n=0,i=t;n=2||!e.hasRestParameter(t)||t.flags&8388608||e.nodeIsMissing(t.body)){return}e.forEach(t.parameters,function(t){if(t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===Q.escapedName){errorSkippedOn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}})}function needCollisionCheckForIdentifier(t,r,n){if((r===null||r===void 0?void 0:r.escapedText)!==n){return false}if(t.kind===165||t.kind===164||t.kind===167||t.kind===166||t.kind===170||t.kind===171||t.kind===291){return false}if(t.flags&8388608){return false}if(e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t)){if(e.isTypeOnlyImportOrExportDeclaration(t)){return false}}var i=e.getRootDeclaration(t);if(e.isParameter(i)&&e.nodeIsMissing(i.parent.body)){return false}return true}function checkIfThisIsCapturedInEnclosingScope(t){e.findAncestor(t,function(r){if(getNodeCheckFlags(r)&4){var n=t.kind!==79;if(n){error(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference)}else{error(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference)}return true}return false})}function checkIfNewTargetIsCapturedInEnclosingScope(t){e.findAncestor(t,function(r){if(getNodeCheckFlags(r)&8){var n=t.kind!==79;if(n){error(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference)}else{error(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference)}return true}return false})}function checkCollisionWithRequireExportsInGeneratedCode(t,r){if(w>=e.ModuleKind.ES2015){return}if(!r||!needCollisionCheckForIdentifier(t,r,"require")&&!needCollisionCheckForIdentifier(t,r,"exports")){return}if(e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)!==1){return}var n=getDeclarationContainer(t);if(n.kind===300&&e.isExternalOrCommonJsModule(n)){errorSkippedOn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function checkCollisionWithGlobalPromiseInGeneratedCode(t,r){if(!r||F>=4||!needCollisionCheckForIdentifier(t,r,"Promise")){return}if(e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)!==1){return}var n=getDeclarationContainer(t);if(n.kind===300&&e.isExternalOrCommonJsModule(n)&&n.flags&2048){errorSkippedOn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function recordPotentialCollisionWithWeakMapSetInGeneratedCode(e,t){if(F<=8&&(needCollisionCheckForIdentifier(e,t,"WeakMap")||needCollisionCheckForIdentifier(e,t,"WeakSet"))){zr.push(e)}}function checkWeakMapSetCollision(t){var r=e.getEnclosingBlockScopeContainer(t);if(getNodeCheckFlags(r)&67108864){e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&typeof t.name.escapedText==="string","The target of a WeakMap/WeakSet collision check should be an identifier");errorSkippedOn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText)}}function recordPotentialCollisionWithReflectInGeneratedCode(e,t){if(t&&F>=2&&F<=8&&needCollisionCheckForIdentifier(e,t,"Reflect")){Hr.push(e)}}function checkReflectCollision(t){var r=false;if(e.isClassExpression(t)){for(var n=0,i=t.members;n1){if(e.some(f.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!areDeclarationFlagsIdentical(r,t)})){error(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}}}else{var h=convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(t));if(m!==Se&&h!==Se&&!isTypeIdenticalTo(m,h)&&!(f.flags&67108864)){errorNextVariableOrPropertyDeclarationMustHaveSameType(f.valueDeclaration,m,t,h)}if(t.initializer){checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(t.initializer),h,t,t.initializer,undefined)}if(f.valueDeclaration&&!areDeclarationFlagsIdentical(t,f.valueDeclaration)){error(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}}if(t.kind!==165&&t.kind!==164){checkExportsOnMergedDeclarations(t);if(t.kind===252||t.kind===201){checkVarDeclaredNamesNotShadowed(t)}checkCollisionsForDeclarationName(t,t.name)}}function errorNextVariableOrPropertyDeclarationMustHaveSameType(t,r,n,i){var a=e.getNameOfDeclaration(n);var s=n.kind===165||n.kind===164?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2;var o=e.declarationNameToString(a);var c=error(a,s,o,typeToString(r),typeToString(i));if(t){e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,o))}}function areDeclarationFlagsIdentical(t,r){if(t.kind===162&&r.kind===252||t.kind===252&&r.kind===162){return true}if(e.hasQuestionToken(t)!==e.hasQuestionToken(r)){return false}var n=8|16|256|128|64|32;return e.getSelectedEffectiveModifierFlags(t,n)===e.getSelectedEffectiveModifierFlags(r,n)}function checkVariableDeclaration(t){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end});checkGrammarVariableDeclaration(t);checkVariableLikeDeclaration(t);e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop()}function checkBindingElement(e){checkGrammarBindingElement(e);return checkVariableLikeDeclaration(e)}function checkVariableStatement(t){if(!checkGrammarDecoratorsAndModifiers(t)&&!checkGrammarVariableDeclarationList(t.declarationList))checkGrammarForDisallowedLetOrConstStatement(t);e.forEach(t.declarationList.declarations,checkSourceElement)}function checkExpressionStatement(e){checkGrammarStatementInAmbientContext(e);checkExpression(e.expression)}function checkIfStatement(t){checkGrammarStatementInAmbientContext(t);var r=checkTruthinessExpression(t.expression);checkTestingKnownTruthyCallableOrAwaitableType(t.expression,r,t.thenStatement);checkSourceElement(t.thenStatement);if(t.thenStatement.kind===234){error(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement)}checkSourceElement(t.elseStatement)}function checkTestingKnownTruthyCallableOrAwaitableType(t,r,n){if(!M)return;if(getFalsyFlags(r))return;var i=e.isBinaryExpression(t)?t.right:t;if(e.isPropertyAccessExpression(i)&&e.isAssertionExpression(e.skipParentheses(i.expression))){return}var a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:undefined;var s=getSignaturesOfType(r,0);var o=!!getAwaitedTypeOfPromise(r);if(s.length===0&&!o){return}var c=a&&getSymbolAtLocation(a);if(!c&&!o){return}var u=c&&e.isBinaryExpression(t.parent)&&isSymbolUsedInBinaryExpressionChain(t.parent,c)||c&&n&&isSymbolUsedInConditionBody(t,n,a,c);if(!u){if(o){errorAndMaybeSuggestAwait(i,true,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,getTypeNameForErrorDisplay(r))}else{error(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead)}}}function isSymbolUsedInConditionBody(t,r,n,i){return!!e.forEachChild(r,function check(r){if(e.isIdentifier(r)){var a=getSymbolAtLocation(r);if(a&&a===i){if(e.isIdentifier(t)){return true}var s=n.parent;var o=r.parent;while(s&&o){if(e.isIdentifier(s)&&e.isIdentifier(o)||s.kind===108&&o.kind===108){return getSymbolAtLocation(s)===getSymbolAtLocation(o)}else if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(o)){if(getSymbolAtLocation(s.name)!==getSymbolAtLocation(o.name)){return false}o=o.expression;s=s.expression}else if(e.isCallExpression(s)&&e.isCallExpression(o)){o=o.expression;s=s.expression}else{return false}}}}return e.forEachChild(r,check)})}function isSymbolUsedInBinaryExpressionChain(t,r){while(e.isBinaryExpression(t)&&t.operatorToken.kind===55){var n=e.forEachChild(t.right,function visit(t){if(e.isIdentifier(t)){var n=getSymbolAtLocation(t);if(n&&n===r){return true}}return e.forEachChild(t,visit)});if(n){return true}t=t.parent}return false}function checkDoStatement(e){checkGrammarStatementInAmbientContext(e);checkSourceElement(e.statement);checkTruthinessExpression(e.expression)}function checkWhileStatement(e){checkGrammarStatementInAmbientContext(e);checkTruthinessExpression(e.expression);checkSourceElement(e.statement)}function checkTruthinessOfType(t,r){if(t.flags&16384){error(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness)}return t}function checkTruthinessExpression(e,t){return checkTruthinessOfType(checkExpression(e,t),e)}function checkForStatement(t){if(!checkGrammarStatementInAmbientContext(t)){if(t.initializer&&t.initializer.kind===253){checkGrammarVariableDeclarationList(t.initializer)}}if(t.initializer){if(t.initializer.kind===253){e.forEach(t.initializer.declarations,checkVariableDeclaration)}else{checkExpression(t.initializer)}}if(t.condition)checkTruthinessExpression(t.condition);if(t.incrementor)checkExpression(t.incrementor);checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForOfStatement(t){checkGrammarForInOrForOfStatement(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier){if(r&&e.isClassStaticBlockDeclaration(r)){grammarErrorOnNode(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block)}else{var n=e.getFunctionFlags(r);if((n&(4|2))===2&&F<99){checkExternalEmitHelpers(t,16384)}}}else if(O.downlevelIteration&&F<2){checkExternalEmitHelpers(t,256)}if(t.initializer.kind===253){checkForInOrForOfVariableDeclaration(t)}else{var i=t.initializer;var a=checkRightHandSideOfForOf(t);if(i.kind===202||i.kind===203){checkDestructuringAssignment(i,a||Se)}else{var s=checkExpression(i);checkReferenceExpression(i,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access);if(a){checkTypeAssignableToAndOptionallyElaborate(a,s,i,t.expression)}}}checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForInStatement(t){checkGrammarForInOrForOfStatement(t);var r=getNonNullableTypeIfNeeded(checkExpression(t.expression));if(t.initializer.kind===253){var n=t.initializer.declarations[0];if(n&&e.isBindingPattern(n.name)){error(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern)}checkForInOrForOfVariableDeclaration(t)}else{var i=t.initializer;var a=checkExpression(i);if(i.kind===202||i.kind===203){error(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern)}else if(!isTypeAssignableTo(getIndexTypeOrString(r),a)){error(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}else{checkReferenceExpression(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access)}}if(r===Ue||!isTypeAssignableToKind(r,67108864|58982400)){error(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,typeToString(r))}checkSourceElement(t.statement);if(t.locals){registerForUnusedIdentifiersCheck(t)}}function checkForInOrForOfVariableDeclaration(e){var t=e.initializer;if(t.declarations.length>=1){var r=t.declarations[0];checkVariableDeclaration(r)}}function checkRightHandSideOfForOf(e){var t=e.awaitModifier?15:13;return checkIteratedTypeOrElementType(t,checkNonNullExpression(e.expression),De,e.expression)}function checkIteratedTypeOrElementType(e,t,r,n){if(isTypeAny(t)){return t}return getIteratedTypeOrElementType(e,t,r,n,true)||ye}function getIteratedTypeOrElementType(t,r,n,i,a){var s=(t&2)!==0;if(r===Ue){reportTypeNotIterableError(i,r,s);return undefined}var o=F>=2;var c=!o&&O.downlevelIteration;var u=O.noUncheckedIndexedAccess&&!!(t&128);if(o||c||s){var l=getIterationTypesOfIterable(r,t,o?i:undefined);if(a){if(l){var p=t&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t&16?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:undefined;if(p){checkTypeAssignableTo(n,l.nextType,i,p)}}}if(l||o){return u?includeUndefinedInIndexSignature(l&&l.yieldType):l&&l.yieldType}}var d=r;var f=false;var m=false;if(t&4){if(d.flags&1048576){var g=r.types;var _=e.filter(g,function(e){return!(e.flags&402653316)});if(_!==g){d=getUnionType(_,2)}}else if(d.flags&402653316){d=Ue}m=d!==r;if(m){if(F<1){if(i){error(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);f=true}}if(d.flags&131072){return u?includeUndefinedInIndexSignature(Oe):Oe}}}if(!isArrayLikeType(d)){if(i&&!f){var h=!!(t&4)&&!m;var y=getIterationDiagnosticDetails(h,c),v=y[0],T=y[1];errorAndMaybeSuggestAwait(i,T&&!!getAwaitedTypeOfPromise(d),v,typeToString(d))}return m?u?includeUndefinedInIndexSignature(Oe):Oe:undefined}var S=getIndexTypeOfType(d,Fe);if(m&&S){if(S.flags&402653316&&!O.noUncheckedIndexedAccess){return Oe}return getUnionType(u?[S,Oe,De]:[S,Oe],2)}return t&128?includeUndefinedInIndexSignature(S):S;function getIterationDiagnosticDetails(n,i){var a;if(i){return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,true]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,true]}var s=getIterationTypeOfIterable(t,0,r,undefined);if(s){return[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,false]}if(isES2015OrLaterIterable((a=r.symbol)===null||a===void 0?void 0:a.escapedName)){return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,true]}return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,true]:[e.Diagnostics.Type_0_is_not_an_array_type,true]}}function isES2015OrLaterIterable(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return true}return false}function getIterationTypeOfIterable(e,t,r,n){if(isTypeAny(r)){return undefined}var i=getIterationTypesOfIterable(r,e,n);return i&&i[getIterationTypesKeyFromIterationTypeKind(t)]}function createIterationTypes(e,t,r){if(e===void 0){e=Ue}if(t===void 0){t=Ue}if(r===void 0){r=xe}if(e.flags&67359327&&t.flags&(1|131072|2|16384|32768)&&r.flags&(1|131072|2|16384|32768)){var n=getTypeListId([e,t,r]);var i=yt.get(n);if(!i){i={yieldType:e,returnType:t,nextType:r};yt.set(n,i)}return i}return{yieldType:e,returnType:t,nextType:r}}function combineIterationTypes(t){var r;var n;var i;for(var a=0,s=t;a1){for(var d=0,f=n;dn){return false}for(var l=0;l=i&&c.pos<=a){var u=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(u.expression,u);e.setParent(u,c);u.flowNode=c.returnFlowNode;var l=getFlowTypeOfReference(u,r,getOptionalType(r));if(!(getFalsyFlags(l)&32768)){return true}}}return false}function isPropertyInitializedInConstructor(t,r,n){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);e.setParent(i.expression,i);e.setParent(i,n);i.flowNode=n.returnFlowNode;var a=getFlowTypeOfReference(i,r,getOptionalType(r));return!(getFalsyFlags(a)&32768)}function checkInterfaceDeclaration(t){if(!checkGrammarDecoratorsAndModifiers(t))checkGrammarInterfaceDeclaration(t);checkTypeParameters(t.typeParameters);if(o){checkTypeNameIsReserved(t.name,e.Diagnostics.Interface_name_cannot_be_0);checkExportsOnMergedDeclarations(t);var r=getSymbolOfNode(t);checkTypeParameterListsIdentical(r);var n=e.getDeclarationOfKind(r,256);if(t===n){var i=getDeclaredTypeOfSymbol(r);var a=getTypeWithThisArgument(i);if(checkInheritedPropertiesAreIdentical(i,t.name)){for(var s=0,c=getBaseTypes(i);s>a;case 49:return i>>>a;case 47:return i<1){var i=e.isEnumConst(t);e.forEach(r.declarations,function(t){if(e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i){error(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}})}var a=false;e.forEach(r.declarations,function(t){if(t.kind!==258){return false}var r=t;if(!r.members.length){return false}var n=r.members[0];if(!n.initializer){if(a){error(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element)}else{a=true}}})}}function checkEnumMember(t){if(e.isPrivateIdentifier(t.name)){error(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}}function getFirstNonAmbientClassOrFunctionDeclaration(t){var r=t.declarations;if(r){for(var n=0,i=r;n1&&isInstantiatedModule(t,e.shouldPreserveConstEnums(O))){var c=getFirstNonAmbientClassOrFunctionDeclaration(s);if(c){if(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)){error(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged)}else if(t.pos=e.ModuleKind.ES2015&&!t.isTypeOnly&&!(t.flags&8388608)){grammarErrorOnNode(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}}}}function checkExportDeclaration(t){if(checkGrammarModuleElementContext(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){return}if(!checkGrammarDecoratorsAndModifiers(t)&&e.hasEffectiveModifiers(t)){grammarErrorOnFirstToken(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers)}if(t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&F===0){checkExternalEmitHelpers(t,2097152)}checkGrammarExportDeclaration(t);if(!t.moduleSpecifier||checkExternalImportOrExportDeclaration(t)){if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,checkExportSpecifier);var r=t.parent.kind===260&&e.isAmbientModule(t.parent.parent);var n=!r&&t.parent.kind===260&&!t.moduleSpecifier&&t.flags&8388608;if(t.parent.kind!==300&&!r&&!n){error(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}}else{var i=resolveExternalModuleName(t,t.moduleSpecifier);if(i&&hasExportAssignmentSymbol(i)){error(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,symbolToString(i))}else if(t.exportClause){checkAliasSymbol(t.exportClause)}if(w!==e.ModuleKind.System&&w=e.ModuleKind.ES2015){grammarErrorOnNode(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead)}else if(w===e.ModuleKind.System){grammarErrorOnNode(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system)}}}function hasExportedMembers(t){return e.forEachEntry(t.exports,function(e,t){return t!=="export="})}function checkExternalModuleExports(t){var r=getSymbolOfNode(t);var n=getSymbolLinks(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&hasExportedMembers(r)){var a=getDeclarationOfAliasSymbol(i)||i.valueDeclaration;if(a&&!isTopLevelInExternalModuleAugmentation(a)&&!e.isInJSFile(a)){error(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}}var s=getExportsOfModule(r);if(s){s.forEach(function(t,r){var n=t.declarations,i=t.flags;if(r==="__export"){return}if(i&(1920|64|384)){return}var a=e.countWhere(n,x);if(i&524288&&a<=2){return}if(a>1){if(!isDuplicatedCommonJSExport(n)){for(var s=0,o=n;s1&&t.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function checkSourceElement(e){if(e){var t=C;C=e;E=0;checkSourceElementWorker(e);C=t}}function checkSourceElementWorker(t){if(e.isInJSFile(t)){e.forEach(t.jsDoc,function(t){var r=t.tags;return e.forEach(r,checkSourceElement)})}var r=t.kind;if(p){switch(r){case 259:case 255:case 256:case 254:p.throwIfCancellationRequested()}}if(r>=235&&r<=251&&t.flowNode&&!isReachableFlowNode(t.flowNode)){errorOrSuggestion(O.allowUnreachableCode===false,t,e.Diagnostics.Unreachable_code_detected)}switch(r){case 161:return checkTypeParameter(t);case 162:return checkParameter(t);case 165:return checkPropertyDeclaration(t);case 164:return checkPropertySignature(t);case 178:case 177:case 172:case 173:case 174:return checkSignatureDeclaration(t);case 167:case 166:return checkMethodDeclaration(t);case 168:return checkClassStaticBlockDeclaration(t);case 169:return checkConstructorDeclaration(t);case 170:case 171:return checkAccessorDeclaration(t);case 176:return checkTypeReferenceNode(t);case 175:return checkTypePredicate(t);case 179:return checkTypeQuery(t);case 180:return checkTypeLiteral(t);case 181:return checkArrayType(t);case 182:return checkTupleType(t);case 185:case 186:return checkUnionOrIntersectionType(t);case 189:case 183:case 184:return checkSourceElement(t.type);case 190:return checkThisType(t);case 191:return checkTypeOperator(t);case 187:return checkConditionalType(t);case 188:return checkInferType(t);case 196:return checkTemplateLiteralType(t);case 198:return checkImportType(t);case 195:return checkNamedTupleMember(t);case 323:return checkJSDocAugmentsTag(t);case 324:return checkJSDocImplementsTag(t);case 340:case 333:case 334:return checkJSDocTypeAliasTag(t);case 339:return checkJSDocTemplateTag(t);case 338:return checkJSDocTypeTag(t);case 335:return checkJSDocParameterTag(t);case 342:return checkJSDocPropertyTag(t);case 312:checkJSDocFunctionType(t);case 310:case 309:case 307:case 308:case 317:checkJSDocTypeIsInJsFile(t);e.forEachChild(t,checkSourceElement);return;case 313:checkJSDocVariadicType(t);return;case 304:return checkSourceElement(t.type);case 192:return checkIndexedAccessType(t);case 193:return checkMappedType(t);case 254:return checkFunctionDeclaration(t);case 233:case 260:return checkBlock(t);case 235:return checkVariableStatement(t);case 236:return checkExpressionStatement(t);case 237:return checkIfStatement(t);case 238:return checkDoStatement(t);case 239:return checkWhileStatement(t);case 240:return checkForStatement(t);case 241:return checkForInStatement(t);case 242:return checkForOfStatement(t);case 243:case 244:return checkBreakOrContinueStatement(t);case 245:return checkReturnStatement(t);case 246:return checkWithStatement(t);case 247:return checkSwitchStatement(t);case 248:return checkLabeledStatement(t);case 249:return checkThrowStatement(t);case 250:return checkTryStatement(t);case 252:return checkVariableDeclaration(t);case 201:return checkBindingElement(t);case 255:return checkClassDeclaration(t);case 256:return checkInterfaceDeclaration(t);case 257:return checkTypeAliasDeclaration(t);case 258:return checkEnumDeclaration(t);case 259:return checkModuleDeclaration(t);case 264:return checkImportDeclaration(t);case 263:return checkImportEqualsDeclaration(t);case 270:return checkExportDeclaration(t);case 269:return checkExportAssignment(t);case 234:case 251:checkGrammarStatementInAmbientContext(t);return;case 274:return checkMissingDeclaration(t)}}function checkJSDocTypeIsInJsFile(t){if(!e.isInJSFile(t)){grammarErrorOnNode(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}}function checkJSDocVariadicType(t){checkJSDocTypeIsInJsFile(t);checkSourceElement(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent)){if(e.last(r.parent.parameters)!==r){error(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}return}if(!e.isJSDocTypeExpression(r)){error(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}var n=t.parent.parent;if(!e.isJSDocParameterTag(n)){error(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var i=e.getParameterSymbolFromJSDoc(n);if(!i){return}var a=e.getHostSignatureFromJSDoc(n);if(!a||e.last(a.parameters).symbol!==i){error(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function getTypeFromJSDocVariadicType(t){var r=getTypeFromTypeNode(t.type);var n=t.parent;var i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);var s=e.isJSDocCallbackTag(i.parent.parent);if(a||s){var o=s?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters);var c=e.getParameterSymbolFromJSDoc(i);if(!o||c&&o.symbol===c&&e.isRestParameter(o)){return createArrayType(r)}}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent)){return createArrayType(r)}return addOptionality(r)}function checkNodeDeferred(t){var r=e.getSourceFileOfNode(t);var n=getNodeLinks(r);if(!(n.flags&1)){n.deferredNodes=n.deferredNodes||new e.Map;var i=getNodeId(t);n.deferredNodes.set(i,t)}}function checkDeferredNodes(e){var t=getNodeLinks(e);if(t.deferredNodes){t.deferredNodes.forEach(checkDeferredNode)}}function checkDeferredNode(t){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=C;C=t;E=0;switch(t.kind){case 206:case 207:case 208:case 163:case 278:resolveUntypedCall(t);break;case 211:case 212:case 167:case 166:checkFunctionExpressionOrObjectLiteralMethodDeferred(t);break;case 170:case 171:checkAccessorDeclaration(t);break;case 224:checkClassExpressionDeferred(t);break;case 277:checkJsxSelfClosingElementDeferred(t);break;case 276:checkJsxElementDeferred(t);break}C=r;e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop()}function checkSourceFile(t){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("check","checkSourceFile",{path:t.path},true);e.performance.mark("beforeCheck");checkSourceFileWorker(t);e.performance.mark("afterCheck");e.performance.measure("Check","beforeCheck","afterCheck");e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop()}function unusedIsError(t,r){if(r){return false}switch(t){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return e.Debug.assertNever(t)}}function getPotentiallyUnusedIdentifiers(t){return _r.get(t.path)||e.emptyArray}function checkSourceFileWorker(t){var r=getNodeLinks(t);if(!(r.flags&1)){if(e.skipTypeChecking(t,O,a)){return}checkGrammarSourceFile(t);e.clear(Kr);e.clear(Gr);e.clear(zr);e.clear(Hr);e.forEach(t.statements,checkSourceElement);checkSourceElement(t.endOfFileToken);checkDeferredNodes(t);if(e.isExternalOrCommonJsModule(t)){registerForUnusedIdentifiersCheck(t)}if(!t.isDeclarationFile&&(O.noUnusedLocals||O.noUnusedParameters)){checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(t),function(t,r,n){if(!e.containsParseError(t)&&unusedIsError(r,!!(t.flags&8388608))){$r.add(n)}})}if(O.importsNotUsedAsValues===2&&!t.isDeclarationFile&&e.isExternalModule(t)){checkImportsForTypeOnlyConversion(t)}if(e.isExternalOrCommonJsModule(t)){checkExternalModuleExports(t)}if(Kr.length){e.forEach(Kr,checkIfThisIsCapturedInEnclosingScope);e.clear(Kr)}if(Gr.length){e.forEach(Gr,checkIfNewTargetIsCapturedInEnclosingScope);e.clear(Gr)}if(zr.length){e.forEach(zr,checkWeakMapSetCollision);e.clear(zr)}if(Hr.length){e.forEach(Hr,checkReflectCollision);e.clear(Hr)}r.flags|=1}}function getDiagnostics(e,t){try{p=t;return getDiagnosticsWorker(e)}finally{p=undefined}}function getDiagnosticsWorker(t){throwIfNonDiagnosticsProducing();if(t){var r=$r.getGlobalDiagnostics();var n=r.length;checkSourceFile(t);var i=$r.getDiagnostics(t.fileName);var s=$r.getGlobalDiagnostics();if(s!==r){var o=e.relativeComplement(r,s,e.compareDiagnostics);return e.concatenate(o,i)}else if(n===0&&s.length>0){return e.concatenate(s,i)}return i}e.forEach(a.getSourceFiles(),checkSourceFile);return $r.getDiagnostics()}function getGlobalDiagnostics(){throwIfNonDiagnosticsProducing();return $r.getGlobalDiagnostics()}function throwIfNonDiagnosticsProducing(){if(!o){throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}}function getSymbolsInScope(t,r){if(t.flags&16777216){return[]}var n=e.createSymbolTable();var i=false;populateSymbols();n.delete("this");return symbolsToArray(n);function populateSymbols(){while(t){if(t.locals&&!isGlobalSourceFile(t)){copySymbols(t.locals,r)}switch(t.kind){case 300:if(!e.isExternalModule(t))break;case 259:copyLocallyVisibleExportSymbols(getSymbolOfNode(t).exports,r&2623475);break;case 258:copySymbols(getSymbolOfNode(t).exports,r&8);break;case 224:var n=t.name;if(n){copySymbol(t.symbol,r)}case 255:case 256:if(!i){copySymbols(getMembersOfSymbol(getSymbolOfNode(t)),r&788968)}break;case 211:var a=t.name;if(a){copySymbol(t.symbol,r)}break}if(e.introducesArgumentsExoticObject(t)){copySymbol(Q,r)}i=e.isStatic(t);t=t.parent}copySymbols($,r)}function copySymbol(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;if(!n.has(i)){n.set(i,t)}}}function copySymbols(e,t){if(t){e.forEach(function(e){copySymbol(e,t)})}}function copyLocallyVisibleExportSymbols(t,r){if(r){t.forEach(function(t){if(!e.getDeclarationOfKind(t,273)&&!e.getDeclarationOfKind(t,272)){copySymbol(t,r)}})}}}function isTypeDeclarationName(t){return t.kind===79&&isTypeDeclaration(t.parent)&&e.getNameOfDeclaration(t.parent)===t}function isTypeDeclaration(e){switch(e.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return true;case 265:return e.isTypeOnly;case 268:case 273:return e.parent.parent.isTypeOnly;default:return false}}function isTypeReferenceIdentifier(e){while(e.parent.kind===159){e=e.parent}return e.parent.kind===176}function isHeritageClauseElementIdentifier(e){while(e.parent.kind===204){e=e.parent}return e.parent.kind===226}function forEachEnclosingClass(t,r){var n;while(true){t=e.getContainingClass(t);if(!t)break;if(n=r(t))break}return n}function isNodeUsedDuringClassInitialization(t){return!!e.findAncestor(t,function(t){if(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)){return true}else if(e.isClassLike(t)||e.isFunctionLikeDeclaration(t)){return"quit"}return false})}function isNodeWithinClass(e,t){return!!forEachEnclosingClass(e,function(e){return e===t})}function getLeftSideOfImportEqualsOrExportAssignment(e){while(e.parent.kind===159){e=e.parent}if(e.parent.kind===263){return e.parent.moduleReference===e?e.parent:undefined}if(e.parent.kind===269){return e.parent.expression===e?e.parent:undefined}return undefined}function isInRightSideOfImportOrExportAssignment(e){return getLeftSideOfImportEqualsOrExportAssignment(e)!==undefined}function getSpecialPropertyAssignmentSymbolFromEntityName(t){var r=e.getAssignmentDeclarationKind(t.parent.parent);switch(r){case 1:case 3:return getSymbolOfNode(t.parent);case 4:case 2:case 5:return getSymbolOfNode(t.parent.parent)}}function isImportTypeQualifierPart(t){var r=t.parent;while(e.isQualifiedName(r)){t=r;r=r.parent}if(r&&r.kind===198&&r.qualifier===t){return r}return undefined}function getSymbolOfNameOrPropertyAccessExpression(t){if(e.isDeclarationName(t)){return getSymbolOfNode(t.parent)}if(e.isInJSFile(t)&&t.parent.kind===204&&t.parent===t.parent.parent.left){if(!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=getSpecialPropertyAssignmentSymbolFromEntityName(t);if(r){return r}}}if(t.parent.kind===269&&e.isEntityNameExpression(t)){var n=resolveEntityName(t,111551|788968|1920|2097152,true);if(n&&n!==_e){return n}}else if(e.isEntityName(t)&&isInRightSideOfImportOrExportAssignment(t)){var i=e.getAncestor(t,263);e.Debug.assert(i!==undefined);return getSymbolOfPartOfRightHandSideOfImportEquals(t,true)}if(e.isEntityName(t)){var a=isImportTypeQualifierPart(t);if(a){getTypeFromTypeNode(a);var s=getNodeLinks(t).resolvedSymbol;return s===_e?undefined:s}}while(e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t)){t=t.parent}if(isHeritageClauseElementIdentifier(t)){var o=0;if(t.parent.kind===226){o=788968;if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)){o|=111551}}else{o=1920}o|=2097152;var c=e.isEntityNameExpression(t)?resolveEntityName(t,o):undefined;if(c){return c}}if(t.parent.kind===335){return e.getParameterSymbolFromJSDoc(t.parent)}if(t.parent.kind===161&&t.parent.parent.kind===339){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t)){return undefined}var l=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));var o=l?788968|1920|111551:111551;if(t.kind===79){if(e.isJSXTagName(t)&&isJsxIntrinsicIdentifier(t)){var p=getIntrinsicTagSymbol(t.parent);return p===_e?undefined:p}var d=resolveEntityName(t,o,false,!l,e.getHostSignatureFromJSDoc(t));if(!d&&l){var f=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(f){return resolveJSDocMemberName(t,getSymbolOfNode(f))}}return d}else if(t.kind===204||t.kind===159){var m=getNodeLinks(t);if(m.resolvedSymbol){return m.resolvedSymbol}if(t.kind===204){checkPropertyAccessExpression(t,0)}else{checkQualifiedName(t,0)}if(!m.resolvedSymbol&&l&&e.isQualifiedName(t)){return resolveJSDocMemberName(t)}return m.resolvedSymbol}else if(e.isJSDocMemberName(t)){return resolveJSDocMemberName(t)}}else if(isTypeReferenceIdentifier(t)){var o=t.parent.kind===176?788968:1920;return resolveEntityName(t,o,false,true)}if(t.parent.kind===175){return resolveEntityName(t,1)}return undefined}function resolveJSDocMemberName(t,r){if(e.isEntityName(t)){var n=788968|1920|111551;var i=resolveEntityName(t,n,false,true,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r){i=getMergedSymbol(getSymbol(getExportsOfSymbol(r),t.escapedText,n))}if(i){return i}}var a=e.isIdentifier(t)?r:resolveJSDocMemberName(t.left);var s=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var o=a.flags&111551&&getPropertyOfType(getTypeOfSymbol(a),"prototype");var c=o?getTypeOfSymbol(o):getDeclaredTypeOfSymbol(a);return getPropertyOfType(c,s)}}function getSymbolAtLocation(t,r){if(t.kind===300){return e.isExternalModule(t)?getMergedSymbol(t.symbol):undefined}var n=t.parent;var i=n.parent;if(t.flags&16777216){return undefined}if(isDeclarationNameOrImportPropertyName(t)){var a=getSymbolOfNode(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?getImmediateAliasedSymbol(a):a}else if(e.isLiteralComputedPropertyDeclarationName(t)){return getSymbolOfNode(n.parent)}if(t.kind===79){if(isInRightSideOfImportOrExportAssignment(t)){return getSymbolOfNameOrPropertyAccessExpression(t)}else if(n.kind===201&&i.kind===199&&t===n.propertyName){var s=getTypeOfNode(i);var o=getPropertyOfType(s,t.escapedText);if(o){return o}}else if(e.isMetaProperty(n)){var c=getTypeOfNode(n);var o=getPropertyOfType(c,t.escapedText);if(o){return o}if(n.keywordToken===103){return checkNewTargetMetaProperty(n).symbol}}}switch(t.kind){case 79:case 80:case 204:case 159:return getSymbolOfNameOrPropertyAccessExpression(t);case 108:var u=e.getThisContainer(t,false);if(e.isFunctionLike(u)){var l=getSignatureFromDeclaration(u);if(l.thisParameter){return l.thisParameter}}if(e.isInExpressionContext(t)){return checkExpression(t).symbol}case 190:return getTypeFromThisTypeNode(t).symbol;case 106:return checkExpression(t).symbol;case 133:var p=t.parent;if(p&&p.kind===169){return p.parent.symbol}return undefined;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(t.parent.kind===264||t.parent.kind===270)&&t.parent.moduleSpecifier===t||(e.isInJSFile(t)&&e.isRequireCall(t.parent,false)||e.isImportCall(t.parent))||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent){return resolveExternalModuleName(t,t,r)}if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t){return getSymbolOfNode(n)}case 8:var d=e.isElementAccessExpression(n)?n.argumentExpression===t?getTypeOfExpression(n.expression):undefined:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?getTypeFromTypeNode(i.objectType):undefined;return d&&getPropertyOfType(d,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return getSymbolOfNode(t.parent);case 198:return e.isLiteralImportTypeNode(t)?getSymbolAtLocation(t.argument.literal,r):undefined;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):undefined;case 100:case 103:return e.isMetaProperty(t.parent)?checkMetaPropertyKeyword(t.parent).symbol:undefined;case 229:return checkExpression(t).symbol;default:return undefined}}function getIndexInfosAtLocation(t){if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=getLiteralTypeFromPropertyName(t);var n=getTypeOfExpression(t.parent.expression);var i=n.flags&1048576?n.types:[n];return e.flatMap(i,function(t){return e.filter(getIndexInfosOfType(t),function(e){return isApplicableIndexType(r,e.keyType)})})}return undefined}function getShorthandAssignmentValueSymbol(e){if(e&&e.kind===292){return resolveEntityName(e.name,111551|2097152)}return undefined}function getExportSpecifierLocalTargetSymbol(t){if(e.isExportSpecifier(t)){return t.parent.parent.moduleSpecifier?getExternalModuleMember(t.parent.parent,t):resolveEntityName(t.propertyName||t.name,111551|788968|1920|2097152)}else{return resolveEntityName(t,111551|788968|1920|2097152)}}function getTypeOfNode(t){if(e.isSourceFile(t)&&!e.isExternalModule(t)){return Se}if(t.flags&16777216){return Se}var r=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t);var n=r&&getDeclaredTypeOfClassOrInterface(getSymbolOfNode(r.class));if(e.isPartOfTypeNode(t)){var i=getTypeFromTypeNode(t);return n?getTypeWithThisArgument(i,n.thisType):i}if(e.isExpressionNode(t)){return getRegularTypeOfExpression(t)}if(n&&!r.isImplements){var a=e.firstOrUndefined(getBaseTypes(n));return a?getTypeWithThisArgument(a,n.thisType):Se}if(isTypeDeclaration(t)){var s=getSymbolOfNode(t);return getDeclaredTypeOfSymbol(s)}if(isTypeDeclarationName(t)){var s=getSymbolAtLocation(t);return s?getDeclaredTypeOfSymbol(s):Se}if(e.isDeclaration(t)){var s=getSymbolOfNode(t);return getTypeOfSymbol(s)}if(isDeclarationNameOrImportPropertyName(t)){var s=getSymbolAtLocation(t);if(s){return getTypeOfSymbol(s)}return Se}if(e.isBindingPattern(t)){return getTypeForVariableLikeDeclaration(t.parent,true)||Se}if(isInRightSideOfImportOrExportAssignment(t)){var s=getSymbolAtLocation(t);if(s){var o=getDeclaredTypeOfSymbol(s);return o!==Se?o:getTypeOfSymbol(s)}}if(e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind){return checkMetaPropertyKeyword(t.parent)}return Se}function getTypeOfAssignmentPattern(t){e.Debug.assert(t.kind===203||t.kind===202);if(t.parent.kind===242){var r=checkRightHandSideOfForOf(t.parent);return checkDestructuringAssignment(t,r||Se)}if(t.parent.kind===219){var r=getTypeOfExpression(t.parent.right);return checkDestructuringAssignment(t,r||Se)}if(t.parent.kind===291){var n=e.cast(t.parent.parent,e.isObjectLiteralExpression);var i=getTypeOfAssignmentPattern(n)||Se;var a=e.indexOfNode(n.properties,t.parent);return checkObjectLiteralDestructuringPropertyAssignment(n,i,a)}var s=e.cast(t.parent,e.isArrayLiteralExpression);var o=getTypeOfAssignmentPattern(s)||Se;var c=checkIteratedTypeOrElementType(65,o,De,t.parent)||Se;return checkArrayLiteralDestructuringElementAssignment(s,o,s.elements.indexOf(t),c)}function getPropertySymbolOfDestructuringAssignment(t){var r=getTypeOfAssignmentPattern(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&getPropertyOfType(r,t.escapedText)}function getRegularTypeOfExpression(t){if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}return getRegularTypeOfLiteralType(getTypeOfExpression(t))}function getParentTypeOfClassElement(t){var r=getSymbolOfNode(t.parent);return e.isStatic(t)?getTypeOfSymbol(r):getDeclaredTypeOfSymbol(r)}function getClassElementPropertyKeyType(t){var r=t.name;switch(r.kind){case 79:return getStringLiteralType(e.idText(r));case 8:case 10:return getStringLiteralType(r.text);case 160:var n=checkComputedPropertyName(r);return isTypeAssignableToKind(n,12288)?n:Oe;default:return e.Debug.fail("Unsupported property name.")}}function getAugmentedPropertiesOfType(t){t=getApparentType(t);var r=e.createSymbolTable(getPropertiesOfType(t));var n=getSignaturesOfType(t,0).length?wt:getSignaturesOfType(t,1).length?It:undefined;if(n){e.forEach(getPropertiesOfType(n),function(e){if(!r.has(e.escapedName)){r.set(e.escapedName,e)}})}return getNamedMembers(r)}function typeHasCallOrConstructSignatures(t){return e.typeHasCallOrConstructSignatures(t,te)}function getRootSymbols(t){var r=getImmediateRootSymbols(t);return r?e.flatMap(r,getRootSymbols):[t]}function getImmediateRootSymbols(t){if(e.getCheckFlags(t)&6){return e.mapDefined(getSymbolLinks(t).containingType.types,function(e){return getPropertyOfType(e,t.escapedName)})}else if(t.flags&33554432){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(tryGetAliasTarget(t))}return undefined}function tryGetAliasTarget(e){var t;var r=e;while(r=getSymbolLinks(r).target){t=r}return t}function isArgumentsLocalBinding(t){if(e.isGeneratedIdentifier(t))return false;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return false;var n=r.parent;if(!n)return false;var i=(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r;return!i&&getReferencedValueSymbol(r)===Q}function moduleExportsSomeValue(t){var r=resolveExternalModuleName(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r)){return true}var n=hasExportAssignmentSymbol(r);r=resolveExternalModuleSymbol(r);var i=getSymbolLinks(r);if(i.exportsSomeValue===undefined){i.exportsSomeValue=n?!!(r.flags&111551):e.forEachEntry(getExportsOfModule(r),isValue)}return i.exportsSomeValue;function isValue(e){e=resolveSymbol(e);return e&&!!(e.flags&111551)}}function isNameOfModuleOrEnumDeclaration(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}function getReferencedExportContainer(t,r){var n;var i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=getReferencedValueSymbol(i,isNameOfModuleOrEnumDeclaration(i));if(a){if(a.flags&1048576){var s=getMergedSymbol(a.exportSymbol);if(!r&&s.flags&944&&!(s.flags&3)){return undefined}a=s}var o=getParentOfSymbol(a);if(o){if(o.flags&512&&((n=o.valueDeclaration)===null||n===void 0?void 0:n.kind)===300){var c=o.valueDeclaration;var u=e.getSourceFileOfNode(i);var l=c!==u;return l?undefined:c}return e.findAncestor(i.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&getSymbolOfNode(t)===o})}}}}function getReferencedImportDeclaration(t){if(t.generatedImportReference){return t.generatedImportReference}var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(isNonLocalAlias(n,111551)&&!getTypeOnlyAliasDeclaration(n)){return getDeclarationOfAliasSymbol(n)}}return undefined}function isSymbolOfDestructuredElementOfCatchBinding(t){return t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind===290}function isSymbolOfDeclarationWithCollidingName(t){if(t.flags&418&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=getSymbolLinks(t);if(r.isDeclarationWithCollidingName===undefined){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||isSymbolOfDestructuredElementOfCatchBinding(t)){var i=getNodeLinks(t.valueDeclaration);if(resolveName(n.parent,t.escapedName,111551,undefined,undefined,false)){r.isDeclarationWithCollidingName=true}else if(i.flags&262144){var a=i.flags&524288;var s=e.isIterationStatement(n,false);var o=n.kind===233&&e.isIterationStatement(n.parent,false);r.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(n)&&(!a||!s&&!o)}else{r.isDeclarationWithCollidingName=false}}}return r.isDeclarationWithCollidingName}return false}function getReferencedDeclarationWithCollidingName(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(n&&isSymbolOfDeclarationWithCollidingName(n)){return n.valueDeclaration}}}return undefined}function isDeclarationWithCollidingName(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=getSymbolOfNode(r);if(n){return isSymbolOfDeclarationWithCollidingName(n)}}return false}function isValueAliasDeclaration(t){switch(t.kind){case 263:return isAliasResolvedToValue(getSymbolOfNode(t)||_e);case 265:case 266:case 268:case 273:var r=getSymbolOfNode(t)||_e;return isAliasResolvedToValue(r)&&!getTypeOnlyAliasDeclaration(r);case 270:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,isValueAliasDeclaration));case 269:return t.expression&&t.expression.kind===79?isAliasResolvedToValue(getSymbolOfNode(t)||_e):true}return false}function isTopLevelValueImportEqualsWithEntityName(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);if(r===undefined||r.parent.kind!==300||!e.isInternalModuleImportEqualsDeclaration(r)){return false}var n=isAliasResolvedToValue(getSymbolOfNode(r));return n&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function isAliasResolvedToValue(t){var r=resolveAlias(t);if(r===_e){return true}return!!(r.flags&111551)&&(e.shouldPreserveConstEnums(O)||!isConstEnumOrConstEnumOnlyModule(r))}function isConstEnumOrConstEnumOnlyModule(e){return isConstEnumSymbol(e)||!!e.constEnumOnlyModule}function isReferencedAliasDeclaration(t,r){if(isAliasSymbolDeclaration(t)){var n=getSymbolOfNode(t);var i=n&&getSymbolLinks(n);if(i===null||i===void 0?void 0:i.referenced){return true}var a=getSymbolLinks(n).target;if(a&&e.getEffectiveModifierFlags(t)&1&&a.flags&111551&&(e.shouldPreserveConstEnums(O)||!isConstEnumOrConstEnumOnlyModule(a))){return true}}if(r){return!!e.forEachChild(t,function(e){return isReferencedAliasDeclaration(e,r)})}return false}function isImplementationOfOverload(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return false;var r=getSymbolOfNode(t);var n=getSignaturesOfSymbol(r);return n.length>1||n.length===1&&n[0].declaration!==t}return false}function isRequiredInitializedParameter(t){return!!M&&!isOptionalParameter(t)&&!e.isJSDocParameterTag(t)&&!!t.initializer&&!e.hasSyntacticModifier(t,16476)}function isOptionalUninitializedParameterProperty(t){return M&&isOptionalParameter(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function isOptionalUninitializedParameter(e){return!!M&&isOptionalParameter(e)&&!e.initializer}function isExpandoFunctionDeclaration(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r){return false}var n=getSymbolOfNode(r);if(!n||!(n.flags&16)){return false}return!!e.forEachEntry(getExportsOfSymbol(n),function(t){return t.flags&111551&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)})}function getPropertiesOfContainerFunction(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r){return e.emptyArray}var n=getSymbolOfNode(r);return n&&getPropertiesOfType(getTypeOfSymbol(n))||e.emptyArray}function getNodeCheckFlags(e){var t;var r=e.id||0;if(r<0||r>=Lr.length)return 0;return((t=Lr[r])===null||t===void 0?void 0:t.flags)||0}function getEnumMemberValue(e){computeEnumMemberValues(e.parent);return getNodeLinks(e).enumMemberValue}function canHaveConstantValue(e){switch(e.kind){case 294:case 204:case 205:return true}return false}function getConstantValue(t){if(t.kind===294){return getEnumMemberValue(t)}var r=getNodeLinks(t).resolvedSymbol;if(r&&r.flags&8){var n=r.valueDeclaration;if(e.isEnumConst(n.parent)){return getEnumMemberValue(n)}}return undefined}function isFunctionType(e){return!!(e.flags&524288)&&getSignaturesOfType(e,0).length>0}function getTypeReferenceSerializationKind(t,r){var n,i;var a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r){r=e.getParseTreeNode(r);if(!r)return e.TypeReferenceSerializationKind.Unknown}var s=false;if(e.isQualifiedName(a)){var o=resolveEntityName(e.getFirstIdentifier(a),111551,true,true,r);s=!!((n=o===null||o===void 0?void 0:o.declarations)===null||n===void 0?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=resolveEntityName(a,111551,true,true,r);var u=c&&c.flags&2097152?resolveAlias(c):c;s||(s=!!((i=c===null||c===void 0?void 0:c.declarations)===null||i===void 0?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var l=resolveEntityName(a,788968,true,false,r);if(u&&u===l){var p=getGlobalPromiseConstructorSymbol(false);if(p&&u===p){return e.TypeReferenceSerializationKind.Promise}var d=getTypeOfSymbol(u);if(d&&isConstructorType(d)){return s?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}}if(!l){return s?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown}var f=getDeclaredTypeOfSymbol(l);if(f===Se){return s?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown}else if(f.flags&3){return e.TypeReferenceSerializationKind.ObjectType}else if(isTypeAssignableToKind(f,16384|98304|131072)){return e.TypeReferenceSerializationKind.VoidNullableOrNeverType}else if(isTypeAssignableToKind(f,528)){return e.TypeReferenceSerializationKind.BooleanType}else if(isTypeAssignableToKind(f,296)){return e.TypeReferenceSerializationKind.NumberLikeType}else if(isTypeAssignableToKind(f,2112)){return e.TypeReferenceSerializationKind.BigIntLikeType}else if(isTypeAssignableToKind(f,402653316)){return e.TypeReferenceSerializationKind.StringLikeType}else if(isTupleType(f)){return e.TypeReferenceSerializationKind.ArrayLikeType}else if(isTypeAssignableToKind(f,12288)){return e.TypeReferenceSerializationKind.ESSymbolType}else if(isFunctionType(f)){return e.TypeReferenceSerializationKind.TypeWithCallSignature}else if(isArrayType(f)){return e.TypeReferenceSerializationKind.ArrayLikeType}else{return e.TypeReferenceSerializationKind.ObjectType}}function createTypeOfDeclaration(t,r,n,i,a){var s=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!s){return e.factory.createToken(129)}var o=getSymbolOfNode(s);var c=o&&!(o.flags&(2048|131072))?getWidenedLiteralType(getTypeOfSymbol(o)):Se;if(c.flags&8192&&c.symbol===o){n|=1048576}if(a){c=getOptionalType(c)}return q.typeToTypeNode(c,r,n|1024,i)}function createReturnTypeOfSignatureDeclaration(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a){return e.factory.createToken(129)}var s=getSignatureFromDeclaration(a);return q.typeToTypeNode(getReturnTypeOfSignature(s),r,n|1024,i)}function createTypeOfExpression(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a){return e.factory.createToken(129)}var s=getWidenedType(getRegularTypeOfExpression(a));return q.typeToTypeNode(s,r,n|1024,i)}function hasGlobalName(t){return $.has(e.escapeLeadingUnderscores(t))}function getReferencedValueSymbol(t,r){var n=getNodeLinks(t).resolvedSymbol;if(n){return n}var i=t;if(r){var a=t.parent;if(e.isDeclaration(a)&&t===a.name){i=getDeclarationContainer(a)}}return resolveName(i,t.escapedText,111551|1048576|2097152,undefined,undefined,true)}function getReferencedValueDeclaration(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=getReferencedValueSymbol(r);if(n){return getExportSymbolOfValueSymbolIfExported(n).valueDeclaration}}}return undefined}function isLiteralConstDeclaration(t){if(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t)){return isFreshLiteralType(getTypeOfSymbol(getSymbolOfNode(t)))}return false}function literalTypeToNode(t,r,n){var i=t.flags&1024?q.symbolToExpression(t.symbol,111551,r,undefined,n):t===Me?e.factory.createTrue():t===Ie&&e.factory.createFalse();if(i)return i;var a=t.value;return typeof a==="object"?e.factory.createBigIntLiteral(a):typeof a==="number"?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}function createLiteralConstValue(e,t){var r=getTypeOfSymbol(getSymbolOfNode(e));return literalTypeToNode(r,e,t)}function getJsxFactoryEntity(t){return t?(getJsxNamespace(t),e.getSourceFileOfNode(t).localJsxFactory||en):en}function getJsxFragmentFactoryEntity(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory){return r.localJsxFragmentFactory}var n=r.pragmas.get("jsxfrag");var i=e.isArray(n)?n[0]:n;if(i){r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,F);return r.localJsxFragmentFactory}}}if(O.jsxFragmentFactory){return e.parseIsolatedEntityName(O.jsxFragmentFactory,F)}}function createResolver(){var t=a.getResolvedTypeReferenceDirectives();var r;if(t){r=new e.Map;t.forEach(function(e,t){if(!e||!e.resolvedFileName){return}var r=a.getSourceFile(e.resolvedFileName);if(r){addReferencedFilesToTypeDirective(r,t)}})}return{getReferencedExportContainer:getReferencedExportContainer,getReferencedImportDeclaration:getReferencedImportDeclaration,getReferencedDeclarationWithCollidingName:getReferencedDeclarationWithCollidingName,isDeclarationWithCollidingName:isDeclarationWithCollidingName,isValueAliasDeclaration:function(t){var r=e.getParseTreeNode(t);return r?isValueAliasDeclaration(r):true},hasGlobalName:hasGlobalName,isReferencedAliasDeclaration:function(t,r){var n=e.getParseTreeNode(t);return n?isReferencedAliasDeclaration(n,r):true},getNodeCheckFlags:function(t){var r=e.getParseTreeNode(t);return r?getNodeCheckFlags(r):0},isTopLevelValueImportEqualsWithEntityName:isTopLevelValueImportEqualsWithEntityName,isDeclarationVisible:isDeclarationVisible,isImplementationOfOverload:isImplementationOfOverload,isRequiredInitializedParameter:isRequiredInitializedParameter,isOptionalUninitializedParameterProperty:isOptionalUninitializedParameterProperty,isExpandoFunctionDeclaration:isExpandoFunctionDeclaration,getPropertiesOfContainerFunction:getPropertiesOfContainerFunction,createTypeOfDeclaration:createTypeOfDeclaration,createReturnTypeOfSignatureDeclaration:createReturnTypeOfSignatureDeclaration,createTypeOfExpression:createTypeOfExpression,createLiteralConstValue:createLiteralConstValue,isSymbolAccessible:isSymbolAccessible,isEntityNameVisible:isEntityNameVisible,getConstantValue:function(t){var r=e.getParseTreeNode(t,canHaveConstantValue);return r?getConstantValue(r):undefined},collectLinkedAliases:collectLinkedAliases,getReferencedValueDeclaration:getReferencedValueDeclaration,getTypeReferenceSerializationKind:getTypeReferenceSerializationKind,isOptionalParameter:isOptionalParameter,moduleExportsSomeValue:moduleExportsSomeValue,isArgumentsLocalBinding:isArgumentsLocalBinding,getExternalModuleFileFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&getExternalModuleFileFromDeclaration(r)},getTypeReferenceDirectivesForEntityName:getTypeReferenceDirectivesForEntityName,getTypeReferenceDirectivesForSymbol:getTypeReferenceDirectivesForSymbol,isLiteralConstDeclaration:isLiteralConstDeclaration,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration);var n=r&&getSymbolOfNode(r);return!!(n&&e.getCheckFlags(n)&4096)},getJsxFactoryEntity:getJsxFactoryEntity,getJsxFragmentFactoryEntity:getJsxFragmentFactoryEntity,getAllAccessorDeclarations:function(t){t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration);var r=t.kind===171?170:171;var n=e.getDeclarationOfKind(getSymbolOfNode(t),r);var i=n&&n.pos3})){error(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,o,4)}}else if(s&1048576){if(!e.some(getSignaturesOfSymbol(c),function(e){return getParameterCount(e)>4})){error(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,o,5)}}else if(s&1024){if(!e.some(getSignaturesOfSymbol(c),function(e){return getParameterCount(e)>2})){error(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,o,3)}}}}}d|=r}}}function getHelperName(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function resolveHelpersModule(t,r){if(!f){f=resolveExternalModule(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||_e}return f}function checkGrammarDecoratorsAndModifiers(e){return checkGrammarDecorators(e)||checkGrammarModifiers(e)}function checkGrammarDecorators(t){if(!t.decorators){return false}if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){if(t.kind===167&&!e.nodeIsPresent(t.body)){return grammarErrorOnFirstToken(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload)}else{return grammarErrorOnFirstToken(t,e.Diagnostics.Decorators_are_not_valid_here)}}else if(t.kind===170||t.kind===171){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor){return grammarErrorOnFirstToken(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}return false}function checkGrammarModifiers(t){var r=reportObviousModifierErrors(t);if(r!==undefined){return r}var n,i,a,s,o;var c=0;for(var u=0,l=t.modifiers;u1||e.modifiers[0].kind!==t}function checkGrammarAsyncModifier(t,r){switch(t.kind){case 167:case 254:case 211:case 212:return false}return grammarErrorOnNode(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function checkGrammarForDisallowedTrailingComma(t,r){if(r===void 0){r=e.Diagnostics.Trailing_comma_not_allowed}if(t&&t.hasTrailingComma){return grammarErrorAtPos(t[0],t.end-",".length,",".length,r)}return false}function checkGrammarTypeParameterList(t,r){if(t&&t.length===0){var n=t.pos-"<".length;var i=e.skipTrivia(r.text,t.end)+">".length;return grammarErrorAtPos(r,n,i-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return false}function checkGrammarParameterList(t){var r=false;var n=t.length;for(var i=0;i=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var i=getNonSimpleParameters(t.parameters);if(e.length(i)){e.forEach(i,function(t){e.addRelatedInfo(error(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var a=i.map(function(t,r){return r===0?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});e.addRelatedInfo.apply(void 0,n([error(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,false));return true}}}return false}function checkGrammarFunctionLikeDeclaration(t){var r=e.getSourceFileOfNode(t);return checkGrammarDecoratorsAndModifiers(t)||checkGrammarTypeParameterList(t.typeParameters,r)||checkGrammarParameterList(t.parameters)||checkGrammarArrowFunction(t,r)||e.isFunctionLikeDeclaration(t)&&checkGrammarForUseStrictSimpleParameterList(t)}function checkGrammarClassLikeDeclaration(t){var r=e.getSourceFileOfNode(t);return checkGrammarClassDeclarationHeritageClauses(t)||checkGrammarTypeParameterList(t.typeParameters,r)}function checkGrammarArrowFunction(t,r){if(!e.isArrowFunction(t)){return false}var n=t.equalsGreaterThanToken;var i=e.getLineAndCharacterOfPosition(r,n.pos).line;var a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&grammarErrorOnNode(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function checkGrammarIndexSignatureParameters(t){var r=t.parameters[0];if(t.parameters.length!==1){if(r){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter)}else{return grammarErrorOnNode(t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter)}}checkGrammarForDisallowedTrailingComma(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma);if(r.dotDotDotToken){return grammarErrorOnNode(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter)}if(e.hasEffectiveModifiers(r)){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier)}if(r.questionToken){return grammarErrorOnNode(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark)}if(r.initializer){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer)}if(!r.type){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation)}var n=getTypeFromTypeNode(r.type);if(someType(n,function(e){return!!(e.flags&8576)})||isGenericType(n)){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead)}if(!everyType(n,isValidIndexKeyType)){return grammarErrorOnNode(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}if(!t.type){return grammarErrorOnNode(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}return false}function checkGrammarIndexSignature(e){return checkGrammarDecoratorsAndModifiers(e)||checkGrammarIndexSignatureParameters(e)}function checkGrammarForAtLeastOneTypeArgument(t,r){if(r&&r.length===0){var n=e.getSourceFileOfNode(t);var i=r.pos-"<".length;var a=e.skipTrivia(n.text,r.end)+">".length;return grammarErrorAtPos(n,i,a-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return false}function checkGrammarTypeArguments(e,t){return checkGrammarForDisallowedTrailingComma(t)||checkGrammarForAtLeastOneTypeArgument(e,t)}function checkGrammarTaggedTemplateChain(t){if(t.questionDotToken||t.flags&32){return grammarErrorOnNode(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)}return false}function checkGrammarForOmittedArgument(t){if(t){for(var r=0,n=t;r1){return grammarErrorOnFirstToken(s.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class)}r=true}else{e.Debug.assert(s.token===117);if(n){return grammarErrorOnFirstToken(s,e.Diagnostics.implements_clause_already_seen)}n=true}checkGrammarHeritageClause(s)}}}function checkGrammarInterfaceDeclaration(t){var r=false;if(t.heritageClauses){for(var n=0,i=t.heritageClauses;n1){var n=t.kind===241?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return grammarErrorOnFirstToken(s.declarations[1],n)}var c=o[0];if(c.initializer){var n=t.kind===241?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return grammarErrorOnNode(c.name,n)}if(c.type){var n=t.kind===241?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return grammarErrorOnNode(c,n)}}}return false}function checkGrammarAccessor(t){if(!(t.flags&8388608)&&t.parent.kind!==180&&t.parent.kind!==256){if(F<1){return grammarErrorOnNode(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher)}if(F<2&&e.isPrivateIdentifier(t.name)){return grammarErrorOnNode(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}if(t.body===undefined&&!e.hasSyntacticModifier(t,128)){return grammarErrorAtPos(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}}if(t.body){if(e.hasSyntacticModifier(t,128)){return grammarErrorOnNode(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation)}if(t.parent.kind===180||t.parent.kind===256){return grammarErrorOnNode(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}}if(t.typeParameters){return grammarErrorOnNode(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters)}if(!doesAccessorHaveCorrectParameterCount(t)){return grammarErrorOnNode(t.name,t.kind===170?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter)}if(t.kind===171){if(t.type){return grammarErrorOnNode(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation)}var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken){return grammarErrorOnNode(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter)}if(r.questionToken){return grammarErrorOnNode(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter)}if(r.initializer){return grammarErrorOnNode(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}return false}function doesAccessorHaveCorrectParameterCount(e){return getAccessorThisParameter(e)||e.parameters.length===(e.kind===170?0:1)}function getAccessorThisParameter(t){if(t.parameters.length===(t.kind===170?1:2)){return e.getThisParameter(t)}}function checkGrammarTypeOperatorNode(t){if(t.operator===152){if(t.type.kind!==149){return grammarErrorOnNode(t.type,e.Diagnostics._0_expected,e.tokenToString(149))}var r=e.walkUpParenthesizedTypes(t.parent);if(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)){r=r.parent;if(e.isJSDocTypeTag(r)){r=r.parent.parent}}switch(r.kind){case 252:var n=r;if(n.name.kind!==79){return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name)}if(!e.isVariableDeclarationInVariableStatement(n)){return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement)}if(!(n.parent.flags&2)){return grammarErrorOnNode(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const)}break;case 165:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r)){return grammarErrorOnNode(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly)}break;case 164:if(!e.hasSyntacticModifier(r,64)){return grammarErrorOnNode(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly)}break;default:return grammarErrorOnNode(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(t.operator===143){if(t.type.kind!==181&&t.type.kind!==182){return grammarErrorOnFirstToken(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}}}function checkGrammarForInvalidDynamicName(e,t){if(isNonBindableDynamicName(e)){return grammarErrorOnNode(e,t)}}function checkGrammarMethod(t){if(checkGrammarFunctionLikeDeclaration(t)){return true}if(t.kind===167){if(t.parent.kind===203){if(t.modifiers&&!(t.modifiers.length===1&&e.first(t.modifiers).kind===130)){return grammarErrorOnFirstToken(t,e.Diagnostics.Modifiers_cannot_appear_here)}else if(checkGrammarForInvalidQuestionMark(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional)){return true}else if(checkGrammarForInvalidExclamationToken(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)){return true}else if(t.body===undefined){return grammarErrorAtPos(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}}if(checkGrammarForGenerator(t)){return true}}if(e.isClassLike(t.parent)){if(F<2&&e.isPrivateIdentifier(t.name)){return grammarErrorOnNode(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}if(t.flags&8388608){return checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else if(t.kind===167&&!t.body){return checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}else if(t.parent.kind===256){return checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else if(t.parent.kind===180){return checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function checkGrammarBreakOrContinueStatement(t){var r=t;while(r){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r)){return grammarErrorOnNode(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary)}switch(r.kind){case 248:if(t.label&&r.label.escapedText===t.label.escapedText){var n=t.kind===243&&!e.isIterationStatement(r.statement,true);if(n){return grammarErrorOnNode(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}return false}break;case 247:if(t.kind===244&&!t.label){return false}break;default:if(e.isIterationStatement(r,false)&&!t.label){return false}break}r=r.parent}if(t.label){var i=t.kind===244?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return grammarErrorOnNode(t,i)}else{var i=t.kind===244?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return grammarErrorOnNode(t,i)}}function checkGrammarBindingElement(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r)){return grammarErrorOnNode(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}checkGrammarForDisallowedTrailingComma(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);if(t.propertyName){return grammarErrorOnNode(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}}if(t.dotDotDotToken&&t.initializer){return grammarErrorAtPos(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function isStringOrNumberLiteralExpression(t){return e.isStringOrNumericLiteralLike(t)||t.kind===217&&t.operator===40&&t.operand.kind===8}function isBigIntLiteralExpression(e){return e.kind===9||e.kind===217&&e.operator===40&&e.operand.kind===9}function isSimpleLiteralEnumReference(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&isStringOrNumberLiteralExpression(t.argumentExpression))&&e.isEntityNameExpression(t.expression)){return!!(checkExpressionCached(t).flags&1024)}}function checkAmbientInitializer(t){var r=t.initializer;if(r){var n=!(isStringOrNumberLiteralExpression(r)||isSimpleLiteralEnumReference(r)||r.kind===110||r.kind===95||isBigIntLiteralExpression(r));var i=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(i&&!t.type){if(n){return grammarErrorOnNode(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}else{return grammarErrorOnNode(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!i||n){return grammarErrorOnNode(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}}function checkGrammarVariableDeclaration(t){if(t.parent.parent.kind!==241&&t.parent.parent.kind!==242){if(t.flags&8388608){checkAmbientInitializer(t)}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent)){return grammarErrorOnNode(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer)}if(e.isVarConst(t)){return grammarErrorOnNode(t,e.Diagnostics.const_declarations_must_be_initialized)}}}if(t.exclamationToken&&(t.parent.parent.kind!==235||!t.type||t.initializer||t.flags&8388608)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:!t.type?e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;return grammarErrorOnNode(t.exclamationToken,r)}var n=e.getEmitModuleKind(O);if(n0}function grammarErrorOnFirstToken(t,r,n,i,a){var s=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(s)){var o=e.getSpanOfTokenAtPosition(s,t.pos);$r.add(e.createFileDiagnostic(s,o.start,o.length,r,n,i,a));return true}return false}function grammarErrorAtPos(t,r,n,i,a,s,o){var c=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(c)){$r.add(e.createFileDiagnostic(c,r,n,i,a,s,o));return true}return false}function grammarErrorOnNodeSkippedOn(t,r,n,i,a,s){var o=e.getSourceFileOfNode(r);if(!hasParseDiagnostics(o)){errorSkippedOn(t,r,n,i,a,s);return true}return false}function grammarErrorOnNode(t,r,n,i,a){var s=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(s)){$r.add(e.createDiagnosticForNode(t,r,n,i,a));return true}return false}function checkGrammarConstructorTypeParameters(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):undefined;var n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return grammarErrorAtPos(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function checkGrammarConstructorTypeAnnotation(t){var r=e.getEffectiveReturnTypeNode(t);if(r){return grammarErrorOnNode(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}}function checkGrammarProperty(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&t.name.text==="constructor"){return grammarErrorOnNode(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor)}if(checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)){return true}if(F<2&&e.isPrivateIdentifier(t.name)){return grammarErrorOnNode(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}}else if(t.parent.kind===256){if(checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)){return true}if(t.initializer){return grammarErrorOnNode(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}}else if(t.parent.kind===180){if(checkGrammarForInvalidDynamicName(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)){return true}if(t.initializer){return grammarErrorOnNode(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}}if(t.flags&8388608){checkAmbientInitializer(t)}if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||t.flags&8388608||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:!t.type?e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;return grammarErrorOnNode(t.exclamationToken,r)}}function checkGrammarTopLevelElementForRequiredDeclareModifier(t){if(t.kind===256||t.kind===257||t.kind===264||t.kind===263||t.kind===270||t.kind===269||t.kind===262||e.hasSyntacticModifier(t,2|1|512)){return false}return grammarErrorOnFirstToken(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function checkGrammarTopLevelElementsForRequiredDeclareModifier(t){for(var r=0,n=t.statements;r=1){r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0}else if(e.isChildOfNodeWithKind(t,194)){r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0}else if(e.isChildOfNodeWithKind(t,294)){r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0}if(r){var n=e.isPrefixUnaryExpression(t.parent)&&t.parent.operator===40;var i=(n?"-":"")+"0o"+t.text;return grammarErrorOnNode(n?t.parent:t,r,i)}}checkNumericLiteralValueSize(t);return false}function checkNumericLiteralValueSize(t){if(t.numericLiteralFlags&16||t.text.length<=15||t.text.indexOf(".")!==-1){return}var r=+e.getTextOfNode(t);if(r<=Math.pow(2,53)-1&&r+1>r){return}addErrorOrSuggestion(false,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function checkGrammarBigIntLiteral(t){var r=e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent);if(!r){if(F<7){if(grammarErrorOnNode(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)){return true}}}return false}function grammarErrorAfterFirstToken(t,r,n,i,a){var s=e.getSourceFileOfNode(t);if(!hasParseDiagnostics(s)){var o=e.getSpanOfTokenAtPosition(s,t.pos);$r.add(e.createFileDiagnostic(s,e.textSpanEnd(o),0,r,n,i,a));return true}return false}function getAmbientModules(){if(!kt){kt=[];$.forEach(function(e,r){if(t.test(r)){kt.push(e)}})}return kt}function checkGrammarImportClause(t){if(t.isTypeOnly&&t.name&&t.namedBindings){return grammarErrorOnNode(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both)}return false}function checkGrammarImportCallExpression(t){if(w===e.ModuleKind.ES2015){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd)}if(t.typeArguments){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments)}var r=t.arguments;if(r.length!==1){return grammarErrorOnNode(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument)}checkGrammarForDisallowedTrailingComma(r);if(e.isSpreadElement(r[0])){return grammarErrorOnNode(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}return false}function findMatchingTypeReferenceOrTypeAliasReference(t,r){var n=e.getObjectFlags(t);if(n&(4|16)&&r.flags&1048576){return e.find(r.types,function(r){if(r.flags&524288){var i=n&e.getObjectFlags(r);if(i&4){return t.target===r.target}if(i&16){return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}}return false})}}function findBestTypeForObjectLiteral(t,r){if(e.getObjectFlags(t)&128&&someType(r,isArrayLikeType)){return e.find(r.types,function(e){return!isArrayLikeType(e)})}}function findBestTypeForInvokable(t,r){var n=0;var i=getSignaturesOfType(t,n).length>0||(n=1,getSignaturesOfType(t,n).length>0);if(i){return e.find(r.types,function(e){return getSignaturesOfType(e,n).length>0})}}function findMostOverlappyType(t,r){var n;var i=0;for(var a=0,s=r.types;a=i){n=o;i=u}}else if(isUnitType(c)&&1>=i){n=o;i=1}}return n}function filterPrimitivesIfContainsNonPrimitive(e){if(maybeTypeOfKind(e,67108864)){var t=filterType(e,function(e){return!(e.flags&131068)});if(!(t.flags&131072)){return t}}return e}function findMatchingDiscriminantType(t,r,n,i){if(r.flags&1048576&&t.flags&(2097152|524288)){var a=getMatchingUnionConstituentForType(r,t);if(a){return a}var s=getPropertiesOfType(t);if(s){var o=findDiscriminantProperties(s,r);if(o){return discriminateTypeByDiscriminableItems(r,e.map(o,function(e){return[function(){return getTypeOfSymbol(e)},e.escapedName]}),n,undefined,i)}}}return undefined}}e.createTypeChecker=createTypeChecker;function isNotAccessor(t){return!e.isAccessor(t)}function isNotOverload(e){return e.kind!==254&&e.kind!==167||!!e.body}function isDeclarationNameOrImportPropertyName(t){switch(t.parent.kind){case 268:case 273:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}var N;(function(e){e.JSX="JSX";e.IntrinsicElements="IntrinsicElements";e.ElementClass="ElementClass";e.ElementAttributesPropertyNameContainer="ElementAttributesProperty";e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute";e.Element="Element";e.IntrinsicAttributes="IntrinsicAttributes";e.IntrinsicClassAttributes="IntrinsicClassAttributes";e.LibraryManagedAttributes="LibraryManagedAttributes"})(N||(N={}));function getIterationTypesKeyFromIterationTypeKind(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function signatureHasRestParameter(e){return!!(e.flags&1)}e.signatureHasRestParameter=signatureHasRestParameter;function signatureHasLiteralTypes(e){return!!(e.flags&2)}e.signatureHasLiteralTypes=signatureHasLiteralTypes})(u||(u={}));var u;(function(e){function visitNode(t,r,n,i){if(t===undefined||r===undefined){return t}var a=r(t);if(a===t){return t}var s;if(a===undefined){return undefined}else if(e.isArray(a)){s=(i||extractSingleNode)(a)}else{s=a}e.Debug.assertNode(s,n);return s}e.visitNode=visitNode;function visitNodes(t,r,n,i,a){if(t===undefined||r===undefined){return t}var s;var o=t.length;if(i===undefined||i<0){i=0}if(a===undefined||a>o-i){a=o-i}var c;var u=-1;var l=-1;if(i>0||a=2){a=addDefaultValueAssignmentsIfNeeded(a,n)}n.setLexicalEnvironmentFlags(1,false)}n.suspendLexicalEnvironment();return a}e.visitParameterList=visitParameterList;function addDefaultValueAssignmentsIfNeeded(t,r){var n;for(var i=0;i0&&o<=158||o===190){return t}var c=n.factory;switch(o){case 79:e.Debug.type(t);return c.updateIdentifier(t,i(t.typeArguments,r,e.isTypeNodeOrTypeParameterDeclaration));case 159:e.Debug.type(t);return c.updateQualifiedName(t,s(t.left,r,e.isEntityName),s(t.right,r,e.isIdentifier));case 160:e.Debug.type(t);return c.updateComputedPropertyName(t,s(t.expression,r,e.isExpression));case 161:e.Debug.type(t);return c.updateTypeParameterDeclaration(t,s(t.name,r,e.isIdentifier),s(t.constraint,r,e.isTypeNode),s(t.default,r,e.isTypeNode));case 162:e.Debug.type(t);return c.updateParameterDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.dotDotDotToken,a,e.isDotDotDotToken),s(t.name,r,e.isBindingName),s(t.questionToken,a,e.isQuestionToken),s(t.type,r,e.isTypeNode),s(t.initializer,r,e.isExpression));case 163:e.Debug.type(t);return c.updateDecorator(t,s(t.expression,r,e.isExpression));case 164:e.Debug.type(t);return c.updatePropertySignature(t,i(t.modifiers,r,e.isModifier),s(t.name,r,e.isPropertyName),s(t.questionToken,a,e.isToken),s(t.type,r,e.isTypeNode));case 165:e.Debug.type(t);return c.updatePropertyDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isPropertyName),s(t.questionToken||t.exclamationToken,a,e.isQuestionOrExclamationToken),s(t.type,r,e.isTypeNode),s(t.initializer,r,e.isExpression));case 166:e.Debug.type(t);return c.updateMethodSignature(t,i(t.modifiers,r,e.isModifier),s(t.name,r,e.isPropertyName),s(t.questionToken,a,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 167:e.Debug.type(t);return c.updateMethodDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.asteriskToken,a,e.isAsteriskToken),s(t.name,r,e.isPropertyName),s(t.questionToken,a,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),visitParameterList(t.parameters,r,n,i),s(t.type,r,e.isTypeNode),visitFunctionBody(t.body,r,n,s));case 169:e.Debug.type(t);return c.updateConstructorDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),visitParameterList(t.parameters,r,n,i),visitFunctionBody(t.body,r,n,s));case 170:e.Debug.type(t);return c.updateGetAccessorDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isPropertyName),visitParameterList(t.parameters,r,n,i),s(t.type,r,e.isTypeNode),visitFunctionBody(t.body,r,n,s));case 171:e.Debug.type(t);return c.updateSetAccessorDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isPropertyName),visitParameterList(t.parameters,r,n,i),visitFunctionBody(t.body,r,n,s));case 168:e.Debug.type(t);n.startLexicalEnvironment();n.suspendLexicalEnvironment();return c.updateClassStaticBlockDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),visitFunctionBody(t.body,r,n,s));case 172:e.Debug.type(t);return c.updateCallSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 173:e.Debug.type(t);return c.updateConstructSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 174:e.Debug.type(t);return c.updateIndexSignature(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 175:e.Debug.type(t);return c.updateTypePredicateNode(t,s(t.assertsModifier,r,e.isAssertsKeyword),s(t.parameterName,r,e.isIdentifierOrThisTypeNode),s(t.type,r,e.isTypeNode));case 176:e.Debug.type(t);return c.updateTypeReferenceNode(t,s(t.typeName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode));case 177:e.Debug.type(t);return c.updateFunctionTypeNode(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 178:e.Debug.type(t);return c.updateConstructorTypeNode(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),s(t.type,r,e.isTypeNode));case 179:e.Debug.type(t);return c.updateTypeQueryNode(t,s(t.exprName,r,e.isEntityName));case 180:e.Debug.type(t);return c.updateTypeLiteralNode(t,i(t.members,r,e.isTypeElement));case 181:e.Debug.type(t);return c.updateArrayTypeNode(t,s(t.elementType,r,e.isTypeNode));case 182:e.Debug.type(t);return c.updateTupleTypeNode(t,i(t.elements,r,e.isTypeNode));case 183:e.Debug.type(t);return c.updateOptionalTypeNode(t,s(t.type,r,e.isTypeNode));case 184:e.Debug.type(t);return c.updateRestTypeNode(t,s(t.type,r,e.isTypeNode));case 185:e.Debug.type(t);return c.updateUnionTypeNode(t,i(t.types,r,e.isTypeNode));case 186:e.Debug.type(t);return c.updateIntersectionTypeNode(t,i(t.types,r,e.isTypeNode));case 187:e.Debug.type(t);return c.updateConditionalTypeNode(t,s(t.checkType,r,e.isTypeNode),s(t.extendsType,r,e.isTypeNode),s(t.trueType,r,e.isTypeNode),s(t.falseType,r,e.isTypeNode));case 188:e.Debug.type(t);return c.updateInferTypeNode(t,s(t.typeParameter,r,e.isTypeParameterDeclaration));case 198:e.Debug.type(t);return c.updateImportTypeNode(t,s(t.argument,r,e.isTypeNode),s(t.qualifier,r,e.isEntityName),visitNodes(t.typeArguments,r,e.isTypeNode),t.isTypeOf);case 195:e.Debug.type(t);return c.updateNamedTupleMember(t,visitNode(t.dotDotDotToken,r,e.isDotDotDotToken),visitNode(t.name,r,e.isIdentifier),visitNode(t.questionToken,r,e.isQuestionToken),visitNode(t.type,r,e.isTypeNode));case 189:e.Debug.type(t);return c.updateParenthesizedType(t,s(t.type,r,e.isTypeNode));case 191:e.Debug.type(t);return c.updateTypeOperatorNode(t,s(t.type,r,e.isTypeNode));case 192:e.Debug.type(t);return c.updateIndexedAccessTypeNode(t,s(t.objectType,r,e.isTypeNode),s(t.indexType,r,e.isTypeNode));case 193:e.Debug.type(t);return c.updateMappedTypeNode(t,s(t.readonlyToken,a,e.isReadonlyKeywordOrPlusOrMinusToken),s(t.typeParameter,r,e.isTypeParameterDeclaration),s(t.nameType,r,e.isTypeNode),s(t.questionToken,a,e.isQuestionOrPlusOrMinusToken),s(t.type,r,e.isTypeNode));case 194:e.Debug.type(t);return c.updateLiteralTypeNode(t,s(t.literal,r,e.isExpression));case 196:e.Debug.type(t);return c.updateTemplateLiteralType(t,s(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateLiteralTypeSpan));case 197:e.Debug.type(t);return c.updateTemplateLiteralTypeSpan(t,s(t.type,r,e.isTypeNode),s(t.literal,r,e.isTemplateMiddleOrTemplateTail));case 199:e.Debug.type(t);return c.updateObjectBindingPattern(t,i(t.elements,r,e.isBindingElement));case 200:e.Debug.type(t);return c.updateArrayBindingPattern(t,i(t.elements,r,e.isArrayBindingElement));case 201:e.Debug.type(t);return c.updateBindingElement(t,s(t.dotDotDotToken,a,e.isDotDotDotToken),s(t.propertyName,r,e.isPropertyName),s(t.name,r,e.isBindingName),s(t.initializer,r,e.isExpression));case 202:e.Debug.type(t);return c.updateArrayLiteralExpression(t,i(t.elements,r,e.isExpression));case 203:e.Debug.type(t);return c.updateObjectLiteralExpression(t,i(t.properties,r,e.isObjectLiteralElementLike));case 204:if(t.flags&32){e.Debug.type(t);return c.updatePropertyAccessChain(t,s(t.expression,r,e.isExpression),s(t.questionDotToken,a,e.isQuestionDotToken),s(t.name,r,e.isMemberName))}e.Debug.type(t);return c.updatePropertyAccessExpression(t,s(t.expression,r,e.isExpression),s(t.name,r,e.isMemberName));case 205:if(t.flags&32){e.Debug.type(t);return c.updateElementAccessChain(t,s(t.expression,r,e.isExpression),s(t.questionDotToken,a,e.isQuestionDotToken),s(t.argumentExpression,r,e.isExpression))}e.Debug.type(t);return c.updateElementAccessExpression(t,s(t.expression,r,e.isExpression),s(t.argumentExpression,r,e.isExpression));case 206:if(t.flags&32){e.Debug.type(t);return c.updateCallChain(t,s(t.expression,r,e.isExpression),s(t.questionDotToken,a,e.isQuestionDotToken),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))}e.Debug.type(t);return c.updateCallExpression(t,s(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression));case 207:e.Debug.type(t);return c.updateNewExpression(t,s(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression));case 208:e.Debug.type(t);return c.updateTaggedTemplateExpression(t,s(t.tag,r,e.isExpression),visitNodes(t.typeArguments,r,e.isTypeNode),s(t.template,r,e.isTemplateLiteral));case 209:e.Debug.type(t);return c.updateTypeAssertion(t,s(t.type,r,e.isTypeNode),s(t.expression,r,e.isExpression));case 210:e.Debug.type(t);return c.updateParenthesizedExpression(t,s(t.expression,r,e.isExpression));case 211:e.Debug.type(t);return c.updateFunctionExpression(t,i(t.modifiers,r,e.isModifier),s(t.asteriskToken,a,e.isAsteriskToken),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),visitParameterList(t.parameters,r,n,i),s(t.type,r,e.isTypeNode),visitFunctionBody(t.body,r,n,s));case 212:e.Debug.type(t);return c.updateArrowFunction(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),visitParameterList(t.parameters,r,n,i),s(t.type,r,e.isTypeNode),s(t.equalsGreaterThanToken,a,e.isEqualsGreaterThanToken),visitFunctionBody(t.body,r,n,s));case 213:e.Debug.type(t);return c.updateDeleteExpression(t,s(t.expression,r,e.isExpression));case 214:e.Debug.type(t);return c.updateTypeOfExpression(t,s(t.expression,r,e.isExpression));case 215:e.Debug.type(t);return c.updateVoidExpression(t,s(t.expression,r,e.isExpression));case 216:e.Debug.type(t);return c.updateAwaitExpression(t,s(t.expression,r,e.isExpression));case 217:e.Debug.type(t);return c.updatePrefixUnaryExpression(t,s(t.operand,r,e.isExpression));case 218:e.Debug.type(t);return c.updatePostfixUnaryExpression(t,s(t.operand,r,e.isExpression));case 219:e.Debug.type(t);return c.updateBinaryExpression(t,s(t.left,r,e.isExpression),s(t.operatorToken,a,e.isBinaryOperatorToken),s(t.right,r,e.isExpression));case 220:e.Debug.type(t);return c.updateConditionalExpression(t,s(t.condition,r,e.isExpression),s(t.questionToken,a,e.isQuestionToken),s(t.whenTrue,r,e.isExpression),s(t.colonToken,a,e.isColonToken),s(t.whenFalse,r,e.isExpression));case 221:e.Debug.type(t);return c.updateTemplateExpression(t,s(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateSpan));case 222:e.Debug.type(t);return c.updateYieldExpression(t,s(t.asteriskToken,a,e.isAsteriskToken),s(t.expression,r,e.isExpression));case 223:e.Debug.type(t);return c.updateSpreadElement(t,s(t.expression,r,e.isExpression));case 224:e.Debug.type(t);return c.updateClassExpression(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement));case 226:e.Debug.type(t);return c.updateExpressionWithTypeArguments(t,s(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode));case 227:e.Debug.type(t);return c.updateAsExpression(t,s(t.expression,r,e.isExpression),s(t.type,r,e.isTypeNode));case 228:if(t.flags&32){e.Debug.type(t);return c.updateNonNullChain(t,s(t.expression,r,e.isExpression))}e.Debug.type(t);return c.updateNonNullExpression(t,s(t.expression,r,e.isExpression));case 229:e.Debug.type(t);return c.updateMetaProperty(t,s(t.name,r,e.isIdentifier));case 231:e.Debug.type(t);return c.updateTemplateSpan(t,s(t.expression,r,e.isExpression),s(t.literal,r,e.isTemplateMiddleOrTemplateTail));case 233:e.Debug.type(t);return c.updateBlock(t,i(t.statements,r,e.isStatement));case 235:e.Debug.type(t);return c.updateVariableStatement(t,i(t.modifiers,r,e.isModifier),s(t.declarationList,r,e.isVariableDeclarationList));case 236:e.Debug.type(t);return c.updateExpressionStatement(t,s(t.expression,r,e.isExpression));case 237:e.Debug.type(t);return c.updateIfStatement(t,s(t.expression,r,e.isExpression),s(t.thenStatement,r,e.isStatement,c.liftToBlock),s(t.elseStatement,r,e.isStatement,c.liftToBlock));case 238:e.Debug.type(t);return c.updateDoStatement(t,visitIterationBody(t.statement,r,n),s(t.expression,r,e.isExpression));case 239:e.Debug.type(t);return c.updateWhileStatement(t,s(t.expression,r,e.isExpression),visitIterationBody(t.statement,r,n));case 240:e.Debug.type(t);return c.updateForStatement(t,s(t.initializer,r,e.isForInitializer),s(t.condition,r,e.isExpression),s(t.incrementor,r,e.isExpression),visitIterationBody(t.statement,r,n));case 241:e.Debug.type(t);return c.updateForInStatement(t,s(t.initializer,r,e.isForInitializer),s(t.expression,r,e.isExpression),visitIterationBody(t.statement,r,n));case 242:e.Debug.type(t);return c.updateForOfStatement(t,s(t.awaitModifier,a,e.isAwaitKeyword),s(t.initializer,r,e.isForInitializer),s(t.expression,r,e.isExpression),visitIterationBody(t.statement,r,n));case 243:e.Debug.type(t);return c.updateContinueStatement(t,s(t.label,r,e.isIdentifier));case 244:e.Debug.type(t);return c.updateBreakStatement(t,s(t.label,r,e.isIdentifier));case 245:e.Debug.type(t);return c.updateReturnStatement(t,s(t.expression,r,e.isExpression));case 246:e.Debug.type(t);return c.updateWithStatement(t,s(t.expression,r,e.isExpression),s(t.statement,r,e.isStatement,c.liftToBlock));case 247:e.Debug.type(t);return c.updateSwitchStatement(t,s(t.expression,r,e.isExpression),s(t.caseBlock,r,e.isCaseBlock));case 248:e.Debug.type(t);return c.updateLabeledStatement(t,s(t.label,r,e.isIdentifier),s(t.statement,r,e.isStatement,c.liftToBlock));case 249:e.Debug.type(t);return c.updateThrowStatement(t,s(t.expression,r,e.isExpression));case 250:e.Debug.type(t);return c.updateTryStatement(t,s(t.tryBlock,r,e.isBlock),s(t.catchClause,r,e.isCatchClause),s(t.finallyBlock,r,e.isBlock));case 252:e.Debug.type(t);return c.updateVariableDeclaration(t,s(t.name,r,e.isBindingName),s(t.exclamationToken,a,e.isExclamationToken),s(t.type,r,e.isTypeNode),s(t.initializer,r,e.isExpression));case 253:e.Debug.type(t);return c.updateVariableDeclarationList(t,i(t.declarations,r,e.isVariableDeclaration));case 254:e.Debug.type(t);return c.updateFunctionDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.asteriskToken,a,e.isAsteriskToken),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),visitParameterList(t.parameters,r,n,i),s(t.type,r,e.isTypeNode),visitFunctionBody(t.body,r,n,s));case 255:e.Debug.type(t);return c.updateClassDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement));case 256:e.Debug.type(t);return c.updateInterfaceDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isTypeElement));case 257:e.Debug.type(t);return c.updateTypeAliasDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),s(t.type,r,e.isTypeNode));case 258:e.Debug.type(t);return c.updateEnumDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isIdentifier),i(t.members,r,e.isEnumMember));case 259:e.Debug.type(t);return c.updateModuleDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.name,r,e.isModuleName),s(t.body,r,e.isModuleBody));case 260:e.Debug.type(t);return c.updateModuleBlock(t,i(t.statements,r,e.isStatement));case 261:e.Debug.type(t);return c.updateCaseBlock(t,i(t.clauses,r,e.isCaseOrDefaultClause));case 262:e.Debug.type(t);return c.updateNamespaceExportDeclaration(t,s(t.name,r,e.isIdentifier));case 263:e.Debug.type(t);return c.updateImportEqualsDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),t.isTypeOnly,s(t.name,r,e.isIdentifier),s(t.moduleReference,r,e.isModuleReference));case 264:e.Debug.type(t);return c.updateImportDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.importClause,r,e.isImportClause),s(t.moduleSpecifier,r,e.isExpression));case 265:e.Debug.type(t);return c.updateImportClause(t,t.isTypeOnly,s(t.name,r,e.isIdentifier),s(t.namedBindings,r,e.isNamedImportBindings));case 266:e.Debug.type(t);return c.updateNamespaceImport(t,s(t.name,r,e.isIdentifier));case 272:e.Debug.type(t);return c.updateNamespaceExport(t,s(t.name,r,e.isIdentifier));case 267:e.Debug.type(t);return c.updateNamedImports(t,i(t.elements,r,e.isImportSpecifier));case 268:e.Debug.type(t);return c.updateImportSpecifier(t,s(t.propertyName,r,e.isIdentifier),s(t.name,r,e.isIdentifier));case 269:e.Debug.type(t);return c.updateExportAssignment(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),s(t.expression,r,e.isExpression));case 270:e.Debug.type(t);return c.updateExportDeclaration(t,i(t.decorators,r,e.isDecorator),i(t.modifiers,r,e.isModifier),t.isTypeOnly,s(t.exportClause,r,e.isNamedExportBindings),s(t.moduleSpecifier,r,e.isExpression));case 271:e.Debug.type(t);return c.updateNamedExports(t,i(t.elements,r,e.isExportSpecifier));case 273:e.Debug.type(t);return c.updateExportSpecifier(t,s(t.propertyName,r,e.isIdentifier),s(t.name,r,e.isIdentifier));case 275:e.Debug.type(t);return c.updateExternalModuleReference(t,s(t.expression,r,e.isExpression));case 276:e.Debug.type(t);return c.updateJsxElement(t,s(t.openingElement,r,e.isJsxOpeningElement),i(t.children,r,e.isJsxChild),s(t.closingElement,r,e.isJsxClosingElement));case 277:e.Debug.type(t);return c.updateJsxSelfClosingElement(t,s(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),s(t.attributes,r,e.isJsxAttributes));case 278:e.Debug.type(t);return c.updateJsxOpeningElement(t,s(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),s(t.attributes,r,e.isJsxAttributes));case 279:e.Debug.type(t);return c.updateJsxClosingElement(t,s(t.tagName,r,e.isJsxTagNameExpression));case 280:e.Debug.type(t);return c.updateJsxFragment(t,s(t.openingFragment,r,e.isJsxOpeningFragment),i(t.children,r,e.isJsxChild),s(t.closingFragment,r,e.isJsxClosingFragment));case 283:e.Debug.type(t);return c.updateJsxAttribute(t,s(t.name,r,e.isIdentifier),s(t.initializer,r,e.isStringLiteralOrJsxExpression));case 284:e.Debug.type(t);return c.updateJsxAttributes(t,i(t.properties,r,e.isJsxAttributeLike));case 285:e.Debug.type(t);return c.updateJsxSpreadAttribute(t,s(t.expression,r,e.isExpression));case 286:e.Debug.type(t);return c.updateJsxExpression(t,s(t.expression,r,e.isExpression));case 287:e.Debug.type(t);return c.updateCaseClause(t,s(t.expression,r,e.isExpression),i(t.statements,r,e.isStatement));case 288:e.Debug.type(t);return c.updateDefaultClause(t,i(t.statements,r,e.isStatement));case 289:e.Debug.type(t);return c.updateHeritageClause(t,i(t.types,r,e.isExpressionWithTypeArguments));case 290:e.Debug.type(t);return c.updateCatchClause(t,s(t.variableDeclaration,r,e.isVariableDeclaration),s(t.block,r,e.isBlock));case 291:e.Debug.type(t);return c.updatePropertyAssignment(t,s(t.name,r,e.isPropertyName),s(t.initializer,r,e.isExpression));case 292:e.Debug.type(t);return c.updateShorthandPropertyAssignment(t,s(t.name,r,e.isIdentifier),s(t.objectAssignmentInitializer,r,e.isExpression));case 293:e.Debug.type(t);return c.updateSpreadAssignment(t,s(t.expression,r,e.isExpression));case 294:e.Debug.type(t);return c.updateEnumMember(t,s(t.name,r,e.isPropertyName),s(t.initializer,r,e.isExpression));case 300:e.Debug.type(t);return c.updateSourceFile(t,visitLexicalEnvironment(t.statements,r,n));case 345:e.Debug.type(t);return c.updatePartiallyEmittedExpression(t,s(t.expression,r,e.isExpression));case 346:e.Debug.type(t);return c.updateCommaListExpression(t,i(t.elements,r,e.isExpression));default:return t}}e.visitEachChild=visitEachChild;function extractSingleNode(t){e.Debug.assert(t.length<=1,"Too many nodes written to output.");return e.singleOrUndefined(t)}})(u||(u={}));var u;(function(e){function createSourceMapGenerator(t,r,n,i,a){var s=a.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,o=s.enter,c=s.exit;var u=[];var l=[];var p=new e.Map;var d;var f=[];var m;var g=[];var _="";var h=0;var y=0;var v=0;var T=0;var S=0;var b=0;var E=false;var x=0;var D=0;var C=0;var A=0;var k=0;var P=0;var N=false;var O=false;var F=false;return{getSources:function(){return u},addSource:addSource,setSourceContent:setSourceContent,addName:addName,addMapping:addMapping,appendSourceMap:appendSourceMap,toJSON:toJSON,toString:function(){return JSON.stringify(toJSON())}};function addSource(r){o();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,true);var a=p.get(n);if(a===undefined){a=l.length;l.push(n);u.push(r);p.set(n,a)}c();return a}function setSourceContent(e,t){o();if(t!==null){if(!d)d=[];while(d.lengtht||A===t&&k>r)}function addMapping(t,r,n,i,a,s){e.Debug.assert(t>=x,"generatedLine cannot backtrack");e.Debug.assert(r>=0,"generatedCharacter cannot be negative");e.Debug.assert(n===undefined||n>=0,"sourceIndex cannot be negative");e.Debug.assert(i===undefined||i>=0,"sourceLine cannot be negative");e.Debug.assert(a===undefined||a>=0,"sourceCharacter cannot be negative");o();if(isNewGeneratedPosition(t,r)||isBacktrackingSourcePosition(n,i,a)){commitPendingMapping();x=t;D=r;O=false;F=false;N=true}if(n!==undefined&&i!==undefined&&a!==undefined){C=n;A=i;k=a;O=true;if(s!==undefined){P=s;F=true}}c()}function appendSourceMap(t,r,n,i,a,s){e.Debug.assert(t>=x,"generatedLine cannot backtrack");e.Debug.assert(r>=0,"generatedCharacter cannot be negative");o();var u=[];var l;var p=decodeMappings(n.mappings);for(var d=p.next();!d.done;d=p.next()){var f=d.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character)){break}if(a&&(f.generatedLine=1024){flushMappingBuffer()}}function commitPendingMapping(){if(!N||!shouldCommitMapping()){return}o();if(h0){_+=String.fromCharCode.apply(undefined,g);g.length=0}}function toJSON(){commitPendingMapping();flushMappingBuffer();return{version:3,file:r,sourceRoot:n,sources:l,names:f,mappings:_,sourcesContent:d}}function appendBase64VLQ(e){if(e<0){e=(-e<<1)+1}else{e=e<<1}do{var t=e&31;e=e>>5;if(e>0){t=t|32}appendMappingCharCode(base64FormatEncode(t))}while(e>0)}}e.createSourceMapGenerator=createSourceMapGenerator;var t=/^\/\/[@#] source[M]appingURL=(.+)$/;var r=/^\s*(\/\/[@#] .*)?$/;function getLineInfo(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}}e.getLineInfo=getLineInfo;function tryGetSourceMappingURL(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i);var s=t.exec(a);if(s){return e.trimStringEnd(s[1])}else if(!a.match(r)){break}}}e.tryGetSourceMappingURL=tryGetSourceMappingURL;function isStringOrNull(e){return typeof e==="string"||e===null}function isRawSourceMap(t){return t!==null&&typeof t==="object"&&t.version===3&&typeof t.file==="string"&&typeof t.mappings==="string"&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(t.sourceRoot===undefined||t.sourceRoot===null||typeof t.sourceRoot==="string")&&(t.sourcesContent===undefined||t.sourcesContent===null||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,isStringOrNull))&&(t.names===undefined||t.names===null||e.isArray(t.names)&&e.every(t.names,e.isString))}e.isRawSourceMap=isRawSourceMap;function tryParseRawSourceMap(e){try{var t=JSON.parse(e);if(isRawSourceMap(t)){return t}}catch(e){}return undefined}e.tryParseRawSourceMap=tryParseRawSourceMap;function decodeMappings(e){var t=false;var r=0;var n=0;var i=0;var a=0;var s=0;var o=0;var c=0;var u;return{get pos(){return r},get error(){return u},get state(){return captureMapping(true,true)},next:function(){while(!t&&r=e.length)return setError("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var a=base64FormatDecode(e.charCodeAt(r));if(a===-1)return setError("Invalid character in VLQ"),-1;t=(a&32)!==0;i=i|(a&31)<>1}else{i=i>>1;i=-i}return i}}e.decodeMappings=decodeMappings;function sameMapping(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}e.sameMapping=sameMapping;function isSourceMapping(e){return e.sourceIndex!==undefined&&e.sourceLine!==undefined&&e.sourceCharacter!==undefined}e.isSourceMapping=isSourceMapping;function base64FormatEncode(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:e.Debug.fail(t+": not a base64 value")}function base64FormatDecode(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function isSourceMappedPosition(e){return e.sourceIndex!==undefined&&e.sourcePosition!==undefined}function sameMappedPosition(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function compareSourcePositions(t,r){e.Debug.assert(t.sourceIndex===r.sourceIndex);return e.compareValues(t.sourcePosition,r.sourcePosition)}function compareGeneratedPositions(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function getSourcePositionOfMapping(e){return e.sourcePosition}function getGeneratedPositionOfMapping(e){return e.generatedPosition}function createDocumentPositionMapper(t,r,n){var i=e.getDirectoryPath(n);var a=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,i):i;var s=e.getNormalizedAbsolutePath(r.file,i);var o=t.getSourceFileLike(s);var c=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,a)});var u=new e.Map(c.map(function(e,r){return[t.getCanonicalFileName(e),r]}));var l;var p;var d;return{getSourcePosition:getSourcePosition,getGeneratedPosition:getGeneratedPosition};function processMapping(n){var i=o!==undefined?e.getPositionOfLineAndCharacter(o,n.generatedLine,n.generatedCharacter,true):-1;var a;var s;if(isSourceMapping(n)){var u=t.getSourceFileLike(c[n.sourceIndex]);a=r.sources[n.sourceIndex];s=u!==undefined?e.getPositionOfLineAndCharacter(u,n.sourceLine,n.sourceCharacter,true):-1}return{generatedPosition:i,source:a,sourceIndex:n.sourceIndex,sourcePosition:s,nameIndex:n.nameIndex}}function getDecodedMappings(){if(l===undefined){var n=decodeMappings(r.mappings);var i=e.arrayFrom(n,processMapping);if(n.error!==undefined){if(t.log){t.log("Encountered error while decoding sourcemap: "+n.error)}l=e.emptyArray}else{l=i}}return l}function getSourceMappings(t){if(d===undefined){var r=[];for(var n=0,i=getDecodedMappings();n0&&n!==r.elements.length||!!(r.elements.length-n)&&e.isDefaultImport(t)}e.getImportNeedsImportStarHelper=getImportNeedsImportStarHelper;function getImportNeedsImportDefaultHelper(t){return!getImportNeedsImportStarHelper(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&containsDefaultReference(t.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=getImportNeedsImportDefaultHelper;function collectExternalModuleInfo(t,r,n,i){var a=[];var s=e.createMultiMap();var o=[];var c=new e.Map;var u;var l=false;var p;var d=false;var f=false;var m=false;for(var g=0,_=r.statements;g<_.length;g++){var h=_[g];switch(h.kind){case 264:a.push(h);if(!f&&getImportNeedsImportStarHelper(h)){f=true}if(!m&&getImportNeedsImportDefaultHelper(h)){m=true}break;case 263:if(h.moduleReference.kind===275){a.push(h)}break;case 270:if(h.moduleSpecifier){if(!h.exportClause){a.push(h);d=true}else{a.push(h);if(e.isNamedExports(h.exportClause)){addExportedNamesForExportDeclaration(h)}else{var y=h.exportClause.name;if(!c.get(e.idText(y))){multiMapSparseArrayAdd(o,getOriginalNodeId(h),y);c.set(e.idText(y),true);u=e.append(u,y)}f=true}}}else{addExportedNamesForExportDeclaration(h)}break;case 269:if(h.isExportEquals&&!p){p=h}break;case 235:if(e.hasSyntacticModifier(h,1)){for(var v=0,T=h.declarationList.declarations;v=64&&e<=78}e.isCompoundAssignment=isCompoundAssignment;function getNonAssignmentOperatorForCompoundAssignment(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=getNonAssignmentOperatorForCompoundAssignment;function addPrologueDirectivesAndInitialSuperCall(t,r,n,i){if(r.body){var a=r.body.statements;var s=t.copyPrologue(a,n,false,i);if(s===a.length){return s}var o=e.findIndex(a,function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)},s);if(o>-1){for(var c=s;c<=o;c++){n.push(e.visitNode(a[c],i,e.isStatement))}return o+1}return s}return 0}e.addPrologueDirectivesAndInitialSuperCall=addPrologueDirectivesAndInitialSuperCall;function getProperties(t,r,n){return e.filter(t.members,function(e){return isInitializedOrStaticProperty(e,r,n)})}e.getProperties=getProperties;function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(t){return isStaticPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)}function getStaticPropertiesAndClassStaticBlock(t){return e.filter(t.members,isStaticPropertyDeclarationOrClassStaticBlockDeclaration)}e.getStaticPropertiesAndClassStaticBlock=getStaticPropertiesAndClassStaticBlock;function isInitializedOrStaticProperty(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}function isStaticPropertyDeclaration(t){return e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)}function isInitializedProperty(e){return e.kind===165&&e.initializer!==undefined}e.isInitializedProperty=isInitializedProperty;function isNonStaticMethodOrAccessorWithPrivateName(t){return!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)}e.isNonStaticMethodOrAccessorWithPrivateName=isNonStaticMethodOrAccessorWithPrivateName})(u||(u={}));var u;(function(e){var t;(function(e){e[e["All"]=0]="All";e[e["ObjectRest"]=1]="ObjectRest"})(t=e.FlattenLevel||(e.FlattenLevel={}));function flattenDestructuringAssignment(t,r,n,i,a,s){var o=t;var c;if(e.isDestructuringAssignment(t)){c=t.right;while(e.isEmptyArrayLiteral(t.left)||e.isEmptyObjectLiteral(t.left)){if(e.isDestructuringAssignment(c)){o=t=c;c=t.right}else{return e.visitNode(c,r,e.isExpression)}}}var u;var l={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:true,emitExpression:emitExpression,emitBindingOrAssignment:emitBindingOrAssignment,createArrayBindingOrAssignmentPattern:function(e){return makeArrayAssignmentPattern(n.factory,e)},createObjectBindingOrAssignmentPattern:function(e){return makeObjectAssignmentPattern(n.factory,e)},createArrayBindingOrAssignmentElement:makeAssignmentElement,visitor:r};if(c){c=e.visitNode(c,r,e.isExpression);if(e.isIdentifier(c)&&bindingOrAssignmentElementAssignsToName(t,c.escapedText)||bindingOrAssignmentElementContainsNonLiteralComputedName(t)){c=ensureIdentifier(l,c,false,o)}else if(a){c=ensureIdentifier(l,c,true,o)}else if(e.nodeIsSynthesized(t)){o=c}}flattenBindingOrAssignmentElement(l,t,c,o,e.isDestructuringAssignment(t));if(c&&a){if(!e.some(u)){return c}u.push(c)}return n.factory.inlineExpressions(u)||n.factory.createOmittedExpression();function emitExpression(t){u=e.append(u,t)}function emitBindingOrAssignment(t,i,a,o){e.Debug.assertNode(t,s?e.isIdentifier:e.isExpression);var c=s?s(t,i,a):e.setTextRange(n.factory.createAssignment(e.visitNode(t,r,e.isExpression),i),a);c.original=o;emitExpression(c)}}e.flattenDestructuringAssignment=flattenDestructuringAssignment;function bindingOrAssignmentElementAssignsToName(t,r){var n=e.getTargetOfBindingOrAssignmentElement(t);if(e.isBindingOrAssignmentPattern(n)){return bindingOrAssignmentPatternAssignsToName(n,r)}else if(e.isIdentifier(n)){return n.escapedText===r}return false}function bindingOrAssignmentPatternAssignsToName(t,r){var n=e.getElementsOfBindingOrAssignmentPattern(t);for(var i=0,a=n;i=1&&!(d.transformFlags&(16384|32768))&&!(e.getTargetOfBindingOrAssignmentElement(d).transformFlags&(16384|32768))&&!e.isComputedPropertyName(f)){u=e.append(u,e.visitNode(d,t.visitor))}else{if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n);u=undefined}var m=createDestructuringPropertyAccess(t,i,f);if(e.isComputedPropertyName(f)){l=e.append(l,m.argumentExpression)}flattenBindingOrAssignmentElement(t,d,m,d)}}else if(p===o-1){if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n);u=undefined}var m=t.context.getEmitHelperFactory().createRestHelper(i,s,l,n);flattenBindingOrAssignmentElement(t,d,m,d)}}if(u){t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),i,a,n)}}function flattenArrayBindingOrAssignmentPattern(t,r,n,i,a){var s=e.getElementsOfBindingOrAssignmentPattern(n);var o=s.length;if(t.level<1&&t.downlevelIteration){i=ensureIdentifier(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(i,o>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[o-1])?undefined:o),a),false,a)}else if(o!==1&&(t.level<1||o===0)||e.every(s,e.isOmittedExpression)){var c=!e.isDeclarationBindingElement(r)||o!==0;i=ensureIdentifier(t,i,c,a)}var u;var l;for(var p=0;p=1){if(d.transformFlags&32768||t.hasTransformedPriorElement&&!isSimpleBindingOrAssignmentElement(d)){t.hasTransformedPriorElement=true;var f=t.context.factory.createTempVariable(undefined);if(t.hoistTempVariables){t.context.hoistVariableDeclaration(f)}l=e.append(l,[f,d]);u=e.append(u,t.createArrayBindingOrAssignmentElement(f))}else{u=e.append(u,d)}}else if(e.isOmittedExpression(d)){continue}else if(!e.getRestIndicatorOfBindingOrAssignmentElement(d)){var m=t.context.factory.createElementAccessExpression(i,p);flattenBindingOrAssignmentElement(t,d,m,d)}else if(p===o-1){var m=t.context.factory.createArraySliceCall(i,p);flattenBindingOrAssignmentElement(t,d,m,d)}}if(u){t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),i,a,n)}if(l){for(var g=0,_=l;g<_.length;g++){var h=_[g],y=h[0],d=h[1];flattenBindingOrAssignmentElement(t,d,y,d)}}}function isSimpleBindingOrAssignmentElement(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return true;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return false;var i=e.getInitializerOfBindingOrAssignmentElement(t);if(i&&!e.isSimpleInlineableExpression(i))return false;if(e.isBindingOrAssignmentPattern(r))return e.every(e.getElementsOfBindingOrAssignmentPattern(r),isSimpleBindingOrAssignmentElement);return e.isIdentifier(r)}function createDefaultValueCheck(e,t,r,n){t=ensureIdentifier(e,t,true,n);return e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),undefined,r,undefined,t)}function createDestructuringPropertyAccess(t,r,n){if(e.isComputedPropertyName(n)){var i=ensureIdentifier(t,e.visitNode(n.expression,t.visitor),false,n);return t.context.factory.createElementAccessExpression(r,i)}else if(e.isStringOrNumericLiteralLike(n)){var i=e.factory.cloneNode(n);return t.context.factory.createElementAccessExpression(r,i)}else{var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}}function ensureIdentifier(t,r,n,i){if(e.isIdentifier(r)&&n){return r}else{var a=t.context.factory.createTempVariable(undefined);if(t.hoistTempVariables){t.context.hoistVariableDeclaration(a);t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))}else{t.emitBindingOrAssignment(a,r,i,undefined)}return a}}function makeArrayBindingPattern(t,r){e.Debug.assertEachNode(r,e.isArrayBindingElement);return t.createArrayBindingPattern(r)}function makeArrayAssignmentPattern(t,r){return t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement))}function makeObjectBindingPattern(t,r){e.Debug.assertEachNode(r,e.isBindingElement);return t.createObjectBindingPattern(r)}function makeObjectAssignmentPattern(t,r){return t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement))}function makeBindingElement(e,t){return e.createBindingElement(undefined,undefined,t)}function makeAssignmentElement(e){return e}})(u||(u={}));var u;(function(e){var t;(function(e){e[e["LiftRestriction"]=0]="LiftRestriction";e[e["All"]=1]="All"})(t=e.ProcessLevel||(e.ProcessLevel={}));function processTaggedTemplateExpression(r,n,i,a,s,o){var c=e.visitNode(n.tag,i,e.isExpression);var u=[undefined];var l=[];var p=[];var d=n.template;if(o===t.LiftRestriction&&!e.hasInvalidEscape(d)){return e.visitEachChild(n,i,r)}if(e.isNoSubstitutionTemplateLiteral(d)){l.push(createTemplateCooked(d));p.push(getRawLiteral(d,a))}else{l.push(createTemplateCooked(d.head));p.push(getRawLiteral(d.head,a));for(var f=0,m=d.templateSpans;f=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return n.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,sourceElementVisitor,r,0,i))}function getClassFacts(t,r){var n=0;if(e.some(r))n|=1;var i=e.getEffectiveBaseTypeNode(t);if(i&&e.skipOuterExpressions(i.expression).kind!==104)n|=64;if(e.classOrConstructorParameterIsDecorated(t))n|=2;if(e.childIsDecorated(t))n|=4;if(isExportOfNamespace(t))n|=8;else if(isDefaultExternalModuleExport(t))n|=32;else if(isNamedExternalModuleExport(t))n|=16;if(d<=1&&n&7)n|=128;return n}function hasTypeScriptClassSyntax(e){return!!(e.transformFlags&4096)}function isClassLikeDeclarationWithTypeScriptSyntax(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,hasTypeScriptClassSyntax)||e.some(t.members,hasTypeScriptClassSyntax)}function visitClassDeclaration(t){if(!isClassLikeDeclarationWithTypeScriptSyntax(t)&&!(h&&e.hasSyntacticModifier(t,1))){return e.visitEachChild(t,visitor,r)}var i=e.getProperties(t,true,true);var a=getClassFacts(t,i);if(a&128){r.startLexicalEnvironment()}var s=t.name||(a&5?n.getGeneratedNameForNode(t):undefined);var o=a&2?createClassDeclarationHeadWithDecorators(t,s):createClassDeclarationHeadWithoutDecorators(t,s,a);var c=[o];addClassElementDecorationStatements(c,t,false);addClassElementDecorationStatements(c,t,true);addConstructorDecorationStatement(c,t);if(a&128){var u=e.createTokenRange(e.skipTrivia(_.text,t.members.end),19);var l=n.getInternalName(t);var p=n.createPartiallyEmittedExpression(l);e.setTextRangeEnd(p,u.end);e.setEmitFlags(p,1536);var d=n.createReturnStatement(p);e.setTextRangePos(d,u.pos);e.setEmitFlags(d,1536|384);c.push(d);e.insertStatementsAfterStandardPrologue(c,r.endLexicalEnvironment());var f=n.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(f,33554432);var m=n.createVariableStatement(undefined,n.createVariableDeclarationList([n.createVariableDeclaration(n.getLocalName(t,false,false),undefined,undefined,f)]));e.setOriginalNode(m,t);e.setCommentRange(m,t);e.setSourceMapRange(m,e.moveRangePastDecorators(t));e.startOnNewLine(m);c=[m]}if(a&8){addExportMemberAssignment(c,t)}else if(a&128||a&2){if(a&32){c.push(n.createExportDefault(n.getLocalName(t,false,true)))}else if(a&16){c.push(n.createExternalModuleExport(n.getLocalName(t,false,true)))}}if(c.length>1){c.push(n.createEndOfDeclarationMarker(t));e.setEmitFlags(o,e.getEmitFlags(o)|4194304)}return e.singleOrMany(c)}function createClassDeclarationHeadWithoutDecorators(t,r,i){var a=!(i&128)?e.visitNodes(t.modifiers,modifierVisitor,e.isModifier):undefined;var s=n.createClassDeclaration(undefined,a,r,undefined,e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause),transformClassMembers(t));var o=e.getEmitFlags(t);if(i&1){o|=32}e.setTextRange(s,t);e.setOriginalNode(s,t);e.setEmitFlags(s,o);return s}function createClassDeclarationHeadWithDecorators(t,r){var i=e.moveRangePastDecorators(t);var a=getClassAliasIfNeeded(t);var s=d<=2?n.getInternalName(t,false,true):n.getLocalName(t,false,true);var o=e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause);var c=transformClassMembers(t);var u=n.createClassExpression(undefined,undefined,r,undefined,o,c);e.setOriginalNode(u,t);e.setTextRange(u,i);var l=n.createVariableStatement(undefined,n.createVariableDeclarationList([n.createVariableDeclaration(s,undefined,undefined,a?n.createAssignment(a,u):u)],1));e.setOriginalNode(l,t);e.setTextRange(l,i);e.setCommentRange(l,t);return l}function visitClassExpression(t){if(!isClassLikeDeclarationWithTypeScriptSyntax(t)){return e.visitEachChild(t,visitor,r)}var i=n.createClassExpression(undefined,undefined,t.name,undefined,e.visitNodes(t.heritageClauses,visitor,e.isHeritageClause),transformClassMembers(t));e.setOriginalNode(i,t);e.setTextRange(i,t);return i}function transformClassMembers(t){var r=[];var i=e.getFirstConstructorWithBody(t);var a=i&&e.filter(i.parameters,function(t){return e.isParameterPropertyDeclaration(t,i)});if(a){for(var s=0,o=a;s0&&e.parameterIsThisKeyword(n[0]);var a=i?1:0;var s=i?n.length-1:n.length;for(var o=0;o0?r.kind===165?n.createVoidZero():n.createNull():undefined;var l=i().createDecorateHelper(s,o,c,u);e.setTextRange(l,e.moveRangePastDecorators(r));e.setEmitFlags(l,1536);return l}function addConstructorDecorationStatement(t,r){var i=generateConstructorDecorationExpression(r);if(i){t.push(e.setOriginalNode(n.createExpressionStatement(i),r))}}function generateConstructorDecorationExpression(t){var r=getAllDecoratorsOfConstructor(t);var a=transformAllDecoratorsOfDeclaration(t,t,r);if(!a){return undefined}var s=x&&x[e.getOriginalNodeId(t)];var o=d<=2?n.getInternalName(t,false,true):n.getLocalName(t,false,true);var c=i().createDecorateHelper(a,o);var u=n.createAssignment(o,s?n.createAssignment(s,c):c);e.setEmitFlags(u,1536);e.setSourceMapRange(u,e.moveRangePastDecorators(t));return u}function transformDecorator(t){return e.visitNode(t.expression,visitor,e.isExpression)}function transformDecoratorsOfParameter(t,r){var n;if(t){n=[];for(var a=0,s=t;a=2;var g=p<=8||!d;var _=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;var h=t.onEmitNode;t.onEmitNode=onEmitNode;var y;var v;var T;var S;var b=[];var E=new e.Map;var x;var D;var C;return e.chainBundle(t,transformSourceFile);function transformSourceFile(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||d&&n.target===99){return r}var i=e.visitEachChild(r,visitor,t);e.addEmitHelpers(i,t.readEmitHelpers());return i}function visitorWorker(r,n){if(r.transformFlags&8388608){switch(r.kind){case 224:case 255:return visitClassLike(r);case 165:return visitPropertyDeclaration(r);case 235:return visitVariableStatement(r);case 80:return visitPrivateIdentifier(r);case 168:return visitClassStaticBlockDeclaration(r)}}if(r.transformFlags&8388608||r.transformFlags&33554432&&m&&C&&x){switch(r.kind){case 217:case 218:return visitPreOrPostfixUnaryExpression(r,n);case 219:return visitBinaryExpression(r,n);case 206:return visitCallExpression(r);case 208:return visitTaggedTemplateExpression(r);case 204:return visitPropertyAccessExpression(r);case 205:return visitElementAccessExpression(r);case 236:return visitExpressionStatement(r);case 240:return visitForStatement(r);case 254:case 211:case 169:case 167:case 170:case 171:{var i=C;C=undefined;var a=e.visitEachChild(r,visitor,t);C=i;return a}}}return e.visitEachChild(r,visitor,t)}function discardedValueVisitor(e){return visitorWorker(e,true)}function visitor(e){return visitorWorker(e,false)}function heritageClauseVisitor(r){switch(r.kind){case 289:return e.visitEachChild(r,heritageClauseVisitor,t);case 226:return visitExpressionWithTypeArguments(r)}return visitor(r)}function visitorDestructuringTarget(e){switch(e.kind){case 203:case 202:return visitAssignmentPattern(e);default:return visitor(e)}}function visitPrivateIdentifier(t){if(!f){return t}return e.setOriginalNode(r.createIdentifier(""),t)}function classElementVisitor(e){switch(e.kind){case 169:return undefined;case 170:case 171:case 167:return visitMethodOrAccessorDeclaration(e);case 165:return visitPropertyDeclaration(e);case 160:return visitComputedPropertyName(e);case 232:return e;default:return visitor(e)}}function visitVariableStatement(r){var i=S;S=[];var a=e.visitEachChild(r,visitor,t);var s=e.some(S)?n([a],S,true):a;S=i;return s}function visitComputedPropertyName(n){var i=e.visitEachChild(n,visitor,t);if(e.some(T)){var a=T;a.push(i.expression);T=[];i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i}function visitMethodOrAccessorDeclaration(n){e.Debug.assert(!e.some(n.decorators));if(!f||!e.isPrivateIdentifier(n.name)){return e.visitEachChild(n,classElementVisitor,t)}var i=accessPrivateIdentifier(n.name);e.Debug.assert(i,"Undeclared private name for property declaration.");if(!i.isValid){return n}var a=getHoistedFunctionName(n);if(a){getPendingExpressions().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,function(t){return!e.isStaticModifier(t)}),n.asteriskToken,a,undefined,e.visitParameterList(n.parameters,classElementVisitor,t),undefined,e.visitFunctionBody(n.body,classElementVisitor,t))))}return undefined}function getHoistedFunctionName(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=accessPrivateIdentifier(t.name);e.Debug.assert(r,"Undeclared private name for property declaration.");if(r.kind==="m"){return r.methodName}if(r.kind==="a"){if(e.isGetAccessor(t)){return r.getterName}if(e.isSetAccessor(t)){return r.setterName}}}function visitPropertyDeclaration(t){e.Debug.assert(!e.some(t.decorators));if(e.isPrivateIdentifier(t.name)){if(!f){return r.updatePropertyDeclaration(t,undefined,e.visitNodes(t.modifiers,visitor,e.isModifier),t.name,undefined,undefined,undefined)}var n=accessPrivateIdentifier(t.name);e.Debug.assert(n,"Undeclared private name for property declaration.");if(!n.isValid){return t}}var i=getPropertyNameExpressionIfNeeded(t.name,!!t.initializer||d);if(i&&!e.isSimpleInlineableExpression(i)){getPendingExpressions().push(i)}return undefined}function createPrivateIdentifierAccess(t,r){return createPrivateIdentifierAccessHelper(t,e.visitNode(r,visitor,e.isExpression))}function createPrivateIdentifierAccessHelper(r,n){e.setCommentRange(n,e.moveRangePos(n,-1));switch(r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function visitPropertyAccessExpression(n){if(f&&e.isPrivateIdentifier(n.name)){var i=accessPrivateIdentifier(n.name);if(i){return e.setTextRange(e.setOriginalNode(createPrivateIdentifierAccess(i,n.expression),n),n)}}if(m&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&C&&x){var a=x.classConstructor,s=x.superClassReference,o=x.facts;if(o&1){return visitInvalidSuperProperty(n)}if(a&&s){var c=r.createReflectGetCall(s,r.createStringLiteralFromNode(n.name),a);e.setOriginalNode(c,n.expression);e.setTextRange(c,n.expression);return c}}return e.visitEachChild(n,visitor,t)}function visitElementAccessExpression(n){if(m&&e.isSuperProperty(n)&&C&&x){var i=x.classConstructor,a=x.superClassReference,s=x.facts;if(s&1){return visitInvalidSuperProperty(n)}if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,visitor,e.isExpression),i);e.setOriginalNode(o,n.expression);e.setTextRange(o,n.expression);return o}}return e.visitEachChild(n,visitor,t)}function visitPreOrPostfixUnaryExpression(n,a){if(n.operator===45||n.operator===46){if(f&&e.isPrivateIdentifierPropertyAccessExpression(n.operand)){var s=void 0;if(s=accessPrivateIdentifier(n.operand.name)){var o=e.visitNode(n.operand.expression,visitor,e.isExpression);var c=createCopiableReceiverExpr(o),u=c.readExpression,l=c.initializeExpression;var p=createPrivateIdentifierAccess(s,u);var d=e.isPrefixUnaryExpression(n)||a?undefined:r.createTempVariable(i);p=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,p,i,d);p=createPrivateIdentifierAssignment(s,l||u,p,63);e.setOriginalNode(p,n);e.setTextRange(p,n);if(d){p=r.createComma(p,d);e.setTextRange(p,n)}return p}}else if(m&&e.isSuperProperty(n.operand)&&C&&x){var g=x.classConstructor,_=x.superClassReference,h=x.facts;if(h&1){var y=visitInvalidSuperProperty(n.operand);return e.isPrefixUnaryExpression(n)?r.updatePrefixUnaryExpression(n,y):r.updatePostfixUnaryExpression(n,y)}if(g&&_){var v=void 0;var T=void 0;if(e.isPropertyAccessExpression(n.operand)){if(e.isIdentifier(n.operand.name)){T=v=r.createStringLiteralFromNode(n.operand.name)}}else{if(e.isSimpleInlineableExpression(n.operand.argumentExpression)){T=v=n.operand.argumentExpression}else{T=r.createTempVariable(i);v=r.createAssignment(T,e.visitNode(n.operand.argumentExpression,visitor,e.isExpression))}}if(v&&T){var p=r.createReflectGetCall(_,T,g);e.setTextRange(p,n.operand);var d=a?undefined:r.createTempVariable(i);p=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,p,i,d);p=r.createReflectSetCall(_,v,p,g);e.setOriginalNode(p,n);e.setTextRange(p,n);if(d){p=r.createComma(p,d);e.setTextRange(p,n)}return p}}}}return e.visitEachChild(n,visitor,t)}function visitForStatement(n){return r.updateForStatement(n,e.visitNode(n.initializer,discardedValueVisitor,e.isForInitializer),e.visitNode(n.condition,visitor,e.isExpression),e.visitNode(n.incrementor,discardedValueVisitor,e.isExpression),e.visitIterationBody(n.statement,visitor,t))}function visitExpressionStatement(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,discardedValueVisitor,e.isExpression))}function createCopiableReceiverExpr(t){var n=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t)){return{readExpression:n,initializeExpression:undefined}}var a=r.createTempVariable(i);var s=r.createAssignment(a,n);return{readExpression:a,initializeExpression:s}}function visitCallExpression(a){if(f&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var s=r.createCallBinding(a.expression,i,p),o=s.thisArg,c=s.target;if(e.isCallChain(a)){return r.updateCallChain(a,r.createPropertyAccessChain(e.visitNode(c,visitor),a.questionDotToken,"call"),undefined,undefined,n([e.visitNode(o,visitor,e.isExpression)],e.visitNodes(a.arguments,visitor,e.isExpression),true))}return r.updateCallExpression(a,r.createPropertyAccessExpression(e.visitNode(c,visitor),"call"),undefined,n([e.visitNode(o,visitor,e.isExpression)],e.visitNodes(a.arguments,visitor,e.isExpression),true))}if(m&&e.isSuperProperty(a.expression)&&C&&(x===null||x===void 0?void 0:x.classConstructor)){var u=r.createFunctionCallCall(e.visitNode(a.expression,visitor,e.isExpression),x.classConstructor,e.visitNodes(a.arguments,visitor,e.isExpression));e.setOriginalNode(u,a);e.setTextRange(u,a);return u}return e.visitEachChild(a,visitor,t)}function visitTaggedTemplateExpression(n){if(f&&e.isPrivateIdentifierPropertyAccessExpression(n.tag)){var a=r.createCallBinding(n.tag,i,p),s=a.thisArg,o=a.target;return r.updateTaggedTemplateExpression(n,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(o,visitor),"bind"),undefined,[e.visitNode(s,visitor,e.isExpression)]),undefined,e.visitNode(n.template,visitor,e.isTemplateLiteral))}if(m&&e.isSuperProperty(n.tag)&&C&&(x===null||x===void 0?void 0:x.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(n.tag,visitor,e.isExpression),x.classConstructor,[]);e.setOriginalNode(c,n);e.setTextRange(c,n);return r.updateTaggedTemplateExpression(n,c,undefined,e.visitNode(n.template,visitor,e.isTemplateLiteral))}return e.visitEachChild(n,visitor,t)}function transformClassStaticBlockDeclaration(t){if(f){if(x){E.set(e.getOriginalNodeId(t),x)}s();var n=C;C=t;var i=e.visitNodes(t.body.statements,visitor,e.isStatement);i=r.mergeLexicalEnvironment(i,a());C=n;var o=r.createImmediatelyInvokedArrowFunction(i);e.setOriginalNode(o,t);e.setTextRange(o,t);e.addEmitFlags(o,2);return o}}function visitBinaryExpression(a,s){if(e.isDestructuringAssignment(a)){var o=T;T=undefined;a=r.updateBinaryExpression(a,e.visitNode(a.left,visitorDestructuringTarget),a.operatorToken,e.visitNode(a.right,visitor));var c=e.some(T)?r.inlineExpressions(e.compact(n(n([],T,true),[a],false))):a;T=o;return c}if(e.isAssignmentExpression(a)){if(f&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var u=accessPrivateIdentifier(a.left.name);if(u){return e.setTextRange(e.setOriginalNode(createPrivateIdentifierAssignment(u,a.left.expression,a.right,a.operatorToken.kind),a),a)}}else if(m&&e.isSuperProperty(a.left)&&C&&x){var l=x.classConstructor,p=x.superClassReference,d=x.facts;if(d&1){return r.updateBinaryExpression(a,visitInvalidSuperProperty(a.left),a.operatorToken,e.visitNode(a.right,visitor,e.isExpression))}if(l&&p){var g=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,visitor,e.isExpression):e.isIdentifier(a.left.name)?r.createStringLiteralFromNode(a.left.name):undefined;if(g){var _=e.visitNode(a.right,visitor,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var h=g;if(!e.isSimpleInlineableExpression(g)){h=r.createTempVariable(i);g=r.createAssignment(h,g)}var y=r.createReflectGetCall(p,h,l);e.setOriginalNode(y,a.left);e.setTextRange(y,a.left);_=r.createBinaryExpression(y,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),_);e.setTextRange(_,a)}var v=s?undefined:r.createTempVariable(i);if(v){_=r.createAssignment(v,_);e.setTextRange(v,a)}_=r.createReflectSetCall(p,g,_,l);e.setOriginalNode(_,a);e.setTextRange(_,a);if(v){_=r.createComma(_,v);e.setTextRange(_,a)}return _}}}}return e.visitEachChild(a,visitor,t)}function createPrivateIdentifierAssignment(n,i,a,s){i=e.visitNode(i,visitor,e.isExpression);a=e.visitNode(a,visitor,e.isExpression);if(e.isCompoundAssignment(s)){var o=createCopiableReceiverExpr(i),c=o.readExpression,u=o.initializeExpression;i=u||c;a=r.createBinaryExpression(createPrivateIdentifierAccessHelper(n,c),e.getNonAssignmentOperatorForCompoundAssignment(s),a)}e.setCommentRange(i,e.moveRangePos(i,-1));switch(n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,undefined);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function visitClassLike(r){if(!e.forEach(r.members,doesClassElementNeedTransform)){return e.visitEachChild(r,visitor,t)}var n=T;T=undefined;startClassLexicalEnvironment();if(f){var i=e.getNameOfDeclaration(r);if(i&&e.isIdentifier(i)){getPrivateIdentifierEnvironment().className=e.idText(i)}var a=getPrivateInstanceMethodsAndAccessors(r);if(e.some(a)){getPrivateIdentifierEnvironment().weakSetName=createHoistedVariableForClass("instances",a[0].name)}}var s=e.isClassDeclaration(r)?visitClassDeclaration(r):visitClassExpression(r);endClassLexicalEnvironment();T=n;return s}function doesClassElementNeedTransform(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||f&&t.name&&e.isPrivateIdentifier(t.name)}function getPrivateInstanceMethodsAndAccessors(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function getClassFacts(t){var r=0;var n=e.getOriginalNode(t);if(e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)){r|=1}for(var i=0,a=t.members;ip){if(!d){e.addRange(f,e.visitNodes(i.body.statements,visitor,e.isStatement,p,m-p))}p=m}}var g=r.createThis();addMethodStatements(f,u,g);addPropertyOrClassStaticBlockStatements(f,c,g);if(i){e.addRange(f,e.visitNodes(i.body.statements,visitor,e.isStatement,p))}f=r.mergeLexicalEnvironment(f,a());return e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(f),i?i.body.statements:n.members),true),i?i.body:undefined)}function addPropertyOrClassStaticBlockStatements(t,n,i){for(var a=0,s=n;a=0;--n){var i=b[n];if(!i){continue}var r=(t=i.privateIdentifierEnvironment)===null||t===void 0?void 0:t.identifiers.get(e.escapedText);if(r){return r}}return undefined}function wrapPrivateIdentifierForDestructuringTarget(n){var a=r.getGeneratedNameForNode(n);var s=accessPrivateIdentifier(n.name);if(!s){return e.visitEachChild(n,visitor,t)}var o=n.expression;if(e.isThisProperty(n)||e.isSuperProperty(n)||!e.isSimpleCopiableExpression(n.expression)){o=r.createTempVariable(i,true);getPendingExpressions().push(r.createBinaryExpression(o,63,e.visitNode(n.expression,visitor,e.isExpression)))}return r.createAssignmentTargetWrapper(a,createPrivateIdentifierAssignment(s,o,a,63))}function visitArrayAssignmentTarget(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n)){i=wrapPrivateIdentifierForDestructuringTarget(n)}else if(m&&e.isSuperProperty(n)&&C&&x){var a=x.classConstructor,s=x.superClassReference,o=x.facts;if(o&1){i=visitInvalidSuperProperty(n)}else if(a&&s){var c=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,visitor,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):undefined;if(c){var u=r.createTempVariable(undefined);i=r.createAssignmentTargetWrapper(u,r.createReflectSetCall(s,c,u,a))}}}if(i){if(e.isAssignmentExpression(t)){return r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,visitor,e.isExpression))}else if(e.isSpreadElement(t)){return r.updateSpreadElement(t,i)}else{return i}}}return e.visitNode(t,visitorDestructuringTarget)}function visitObjectAssignmentTarget(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t);var i=void 0;if(n){if(e.isPrivateIdentifierPropertyAccessExpression(n)){i=wrapPrivateIdentifierForDestructuringTarget(n)}else if(m&&e.isSuperProperty(n)&&C&&x){var a=x.classConstructor,s=x.superClassReference,o=x.facts;if(o&1){i=visitInvalidSuperProperty(n)}else if(a&&s){var c=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,visitor,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):undefined;if(c){var u=r.createTempVariable(undefined);i=r.createAssignmentTargetWrapper(u,r.createReflectSetCall(s,c,u,a))}}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,visitor,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,visitor)):i:e.visitNode(t.initializer,visitorDestructuringTarget,e.isExpression))}if(e.isSpreadAssignment(t)){return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,visitorDestructuringTarget,e.isExpression))}e.Debug.assert(i===undefined,"Should not have generated a wrapped target")}return e.visitNode(t,visitor)}function visitAssignmentPattern(t){if(e.isArrayLiteralExpression(t)){return r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,visitArrayAssignmentTarget,e.isExpression))}else{return r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,visitObjectAssignmentTarget,e.isObjectLiteralElementLike))}}}e.transformClassFields=transformClassFields;function createPrivateStaticFieldInitializer(t,r){return e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())]))}function createPrivateInstanceFieldInitializer(t,r,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),undefined,[t,r||e.factory.createVoidZero()])}function createPrivateInstanceMethodInitializer(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),undefined,[t])}function isReservedPrivateName(e){return e.escapedText==="#constructor"}})(u||(u={}));var u;(function(e){var t;(function(e){e[e["AsyncMethodsWithSuper"]=1]="AsyncMethodsWithSuper"})(t||(t={}));var r;(function(e){e[e["NonTopLevel"]=1]="NonTopLevel";e[e["HasLexicalThis"]=2]="HasLexicalThis"})(r||(r={}));function transformES2017(t){var r=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,s=t.endLexicalEnvironment,o=t.hoistVariableDeclaration;var c=t.getEmitResolver();var u=t.getCompilerOptions();var l=e.getEmitScriptTarget(u);var p;var d=0;var f;var m;var g;var _=[];var h=0;var y=t.onEmitNode;var v=t.onSubstituteNode;t.onEmitNode=onEmitNode;t.onSubstituteNode=onSubstituteNode;return e.chainBundle(t,transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile){return r}setContextFlag(1,false);setContextFlag(2,!e.isEffectiveStrictModeSourceFile(r,u));var n=e.visitEachChild(r,visitor,t);e.addEmitHelpers(n,t.readEmitHelpers());return n}function setContextFlag(e,t){h=t?h|e:h&~e}function inContext(e){return(h&e)!==0}function inTopLevelContext(){return!inContext(1)}function inHasLexicalThisContext(){return inContext(2)}function doWithContext(e,t,r){var n=e&~h;if(n){setContextFlag(n,true);var i=t(r);setContextFlag(n,false);return i}return t(r)}function visitDefault(r){return e.visitEachChild(r,visitor,t)}function visitor(r){if((r.transformFlags&128)===0){return r}switch(r.kind){case 130:return undefined;case 216:return visitAwaitExpression(r);case 167:return doWithContext(1|2,visitMethodDeclaration,r);case 254:return doWithContext(1|2,visitFunctionDeclaration,r);case 211:return doWithContext(1|2,visitFunctionExpression,r);case 212:return doWithContext(1,visitArrowFunction,r);case 204:if(m&&e.isPropertyAccessExpression(r)&&r.expression.kind===106){m.add(r.name.escapedText)}return e.visitEachChild(r,visitor,t);case 205:if(m&&r.expression.kind===106){g=true}return e.visitEachChild(r,visitor,t);case 170:case 171:case 169:case 255:case 224:return doWithContext(1|2,visitDefault,r);default:return e.visitEachChild(r,visitor,t)}}function asyncBodyVisitor(r){if(e.isNodeWithPossibleHoistedDeclaration(r)){switch(r.kind){case 235:return visitVariableStatementInAsyncBody(r);case 240:return visitForStatementInAsyncBody(r);case 241:return visitForInStatementInAsyncBody(r);case 242:return visitForOfStatementInAsyncBody(r);case 290:return visitCatchClauseInAsyncBody(r);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(r,asyncBodyVisitor,t);default:return e.Debug.assertNever(r,"Unhandled node.")}}return visitor(r)}function visitCatchClauseInAsyncBody(r){var n=new e.Set;recordDeclarationName(r.variableDeclaration,n);var i;n.forEach(function(t,r){if(f.has(r)){if(!i){i=new e.Set(f)}i.delete(r)}});if(i){var a=f;f=i;var s=e.visitEachChild(r,asyncBodyVisitor,t);f=a;return s}else{return e.visitEachChild(r,asyncBodyVisitor,t)}}function visitVariableStatementInAsyncBody(n){if(isVariableDeclarationListWithCollidingName(n.declarationList)){var i=visitVariableDeclarationListWithCollidingNames(n.declarationList,false);return i?r.createExpressionStatement(i):undefined}return e.visitEachChild(n,visitor,t)}function visitForInStatementInAsyncBody(n){return r.updateForInStatement(n,isVariableDeclarationListWithCollidingName(n.initializer)?visitVariableDeclarationListWithCollidingNames(n.initializer,true):e.visitNode(n.initializer,visitor,e.isForInitializer),e.visitNode(n.expression,visitor,e.isExpression),e.visitIterationBody(n.statement,asyncBodyVisitor,t))}function visitForOfStatementInAsyncBody(n){return r.updateForOfStatement(n,e.visitNode(n.awaitModifier,visitor,e.isToken),isVariableDeclarationListWithCollidingName(n.initializer)?visitVariableDeclarationListWithCollidingNames(n.initializer,true):e.visitNode(n.initializer,visitor,e.isForInitializer),e.visitNode(n.expression,visitor,e.isExpression),e.visitIterationBody(n.statement,asyncBodyVisitor,t))}function visitForStatementInAsyncBody(n){var i=n.initializer;return r.updateForStatement(n,isVariableDeclarationListWithCollidingName(i)?visitVariableDeclarationListWithCollidingNames(i,false):e.visitNode(n.initializer,visitor,e.isForInitializer),e.visitNode(n.condition,visitor,e.isExpression),e.visitNode(n.incrementor,visitor,e.isExpression),e.visitIterationBody(n.statement,asyncBodyVisitor,t))}function visitAwaitExpression(n){if(inTopLevelContext()){return e.visitEachChild(n,visitor,t)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(undefined,e.visitNode(n.expression,visitor,e.isExpression)),n),n)}function visitMethodDeclaration(n){return r.updateMethodDeclaration(n,undefined,e.visitNodes(n.modifiers,visitor,e.isModifier),n.asteriskToken,n.name,undefined,undefined,e.visitParameterList(n.parameters,visitor,t),undefined,e.getFunctionFlags(n)&2?transformAsyncFunctionBody(n):e.visitFunctionBody(n.body,visitor,t))}function visitFunctionDeclaration(n){return r.updateFunctionDeclaration(n,undefined,e.visitNodes(n.modifiers,visitor,e.isModifier),n.asteriskToken,n.name,undefined,e.visitParameterList(n.parameters,visitor,t),undefined,e.getFunctionFlags(n)&2?transformAsyncFunctionBody(n):e.visitFunctionBody(n.body,visitor,t))}function visitFunctionExpression(n){return r.updateFunctionExpression(n,e.visitNodes(n.modifiers,visitor,e.isModifier),n.asteriskToken,n.name,undefined,e.visitParameterList(n.parameters,visitor,t),undefined,e.getFunctionFlags(n)&2?transformAsyncFunctionBody(n):e.visitFunctionBody(n.body,visitor,t))}function visitArrowFunction(n){return r.updateArrowFunction(n,e.visitNodes(n.modifiers,visitor,e.isModifier),undefined,e.visitParameterList(n.parameters,visitor,t),undefined,n.equalsGreaterThanToken,e.getFunctionFlags(n)&2?transformAsyncFunctionBody(n):e.visitFunctionBody(n.body,visitor,t))}function recordDeclarationName(t,r){var n=t.name;if(e.isIdentifier(n)){r.add(n.escapedText)}else{for(var i=0,a=n.elements;i=2&&c.getNodeCheckFlags(t)&(4096|2048);if(C){enableSubstitutionForAsyncMethodsWithSuper();if(m.size){var A=createSuperAccessVariableStatement(r,c,t,m);_[e.getNodeId(A)]=true;e.insertStatementsAfterStandardPrologue(x,[A])}}var k=r.createBlock(x,true);e.setTextRange(k,t.body);if(C&&g){if(c.getNodeCheckFlags(t)&4096){e.addEmitHelper(k,e.advancedAsyncSuperHelper)}else if(c.getNodeCheckFlags(t)&2048){e.addEmitHelper(k,e.asyncSuperHelper)}}E=k}else{var P=i().createAwaiterHelper(inHasLexicalThisContext(),d,u,transformAsyncFunctionBodyWorker(t.body));var N=s();if(e.some(N)){var k=r.converters.convertToFunctionBlock(P);E=r.updateBlock(k,e.setTextRange(r.createNodeArray(e.concatenate(N,k.statements)),k.statements))}else{E=P}}f=h;if(!p){m=S;g=b}return E}function transformAsyncFunctionBodyWorker(t,n){if(e.isBlock(t)){return r.updateBlock(t,e.visitNodes(t.statements,asyncBodyVisitor,e.isStatement,n))}else{return r.converters.convertToFunctionBlock(e.visitNode(t,asyncBodyVisitor,e.isConciseBody))}}function getPromiseConstructor(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=c.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown){return r}}return undefined}function enableSubstitutionForAsyncMethodsWithSuper(){if((p&1)===0){p|=1;t.enableSubstitution(206);t.enableSubstitution(204);t.enableSubstitution(205);t.enableEmitNotification(255);t.enableEmitNotification(167);t.enableEmitNotification(170);t.enableEmitNotification(171);t.enableEmitNotification(169);t.enableEmitNotification(235)}}function onEmitNode(t,r,n){if(p&1&&isSuperContainer(r)){var i=c.getNodeCheckFlags(r)&(2048|4096);if(i!==d){var a=d;d=i;y(t,r,n);d=a;return}}else if(p&&_[e.getNodeId(r)]){var a=d;d=0;y(t,r,n);d=a;return}y(t,r,n)}function onSubstituteNode(e,t){t=v(e,t);if(e===1&&d){return substituteExpression(t)}return t}function substituteExpression(e){switch(e.kind){case 204:return substitutePropertyAccessExpression(e);case 205:return substituteElementAccessExpression(e);case 206:return substituteCallExpression(e)}return e}function substitutePropertyAccessExpression(t){if(t.expression.kind===106){return e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",16|32),t.name),t)}return t}function substituteElementAccessExpression(e){if(e.expression.kind===106){return createSuperElementAccessInAsyncMethod(e.argumentExpression,e)}return e}function substituteCallExpression(t){var i=t.expression;if(e.isSuperProperty(i)){var a=e.isPropertyAccessExpression(i)?substitutePropertyAccessExpression(i):substituteElementAccessExpression(i);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),undefined,n([r.createThis()],t.arguments,true))}return t}function isSuperContainer(e){var t=e.kind;return t===255||t===169||t===167||t===170||t===171}function createSuperElementAccessInAsyncMethod(t,n){if(d&4096){return e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createUniqueName("_superIndex",16|32),undefined,[t]),"value"),n)}else{return e.setTextRange(r.createCallExpression(r.createUniqueName("_superIndex",16|32),undefined,[t]),n)}}}e.transformES2017=transformES2017;function createSuperAccessVariableStatement(t,r,n,i){var a=(r.getNodeCheckFlags(n)&4096)!==0;var s=[];i.forEach(function(r,n){var i=e.unescapeLeadingUnderscores(n);var o=[];o.push(t.createPropertyAssignment("get",t.createArrowFunction(undefined,undefined,[],undefined,undefined,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4))));if(a){o.push(t.createPropertyAssignment("set",t.createArrowFunction(undefined,undefined,[t.createParameterDeclaration(undefined,undefined,undefined,"v",undefined,undefined,undefined)],undefined,undefined,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v")))))}s.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(o)))});return t.createVariableStatement(undefined,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",16|32),undefined,undefined,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),undefined,[t.createNull(),t.createObjectLiteralExpression(s,true)]))],2))}e.createSuperAccessVariableStatement=createSuperAccessVariableStatement})(u||(u={}));var u;(function(e){var t;(function(e){e[e["AsyncMethodsWithSuper"]=1]="AsyncMethodsWithSuper"})(t||(t={}));var r;(function(e){e[e["None"]=0]="None";e[e["HasLexicalThis"]=1]="HasLexicalThis";e[e["IterationContainer"]=2]="IterationContainer";e[e["AncestorFactsMask"]=3]="AncestorFactsMask";e[e["SourceFileIncludes"]=1]="SourceFileIncludes";e[e["SourceFileExcludes"]=2]="SourceFileExcludes";e[e["StrictModeSourceFileIncludes"]=0]="StrictModeSourceFileIncludes";e[e["ClassOrFunctionIncludes"]=1]="ClassOrFunctionIncludes";e[e["ClassOrFunctionExcludes"]=2]="ClassOrFunctionExcludes";e[e["ArrowFunctionIncludes"]=0]="ArrowFunctionIncludes";e[e["ArrowFunctionExcludes"]=2]="ArrowFunctionExcludes";e[e["IterationStatementIncludes"]=2]="IterationStatementIncludes";e[e["IterationStatementExcludes"]=0]="IterationStatementExcludes"})(r||(r={}));function transformES2018(t){var r=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,s=t.endLexicalEnvironment,o=t.hoistVariableDeclaration;var c=t.getEmitResolver();var u=t.getCompilerOptions();var l=e.getEmitScriptTarget(u);var p=t.onEmitNode;t.onEmitNode=onEmitNode;var d=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;var f=false;var m;var g;var _=0;var h=0;var y;var v;var T;var S;var b=[];return e.chainBundle(t,transformSourceFile);function affectsSubtree(e,t){return h!==(h&~e|t)}function enterSubtree(e,t){var r=h;h=(h&~e|t)&3;return r}function exitSubtree(e){h=e}function recordTaggedTemplateString(t){v=e.append(v,r.createVariableDeclaration(t))}function transformSourceFile(r){if(r.isDeclarationFile){return r}y=r;var n=visitSourceFile(r);e.addEmitHelpers(n,t.readEmitHelpers());y=undefined;v=undefined;return n}function visitor(e){return visitorWorker(e,false)}function visitorWithUnusedExpressionResult(e){return visitorWorker(e,true)}function visitorNoAsyncModifier(e){if(e.kind===130){return undefined}return e}function doWithHierarchyFacts(e,t,r,n){if(affectsSubtree(r,n)){var i=enterSubtree(r,n);var a=e(t);exitSubtree(i);return a}return e(t)}function visitDefault(r){return e.visitEachChild(r,visitor,t)}function visitorWorker(r,n){if((r.transformFlags&64)===0){return r}switch(r.kind){case 216:return visitAwaitExpression(r);case 222:return visitYieldExpression(r);case 245:return visitReturnStatement(r);case 248:return visitLabeledStatement(r);case 203:return visitObjectLiteralExpression(r);case 219:return visitBinaryExpression(r,n);case 346:return visitCommaListExpression(r,n);case 290:return visitCatchClause(r);case 235:return visitVariableStatement(r);case 252:return visitVariableDeclaration(r);case 238:case 239:case 241:return doWithHierarchyFacts(visitDefault,r,0,2);case 242:return visitForOfStatement(r,undefined);case 240:return doWithHierarchyFacts(visitForStatement,r,0,2);case 215:return visitVoidExpression(r);case 169:return doWithHierarchyFacts(visitConstructorDeclaration,r,2,1);case 167:return doWithHierarchyFacts(visitMethodDeclaration,r,2,1);case 170:return doWithHierarchyFacts(visitGetAccessorDeclaration,r,2,1);case 171:return doWithHierarchyFacts(visitSetAccessorDeclaration,r,2,1);case 254:return doWithHierarchyFacts(visitFunctionDeclaration,r,2,1);case 211:return doWithHierarchyFacts(visitFunctionExpression,r,2,1);case 212:return doWithHierarchyFacts(visitArrowFunction,r,2,0);case 162:return visitParameter(r);case 236:return visitExpressionStatement(r);case 210:return visitParenthesizedExpression(r,n);case 208:return visitTaggedTemplateExpression(r);case 204:if(T&&e.isPropertyAccessExpression(r)&&r.expression.kind===106){T.add(r.name.escapedText)}return e.visitEachChild(r,visitor,t);case 205:if(T&&r.expression.kind===106){S=true}return e.visitEachChild(r,visitor,t);case 255:case 224:return doWithHierarchyFacts(visitDefault,r,2,1);default:return e.visitEachChild(r,visitor,t)}}function visitAwaitExpression(n){if(g&2&&g&1){return e.setOriginalNode(e.setTextRange(r.createYieldExpression(undefined,i().createAwaitHelper(e.visitNode(n.expression,visitor,e.isExpression))),n),n)}return e.visitEachChild(n,visitor,t)}function visitYieldExpression(n){if(g&2&&g&1){if(n.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(n.expression),visitor,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(undefined,i().createAwaitHelper(r.updateYieldExpression(n,n.asteriskToken,e.setTextRange(i().createAsyncDelegatorHelper(e.setTextRange(i().createAsyncValuesHelper(a),a)),a)))),n),n)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(undefined,createDownlevelAwait(n.expression?e.visitNode(n.expression,visitor,e.isExpression):r.createVoidZero())),n),n)}return e.visitEachChild(n,visitor,t)}function visitReturnStatement(n){if(g&2&&g&1){return r.updateReturnStatement(n,createDownlevelAwait(n.expression?e.visitNode(n.expression,visitor,e.isExpression):r.createVoidZero()))}return e.visitEachChild(n,visitor,t)}function visitLabeledStatement(n){if(g&2){var i=e.unwrapInnermostStatementOfLabel(n);if(i.kind===242&&i.awaitModifier){return visitForOfStatement(i,n)}return r.restoreEnclosingLabel(e.visitNode(i,visitor,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,visitor,t)}function chunkObjectLiteralElements(t){var n;var i=[];for(var a=0,s=t;a1){for(var o=1;o=2&&c.getNodeCheckFlags(n)&(4096|2048);if(m){enableSubstitutionForAsyncMethodsWithSuper();var g=e.createSuperAccessVariableStatement(r,c,n,T);b[e.getNodeId(g)]=true;e.insertStatementsAfterStandardPrologue(o,[g])}o.push(f);e.insertStatementsAfterStandardPrologue(o,s());var _=r.updateBlock(n.body,o);if(m&&S){if(c.getNodeCheckFlags(n)&4096){e.addEmitHelper(_,e.advancedAsyncSuperHelper)}else if(c.getNodeCheckFlags(n)&2048){e.addEmitHelper(_,e.asyncSuperHelper)}}T=p;S=d;return _}function transformFunctionBody(t){var n;a();var i=0;var o=[];var c=(n=e.visitNode(t.body,visitor,e.isConciseBody))!==null&&n!==void 0?n:r.createBlock([]);if(e.isBlock(c)){i=r.copyPrologue(c.statements,o,false,visitor)}e.addRange(o,appendObjectRestAssignmentsIfNeeded(undefined,t));var u=s();if(i>0||e.some(o)||e.some(u)){var l=r.converters.convertToFunctionBlock(c,true);e.insertStatementsAfterStandardPrologue(o,u);e.addRange(o,l.statements.slice(i));return r.updateBlock(l,e.setTextRange(r.createNodeArray(o),l.statements))}return c}function appendObjectRestAssignmentsIfNeeded(n,i){for(var a=0,s=i.parameters;a1?"jsxs":"jsx"}function getJsxFactoryCallee(e){var t=getJsxFactoryCalleePrimitive(e);return getImplicitImportForName(t)}function getImplicitJsxFragmentReference(){return getImplicitImportForName("Fragment")}function getImplicitImportForName(t){var r,i;var s=t==="createElement"?o.importSpecifier:e.getJSXRuntimeImport(o.importSpecifier,a);var c=(i=(r=o.utilizedImplicitRuntimeImports)===null||r===void 0?void 0:r.get(s))===null||i===void 0?void 0:i.get(t);if(c){return c.name}if(!o.utilizedImplicitRuntimeImports){o.utilizedImplicitRuntimeImports=e.createMap()}var u=o.utilizedImplicitRuntimeImports.get(s);if(!u){u=e.createMap();o.utilizedImplicitRuntimeImports.set(s,u)}var l=n.createUniqueName("_"+t,16|32|64);var p=n.createImportSpecifier(n.createIdentifier(t),l);l.generatedImportReference=p;u.set(t,p);return l}function transformSourceFile(t){if(t.isDeclarationFile){return t}s=t;o={};o.importSpecifier=e.getJSXImplicitImportBase(a,t);var i=e.visitEachChild(t,visitor,r);e.addEmitHelpers(i,r.readEmitHelpers());var c=i.statements;if(o.filenameDeclaration){c=e.insertStatementAfterCustomPrologue(c.slice(),n.createVariableStatement(undefined,n.createVariableDeclarationList([o.filenameDeclaration],2)))}if(o.utilizedImplicitRuntimeImports){for(var u=0,l=e.arrayFrom(o.utilizedImplicitRuntimeImports.entries());u1?n.createTrue():n.createFalse());var d=e.getLineAndCharacterOfPosition(p,u.pos);l.push(n.createObjectLiteralExpression([n.createPropertyAssignment("fileName",getCurrentFileNameExpression()),n.createPropertyAssignment("lineNumber",n.createNumericLiteral(d.line+1)),n.createPropertyAssignment("columnNumber",n.createNumericLiteral(d.character+1))]));l.push(n.createThis())}}var f=e.setTextRange(n.createCallExpression(getJsxFactoryCallee(o),undefined,l),u);if(c){e.startOnNewLine(f)}return f}function visitJsxOpeningLikeElementCreateElement(t,c,u,l){var p=getTagName(t);var d;var f=t.attributes.properties;if(f.length===0){d=n.createNull()}else{var m=a.target;if(m&&m>=5){d=n.createObjectLiteralExpression(e.flatten(e.spanMap(f,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,transformJsxSpreadAttributeToSpreadAssignment):e.map(t,transformJsxAttributeToObjectLiteralElement)})))}else{var g=e.flatten(e.spanMap(f,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,transformJsxSpreadAttributeToExpression):n.createObjectLiteralExpression(e.map(t,transformJsxAttributeToObjectLiteralElement))}));if(e.isJsxSpreadAttribute(f[0])){g.unshift(n.createObjectLiteralExpression())}d=e.singleOrUndefined(g);if(!d){d=i().createAssignHelper(g)}}}var _=o.importSpecifier===undefined?e.createJsxFactoryExpression(n,r.getEmitResolver().getJsxFactoryEntity(s),a.reactNamespace,t):getImplicitImportForName("createElement");var h=e.createExpressionForJsxElement(n,_,p,d,e.mapDefined(c,transformJsxChildToExpression),l);if(u){e.startOnNewLine(h)}return h}function visitJsxOpeningFragmentJSX(t,r,i,a){var s;if(r&&r.length){var o=convertJsxChildrenToChildrenPropObject(r);if(o){s=o}}return visitJsxOpeningLikeElementOrFragmentJSX(getImplicitJsxFragmentReference(),s||n.createObjectLiteralExpression([]),undefined,e.length(e.getSemanticJsxChildren(r)),i,a)}function visitJsxOpeningFragmentCreateElement(t,i,o,c){var u=e.createExpressionForJsxFragment(n,r.getEmitResolver().getJsxFactoryEntity(s),r.getEmitResolver().getJsxFragmentFactoryEntity(s),a.reactNamespace,e.mapDefined(i,transformJsxChildToExpression),t,c);if(o){e.startOnNewLine(u)}return u}function transformJsxSpreadAttributeToSpreadAssignment(t){return n.createSpreadAssignment(e.visitNode(t.expression,visitor,e.isExpression))}function transformJsxSpreadAttributeToExpression(t){return e.visitNode(t.expression,visitor,e.isExpression)}function transformJsxAttributeToObjectLiteralElement(e){var t=getAttributeName(e);var r=transformJsxAttributeInitializer(e.initializer);return n.createPropertyAssignment(t,r)}function transformJsxAttributeInitializer(t){if(t===undefined){return n.createTrue()}else if(t.kind===10){var r=t.singleQuote!==undefined?t.singleQuote:!e.isStringDoubleQuoted(t,s);var i=n.createStringLiteral(tryDecodeEntities(t.text)||t.text,r);return e.setTextRange(i,t)}else if(t.kind===286){if(t.expression===undefined){return n.createTrue()}return e.visitNode(t.expression,visitor,e.isExpression)}else{return e.Debug.failBadSyntaxKind(t)}}function visitJsxText(e){var t=fixupWhitespaceAndDecodeEntities(e.text);return t===undefined?undefined:n.createStringLiteral(t)}function fixupWhitespaceAndDecodeEntities(t){var r;var n=0;var i=-1;for(var a=0;a0){e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(r.createVariableStatement(undefined,r.createVariableDeclarationList(e.flattenDestructuringBinding(i,visitor,t,0,r.getGeneratedNameForNode(i)))),1048576));return true}else if(s){e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(r.createExpressionStatement(r.createAssignment(r.getGeneratedNameForNode(i),e.visitNode(s,visitor,e.isExpression))),1048576));return true}return false}function insertDefaultValueAssignmentForInitializer(t,n,i,a){a=e.visitNode(a,visitor,e.isExpression);var s=r.createIfStatement(r.createTypeCheck(r.cloneNode(i),"undefined"),e.setEmitFlags(e.setTextRange(r.createBlock([r.createExpressionStatement(e.setEmitFlags(e.setTextRange(r.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(r.cloneNode(i),i),i.parent),48),e.setEmitFlags(a,48|e.getEmitFlags(a)|1536)),n),1536))]),n),1|32|384|1536));e.startOnNewLine(s);e.setTextRange(s,n);e.setEmitFlags(s,384|32|1048576|1536);e.insertStatementAfterCustomPrologue(t,s)}function shouldAddRestParameter(e,t){return!!(e&&e.dotDotDotToken&&!t)}function addRestParameterIfNeeded(n,i,a){var s=[];var o=e.lastOrUndefined(i.parameters);if(!shouldAddRestParameter(o,a)){return false}var c=o.name.kind===79?e.setParent(e.setTextRange(r.cloneNode(o.name),o.name),o.name.parent):r.createTempVariable(undefined);e.setEmitFlags(c,48);var u=o.name.kind===79?r.cloneNode(o.name):c;var l=i.parameters.length-1;var p=r.createLoopVariable();s.push(e.setEmitFlags(e.setTextRange(r.createVariableStatement(undefined,r.createVariableDeclarationList([r.createVariableDeclaration(c,undefined,undefined,r.createArrayLiteralExpression([]))])),o),1048576));var d=r.createForStatement(e.setTextRange(r.createVariableDeclarationList([r.createVariableDeclaration(p,undefined,undefined,r.createNumericLiteral(l))]),o),e.setTextRange(r.createLessThan(p,r.createPropertyAccessExpression(r.createIdentifier("arguments"),"length")),o),e.setTextRange(r.createPostfixIncrement(p),o),r.createBlock([e.startOnNewLine(e.setTextRange(r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(u,l===0?p:r.createSubtract(p,r.createNumericLiteral(l))),r.createElementAccessExpression(r.createIdentifier("arguments"),p))),o))]));e.setEmitFlags(d,1048576);e.startOnNewLine(d);s.push(d);if(o.name.kind!==79){s.push(e.setEmitFlags(e.setTextRange(r.createVariableStatement(undefined,r.createVariableDeclarationList(e.flattenDestructuringBinding(o,visitor,t,0,u))),o),1048576))}e.insertStatementsAfterCustomPrologue(n,s);return true}function insertCaptureThisForNodeIfNeeded(e,t){if(g&65536&&t.kind!==212){insertCaptureThisForNode(e,t,r.createThis());return true}return false}function insertCaptureThisForNode(t,n,i){enableSubstitutionsForCapturedThis();var a=r.createVariableStatement(undefined,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_this",16|32),undefined,undefined,i)]));e.setEmitFlags(a,1536|1048576);e.setSourceMapRange(a,n);e.insertStatementAfterCustomPrologue(t,a)}function insertCaptureNewTargetIfNeeded(t,n,i){if(g&32768){var a=void 0;switch(n.kind){case 212:return t;case 167:case 170:case 171:a=r.createVoidZero();break;case 169:a=r.createPropertyAccessExpression(e.setEmitFlags(r.createThis(),4),"constructor");break;case 254:case 211:a=r.createConditionalExpression(r.createLogicalAnd(e.setEmitFlags(r.createThis(),4),r.createBinaryExpression(e.setEmitFlags(r.createThis(),4),102,r.getLocalName(n))),undefined,r.createPropertyAccessExpression(e.setEmitFlags(r.createThis(),4),"constructor"),undefined,r.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(n)}var s=r.createVariableStatement(undefined,r.createVariableDeclarationList([r.createVariableDeclaration(r.createUniqueName("_newTarget",16|32),undefined,undefined,a)]));e.setEmitFlags(s,1536|1048576);if(i){t=t.slice()}e.insertStatementAfterCustomPrologue(t,s)}return t}function addClassMembers(t,r){for(var n=0,i=r.members;n=t.end){return false}var i=e.getEnclosingBlockScopeContainer(t);while(n){if(n===i||n===t){return false}if(e.isClassElement(n)&&n.parent===t){return true}n=n.parent}return false}function substituteThisKeyword(t){if(y&1&&g&16){return e.setTextRange(r.createUniqueName("_this",16|32),t)}return t}function getClassMemberPrefix(t,n){return e.isStatic(n)?r.getInternalName(t):r.createPropertyAccessExpression(r.getInternalName(t),"prototype")}function hasSynthesizedDefaultSuperCall(t,r){if(!t||!r){return false}if(e.some(t.parameters)){return false}var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||n.kind!==236){return false}var i=n.expression;if(!e.nodeIsSynthesized(i)||i.kind!==206){return false}var a=i.expression;if(!e.nodeIsSynthesized(a)||a.kind!==106){return false}var s=e.singleOrUndefined(i.arguments);if(!s||!e.nodeIsSynthesized(s)||s.kind!==223){return false}var o=s.expression;return e.isIdentifier(o)&&o.escapedText==="arguments"}}e.transformES2015=transformES2015})(u||(u={}));var u;(function(e){function transformES5(t){var r=t.factory;var n=t.getCompilerOptions();var i;var a;if(n.jsx===1||n.jsx===3){i=t.onEmitNode;t.onEmitNode=onEmitNode;t.enableEmitNotification(278);t.enableEmitNotification(279);t.enableEmitNotification(277);a=[]}var s=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;t.enableSubstitution(204);t.enableSubstitution(291);return e.chainBundle(t,transformSourceFile);function transformSourceFile(e){return e}function onEmitNode(t,r,n){switch(r.kind){case 278:case 279:case 277:var s=r.tagName;a[e.getOriginalNodeId(s)]=true;break}i(t,r,n)}function onSubstituteNode(t,r){if(r.id&&a&&a[r.id]){return s(t,r)}r=s(t,r);if(e.isPropertyAccessExpression(r)){return substitutePropertyAccessExpression(r)}else if(e.isPropertyAssignment(r)){return substitutePropertyAssignment(r)}return r}function substitutePropertyAccessExpression(t){if(e.isPrivateIdentifier(t.name)){return t}var n=trySubstituteReservedName(t.name);if(n){return e.setTextRange(r.createElementAccessExpression(t.expression,n),t)}return t}function substitutePropertyAssignment(t){var n=e.isIdentifier(t.name)&&trySubstituteReservedName(t.name);if(n){return r.updatePropertyAssignment(t,n,t.initializer)}return t}function trySubstituteReservedName(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):undefined);if(n!==undefined&&n>=81&&n<=116){return e.setTextRange(r.createStringLiteralFromNode(t),t)}return undefined}}e.transformES5=transformES5})(u||(u={}));var u;(function(e){var t;(function(e){e[e["Nop"]=0]="Nop";e[e["Statement"]=1]="Statement";e[e["Assign"]=2]="Assign";e[e["Break"]=3]="Break";e[e["BreakWhenTrue"]=4]="BreakWhenTrue";e[e["BreakWhenFalse"]=5]="BreakWhenFalse";e[e["Yield"]=6]="Yield";e[e["YieldStar"]=7]="YieldStar";e[e["Return"]=8]="Return";e[e["Throw"]=9]="Throw";e[e["Endfinally"]=10]="Endfinally"})(t||(t={}));var r;(function(e){e[e["Open"]=0]="Open";e[e["Close"]=1]="Close"})(r||(r={}));var i;(function(e){e[e["Exception"]=0]="Exception";e[e["With"]=1]="With";e[e["Switch"]=2]="Switch";e[e["Loop"]=3]="Loop";e[e["Labeled"]=4]="Labeled"})(i||(i={}));var a;(function(e){e[e["Try"]=0]="Try";e[e["Catch"]=1]="Catch";e[e["Finally"]=2]="Finally";e[e["Done"]=3]="Done"})(a||(a={}));var s;(function(e){e[e["Next"]=0]="Next";e[e["Throw"]=1]="Throw";e[e["Return"]=2]="Return";e[e["Break"]=3]="Break";e[e["Yield"]=4]="Yield";e[e["YieldStar"]=5]="YieldStar";e[e["Catch"]=6]="Catch";e[e["Endfinally"]=7]="Endfinally"})(s||(s={}));function getInstructionName(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return undefined}}function transformGenerators(t){var r=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,s=t.endLexicalEnvironment,o=t.hoistFunctionDeclaration,c=t.hoistVariableDeclaration;var u=t.getCompilerOptions();var l=e.getEmitScriptTarget(u);var p=t.getEmitResolver();var d=t.onSubstituteNode;t.onSubstituteNode=onSubstituteNode;var f;var m;var g;var _;var h;var y;var v;var T;var S;var b;var E=1;var x;var D;var C;var A;var k=0;var P=0;var N;var O;var F;var w;var I;var L;var M;var R;return e.chainBundle(t,transformSourceFile);function transformSourceFile(r){if(r.isDeclarationFile||(r.transformFlags&1024)===0){return r}var n=e.visitEachChild(r,visitor,t);e.addEmitHelpers(n,t.readEmitHelpers());return n}function visitor(r){var n=r.transformFlags;if(_){return visitJavaScriptInStatementContainingYield(r)}else if(g){return visitJavaScriptInGeneratorFunctionBody(r)}else if(e.isFunctionLikeDeclaration(r)&&r.asteriskToken){return visitGenerator(r)}else if(n&1024){return e.visitEachChild(r,visitor,t)}else{return r}}function visitJavaScriptInStatementContainingYield(e){switch(e.kind){case 238:return visitDoStatement(e);case 239:return visitWhileStatement(e);case 247:return visitSwitchStatement(e);case 248:return visitLabeledStatement(e);default:return visitJavaScriptInGeneratorFunctionBody(e)}}function visitJavaScriptInGeneratorFunctionBody(r){switch(r.kind){case 254:return visitFunctionDeclaration(r);case 211:return visitFunctionExpression(r);case 170:case 171:return visitAccessorDeclaration(r);case 235:return visitVariableStatement(r);case 240:return visitForStatement(r);case 241:return visitForInStatement(r);case 244:return visitBreakStatement(r);case 243:return visitContinueStatement(r);case 245:return visitReturnStatement(r);default:if(r.transformFlags&524288){return visitJavaScriptContainingYield(r)}else if(r.transformFlags&(1024|2097152)){return e.visitEachChild(r,visitor,t)}else{return r}}}function visitJavaScriptContainingYield(r){switch(r.kind){case 219:return visitBinaryExpression(r);case 346:return visitCommaListExpression(r);case 220:return visitConditionalExpression(r);case 222:return visitYieldExpression(r);case 202:return visitArrayLiteralExpression(r);case 203:return visitObjectLiteralExpression(r);case 205:return visitElementAccessExpression(r);case 206:return visitCallExpression(r);case 207:return visitNewExpression(r);default:return e.visitEachChild(r,visitor,t)}}function visitGenerator(t){switch(t.kind){case 254:return visitFunctionDeclaration(t);case 211:return visitFunctionExpression(t);default:return e.Debug.failBadSyntaxKind(t)}}function visitFunctionDeclaration(n){if(n.asteriskToken){n=e.setOriginalNode(e.setTextRange(r.createFunctionDeclaration(undefined,n.modifiers,undefined,n.name,undefined,e.visitParameterList(n.parameters,visitor,t),undefined,transformGeneratorFunctionBody(n.body)),n),n)}else{var i=g;var a=_;g=false;_=false;n=e.visitEachChild(n,visitor,t);g=i;_=a}if(g){o(n);return undefined}else{return n}}function visitFunctionExpression(n){if(n.asteriskToken){n=e.setOriginalNode(e.setTextRange(r.createFunctionExpression(undefined,undefined,n.name,undefined,e.visitParameterList(n.parameters,visitor,t),undefined,transformGeneratorFunctionBody(n.body)),n),n)}else{var i=g;var a=_;g=false;_=false;n=e.visitEachChild(n,visitor,t);g=i;_=a}return n}function visitAccessorDeclaration(r){var n=g;var i=_;g=false;_=false;r=e.visitEachChild(r,visitor,t);g=n;_=i;return r}function transformGeneratorFunctionBody(t){var n=[];var i=g;var o=_;var c=h;var u=y;var l=v;var p=T;var d=S;var f=b;var m=E;var k=x;var P=D;var N=C;var O=A;g=true;_=false;h=undefined;y=undefined;v=undefined;T=undefined;S=undefined;b=undefined;E=1;x=undefined;D=undefined;C=undefined;A=r.createTempVariable(undefined);a();var F=r.copyPrologue(t.statements,n,false,visitor);transformAndEmitStatements(t.statements,F);var w=build();e.insertStatementsAfterStandardPrologue(n,s());n.push(r.createReturnStatement(w));g=i;_=o;h=c;y=u;v=l;T=p;S=d;b=f;E=m;x=k;D=P;C=N;A=O;return e.setTextRange(r.createBlock(n,t.multiLine),t)}function visitVariableStatement(t){if(t.transformFlags&524288){transformAndEmitVariableDeclarationList(t.declarationList);return undefined}else{if(e.getEmitFlags(t)&1048576){return t}for(var n=0,i=t.declarationList.declarations;n0){emitWorker(1,[r.createExpressionStatement(r.inlineExpressions(n))]);n=[]}n.push(e.visitNode(t,visitor,e.isExpression))}}}function visitCommaListExpression(t){var n=[];for(var i=0,a=t.elements;i0){emitWorker(1,[r.createExpressionStatement(r.inlineExpressions(n))]);n=[]}n.push(e.visitNode(s,visitor,e.isExpression))}}return r.inlineExpressions(n)}function visitLogicalBinaryExpression(t){var r=defineLabel();var n=declareLocal();emitAssignment(n,e.visitNode(t.left,visitor,e.isExpression),t.left);if(t.operatorToken.kind===55){emitBreakWhenFalse(r,n,t.left)}else{emitBreakWhenTrue(r,n,t.left)}emitAssignment(n,e.visitNode(t.right,visitor,e.isExpression),t.right);markLabel(r);return n}function visitConditionalExpression(r){if(containsYield(r.whenTrue)||containsYield(r.whenFalse)){var n=defineLabel();var i=defineLabel();var a=declareLocal();emitBreakWhenFalse(n,e.visitNode(r.condition,visitor,e.isExpression),r.condition);emitAssignment(a,e.visitNode(r.whenTrue,visitor,e.isExpression),r.whenTrue);emitBreak(i);markLabel(n);emitAssignment(a,e.visitNode(r.whenFalse,visitor,e.isExpression),r.whenFalse);markLabel(i);return a}return e.visitEachChild(r,visitor,t)}function visitYieldExpression(t){var r=defineLabel();var n=e.visitNode(t.expression,visitor,e.isExpression);if(t.asteriskToken){var a=(e.getEmitFlags(t.expression)&8388608)===0?e.setTextRange(i().createValuesHelper(n),t):n;emitYieldStar(a,t)}else{emitYield(n,t)}markLabel(r);return createGeneratorResume(t)}function visitArrayLiteralExpression(e){return visitElements(e.elements,undefined,undefined,e.multiLine)}function visitElements(t,i,a,s){var o=countInitialNodesWithoutYield(t);var c;if(o>0){c=declareLocal();var u=e.visitNodes(t,visitor,e.isExpression,0,o);emitAssignment(c,r.createArrayLiteralExpression(i?n([i],u,true):u));i=undefined}var l=e.reduceLeft(t,reduceElement,[],o);return c?r.createArrayConcatCall(c,[r.createArrayLiteralExpression(l,s)]):e.setTextRange(r.createArrayLiteralExpression(i?n([i],l,true):l,s),a);function reduceElement(t,a){if(containsYield(a)&&t.length>0){var o=c!==undefined;if(!c){c=declareLocal()}emitAssignment(c,o?r.createArrayConcatCall(c,[r.createArrayLiteralExpression(t,s)]):r.createArrayLiteralExpression(i?n([i],t,true):t,s));i=undefined;t=[]}t.push(e.visitNode(a,visitor,e.isExpression));return t}}function visitObjectLiteralExpression(t){var n=t.properties;var i=t.multiLine;var a=countInitialNodesWithoutYield(n);var s=declareLocal();emitAssignment(s,r.createObjectLiteralExpression(e.visitNodes(n,visitor,e.isObjectLiteralElementLike,0,a),i));var o=e.reduceLeft(n,reduceProperty,[],a);o.push(i?e.startOnNewLine(e.setParent(e.setTextRange(r.cloneNode(s),s),s.parent)):s);return r.inlineExpressions(o);function reduceProperty(n,a){if(containsYield(a)&&n.length>0){emitStatement(r.createExpressionStatement(r.inlineExpressions(n)));n=[]}var o=e.createExpressionForObjectLiteralElementLike(r,t,a,s);var c=e.visitNode(o,visitor,e.isExpression);if(c){if(i){e.startOnNewLine(c)}n.push(c)}return n}}function visitElementAccessExpression(n){if(containsYield(n.argumentExpression)){return r.updateElementAccessExpression(n,cacheExpression(e.visitNode(n.expression,visitor,e.isLeftHandSideExpression)),e.visitNode(n.argumentExpression,visitor,e.isExpression))}return e.visitEachChild(n,visitor,t)}function visitCallExpression(n){if(!e.isImportCall(n)&&e.forEach(n.arguments,containsYield)){var i=r.createCallBinding(n.expression,c,l,true),a=i.target,s=i.thisArg;return e.setOriginalNode(e.setTextRange(r.createFunctionApplyCall(cacheExpression(e.visitNode(a,visitor,e.isLeftHandSideExpression)),s,visitElements(n.arguments)),n),n)}return e.visitEachChild(n,visitor,t)}function visitNewExpression(n){if(e.forEach(n.arguments,containsYield)){var i=r.createCallBinding(r.createPropertyAccessExpression(n.expression,"bind"),c),a=i.target,s=i.thisArg;return e.setOriginalNode(e.setTextRange(r.createNewExpression(r.createFunctionApplyCall(cacheExpression(e.visitNode(a,visitor,e.isExpression)),s,visitElements(n.arguments,r.createVoidZero())),undefined,[]),n),n)}return e.visitEachChild(n,visitor,t)}function transformAndEmitStatements(e,t){if(t===void 0){t=0}var r=e.length;for(var n=t;n0){break}p.push(transformInitializedVariable(a))}if(p.length){emitStatement(r.createExpressionStatement(r.inlineExpressions(p)));l+=p.length;p=[]}}return undefined}function transformInitializedVariable(t){return e.setSourceMapRange(r.createAssignment(e.setSourceMapRange(r.cloneNode(t.name),t.name),e.visitNode(t.initializer,visitor,e.isExpression)),t)}function transformAndEmitIfStatement(t){if(containsYield(t)){if(containsYield(t.thenStatement)||containsYield(t.elseStatement)){var r=defineLabel();var n=t.elseStatement?defineLabel():undefined;emitBreakWhenFalse(t.elseStatement?n:r,e.visitNode(t.expression,visitor,e.isExpression),t.expression);transformAndEmitEmbeddedStatement(t.thenStatement);if(t.elseStatement){emitBreak(r);markLabel(n);transformAndEmitEmbeddedStatement(t.elseStatement)}markLabel(r)}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitDoStatement(t){if(containsYield(t)){var r=defineLabel();var n=defineLabel();beginLoopBlock(r);markLabel(n);transformAndEmitEmbeddedStatement(t.statement);markLabel(r);emitBreakWhenTrue(n,e.visitNode(t.expression,visitor,e.isExpression));endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitDoStatement(r){if(_){beginScriptLoopBlock();r=e.visitEachChild(r,visitor,t);endLoopBlock();return r}else{return e.visitEachChild(r,visitor,t)}}function transformAndEmitWhileStatement(t){if(containsYield(t)){var r=defineLabel();var n=beginLoopBlock(r);markLabel(r);emitBreakWhenFalse(n,e.visitNode(t.expression,visitor,e.isExpression));transformAndEmitEmbeddedStatement(t.statement);emitBreak(r);endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitWhileStatement(r){if(_){beginScriptLoopBlock();r=e.visitEachChild(r,visitor,t);endLoopBlock();return r}else{return e.visitEachChild(r,visitor,t)}}function transformAndEmitForStatement(t){if(containsYield(t)){var n=defineLabel();var i=defineLabel();var a=beginLoopBlock(i);if(t.initializer){var s=t.initializer;if(e.isVariableDeclarationList(s)){transformAndEmitVariableDeclarationList(s)}else{emitStatement(e.setTextRange(r.createExpressionStatement(e.visitNode(s,visitor,e.isExpression)),s))}}markLabel(n);if(t.condition){emitBreakWhenFalse(a,e.visitNode(t.condition,visitor,e.isExpression))}transformAndEmitEmbeddedStatement(t.statement);markLabel(i);if(t.incrementor){emitStatement(e.setTextRange(r.createExpressionStatement(e.visitNode(t.incrementor,visitor,e.isExpression)),t.incrementor))}emitBreak(n);endLoopBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function visitForStatement(n){if(_){beginScriptLoopBlock()}var i=n.initializer;if(i&&e.isVariableDeclarationList(i)){for(var a=0,s=i.declarations;a0?r.inlineExpressions(e.map(u,transformInitializedVariable)):undefined,e.visitNode(n.condition,visitor,e.isExpression),e.visitNode(n.incrementor,visitor,e.isExpression),e.visitIterationBody(n.statement,visitor,t))}else{n=e.visitEachChild(n,visitor,t)}if(_){endLoopBlock()}return n}function transformAndEmitForInStatement(t){if(containsYield(t)){var n=declareLocal();var i=declareLocal();var a=r.createLoopVariable();var s=t.initializer;c(a);emitAssignment(n,r.createArrayLiteralExpression());emitStatement(r.createForInStatement(i,e.visitNode(t.expression,visitor,e.isExpression),r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(n,"push"),undefined,[i]))));emitAssignment(a,r.createNumericLiteral(0));var o=defineLabel();var u=defineLabel();var l=beginLoopBlock(u);markLabel(o);emitBreakWhenFalse(l,r.createLessThan(a,r.createPropertyAccessExpression(n,"length")));var p=void 0;if(e.isVariableDeclarationList(s)){for(var d=0,f=s.declarations;d0){emitBreak(r,t)}else{emitStatement(t)}}function visitContinueStatement(r){if(_){var n=findContinueTarget(r.label&&e.idText(r.label));if(n>0){return createInlineBreak(n,r)}}return e.visitEachChild(r,visitor,t)}function transformAndEmitBreakStatement(t){var r=findBreakTarget(t.label?e.idText(t.label):undefined);if(r>0){emitBreak(r,t)}else{emitStatement(t)}}function visitBreakStatement(r){if(_){var n=findBreakTarget(r.label&&e.idText(r.label));if(n>0){return createInlineBreak(n,r)}}return e.visitEachChild(r,visitor,t)}function transformAndEmitReturnStatement(t){emitReturn(e.visitNode(t.expression,visitor,e.isExpression),t)}function visitReturnStatement(t){return createInlineReturn(e.visitNode(t.expression,visitor,e.isExpression),t)}function transformAndEmitWithStatement(t){if(containsYield(t)){beginWithBlock(cacheExpression(e.visitNode(t.expression,visitor,e.isExpression)));transformAndEmitEmbeddedStatement(t.statement);endWithBlock()}else{emitStatement(e.visitNode(t,visitor,e.isStatement))}}function transformAndEmitSwitchStatement(t){if(containsYield(t.caseBlock)){var n=t.caseBlock;var i=n.clauses.length;var a=beginSwitchBlock();var s=cacheExpression(e.visitNode(t.expression,visitor,e.isExpression));var o=[];var c=-1;for(var u=0;u0){break}d.push(r.createCaseClause(e.visitNode(l.expression,visitor,e.isExpression),[createInlineBreak(o[u],l.expression)]))}else{f++}}if(d.length){emitStatement(r.createSwitchStatement(s,r.createCaseBlock(d)));p+=d.length;d=[]}if(f>0){p+=f;f=0}}if(c>=0){emitBreak(o[c])}else{emitBreak(a)}for(var u=0;u=0;r--){var n=T[r];if(supportsLabeledBreakOrContinue(n)){if(n.labelText===e){return true}}else{break}}return false}function findBreakTarget(e){if(T){if(e){for(var t=T.length-1;t>=0;t--){var r=T[t];if(supportsLabeledBreakOrContinue(r)&&r.labelText===e){return r.breakLabel}else if(supportsUnlabeledBreak(r)&&hasImmediateContainingLabeledBlock(e,t-1)){return r.breakLabel}}}else{for(var t=T.length-1;t>=0;t--){var r=T[t];if(supportsUnlabeledBreak(r)){return r.breakLabel}}}}return 0}function findContinueTarget(e){if(T){if(e){for(var t=T.length-1;t>=0;t--){var r=T[t];if(supportsUnlabeledContinue(r)&&hasImmediateContainingLabeledBlock(e,t-1)){return r.continueLabel}}}else{for(var t=T.length-1;t>=0;t--){var r=T[t];if(supportsUnlabeledContinue(r)){return r.continueLabel}}}}return 0}function createLabel(e){if(e!==undefined&&e>0){if(b===undefined){b=[]}var t=r.createNumericLiteral(-1);if(b[e]===undefined){b[e]=[t]}else{b[e].push(t)}return t}return r.createOmittedExpression()}function createInstruction(t){var n=r.createNumericLiteral(t);e.addSyntheticTrailingComment(n,3,getInstructionName(t));return n}function createInlineBreak(t,n){e.Debug.assertLessThan(0,t,"Invalid label");return e.setTextRange(r.createReturnStatement(r.createArrayLiteralExpression([createInstruction(3),createLabel(t)])),n)}function createInlineReturn(t,n){return e.setTextRange(r.createReturnStatement(r.createArrayLiteralExpression(t?[createInstruction(2),t]:[createInstruction(2)])),n)}function createGeneratorResume(t){return e.setTextRange(r.createCallExpression(r.createPropertyAccessExpression(A,"sent"),undefined,[]),t)}function emitNop(){emitWorker(0)}function emitStatement(e){if(e){emitWorker(1,[e])}else{emitNop()}}function emitAssignment(e,t,r){emitWorker(2,[e,t],r)}function emitBreak(e,t){emitWorker(3,[e],t)}function emitBreakWhenTrue(e,t,r){emitWorker(4,[e,t],r)}function emitBreakWhenFalse(e,t,r){emitWorker(5,[e,t],r)}function emitYieldStar(e,t){emitWorker(7,[e],t)}function emitYield(e,t){emitWorker(6,[e],t)}function emitReturn(e,t){emitWorker(8,[e],t)}function emitThrow(e,t){emitWorker(9,[e],t)}function emitEndfinally(){emitWorker(10)}function emitWorker(e,t,r){if(x===undefined){x=[];D=[];C=[]}if(S===undefined){markLabel(defineLabel())}var n=x.length;x[n]=e;D[n]=t;C[n]=r}function build(){k=0;P=0;N=undefined;O=false;F=false;w=undefined;I=undefined;L=undefined;M=undefined;R=undefined;var t=buildStatements();return i().createGeneratorHelper(e.setEmitFlags(r.createFunctionExpression(undefined,undefined,undefined,undefined,[r.createParameterDeclaration(undefined,undefined,undefined,A)],undefined,r.createBlock(t,t.length>0)),524288))}function buildStatements(){if(x){for(var t=0;t=0;t--){var n=R[t];I=[r.createWithStatement(n.expression,r.createBlock(I))]}}if(M){var i=M.startLabel,a=M.catchLabel,s=M.finallyLabel,o=M.endLabel;I.unshift(r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createPropertyAccessExpression(A,"trys"),"push"),undefined,[r.createArrayLiteralExpression([createLabel(i),createLabel(a),createLabel(s),createLabel(o)])])));M=undefined}if(e){I.push(r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(A,"label"),r.createNumericLiteral(P+1))))}}w.push(r.createCaseClause(r.createNumericLiteral(P),I||[]));I=undefined}function tryEnterLabel(e){if(!S){return}for(var t=0;t(e.isExportName(t)?1:0)}return false}function visitDestructuringAssignment(t,n){if(destructuringNeedsFlattening(t.left)){return e.flattenDestructuringAssignment(t,visitor,r,0,!n,createAllExportExpressions)}return e.visitEachChild(t,visitor,r)}function visitForStatement(t){return i.updateForStatement(t,e.visitNode(t.initializer,discardedValueVisitor,e.isForInitializer),e.visitNode(t.condition,visitor,e.isExpression),e.visitNode(t.incrementor,discardedValueVisitor,e.isExpression),e.visitIterationBody(t.statement,visitor,r))}function visitExpressionStatement(t){return i.updateExpressionStatement(t,e.visitNode(t.expression,discardedValueVisitor,e.isExpression))}function visitParenthesizedExpression(t,r){return i.updateParenthesizedExpression(t,e.visitNode(t.expression,r?discardedValueVisitor:visitor,e.isExpression))}function visitPartiallyEmittedExpression(t,r){return i.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?discardedValueVisitor:visitor,e.isExpression))}function visitPreOrPostfixUnaryExpression(t,n){if((t.operator===45||t.operator===46)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=getExports(t.operand);if(a){var s=void 0;var o=e.visitNode(t.operand,visitor,e.isExpression);if(e.isPrefixUnaryExpression(t)){o=i.updatePrefixUnaryExpression(t,o)}else{o=i.updatePostfixUnaryExpression(t,o);if(!n){s=i.createTempVariable(c);o=i.createAssignment(s,o);e.setTextRange(o,t)}o=i.createComma(o,i.cloneNode(t.operand));e.setTextRange(o,t)}for(var u=0,l=a;u=2){l=i.createArrowFunction(undefined,undefined,o,undefined,undefined,c)}else{l=i.createFunctionExpression(undefined,undefined,undefined,undefined,o,undefined,c);if(r){e.setEmitFlags(l,8)}}var p=i.createNewExpression(i.createIdentifier("Promise"),undefined,[l]);if(u.esModuleInterop){return i.createCallExpression(i.createPropertyAccessExpression(p,i.createIdentifier("then")),undefined,[a().createImportStarCallbackHelper()])}return p}function createImportCallExpressionCommonJS(t,r){var n=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),undefined,[]);var s=i.createCallExpression(i.createIdentifier("require"),undefined,t?[t]:[]);if(u.esModuleInterop){s=a().createImportStarHelper(s)}var o;if(d>=2){o=i.createArrowFunction(undefined,undefined,[],undefined,undefined,s)}else{o=i.createFunctionExpression(undefined,undefined,undefined,undefined,[],undefined,i.createBlock([i.createReturnStatement(s)]));if(r){e.setEmitFlags(o,8)}}return i.createCallExpression(i.createPropertyAccessExpression(n,"then"),undefined,[o])}function getHelperExpressionForExport(t,r){if(!u.esModuleInterop||e.getEmitFlags(t)&67108864){return r}if(e.getExportNeedsImportStarHelper(t)){return a().createImportStarHelper(r)}return r}function getHelperExpressionForImport(t,r){if(!u.esModuleInterop||e.getEmitFlags(t)&67108864){return r}if(e.getImportNeedsImportStarHelper(t)){return a().createImportStarHelper(r)}if(e.getImportNeedsImportDefaultHelper(t)){return a().createImportDefaultHelper(r)}return r}function visitImportDeclaration(t){var r;var n=e.getNamespaceDeclarationNode(t);if(f!==e.ModuleKind.AMD){if(!t.importClause){return e.setOriginalNode(e.setTextRange(i.createExpressionStatement(createRequireCall(t)),t),t)}else{var a=[];if(n&&!e.isDefaultImport(t)){a.push(i.createVariableDeclaration(i.cloneNode(n.name),undefined,undefined,getHelperExpressionForImport(t,createRequireCall(t))))}else{a.push(i.createVariableDeclaration(i.getGeneratedNameForNode(t),undefined,undefined,getHelperExpressionForImport(t,createRequireCall(t))));if(n&&e.isDefaultImport(t)){a.push(i.createVariableDeclaration(i.cloneNode(n.name),undefined,undefined,i.getGeneratedNameForNode(t)))}}r=e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined,i.createVariableDeclarationList(a,d>=2?2:0)),t),t))}}else if(n&&e.isDefaultImport(t)){r=e.append(r,i.createVariableStatement(undefined,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(n.name),undefined,undefined,i.getGeneratedNameForNode(t)),t),t)],d>=2?2:0)))}if(hasAssociatedEndOfDeclarationMarker(t)){var s=e.getOriginalNodeId(t);h[s]=appendExportsOfImportDeclaration(h[s],t)}else{r=appendExportsOfImportDeclaration(r,t)}return e.singleOrMany(r)}function createRequireCall(t){var r=e.getExternalModuleNameLiteral(i,t,y,p,l,u);var n=[];if(r){n.push(r)}return i.createCallExpression(i.createIdentifier("require"),undefined,n)}function visitImportEqualsDeclaration(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(f!==e.ModuleKind.AMD){if(e.hasSyntacticModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(createExportExpression(t.name,createRequireCall(t))),t),t))}else{r=e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(t.name),undefined,undefined,createRequireCall(t))],d>=2?2:0)),t),t))}}else{if(e.hasSyntacticModifier(t,1)){r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(createExportExpression(i.getExportName(t),i.getLocalName(t))),t),t))}}if(hasAssociatedEndOfDeclarationMarker(t)){var n=e.getOriginalNodeId(t);h[n]=appendExportsOfImportEqualsDeclaration(h[n],t)}else{r=appendExportsOfImportEqualsDeclaration(r,t)}return e.singleOrMany(r)}function visitExportDeclaration(t){if(!t.moduleSpecifier){return undefined}var r=i.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var n=[];if(f!==e.ModuleKind.AMD){n.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(undefined,i.createVariableDeclarationList([i.createVariableDeclaration(r,undefined,undefined,createRequireCall(t))])),t),t))}for(var s=0,o=t.exportClause.elements;se.ModuleKind.ES2015){return t}if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier){return t}var n=t.exportClause.name;var i=r.getGeneratedNameForNode(n);var s=r.createImportDeclaration(undefined,undefined,r.createImportClause(false,undefined,r.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(s,t.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(t)?r.createExportDefault(i):r.createExportDeclaration(undefined,undefined,false,r.createNamedExports([r.createExportSpecifier(i,n)]));e.setOriginalNode(o,t);return[s,o]}function onEmitNode(t,r,n){if(e.isSourceFile(r)){if((e.isExternalModule(r)||a.isolatedModules)&&a.importHelpers){c=new e.Map}s(t,r,n);c=undefined}else{s(t,r,n)}}function onSubstituteNode(t,r){r=o(t,r);if(c&&e.isIdentifier(r)&&e.getEmitFlags(r)&4096){return substituteHelperName(r)}return r}function substituteHelperName(t){var n=e.idText(t);var i=c.get(n);if(!i){c.set(n,i=r.createUniqueName(n,16|32))}return i}}e.transformECMAScriptModule=transformECMAScriptModule})(u||(u={}));var u;(function(e){function canProduceDiagnostics(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)}e.canProduceDiagnostics=canProduceDiagnostics;function createGetSymbolAccessibilityDiagnosticForNodeName(t){if(e.isSetAccessor(t)||e.isGetAccessor(t)){return getAccessorNameVisibilityError}else if(e.isMethodSignature(t)||e.isMethodDeclaration(t)){return getMethodNameVisibilityError}else{return createGetSymbolAccessibilityDiagnosticForNode(t)}function getAccessorNameVisibilityError(e){var r=getAccessorNameVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getAccessorNameVisibilityDiagnosticMessage(r){if(e.isStatic(t)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===255){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}}function getMethodNameVisibilityError(e){var r=getMethodNameVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getMethodNameVisibilityDiagnosticMessage(r){if(e.isStatic(t)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===255){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}}e.createGetSymbolAccessibilityDiagnosticForNodeName=createGetSymbolAccessibilityDiagnosticForNodeName;function createGetSymbolAccessibilityDiagnosticForNode(t){if(e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)){return getVariableDeclarationTypeVisibilityError}else if(e.isSetAccessor(t)||e.isGetAccessor(t)){return getAccessorDeclarationTypeVisibilityError}else if(e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)){return getReturnTypeVisibilityError}else if(e.isParameter(t)){if(e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)){return getVariableDeclarationTypeVisibilityError}return getParameterDeclarationTypeVisibilityError}else if(e.isTypeParameterDeclaration(t)){return getTypeParameterConstraintVisibilityError}else if(e.isExpressionWithTypeArguments(t)){return getHeritageClauseVisibilityError}else if(e.isImportEqualsDeclaration(t)){return getImportEntityNameVisibilityError}else if(e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)){return getTypeAliasDeclarationVisibilityError}else{return e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind])}function getVariableDeclarationTypeVisibilityDiagnosticMessage(r){if(t.kind===252||t.kind===201){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1}else if(t.kind===165||t.kind===204||t.kind===164||t.kind===162&&e.hasSyntacticModifier(t.parent,8)){if(e.isStatic(t)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1}else if(t.parent.kind===255||t.kind===162){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}}}function getVariableDeclarationTypeVisibilityError(e){var r=getVariableDeclarationTypeVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getAccessorDeclarationTypeVisibilityError(r){var n;if(t.kind===171){if(e.isStatic(t)){n=r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1}else{n=r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1}}else{if(e.isStatic(t)){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1}else{n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1}}return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}function getReturnTypeVisibilityError(r){var n;switch(t.kind){case 173:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 172:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 167:case 166:if(e.isStatic(t)){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0}else if(t.parent.kind===255){n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0}else{n=r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0}break;case 254:n=r.errorModuleName?r.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}function getParameterDeclarationTypeVisibilityError(e){var r=getParameterDeclarationTypeVisibilityDiagnosticMessage(e);return r!==undefined?{diagnosticMessage:r,errorNode:t,typeName:t.name}:undefined}function getParameterDeclarationTypeVisibilityDiagnosticMessage(r){switch(t.parent.kind){case 169:return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 173:case 178:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 172:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 167:case 166:if(e.isStatic(t.parent)){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1}else if(t.parent.parent.kind===255){return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1}else{return r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1}case 254:case 177:return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 171:case 170:return r.errorModuleName?r.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}function getTypeParameterConstraintVisibilityError(){var r;switch(t.parent.kind){case 255:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:if(e.isStatic(t.parent)){r=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1}else if(t.parent.parent.kind===255){r=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1}else{r=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1}break;case 177:case 254:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}function getHeritageClauseVisibilityError(){var r;if(e.isClassDeclaration(t.parent.parent)){r=e.isHeritageClause(t.parent)&&t.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0}else{r=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1}return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}function getImportEntityNameVisibilityError(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function getTypeAliasDeclarationVisibilityError(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=createGetSymbolAccessibilityDiagnosticForNode})(u||(u={}));var u;(function(e){function getDeclarationDiagnostics(t,r,n){var i=t.getCompilerOptions();var a=e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[transformDeclarations],false);return a.diagnostics}e.getDeclarationDiagnostics=getDeclarationDiagnostics;function hasInternalAnnotation(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function isInternalDeclaration(t,r){var n=e.getParseTreeNode(t);if(n&&n.kind===162){var i=n.parent.parameters.indexOf(n);var a=i>0?n.parent.parameters[i-1]:undefined;var s=r.text;var o=a?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,a.end+1,false,true)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,false,true));return o&&o.length&&hasInternalAnnotation(e.last(o),r)}var c=n&&e.getLeadingCommentRangesOfNode(n,r);return!!e.forEach(c,function(e){return hasInternalAnnotation(e,r)})}e.isInternalDeclaration=isInternalDeclaration;var t=1024|2048|4096|8|524288|4|1;function transformDeclarations(r){var i=function(){return e.Debug.fail("Diagnostic emitted without context")};var a=i;var s=true;var o=false;var c=false;var u=false;var l=false;var p;var d;var f;var m;var g;var _;var h=r.factory;var y=r.getEmitHost();var v={trackSymbol:trackSymbol,reportInaccessibleThisError:reportInaccessibleThisError,reportInaccessibleUniqueSymbolError:reportInaccessibleUniqueSymbolError,reportCyclicStructureError:reportCyclicStructureError,reportPrivateInBaseOfClassExpression:reportPrivateInBaseOfClassExpression,reportLikelyUnsafeImportRequiredError:reportLikelyUnsafeImportRequiredError,reportTruncationError:reportTruncationError,moduleResolverHost:y,trackReferencedAmbientModule:trackReferencedAmbientModule,trackExternalModuleSymbolOfImportTypeNode:trackExternalModuleSymbolOfImportTypeNode,reportNonlocalAugmentation:reportNonlocalAugmentation,reportNonSerializableProperty:reportNonSerializableProperty};var T;var S;var b;var E;var x;var D;var C=r.getEmitResolver();var A=r.getCompilerOptions();var k=A.noResolve,P=A.stripInternal;return transformRoot;function recordTypeReferenceDirectivesIfNecessary(t){if(!t){return}d=d||new e.Set;for(var r=0,n=t;r0?e.parameters[0].type:undefined}}function canHaveLiteralInitializer(t){switch(t.kind){case 165:case 164:return!e.hasEffectiveModifier(t,8);case 162:case 252:return true}return false}function isPreservedDeclarationStatement(e){switch(e.kind){case 254:case 259:case 263:case 256:case 255:case 257:case 258:case 235:case 264:case 270:case 269:return true}return false}function isProcessedComponent(e){switch(e.kind){case 173:case 169:case 167:case 170:case 171:case 165:case 164:case 166:case 172:case 174:case 252:case 161:case 226:case 176:case 187:case 177:case 178:case 198:return true}return false}})(u||(u={}));var u;(function(e){function getModuleTransformer(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var t;(function(e){e[e["Uninitialized"]=0]="Uninitialized";e[e["Initialized"]=1]="Initialized";e[e["Completed"]=2]="Completed";e[e["Disposed"]=3]="Disposed"})(t||(t={}));var r;(function(e){e[e["Substitution"]=1]="Substitution";e[e["EmitNotifications"]=2]="EmitNotifications"})(r||(r={}));e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function getTransformers(e,t,r){return{scriptTransformers:getScriptTransformers(e,t,r),declarationTransformers:getDeclarationTransformers(t)}}e.getTransformers=getTransformers;function getScriptTransformers(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t);var a=e.getEmitModuleKind(t);var s=[];e.addRange(s,r&&e.map(r.before,wrapScriptTransformerFactory));s.push(e.transformTypeScript);s.push(e.transformClassFields);if(e.getJSXTransformEnabled(t)){s.push(e.transformJsx)}if(i<99){s.push(e.transformESNext)}if(i<8){s.push(e.transformES2021)}if(i<7){s.push(e.transformES2020)}if(i<6){s.push(e.transformES2019)}if(i<5){s.push(e.transformES2018)}if(i<4){s.push(e.transformES2017)}if(i<3){s.push(e.transformES2016)}if(i<2){s.push(e.transformES2015);s.push(e.transformGenerators)}s.push(getModuleTransformer(a));if(i<1){s.push(e.transformES5)}e.addRange(s,r&&e.map(r.after,wrapScriptTransformerFactory));return s}function getDeclarationTransformers(t){var r=[];r.push(e.transformDeclarations);e.addRange(r,t&&e.map(t.afterDeclarations,wrapDeclarationTransformerFactory));return r}function wrapCustomTransformer(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}function wrapCustomTransformerFactory(e,t){return function(r){var n=e(r);return typeof n==="function"?t(r,n):wrapCustomTransformer(n)}}function wrapScriptTransformerFactory(t){return wrapCustomTransformerFactory(t,e.chainBundle)}function wrapDeclarationTransformerFactory(e){return wrapCustomTransformerFactory(e,function(e,t){return t})}function noEmitSubstitution(e,t){return t}e.noEmitSubstitution=noEmitSubstitution;function noEmitNotification(e,t,r){r(e,t)}e.noEmitNotification=noEmitNotification;function transformNodes(t,r,i,a,s,o,c){var u=new Array(350);var l;var p;var d;var f=0;var m=[];var g=[];var _=[];var h=[];var y=0;var v=false;var T=[];var S=0;var b;var E;var x=noEmitSubstitution;var D=noEmitNotification;var C=0;var A=[];var k={factory:i,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(k)}),startLexicalEnvironment:startLexicalEnvironment,suspendLexicalEnvironment:suspendLexicalEnvironment,resumeLexicalEnvironment:resumeLexicalEnvironment,endLexicalEnvironment:endLexicalEnvironment,setLexicalEnvironmentFlags:setLexicalEnvironmentFlags,getLexicalEnvironmentFlags:getLexicalEnvironmentFlags,hoistVariableDeclaration:hoistVariableDeclaration,hoistFunctionDeclaration:hoistFunctionDeclaration,addInitializationStatement:addInitializationStatement,startBlockScope:startBlockScope,endBlockScope:endBlockScope,addBlockScopedVariable:addBlockScopedVariable,requestEmitHelper:requestEmitHelper,readEmitHelpers:readEmitHelpers,enableSubstitution:enableSubstitution,enableEmitNotification:enableEmitNotification,isSubstitutionEnabled:isSubstitutionEnabled,isEmitNotificationEnabled:isEmitNotificationEnabled,get onSubstituteNode(){return x},set onSubstituteNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed.");e.Debug.assert(t!==undefined,"Value must not be 'undefined'");x=t},get onEmitNode(){return D},set onEmitNode(t){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed.");e.Debug.assert(t!==undefined,"Value must not be 'undefined'");D=t},addDiagnostic:function(e){A.push(e)}};for(var P=0,N=s;P0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(i.createVariableDeclaration(t),64);if(!l){l=[r]}else{l.push(r)}if(f&1){f|=2}}function hoistFunctionDeclaration(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.setEmitFlags(t,1048576);if(!p){p=[t]}else{p.push(t)}}function addInitializationStatement(t){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.setEmitFlags(t,1048576);if(!d){d=[t]}else{d.push(t)}}function startLexicalEnvironment(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!v,"Lexical environment is suspended.");m[y]=l;g[y]=p;_[y]=d;h[y]=f;y++;l=undefined;p=undefined;d=undefined;f=0}function suspendLexicalEnvironment(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!v,"Lexical environment is already suspended.");v=true}function resumeLexicalEnvironment(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(v,"Lexical environment is not suspended.");v=false}function endLexicalEnvironment(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization.");e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");e.Debug.assert(!v,"Lexical environment is suspended.");var t;if(l||p||d){if(p){t=n([],p,true)}if(l){var r=i.createVariableStatement(undefined,i.createVariableDeclarationList(l));e.setEmitFlags(r,1048576);if(!t){t=[r]}else{t.push(r)}}if(d){if(!t){t=n([],d,true)}else{t=n(n([],t,true),d,true)}}}y--;l=m[y];p=g[y];d=_[y];f=h[y];if(y===0){m=[];g=[];_=[];h=[]}return t}function setLexicalEnvironmentFlags(e,t){f=t?f|e:f&~e}function getLexicalEnvironmentFlags(){return f}function startBlockScope(){e.Debug.assert(C>0,"Cannot start a block scope during initialization.");e.Debug.assert(C<2,"Cannot start a block scope after transformation has completed.");T[S]=b;S++;b=undefined}function endBlockScope(){e.Debug.assert(C>0,"Cannot end a block scope during initialization.");e.Debug.assert(C<2,"Cannot end a block scope after transformation has completed.");var t=e.some(b)?[i.createVariableStatement(undefined,i.createVariableDeclarationList(b.map(function(e){return i.createVariableDeclaration(e)}),1))]:undefined;S--;b=T[S];if(S===0){T=[]}return t}function addBlockScopedVariable(t){e.Debug.assert(S>0,"Cannot add a block scoped variable outside of an iteration body.");(b||(b=[])).push(t)}function requestEmitHelper(t){e.Debug.assert(C>0,"Cannot modify the transformation context during initialization.");e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper.");if(t.dependencies){for(var r=0,n=t.dependencies;r0,"Cannot modify the transformation context during initialization.");e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var t=E;E=undefined;return t}function dispose(){if(C<3){for(var t=0,r=s;t");writeSpace();emit(e.type);popNameGenerationScope(e)}function emitJSDocFunctionType(e){writeKeyword("function");emitParameters(e,e.parameters);writePunctuation(":");emit(e.type)}function emitJSDocNullableType(e){writePunctuation("?");emit(e.type)}function emitJSDocNonNullableType(e){writePunctuation("!");emit(e.type)}function emitJSDocOptionalType(e){emit(e.type);writePunctuation("=")}function emitConstructorType(e){pushNameGenerationScope(e);emitModifiers(e,e.modifiers);writeKeyword("new");writeSpace();emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);writeSpace();writePunctuation("=>");writeSpace();emit(e.type);popNameGenerationScope(e)}function emitTypeQuery(e){writeKeyword("typeof");writeSpace();emit(e.exprName)}function emitTypeLiteral(t){writePunctuation("{");var r=e.getEmitFlags(t)&1?768:32897;emitList(t,t.members,r|524288);writePunctuation("}")}function emitArrayType(e){emit(e.elementType,re.parenthesizeElementTypeOfArrayType);writePunctuation("[");writePunctuation("]")}function emitRestOrJSDocVariadicType(e){writePunctuation("...");emit(e.type)}function emitTupleType(t){emitTokenWithComment(22,t.pos,writePunctuation,t);var r=e.getEmitFlags(t)&1?528:657;emitList(t,t.elements,r|524288);emitTokenWithComment(23,t.elements.end,writePunctuation,t)}function emitNamedTupleMember(e){emit(e.dotDotDotToken);emit(e.name);emit(e.questionToken);emitTokenWithComment(58,e.name.end,writePunctuation,e);writeSpace();emit(e.type)}function emitOptionalType(e){emit(e.type,re.parenthesizeElementTypeOfArrayType);writePunctuation("?")}function emitUnionType(e){emitList(e,e.types,516,re.parenthesizeMemberOfElementType)}function emitIntersectionType(e){emitList(e,e.types,520,re.parenthesizeMemberOfElementType)}function emitConditionalType(e){emit(e.checkType,re.parenthesizeMemberOfConditionalType);writeSpace();writeKeyword("extends");writeSpace();emit(e.extendsType,re.parenthesizeMemberOfConditionalType);writeSpace();writePunctuation("?");writeSpace();emit(e.trueType);writeSpace();writePunctuation(":");writeSpace();emit(e.falseType)}function emitInferType(e){writeKeyword("infer");writeSpace();emit(e.typeParameter)}function emitParenthesizedType(e){writePunctuation("(");emit(e.type);writePunctuation(")")}function emitThisType(){writeKeyword("this")}function emitTypeOperator(e){writeTokenText(e.operator,writeKeyword);writeSpace();emit(e.type,re.parenthesizeMemberOfElementType)}function emitIndexedAccessType(e){emit(e.objectType,re.parenthesizeMemberOfElementType);writePunctuation("[");emit(e.indexType);writePunctuation("]")}function emitMappedType(t){var r=e.getEmitFlags(t);writePunctuation("{");if(r&1){writeSpace()}else{writeLine();increaseIndent()}if(t.readonlyToken){emit(t.readonlyToken);if(t.readonlyToken.kind!==143){writeKeyword("readonly")}writeSpace()}writePunctuation("[");pipelineEmit(3,t.typeParameter);if(t.nameType){writeSpace();writeKeyword("as");writeSpace();emit(t.nameType)}writePunctuation("]");if(t.questionToken){emit(t.questionToken);if(t.questionToken.kind!==57){writePunctuation("?")}}writePunctuation(":");writeSpace();emit(t.type);writeTrailingSemicolon();if(r&1){writeSpace()}else{writeLine();decreaseIndent()}writePunctuation("}")}function emitLiteralType(e){emitExpression(e.literal)}function emitTemplateType(e){emit(e.head);emitList(e,e.templateSpans,262144)}function emitImportTypeNode(e){if(e.isTypeOf){writeKeyword("typeof");writeSpace()}writeKeyword("import");writePunctuation("(");emit(e.argument);writePunctuation(")");if(e.qualifier){writePunctuation(".");emit(e.qualifier)}emitTypeArguments(e,e.typeArguments)}function emitObjectBindingPattern(e){writePunctuation("{");emitList(e,e.elements,525136);writePunctuation("}")}function emitArrayBindingPattern(e){writePunctuation("[");emitList(e,e.elements,524880);writePunctuation("]")}function emitBindingElement(e){emit(e.dotDotDotToken);if(e.propertyName){emit(e.propertyName);writePunctuation(":");writeSpace()}emit(e.name);emitInitializer(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}function emitArrayLiteralExpression(e){var t=e.elements;var r=e.multiLine?65536:0;emitExpressionList(e,t,8914|r,re.parenthesizeExpressionForDisallowedComma)}function emitObjectLiteralExpression(t){e.forEach(t.properties,generateMemberNames);var r=e.getEmitFlags(t)&65536;if(r){increaseIndent()}var n=t.multiLine?65536:0;var i=v.languageVersion>=1&&!e.isJsonSourceFile(v)?64:0;emitList(t,t.properties,526226|i|n);if(r){decreaseIndent()}}function emitPropertyAccessExpression(t){emitExpression(t.expression,re.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos);var n=getLinesBetweenNodes(t,t.expression,r);var i=getLinesBetweenNodes(t,r,t.name);writeLinesAndIndent(n,false);var a=r.kind!==28&&mayNeedDotDotForPropertyAccess(t.expression)&&!P.hasTrailingComment()&&!P.hasTrailingWhitespace();if(a){writePunctuation(".")}if(t.questionDotToken){emit(r)}else{emitTokenWithComment(r.kind,t.expression.end,writePunctuation,t)}writeLinesAndIndent(i,false);emit(t.name);decreaseIndentIf(n,i)}function mayNeedDotDotForPropertyAccess(t){t=e.skipPartiallyEmittedExpressions(t);if(e.isNumericLiteral(t)){var r=getLiteralTextOfNode(t,true,false);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}else if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return typeof n==="number"&&isFinite(n)&&Math.floor(n)===n}}function emitElementAccessExpression(e){emitExpression(e.expression,re.parenthesizeLeftSideOfAccess);emit(e.questionDotToken);emitTokenWithComment(22,e.expression.end,writePunctuation,e);emitExpression(e.argumentExpression);emitTokenWithComment(23,e.argumentExpression.end,writePunctuation,e)}function emitCallExpression(t){var r=e.getEmitFlags(t)&536870912;if(r){writePunctuation("(");writeLiteral("0");writePunctuation(",");writeSpace()}emitExpression(t.expression,re.parenthesizeLeftSideOfAccess);if(r){writePunctuation(")")}emit(t.questionDotToken);emitTypeArguments(t,t.typeArguments);emitExpressionList(t,t.arguments,2576,re.parenthesizeExpressionForDisallowedComma)}function emitNewExpression(e){emitTokenWithComment(103,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeExpressionOfNew);emitTypeArguments(e,e.typeArguments);emitExpressionList(e,e.arguments,18960,re.parenthesizeExpressionForDisallowedComma)}function emitTaggedTemplateExpression(t){var r=e.getEmitFlags(t)&536870912;if(r){writePunctuation("(");writeLiteral("0");writePunctuation(",");writeSpace()}emitExpression(t.tag,re.parenthesizeLeftSideOfAccess);if(r){writePunctuation(")")}emitTypeArguments(t,t.typeArguments);writeSpace();emitExpression(t.template)}function emitTypeAssertionExpression(e){writePunctuation("<");emit(e.type);writePunctuation(">");emitExpression(e.expression,re.parenthesizeOperandOfPrefixUnary)}function emitParenthesizedExpression(e){var t=emitTokenWithComment(20,e.pos,writePunctuation,e);var r=writeLineSeparatorsAndIndentBefore(e.expression,e);emitExpression(e.expression,undefined);writeLineSeparatorsAfter(e.expression,e);decreaseIndentIf(r);emitTokenWithComment(21,e.expression?e.expression.end:t,writePunctuation,e)}function emitFunctionExpression(e){generateNameIfNeeded(e.name);emitFunctionDeclarationOrExpression(e)}function emitArrowFunction(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);emitSignatureAndBody(e,emitArrowFunctionHead)}function emitArrowFunctionHead(e){emitTypeParameters(e,e.typeParameters);emitParametersForArrow(e,e.parameters);emitTypeAnnotation(e.type);writeSpace();emit(e.equalsGreaterThanToken)}function emitDeleteExpression(e){emitTokenWithComment(89,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeOperandOfPrefixUnary)}function emitTypeOfExpression(e){emitTokenWithComment(112,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeOperandOfPrefixUnary)}function emitVoidExpression(e){emitTokenWithComment(114,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeOperandOfPrefixUnary)}function emitAwaitExpression(e){emitTokenWithComment(131,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeOperandOfPrefixUnary)}function emitPrefixUnaryExpression(e){writeTokenText(e.operator,writeOperator);if(shouldEmitWhitespaceBeforeOperand(e)){writeSpace()}emitExpression(e.operand,re.parenthesizeOperandOfPrefixUnary)}function shouldEmitWhitespaceBeforeOperand(e){var t=e.operand;return t.kind===217&&(e.operator===39&&(t.operator===39||t.operator===45)||e.operator===40&&(t.operator===40||t.operator===46))}function emitPostfixUnaryExpression(e){emitExpression(e.operand,re.parenthesizeOperandOfPostfixUnary);writeTokenText(e.operator,writeOperator)}function createEmitBinaryExpression(){return e.createBinaryExpressionTrampoline(onEnter,onLeft,onOperator,onRight,onExit,undefined);function onEnter(e,t){if(t){t.stackIndex++;t.preserveSourceNewlinesStack[t.stackIndex]=A;t.containerPosStack[t.stackIndex]=K;t.containerEndStack[t.stackIndex]=G;t.declarationListContainerEndStack[t.stackIndex]=z;var r=t.shouldEmitCommentsStack[t.stackIndex]=shouldEmitComments(e);var n=t.shouldEmitSourceMapsStack[t.stackIndex]=shouldEmitSourceMaps(e);u===null||u===void 0?void 0:u(e);if(r)emitCommentsBeforeNode(e);if(n)emitSourceMapsBeforeNode(e);beforeEmitNode(e)}else{t={stackIndex:0,preserveSourceNewlinesStack:[undefined],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[false],shouldEmitSourceMapsStack:[false]}}return t}function onLeft(e,t,r){return maybeEmitExpression(e,r,"left")}function onOperator(e,t,r){var n=e.kind!==27;var i=getLinesBetweenNodes(r,r.left,e);var a=getLinesBetweenNodes(r,e,r.right);writeLinesAndIndent(i,n);emitLeadingCommentsOfPosition(e.pos);writeTokenNode(e,e.kind===101?writeKeyword:writeOperator);emitTrailingCommentsOfPosition(e.end,true);writeLinesAndIndent(a,true)}function onRight(e,t,r){return maybeEmitExpression(e,r,"right")}function onExit(e,t){var r=getLinesBetweenNodes(e,e.left,e.operatorToken);var n=getLinesBetweenNodes(e,e.operatorToken,e.right);decreaseIndentIf(r,n);if(t.stackIndex>0){var i=t.preserveSourceNewlinesStack[t.stackIndex];var a=t.containerPosStack[t.stackIndex];var s=t.containerEndStack[t.stackIndex];var o=t.declarationListContainerEndStack[t.stackIndex];var c=t.shouldEmitCommentsStack[t.stackIndex];var u=t.shouldEmitSourceMapsStack[t.stackIndex];afterEmitNode(i);if(u)emitSourceMapsAfterNode(e);if(c)emitCommentsAfterNode(e,a,s,o);l===null||l===void 0?void 0:l(e);t.stackIndex--}}function maybeEmitExpression(t,r,n){var i=n==="left"?re.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):re.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind);var a=getPipelinePhase(0,1,t);if(a===pipelineEmitWithSubstitution){e.Debug.assertIsDefined(X);t=i(e.cast(X,e.isExpression));a=getNextPipelinePhase(1,1,t);X=undefined}if(a===pipelineEmitWithComments||a===pipelineEmitWithSourceMaps||a===pipelineEmitWithHint){if(e.isBinaryExpression(t)){return t}}Q=i;a(1,t)}}function emitConditionalExpression(e){var t=getLinesBetweenNodes(e,e.condition,e.questionToken);var r=getLinesBetweenNodes(e,e.questionToken,e.whenTrue);var n=getLinesBetweenNodes(e,e.whenTrue,e.colonToken);var i=getLinesBetweenNodes(e,e.colonToken,e.whenFalse);emitExpression(e.condition,re.parenthesizeConditionOfConditionalExpression);writeLinesAndIndent(t,true);emit(e.questionToken);writeLinesAndIndent(r,true);emitExpression(e.whenTrue,re.parenthesizeBranchOfConditionalExpression);decreaseIndentIf(t,r);writeLinesAndIndent(n,true);emit(e.colonToken);writeLinesAndIndent(i,true);emitExpression(e.whenFalse,re.parenthesizeBranchOfConditionalExpression);decreaseIndentIf(n,i)}function emitTemplateExpression(e){emit(e.head);emitList(e,e.templateSpans,262144)}function emitYieldExpression(e){emitTokenWithComment(125,e.pos,writeKeyword,e);emit(e.asteriskToken);emitExpressionWithLeadingSpace(e.expression,re.parenthesizeExpressionForDisallowedComma)}function emitSpreadElement(e){emitTokenWithComment(25,e.pos,writePunctuation,e);emitExpression(e.expression,re.parenthesizeExpressionForDisallowedComma)}function emitClassExpression(e){generateNameIfNeeded(e.name);emitClassDeclarationOrExpression(e)}function emitExpressionWithTypeArguments(e){emitExpression(e.expression,re.parenthesizeLeftSideOfAccess);emitTypeArguments(e,e.typeArguments)}function emitAsExpression(e){emitExpression(e.expression,undefined);if(e.type){writeSpace();writeKeyword("as");writeSpace();emit(e.type)}}function emitNonNullExpression(e){emitExpression(e.expression,re.parenthesizeLeftSideOfAccess);writeOperator("!")}function emitMetaProperty(e){writeToken(e.keywordToken,e.pos,writePunctuation);writePunctuation(".");emit(e.name)}function emitTemplateSpan(e){emitExpression(e.expression);emit(e.literal)}function emitBlock(e){emitBlockStatements(e,!e.multiLine&&isEmptyBlock(e))}function emitBlockStatements(t,r){emitTokenWithComment(18,t.pos,writePunctuation,t);var n=r||e.getEmitFlags(t)&1?768:129;emitList(t,t.statements,n);emitTokenWithComment(19,t.statements.end,writePunctuation,t,!!(n&1))}function emitVariableStatement(e){emitModifiers(e,e.modifiers);emit(e.declarationList);writeTrailingSemicolon()}function emitEmptyStatement(e){if(e){writePunctuation(";")}else{writeTrailingSemicolon()}}function emitExpressionStatement(t){emitExpression(t.expression,re.parenthesizeExpressionOfExpressionStatement);if(!e.isJsonSourceFile(v)||e.nodeIsSynthesized(t.expression)){writeTrailingSemicolon()}}function emitIfStatement(e){var t=emitTokenWithComment(99,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.thenStatement);if(e.elseStatement){writeLineOrSpace(e,e.thenStatement,e.elseStatement);emitTokenWithComment(91,e.thenStatement.end,writeKeyword,e);if(e.elseStatement.kind===237){writeSpace();emit(e.elseStatement)}else{emitEmbeddedStatement(e,e.elseStatement)}}}function emitWhileClause(e,t){var r=emitTokenWithComment(115,t,writeKeyword,e);writeSpace();emitTokenWithComment(20,r,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e)}function emitDoStatement(t){emitTokenWithComment(90,t.pos,writeKeyword,t);emitEmbeddedStatement(t,t.statement);if(e.isBlock(t.statement)&&!A){writeSpace()}else{writeLineOrSpace(t,t.statement,t.expression)}emitWhileClause(t,t.statement.end);writeTrailingSemicolon()}function emitWhileStatement(e){emitWhileClause(e,e.pos);emitEmbeddedStatement(e,e.statement)}function emitForStatement(e){var t=emitTokenWithComment(97,e.pos,writeKeyword,e);writeSpace();var r=emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);r=emitTokenWithComment(26,e.initializer?e.initializer.end:r,writePunctuation,e);emitExpressionWithLeadingSpace(e.condition);r=emitTokenWithComment(26,e.condition?e.condition.end:r,writePunctuation,e);emitExpressionWithLeadingSpace(e.incrementor);emitTokenWithComment(21,e.incrementor?e.incrementor.end:r,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForInStatement(e){var t=emitTokenWithComment(97,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);writeSpace();emitTokenWithComment(101,e.initializer.end,writeKeyword,e);writeSpace();emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForOfStatement(e){var t=emitTokenWithComment(97,e.pos,writeKeyword,e);writeSpace();emitWithTrailingSpace(e.awaitModifier);emitTokenWithComment(20,t,writePunctuation,e);emitForBinding(e.initializer);writeSpace();emitTokenWithComment(158,e.initializer.end,writeKeyword,e);writeSpace();emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitForBinding(e){if(e!==undefined){if(e.kind===253){emit(e)}else{emitExpression(e)}}}function emitContinueStatement(e){emitTokenWithComment(86,e.pos,writeKeyword,e);emitWithLeadingSpace(e.label);writeTrailingSemicolon()}function emitBreakStatement(e){emitTokenWithComment(81,e.pos,writeKeyword,e);emitWithLeadingSpace(e.label);writeTrailingSemicolon()}function emitTokenWithComment(t,r,n,i,a){var s=e.getParseTreeNode(i);var o=s&&s.kind===i.kind;var c=r;if(o&&v){r=e.skipTrivia(v.text,r)}if(o&&i.pos!==c){var u=a&&v&&!e.positionsAreOnSameLine(c,r,v);if(u){increaseIndent()}emitLeadingCommentsOfPosition(c);if(u){decreaseIndent()}}r=writeTokenText(t,n,r);if(o&&i.end!==r){var l=i.kind===286;emitTrailingCommentsOfPosition(r,!l,l)}return r}function emitReturnStatement(e){emitTokenWithComment(105,e.pos,writeKeyword,e);emitExpressionWithLeadingSpace(e.expression);writeTrailingSemicolon()}function emitWithStatement(e){var t=emitTokenWithComment(116,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);emitEmbeddedStatement(e,e.statement)}function emitSwitchStatement(e){var t=emitTokenWithComment(107,e.pos,writeKeyword,e);writeSpace();emitTokenWithComment(20,t,writePunctuation,e);emitExpression(e.expression);emitTokenWithComment(21,e.expression.end,writePunctuation,e);writeSpace();emit(e.caseBlock)}function emitLabeledStatement(e){emit(e.label);emitTokenWithComment(58,e.label.end,writePunctuation,e);writeSpace();emit(e.statement)}function emitThrowStatement(e){emitTokenWithComment(109,e.pos,writeKeyword,e);emitExpressionWithLeadingSpace(e.expression);writeTrailingSemicolon()}function emitTryStatement(e){emitTokenWithComment(111,e.pos,writeKeyword,e);writeSpace();emit(e.tryBlock);if(e.catchClause){writeLineOrSpace(e,e.tryBlock,e.catchClause);emit(e.catchClause)}if(e.finallyBlock){writeLineOrSpace(e,e.catchClause||e.tryBlock,e.finallyBlock);emitTokenWithComment(96,(e.catchClause||e.tryBlock).end,writeKeyword,e);writeSpace();emit(e.finallyBlock)}}function emitDebuggerStatement(e){writeToken(87,e.pos,writeKeyword);writeTrailingSemicolon()}function emitVariableDeclaration(e){emit(e.name);emit(e.exclamationToken);emitTypeAnnotation(e.type);emitInitializer(e.initializer,e.type?e.type.end:e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}function emitVariableDeclarationList(t){writeKeyword(e.isLet(t)?"let":e.isVarConst(t)?"const":"var");writeSpace();emitList(t,t.declarations,528)}function emitFunctionDeclaration(e){emitFunctionDeclarationOrExpression(e)}function emitFunctionDeclarationOrExpression(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("function");emit(e.asteriskToken);writeSpace();emitIdentifierName(e.name);emitSignatureAndBody(e,emitSignatureHead)}function emitSignatureAndBody(t,r){var n=t.body;if(n){if(e.isBlock(n)){var i=e.getEmitFlags(t)&65536;if(i){increaseIndent()}pushNameGenerationScope(t);e.forEach(t.parameters,generateNames);generateNames(t.body);r(t);emitBlockFunctionBody(n);popNameGenerationScope(t);if(i){decreaseIndent()}}else{r(t);writeSpace();emitExpression(n,re.parenthesizeConciseBodyOfArrowFunction)}}else{r(t);writeTrailingSemicolon()}}function emitSignatureHead(e){emitTypeParameters(e,e.typeParameters);emitParameters(e,e.parameters);emitTypeAnnotation(e.type)}function shouldEmitBlockFunctionBodyOnSingleLine(t){if(e.getEmitFlags(t)&1){return true}if(t.multiLine){return false}if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,v)){return false}if(getLeadingLineTerminatorCount(t,t.statements,2)||getClosingLineTerminatorCount(t,t.statements,2)){return false}var r;for(var n=0,i=t.statements;n0){return false}r=a}return true}function emitBlockFunctionBody(e){u===null||u===void 0?void 0:u(e);writeSpace();writePunctuation("{");increaseIndent();var t=shouldEmitBlockFunctionBodyOnSingleLine(e)?emitBlockFunctionBodyOnSingleLine:emitBlockFunctionBodyWorker;if(emitBodyWithDetachedComments){emitBodyWithDetachedComments(e,e.statements,t)}else{t(e)}decreaseIndent();writeToken(19,e.statements.end,writePunctuation,e);l===null||l===void 0?void 0:l(e)}function emitBlockFunctionBodyOnSingleLine(e){emitBlockFunctionBodyWorker(e,true)}function emitBlockFunctionBodyWorker(e,t){var r=emitPrologueDirectives(e.statements);var n=P.getTextPos();emitHelpers(e);if(r===0&&n===P.getTextPos()&&t){decreaseIndent();emitList(e,e.statements,768);increaseIndent()}else{emitList(e,e.statements,1,undefined,r)}}function emitClassDeclaration(e){emitClassDeclarationOrExpression(e)}function emitClassDeclarationOrExpression(t){e.forEach(t.members,generateMemberNames);emitDecorators(t,t.decorators);emitModifiers(t,t.modifiers);writeKeyword("class");if(t.name){writeSpace();emitIdentifierName(t.name)}var r=e.getEmitFlags(t)&65536;if(r){increaseIndent()}emitTypeParameters(t,t.typeParameters);emitList(t,t.heritageClauses,0);writeSpace();writePunctuation("{");emitList(t,t.members,129);writePunctuation("}");if(r){decreaseIndent()}}function emitInterfaceDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("interface");writeSpace();emit(e.name);emitTypeParameters(e,e.typeParameters);emitList(e,e.heritageClauses,512);writeSpace();writePunctuation("{");emitList(e,e.members,129);writePunctuation("}")}function emitTypeAliasDeclaration(e){emitDecorators(e,e.decorators);emitModifiers(e,e.modifiers);writeKeyword("type");writeSpace();emit(e.name);emitTypeParameters(e,e.typeParameters);writeSpace();writePunctuation("=");writeSpace();emit(e.type);writeTrailingSemicolon()}function emitEnumDeclaration(e){emitModifiers(e,e.modifiers);writeKeyword("enum");writeSpace();emit(e.name);writeSpace();writePunctuation("{");emitList(e,e.members,145);writePunctuation("}")}function emitModuleDeclaration(t){emitModifiers(t,t.modifiers);if(~t.flags&1024){writeKeyword(t.flags&16?"namespace":"module");writeSpace()}emit(t.name);var r=t.body;if(!r)return writeTrailingSemicolon();while(r&&e.isModuleDeclaration(r)){writePunctuation(".");emit(r.name);r=r.body}writeSpace();emit(r)}function emitModuleBlock(t){pushNameGenerationScope(t);e.forEach(t.statements,generateNames);emitBlockStatements(t,isEmptyBlock(t));popNameGenerationScope(t)}function emitCaseBlock(e){emitTokenWithComment(18,e.pos,writePunctuation,e);emitList(e,e.clauses,129);emitTokenWithComment(19,e.clauses.end,writePunctuation,e,true)}function emitImportEqualsDeclaration(e){emitModifiers(e,e.modifiers);emitTokenWithComment(100,e.modifiers?e.modifiers.end:e.pos,writeKeyword,e);writeSpace();if(e.isTypeOnly){emitTokenWithComment(150,e.pos,writeKeyword,e);writeSpace()}emit(e.name);writeSpace();emitTokenWithComment(63,e.name.end,writePunctuation,e);writeSpace();emitModuleReference(e.moduleReference);writeTrailingSemicolon()}function emitModuleReference(e){if(e.kind===79){emitExpression(e)}else{emit(e)}}function emitImportDeclaration(e){emitModifiers(e,e.modifiers);emitTokenWithComment(100,e.modifiers?e.modifiers.end:e.pos,writeKeyword,e);writeSpace();if(e.importClause){emit(e.importClause);writeSpace();emitTokenWithComment(154,e.importClause.end,writeKeyword,e);writeSpace()}emitExpression(e.moduleSpecifier);writeTrailingSemicolon()}function emitImportClause(e){if(e.isTypeOnly){emitTokenWithComment(150,e.pos,writeKeyword,e);writeSpace()}emit(e.name);if(e.name&&e.namedBindings){emitTokenWithComment(27,e.name.end,writePunctuation,e);writeSpace()}emit(e.namedBindings)}function emitNamespaceImport(e){var t=emitTokenWithComment(41,e.pos,writePunctuation,e);writeSpace();emitTokenWithComment(127,t,writeKeyword,e);writeSpace();emit(e.name)}function emitNamedImports(e){emitNamedImportsOrExports(e)}function emitImportSpecifier(e){emitImportOrExportSpecifier(e)}function emitExportAssignment(e){var t=emitTokenWithComment(93,e.pos,writeKeyword,e);writeSpace();if(e.isExportEquals){emitTokenWithComment(63,t,writeOperator,e)}else{emitTokenWithComment(88,t,writeKeyword,e)}writeSpace();emitExpression(e.expression,e.isExportEquals?re.getParenthesizeRightSideOfBinaryForOperator(63):re.parenthesizeExpressionOfExportDefault);writeTrailingSemicolon()}function emitExportDeclaration(e){var t=emitTokenWithComment(93,e.pos,writeKeyword,e);writeSpace();if(e.isTypeOnly){t=emitTokenWithComment(150,t,writeKeyword,e);writeSpace()}if(e.exportClause){emit(e.exportClause)}else{t=emitTokenWithComment(41,t,writePunctuation,e)}if(e.moduleSpecifier){writeSpace();var r=e.exportClause?e.exportClause.end:t;emitTokenWithComment(154,r,writeKeyword,e);writeSpace();emitExpression(e.moduleSpecifier)}writeTrailingSemicolon()}function emitNamespaceExportDeclaration(e){var t=emitTokenWithComment(93,e.pos,writeKeyword,e);writeSpace();t=emitTokenWithComment(127,t,writeKeyword,e);writeSpace();t=emitTokenWithComment(141,t,writeKeyword,e);writeSpace();emit(e.name);writeTrailingSemicolon()}function emitNamespaceExport(e){var t=emitTokenWithComment(41,e.pos,writePunctuation,e);writeSpace();emitTokenWithComment(127,t,writeKeyword,e);writeSpace();emit(e.name)}function emitNamedExports(e){emitNamedImportsOrExports(e)}function emitExportSpecifier(e){emitImportOrExportSpecifier(e)}function emitNamedImportsOrExports(e){writePunctuation("{");emitList(e,e.elements,525136);writePunctuation("}")}function emitImportOrExportSpecifier(e){if(e.propertyName){emit(e.propertyName);writeSpace();emitTokenWithComment(127,e.propertyName.end,writeKeyword,e);writeSpace()}emit(e.name)}function emitExternalModuleReference(e){writeKeyword("require");writePunctuation("(");emitExpression(e.expression);writePunctuation(")")}function emitJsxElement(e){emit(e.openingElement);emitList(e,e.children,262144);emit(e.closingElement)}function emitJsxSelfClosingElement(e){writePunctuation("<");emitJsxTagName(e.tagName);emitTypeArguments(e,e.typeArguments);writeSpace();emit(e.attributes);writePunctuation("/>")}function emitJsxFragment(e){emit(e.openingFragment);emitList(e,e.children,262144);emit(e.closingFragment)}function emitJsxOpeningElementOrFragment(t){writePunctuation("<");if(e.isJsxOpeningElement(t)){var r=writeLineSeparatorsAndIndentBefore(t.tagName,t);emitJsxTagName(t.tagName);emitTypeArguments(t,t.typeArguments);if(t.attributes.properties&&t.attributes.properties.length>0){writeSpace()}emit(t.attributes);writeLineSeparatorsAfter(t.attributes,t);decreaseIndentIf(r)}writePunctuation(">")}function emitJsxText(e){P.writeLiteral(e.text)}function emitJsxClosingElementOrFragment(t){writePunctuation("")}function emitJsxAttributes(e){emitList(e,e.properties,262656)}function emitJsxAttribute(e){emit(e.name);emitNodeWithPrefix("=",writePunctuation,e.initializer,emitJsxAttributeValue)}function emitJsxSpreadAttribute(e){writePunctuation("{...");emitExpression(e.expression);writePunctuation("}")}function hasTrailingCommentsAtPosition(t){var r=false;e.forEachTrailingCommentRange((v===null||v===void 0?void 0:v.text)||"",t+1,function(){return r=true});return r}function hasLeadingCommentsAtPosition(t){var r=false;e.forEachLeadingCommentRange((v===null||v===void 0?void 0:v.text)||"",t+1,function(){return r=true});return r}function hasCommentsAtPosition(e){return hasTrailingCommentsAtPosition(e)||hasLeadingCommentsAtPosition(e)}function emitJsxExpression(t){var r;if(t.expression||!Y&&!e.nodeIsSynthesized(t)&&hasCommentsAtPosition(t.pos)){var n=v&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(v,t.pos).line!==e.getLineAndCharacterOfPosition(v,t.end).line;if(n){P.increaseIndent()}var i=emitTokenWithComment(18,t.pos,writePunctuation,t);emit(t.dotDotDotToken);emitExpression(t.expression);emitTokenWithComment(19,((r=t.expression)===null||r===void 0?void 0:r.end)||i,writePunctuation,t);if(n){P.decreaseIndent()}}}function emitJsxTagName(e){if(e.kind===79){emitExpression(e)}else{emit(e)}}function emitCaseClause(e){emitTokenWithComment(82,e.pos,writeKeyword,e);writeSpace();emitExpression(e.expression,re.parenthesizeExpressionForDisallowedComma);emitCaseOrDefaultClauseRest(e,e.statements,e.expression.end)}function emitDefaultClause(e){var t=emitTokenWithComment(88,e.pos,writeKeyword,e);emitCaseOrDefaultClauseRest(e,e.statements,t)}function emitCaseOrDefaultClauseRest(t,r,n){var i=r.length===1&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],v));var a=163969;if(i){writeToken(58,n,writePunctuation,t);writeSpace();a&=~(1|128)}else{emitTokenWithComment(58,n,writePunctuation,t)}emitList(t,r,a)}function emitHeritageClause(e){writeSpace();writeTokenText(e.token,writeKeyword);writeSpace();emitList(e,e.types,528)}function emitCatchClause(e){var t=emitTokenWithComment(83,e.pos,writeKeyword,e);writeSpace();if(e.variableDeclaration){emitTokenWithComment(20,t,writePunctuation,e);emit(e.variableDeclaration);emitTokenWithComment(21,e.variableDeclaration.end,writePunctuation,e);writeSpace()}emit(e.block)}function emitPropertyAssignment(t){emit(t.name);writePunctuation(":");writeSpace();var r=t.initializer;if((e.getEmitFlags(r)&512)===0){var n=e.getCommentRange(r);emitTrailingCommentsOfPosition(n.pos)}emitExpression(r,re.parenthesizeExpressionForDisallowedComma)}function emitShorthandPropertyAssignment(e){emit(e.name);if(e.objectAssignmentInitializer){writeSpace();writePunctuation("=");writeSpace();emitExpression(e.objectAssignmentInitializer,re.parenthesizeExpressionForDisallowedComma)}}function emitSpreadAssignment(e){if(e.expression){emitTokenWithComment(25,e.pos,writePunctuation,e);emitExpression(e.expression,re.parenthesizeExpressionForDisallowedComma)}}function emitEnumMember(e){emit(e.name);emitInitializer(e.initializer,e.name.end,e,re.parenthesizeExpressionForDisallowedComma)}function emitJSDoc(t){O("/**");if(t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r){var n=r.split(/\r\n?|\n/g);for(var i=0,a=n;i');if(w)w.sections.push({pos:i,end:P.getTextPos(),kind:"no-default-lib"});writeLine()}if(v&&v.moduleName){writeComment('/// ');writeLine()}if(v&&v.amdDependencies){for(var a=0,s=v.amdDependencies;a')}else{writeComment('/// ')}writeLine()}}for(var c=0,u=t;c');if(w)w.sections.push({pos:i,end:P.getTextPos(),kind:"reference",data:l.fileName});writeLine()}for(var p=0,d=r;p');if(w)w.sections.push({pos:i,end:P.getTextPos(),kind:"type",data:l.fileName});writeLine()}for(var f=0,m=n;f');if(w)w.sections.push({pos:i,end:P.getTextPos(),kind:"lib",data:l.fileName});writeLine()}}function emitSourceFileWorker(t){var r=t.statements;pushNameGenerationScope(t);e.forEach(t.statements,generateNames);emitHelpers(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});emitTripleSlashDirectivesIfNeeded(t);emitList(t,r,1,undefined,n===-1?r.length:n);popNameGenerationScope(t)}function emitPartiallyEmittedExpression(e){emitExpression(e.expression)}function emitCommaList(e){emitExpressionList(e,e.elements,528,undefined)}function emitPrologueDirectives(t,r,n,i){var a=!!r;for(var s=0;s=n.length||o===0;if(u&&i&32768){if(p){p(n)}if(d){d(n)}return}if(i&15360){writePunctuation(getOpeningBracket(i));if(u&&n){emitTrailingCommentsOfPosition(n.pos,true)}}if(p){p(n)}if(u){if(i&1&&!(A&&(!r||e.rangeIsOnSingleLine(r,v)))){writeLine()}else if(i&256&&!(i&524288)){writeSpace()}}else{e.Debug.type(n);var l=(i&262144)===0;var f=l;var m=getLeadingLineTerminatorCount(r,n,i);if(m){writeLine(m);f=false}else if(i&256){writeSpace()}if(i&128){increaseIndent()}var g=void 0;var _=void 0;var h=false;for(var y=0;y0){if((i&(3|128))===0){increaseIndent();h=true}writeLine(S);f=false}else if(g&&i&512){writeSpace()}}_=recordBundleFileInternalSectionStart(T);if(f){if(emitTrailingCommentsOfPosition){var b=e.getCommentRange(T);emitTrailingCommentsOfPosition(b.pos)}}else{f=l}k=T.pos;if(t.length===1){t(T)}else{t(T,a)}if(h){decreaseIndent();h=false}g=T}var E=g?e.getEmitFlags(g):0;var x=Y||!!(E&1024);var D=(n===null||n===void 0?void 0:n.hasTrailingComma)&&i&64&&i&16;if(D){if(g&&!x){emitTokenWithComment(27,g.end,writePunctuation,g)}else{writePunctuation(",")}}if(g&&(r?r.end:-1)!==g.end&&i&60&&!x){emitLeadingCommentsOfPosition(D&&(n===null||n===void 0?void 0:n.end)?n.end:g.end)}if(i&128){decreaseIndent()}recordBundleFileInternalSectionEnd(_);var C=getClosingLineTerminatorCount(r,n,i);if(C){writeLine(C)}else if(i&(2097152|256)){writeSpace()}}if(d){d(n)}if(i&15360){if(u&&n){emitLeadingCommentsOfPosition(n.end)}writePunctuation(getClosingBracket(i))}}function writeLiteral(e){P.writeLiteral(e)}function writeStringLiteral(e){P.writeStringLiteral(e)}function writeBase(e){P.write(e)}function writeSymbol(e,t){P.writeSymbol(e,t)}function writePunctuation(e){P.writePunctuation(e)}function writeTrailingSemicolon(){P.writeTrailingSemicolon(";")}function writeKeyword(e){P.writeKeyword(e)}function writeOperator(e){P.writeOperator(e)}function writeParameter(e){P.writeParameter(e)}function writeComment(e){P.writeComment(e)}function writeSpace(){P.writeSpace(" ")}function writeProperty(e){P.writeProperty(e)}function writeLine(e){if(e===void 0){e=1}for(var t=0;t0)}}function increaseIndent(){P.increaseIndent()}function decreaseIndent(){P.decreaseIndent()}function writeToken(e,t,r,n){return!B?emitTokenWithSourceMap(n,e,r,t,writeTokenText):writeTokenText(e,r,t)}function writeTokenNode(t,r){if(f){f(t)}r(e.tokenToString(t.kind));if(m){m(t)}}function writeTokenText(t,r,n){var i=e.tokenToString(t);r(i);return n<0?n:n+i.length}function writeLineOrSpace(t,r,n){if(e.getEmitFlags(t)&1){writeSpace()}else if(A){var i=getLinesBetweenNodes(t,r,n);if(i){writeLine(i)}else{writeSpace()}}else{writeLine()}}function writeLines(t){var r=t.split(/\r\n?|\n/g);var n=e.guessIndentation(r);for(var i=0,a=r;i0||i>0)&&n!==i){if(!a){emitLeadingComments(n,t.kind!==344)}if(!a||n>=0&&(r&512)!==0){K=n}if(!s||i>=0&&(r&1024)!==0){G=i;if(t.kind===253){z=i}}}e.forEach(e.getSyntheticLeadingComments(t),emitLeadingSynthesizedComment);te()}function emitTrailingCommentsOfNode(t,r,n,i,a,s,o){ee();var c=i<0||(r&1024)!==0||t.kind===11;e.forEach(e.getSyntheticTrailingComments(t),emitTrailingSynthesizedComment);if((n>0||i>0)&&n!==i){K=a;G=s;z=o;if(!c&&t.kind!==344){emitTrailingComments(i)}}te()}function emitLeadingSynthesizedComment(e){if(e.hasLeadingNewline||e.kind===2){P.writeLine()}writeSynthesizedComment(e);if(e.hasTrailingNewLine||e.kind===2){P.writeLine()}else{P.writeSpace(" ")}}function emitTrailingSynthesizedComment(e){if(!P.isAtStartOfLine()){P.writeSpace(" ")}writeSynthesizedComment(e);if(e.hasTrailingNewLine){P.writeLine()}}function writeSynthesizedComment(t){var r=formatSynthesizedComment(t);var n=t.kind===3?e.computeLineStarts(r):undefined;e.writeCommentRange(r,n,P,0,r.length,_)}function formatSynthesizedComment(e){return e.kind===3?"/*"+e.text+"*/":"//"+e.text}function emitBodyWithDetachedComments(t,r,n){ee();var i=r.pos,a=r.end;var s=e.getEmitFlags(t);var o=i<0||(s&512)!==0;var c=Y||a<0||(s&1024)!==0;if(!o){emitDetachedCommentsAndUpdateCommentsInfo(r)}te();if(s&2048&&!Y){Y=true;n(t);Y=false}else{n(t)}ee();if(!c){emitLeadingComments(r.end,true);if($&&!P.isAtStartOfLine()){P.writeLine()}}te()}function originalNodesHaveSameParent(t,r){t=e.getOriginalNode(t);return t.parent&&t.parent===e.getOriginalNode(r).parent}function siblingNodePositionsAreComparable(t,r){if(r.pos-1&&i.indexOf(r)===a+1}function emitLeadingComments(e,t){$=false;if(t){if(e===0&&(v===null||v===void 0?void 0:v.isDeclarationFile)){forEachLeadingCommentToEmit(e,emitNonTripleSlashLeadingComment)}else{forEachLeadingCommentToEmit(e,emitLeadingComment)}}else if(e===0){forEachLeadingCommentToEmit(e,emitTripleSlashLeadingComment)}}function emitTripleSlashLeadingComment(e,t,r,n,i){if(isTripleSlashComment(e,t)){emitLeadingComment(e,t,r,n,i)}}function emitNonTripleSlashLeadingComment(e,t,r,n,i){if(!isTripleSlashComment(e,t)){emitLeadingComment(e,t,r,n,i)}}function shouldWriteComment(r,n){if(t.onlyPrintJsDocStyle){return e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}return true}function emitLeadingComment(t,r,n,i,a){if(!shouldWriteComment(v.text,t))return;if(!$){e.emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(),P,a,t);$=true}emitPos(t);e.writeCommentRange(v.text,getCurrentLineMap(),P,t,r,_);emitPos(r);if(i){P.writeLine()}else if(n===3){P.writeSpace(" ")}}function emitLeadingCommentsOfPosition(e){if(Y||e===-1){return}emitLeadingComments(e,true)}function emitTrailingComments(e){forEachTrailingCommentToEmit(e,emitTrailingComment)}function emitTrailingComment(t,r,n,i){if(!shouldWriteComment(v.text,t))return;if(!P.isAtStartOfLine()){P.writeSpace(" ")}emitPos(t);e.writeCommentRange(v.text,getCurrentLineMap(),P,t,r,_);emitPos(r);if(i){P.writeLine()}}function emitTrailingCommentsOfPosition(e,t,r){if(Y){return}ee();forEachTrailingCommentToEmit(e,t?emitTrailingComment:r?emitTrailingCommentOfPositionNoNewline:emitTrailingCommentOfPosition);te()}function emitTrailingCommentOfPositionNoNewline(t,r,n){emitPos(t);e.writeCommentRange(v.text,getCurrentLineMap(),P,t,r,_);emitPos(r);if(n===2){P.writeLine()}}function emitTrailingCommentOfPosition(t,r,n,i){emitPos(t);e.writeCommentRange(v.text,getCurrentLineMap(),P,t,r,_);emitPos(r);if(i){P.writeLine()}else{P.writeSpace(" ")}}function forEachLeadingCommentToEmit(t,r){if(v&&(K===-1||t!==K)){if(hasDetachedComments(t)){forEachLeadingCommentWithoutDetachedComments(r)}else{e.forEachLeadingCommentRange(v.text,t,r,t)}}}function forEachTrailingCommentToEmit(t,r){if(v&&(G===-1||t!==G&&t!==z)){e.forEachTrailingCommentRange(v.text,t,r)}}function hasDetachedComments(t){return q!==undefined&&e.last(q).nodePos===t}function forEachLeadingCommentWithoutDetachedComments(t){var r=e.last(q).detachedCommentEndPos;if(q.length-1){q.pop()}else{q=undefined}e.forEachLeadingCommentRange(v.text,r,t,r)}function emitDetachedCommentsAndUpdateCommentsInfo(t){var r=e.emitDetachedComments(v.text,getCurrentLineMap(),P,emitComment,t,_,Y);if(r){if(q){q.push(r)}else{q=[r]}}}function emitComment(t,r,n,i,a,s){if(!shouldWriteComment(v.text,i))return;emitPos(i);e.writeCommentRange(t,r,n,i,a,s);emitPos(a)}function isTripleSlashComment(t,r){return e.isRecognizedTripleSlashComment(v.text,t,r)}function getParsedSourceMap(t){if(t.parsedSourceMap===undefined&&t.sourceMapText!==undefined){t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||false}return t.parsedSourceMap||undefined}function pipelineEmitWithSourceMaps(e,t){var r=getNextPipelinePhase(3,e,t);emitSourceMapsBeforeNode(t);r(e,t);emitSourceMapsAfterNode(t)}function emitSourceMapsBeforeNode(t){var r=e.getEmitFlags(t);var n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=getParsedSourceMap(t.parent);if(i&&j){j.appendSourceMap(P.getLine(),P.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}}else{var a=n.source||J;if(t.kind!==344&&(r&16)===0&&n.pos>=0){emitSourcePos(n.source||J,skipSourceTrivia(a,n.pos))}if(r&64){B=true}}}function emitSourceMapsAfterNode(t){var r=e.getEmitFlags(t);var n=e.getSourceMapRange(t);if(!e.isUnparsedNode(t)){if(r&64){B=false}if(t.kind!==344&&(r&32)===0&&n.end>=0){emitSourcePos(n.source||J,n.end)}}}function skipSourceTrivia(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function emitPos(t){if(B||e.positionIsSynthesized(t)||isJsonSourceMapSource(J)){return}var r=e.getLineAndCharacterOfPosition(J,t),n=r.line,i=r.character;j.addMapping(P.getLine(),P.getColumn(),U,n,i,undefined)}function emitSourcePos(e,t){if(e!==J){var r=J;var n=U;setSourceMapSource(e);emitPos(t);resetSourceMapSource(r,n)}else{emitPos(t)}}function emitTokenWithSourceMap(t,r,n,i,a){if(B||t&&e.isInJsonFile(t)){return a(r,n,i)}var s=t&&t.emitNode;var o=s&&s.flags||0;var c=s&&s.tokenSourceMapRanges&&s.tokenSourceMapRanges[r];var u=c&&c.source||J;i=skipSourceTrivia(u,c?c.pos:i);if((o&128)===0&&i>=0){emitSourcePos(u,i)}i=a(r,n,i);if(c)i=c.end;if((o&256)===0&&i>=0){emitSourcePos(u,i)}return i}function setSourceMapSource(e){if(B){return}J=e;if(e===V){U=W;return}if(isJsonSourceMapSource(e)){return}U=j.addSource(e.fileName);if(t.inlineSources){j.setSourceContent(U,e.text)}V=e;W=U}function resetSourceMapSource(e,t){J=e;U=t}function isJsonSourceMapSource(t){return e.fileExtensionIs(t.fileName,".json")}}e.createPrinter=createPrinter;function createBracketsMap(){var e=[];e[1024]=["{","}"];e[2048]=["(",")"];e[4096]=["<",">"];e[8192]=["[","]"];return e}function getOpeningBracket(e){return t[e&15360][0]}function getClosingBracket(e){return t[e&15360][1]}var i;(function(e){e[e["Auto"]=0]="Auto";e[e["CountMask"]=268435455]="CountMask";e[e["_i"]=268435456]="_i"})(i||(i={}))})(u||(u={}));var u;(function(e){function createCachedDirectoryStructureHost(t,r,n){if(!t.getDirectories||!t.readDirectory){return undefined}var i=new e.Map;var a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:fileExists,readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&directoryExists,getDirectories:getDirectories,readDirectory:readDirectory,createDirectory:t.createDirectory&&createDirectory,writeFile:t.writeFile&&writeFile,addOrDeleteFileOrDirectory:addOrDeleteFileOrDirectory,addOrDeleteFile:addOrDeleteFile,clearCache:clearCache,realpath:t.realpath&&realpath};function toPath(t){return e.toPath(t,r,a)}function getCachedFileSystemEntries(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function getCachedFileSystemEntriesForBaseDir(t){return getCachedFileSystemEntries(e.getDirectoryPath(t))}function getBaseNameOfFileName(t){return e.getBaseFileName(e.normalizePath(t))}function createCachedFileSystemEntries(r,n){var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(toPath(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,undefined,undefined,["*.*"]),getBaseNameOfFileName)||[],directories:t.getDirectories(r)||[]};i.set(e.ensureTrailingDirectorySeparator(n),s);return s}if((a=t.directoryExists)===null||a===void 0?void 0:a.call(t,r)){i.set(n,false);return false}return undefined}function tryReadDirectory(t,r){r=e.ensureTrailingDirectorySeparator(r);var n=getCachedFileSystemEntries(r);if(n){return n}try{return createCachedFileSystemEntries(t,r)}catch(t){e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(r)));return undefined}}function fileNameEqual(e,t){return a(e)===a(t)}function hasEntry(t,r){return e.some(t,function(e){return fileNameEqual(e,r)})}function updateFileSystemEntry(t,r,n){if(hasEntry(t,r)){if(!n){return e.filterMutate(t,function(e){return!fileNameEqual(e,r)})}}else if(n){return t.push(r)}}function writeFile(e,r,n){var i=toPath(e);var a=getCachedFileSystemEntriesForBaseDir(i);if(a){updateFilesOfFileSystemEntry(a,getBaseNameOfFileName(e),true)}return t.writeFile(e,r,n)}function fileExists(e){var r=toPath(e);var n=getCachedFileSystemEntriesForBaseDir(r);return n&&hasEntry(n.files,getBaseNameOfFileName(e))||t.fileExists(e)}function directoryExists(r){var n=toPath(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)}function createDirectory(e){var r=toPath(e);var n=getCachedFileSystemEntriesForBaseDir(r);var i=getBaseNameOfFileName(e);if(n){updateFileSystemEntry(n.directories,i,true)}t.createDirectory(e)}function getDirectories(e){var r=toPath(e);var n=tryReadDirectory(e,r);if(n){return n.directories.slice()}return t.getDirectories(e)}function readDirectory(i,a,s,o,c){var u=toPath(i);var l=tryReadDirectory(i,u);var p;if(l!==undefined){return e.matchFiles(i,a,s,o,n,r,c,getFileSystemEntries,realpath,directoryExists)}return t.readDirectory(i,a,s,o,c);function getFileSystemEntries(t){var r=toPath(t);if(r===u){return l||getFileSystemEntriesFromHost(t,r)}var n=tryReadDirectory(t,r);return n!==undefined?n||getFileSystemEntriesFromHost(t,r):e.emptyFileSystemEntries}function getFileSystemEntriesFromHost(r,n){if(p&&n===u)return p;var i={files:e.map(t.readDirectory(r,undefined,undefined,["*.*"]),getBaseNameOfFileName)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};if(n===u)p=i;return i}}function realpath(e){return t.realpath?t.realpath(e):e}function addOrDeleteFileOrDirectory(e,r){var n=getCachedFileSystemEntries(r);if(n!==undefined){clearCache();return undefined}var i=getCachedFileSystemEntriesForBaseDir(r);if(!i){return undefined}if(!t.directoryExists){clearCache();return undefined}var a=getBaseNameOfFileName(e);var s={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};if(s.directoryExists||hasEntry(i.directories,a)){clearCache()}else{updateFilesOfFileSystemEntry(i,a,s.fileExists)}return s}function addOrDeleteFile(t,r,n){if(n===e.FileWatcherEventKind.Changed){return}var i=getCachedFileSystemEntriesForBaseDir(r);if(i){updateFilesOfFileSystemEntry(i,getBaseNameOfFileName(t),n===e.FileWatcherEventKind.Created)}}function updateFilesOfFileSystemEntry(e,t,r){updateFileSystemEntry(e.files,t,r)}function clearCache(){i.clear()}}e.createCachedDirectoryStructureHost=createCachedDirectoryStructureHost;var t;(function(e){e[e["None"]=0]="None";e[e["Partial"]=1]="Partial";e[e["Full"]=2]="Full"})(t=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function updateSharedExtendedConfigFileWatcher(t,r,n,i,a){var s;var o=e.arrayToMap(((s=r===null||r===void 0?void 0:r.configFile)===null||s===void 0?void 0:s.extendedSourceFiles)||e.emptyArray,a);n.forEach(function(e,r){if(!o.has(r)){e.projects.delete(t);e.close()}});o.forEach(function(r,a){var s=n.get(a);if(s){s.projects.add(t)}else{n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);if(!e||e.projects.size!==0)return;e.watcher.close();n.delete(a)}})}})}e.updateSharedExtendedConfigFileWatcher=updateSharedExtendedConfigFileWatcher;function clearSharedExtendedConfigFileWatcher(e,t){t.forEach(function(t){if(t.projects.delete(e))t.close()})}e.clearSharedExtendedConfigFileWatcher=clearSharedExtendedConfigFileWatcher;function cleanExtendedConfigCache(e,t,r){if(!e.delete(t))return;e.forEach(function(n,i){var a;var s=n.extendedResult;if((a=s.extendedSourceFiles)===null||a===void 0?void 0:a.some(function(e){return r(e)===t})){cleanExtendedConfigCache(e,i,r)}})}e.cleanExtendedConfigCache=cleanExtendedConfigCache;function updatePackageJsonWatch(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=updatePackageJsonWatch;function updateMissingFilePathsWatch(t,r,n){var i=t.getMissingFilePaths();var a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=updateMissingFilePathsWatch;function updateWatchingWildcardDirectories(t,r,n){e.mutateMap(t,r,{createNewValue:createWildcardDirectoryWatcher,onDeleteValue:closeFileWatcherOf,onExistingValue:updateWildcardDirectoryWatcher});function createWildcardDirectoryWatcher(e,t){return{watcher:n(e,t),flags:t}}function updateWildcardDirectoryWatcher(e,r,n){if(e.flags===r){return}e.watcher.close();t.set(n,createWildcardDirectoryWatcher(n,r))}}e.updateWatchingWildcardDirectories=updateWatchingWildcardDirectories;function isIgnoredFileFromWildCardWatching(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,s=t.options,o=t.program,c=t.extraFileExtensions,u=t.currentDirectory,l=t.useCaseSensitiveFileNames,p=t.writeLog,d=t.toPath;var f=e.removeIgnoredPath(i);if(!f){p("Project: "+a+" Detected ignored path: "+n);return true}i=f;if(i===r)return false;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,s,c)){p("Project: "+a+" Detected file add/remove of non supported extension: "+n);return true}if(e.isExcludedFile(n,s.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),u),l,u)){p("Project: "+a+" Detected excluded file: "+n);return true}if(!o)return false;if(e.outFile(s)||s.outDir)return false;if(e.fileExtensionIs(i,".d.ts")){if(s.declarationDir)return false}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensions)){return false}var m=e.removeFileExtension(i);var g=e.isArray(o)?undefined:isBuilderProgram(o)?o.getProgramOrUndefined():o;var _=!g&&!e.isArray(o)?o:undefined;if(hasSourceFile(m+".ts")||hasSourceFile(m+".tsx")){p("Project: "+a+" Detected output file: "+n);return true}return false;function hasSourceFile(t){return g?!!g.getSourceFileByPath(t):_?_.getState().fileInfos.has(t):!!e.find(o,function(e){return d(e)===t})}}e.isIgnoredFileFromWildCardWatching=isIgnoredFileFromWildCardWatching;function isBuilderProgram(e){return!!e.getState}function isEmittedFileOfProgram(e,t){if(!e){return false}return e.isEmittedFile(t)}e.isEmittedFileOfProgram=isEmittedFileOfProgram;var r;(function(e){e[e["None"]=0]="None";e[e["TriggerOnly"]=1]="TriggerOnly";e[e["Verbose"]=2]="Verbose"})(r=e.WatchLogLevel||(e.WatchLogLevel={}));function getWatchFactory(t,i,a,s){e.setSysLog(i===r.Verbose?a:e.noop);var o={watchFile:function(e,r,n,i){return t.watchFile(e,r,n,i)},watchDirectory:function(e,r,n,i){return t.watchDirectory(e,r,(n&1)!==0,i)}};var c=i!==r.None?{watchFile:createTriggerLoggingAddWatch("watchFile"),watchDirectory:createTriggerLoggingAddWatch("watchDirectory")}:undefined;var u=i===r.Verbose?{watchFile:createFileWatcherWithLogging,watchDirectory:createDirectoryWatcherWithLogging}:c||o;var l=i===r.Verbose?createExcludeWatcherWithLogging:e.returnNoopFileWatcher;return{watchFile:createExcludeHandlingAddWatch("watchFile"),watchDirectory:createExcludeHandlingAddWatch("watchDirectory")};function createExcludeHandlingAddWatch(r){return function(n,i,a,s,o,c){var p;return!e.matchesExclude(n,r==="watchFile"?s===null||s===void 0?void 0:s.excludeFiles:s===null||s===void 0?void 0:s.excludeDirectories,useCaseSensitiveFileNames(),((p=t.getCurrentDirectory)===null||p===void 0?void 0:p.call(t))||"")?u[r].call(undefined,n,i,a,s,o,c):l(n,a,s,o,c)}}function useCaseSensitiveFileNames(){return typeof t.useCaseSensitiveFileNames==="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function createExcludeWatcherWithLogging(e,t,r,n,i){a("ExcludeWatcher:: Added:: "+getWatchInfo(e,t,r,n,i,s));return{close:function(){return a("ExcludeWatcher:: Close:: "+getWatchInfo(e,t,r,n,i,s))}}}function createFileWatcherWithLogging(e,t,r,n,i,o){a("FileWatcher:: Added:: "+getWatchInfo(e,r,n,i,o,s));var u=c.watchFile(e,t,r,n,i,o);return{close:function(){a("FileWatcher:: Close:: "+getWatchInfo(e,r,n,i,o,s));u.close()}}}function createDirectoryWatcherWithLogging(t,r,n,i,o,u){var l="DirectoryWatcher:: Added:: "+getWatchInfo(t,n,i,o,u,s);a(l);var p=e.timestamp();var d=c.watchDirectory(t,r,n,i,o,u);var f=e.timestamp()-p;a("Elapsed:: "+f+"ms "+l);return{close:function(){var r="DirectoryWatcher:: Close:: "+getWatchInfo(t,n,i,o,u,s);a(r);var c=e.timestamp();d.close();var l=e.timestamp()-c;a("Elapsed:: "+l+"ms "+r)}}}function createTriggerLoggingAddWatch(t){return function(r,i,c,u,l,p){return o[t].call(undefined,r,function(){var o=[];for(var d=0;d=4;var v=(g+1+"").length;if(y){v=Math.max(s.length,v)}var T="";for(var S=d;S<=g;S++){T+=l.getNewLine();if(y&&d+1=0){if(r.markUsed(s)){return s}var o=n.text.slice(a[s],a[s+1]).trim();if(o!==""&&!/^(\s*)\/\/(.*)$/.test(o)){return-1}s--}return-1}function getJSSyntacticDiagnosticsForFile(t){return runWithCancellationToken(function(){var r=[];walk(t,t);e.forEachChildRecursively(t,walk,walkArray);return r;function walk(t,n){switch(n.kind){case 162:case 165:case 167:if(n.questionToken===t){r.push(createDiagnosticForNode(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?"));return"skip"}case 166:case 169:case 170:case 171:case 211:case 254:case 212:case 252:if(n.type===t){r.push(createDiagnosticForNode(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files));return"skip"}}switch(t.kind){case 265:if(t.isTypeOnly){r.push(createDiagnosticForNode(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type"));return"skip"}break;case 270:if(t.isTypeOnly){r.push(createDiagnosticForNode(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type"));return"skip"}break;case 263:r.push(createDiagnosticForNode(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files));return"skip";case 269:if(t.isExportEquals){r.push(createDiagnosticForNode(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files));return"skip"}break;case 289:var i=t;if(i.token===117){r.push(createDiagnosticForNode(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files));return"skip"}break;case 256:var a=e.tokenToString(118);e.Debug.assertIsDefined(a);r.push(createDiagnosticForNode(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a));return"skip";case 259:var s=t.flags&16?e.tokenToString(141):e.tokenToString(140);e.Debug.assertIsDefined(s);r.push(createDiagnosticForNode(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s));return"skip";case 257:r.push(createDiagnosticForNode(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files));return"skip";case 258:var o=e.Debug.checkDefined(e.tokenToString(92));r.push(createDiagnosticForNode(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o));return"skip";case 228:r.push(createDiagnosticForNode(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files));return"skip";case 227:r.push(createDiagnosticForNode(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files));return"skip";case 209:e.Debug.fail()}}function walkArray(t,n){if(n.decorators===t&&!d.experimentalDecorators){r.push(createDiagnosticForNode(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning))}switch(n.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if(t===n.typeParameters){r.push(createDiagnosticForNodeArray(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files));return"skip"}case 235:if(t===n.modifiers){checkModifiers(n.modifiers,n.kind===235);return"skip"}break;case 165:if(t===n.modifiers){for(var i=0,a=t;i0);Object.defineProperties(s,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}});return s}function findSourceFile(t,r,n,i,a,s){e.tracing===null||e.tracing===void 0?void 0:e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:n||undefined,fileIncludeKind:e.FileIncludeKind[a.kind]});var o=findSourceFileWorker(t,r,n,i,a,s);e.tracing===null||e.tracing===void 0?void 0:e.tracing.pop();return o}function findSourceFileWorker(t,r,n,i,a,s){if(ue){var o=getSourceOfProjectReferenceRedirect(t);if(!o&&I.realpath&&d.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=I.realpath(t);if(c!==t)o=getSourceOfProjectReferenceRedirect(c)}if(o){var u=e.isString(o)?findSourceFile(o,toPath(o),n,i,a,s):undefined;if(u)addFileToFilesByName(u,r,undefined);return u}}var l=t;if(re.has(r)){var p=re.get(r);addFileIncludeReason(p||undefined,a);if(p&&d.forceConsistentCasingInFileNames){var f=p.fileName;var m=toPath(f)!==toPath(t);if(m){t=getProjectReferenceRedirect(t)||t}var g=e.getNormalizedAbsolutePathWithoutRoot(f,J);var y=e.getNormalizedAbsolutePathWithoutRoot(t,J);if(g!==y){reportFileNamesDifferOnlyInCasingError(t,p,a)}}if(p&&w.get(p.path)&&O===0){w.set(p.path,false);if(!d.noResolve){processReferencedFiles(p,n);processTypeReferenceDirectives(p)}if(!d.noLib){processLibReferenceDirectives(p)}F.set(p.path,false);processImportedModules(p)}else if(p&&F.get(p.path)){if(O0);b.fileName=t;b.path=r;b.resolvedPath=toPath(t);b.originalFileName=l;addFileIncludeReason(b,a);if(I.useCaseSensitiveFileNames()){var C=e.toFileNameLowerCase(r);var A=ie.get(C);if(A){reportFileNamesDifferOnlyInCasingError(t,A,a)}else{ie.set(C,b)}}M=M||b.hasNoDefaultLib&&!i;if(!d.noResolve){processReferencedFiles(b,n);processTypeReferenceDirectives(b)}if(!d.noLib){processLibReferenceDirectives(b)}processImportedModules(b);if(n){_.push(b)}else{h.push(b)}}return b}function addFileIncludeReason(e,t){if(e)D.add(e.path,t)}function addFileToFilesByName(e,t,r){if(r){re.set(r,e);re.set(t,e||false)}else{re.set(t,e)}}function getProjectReferenceRedirect(e){var t=getProjectReferenceRedirectProject(e);return t&&getProjectReferenceOutputName(t,e)}function getProjectReferenceRedirectProject(t){if(!ae||!ae.length||e.fileExtensionIs(t,".d.ts")||e.fileExtensionIs(t,".json")){return undefined}return getResolvedProjectReferenceToRedirect(t)}function getProjectReferenceOutputName(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!I.useCaseSensitiveFileNames())}function getResolvedProjectReferenceToRedirect(t){if(oe===undefined){oe=new e.Map;forEachResolvedProjectReference(function(e){if(toPath(d.configFilePath)!==e.sourceFile.path){e.commandLine.fileNames.forEach(function(t){return oe.set(toPath(t),e.sourceFile.path)})}})}var r=oe.get(toPath(t));return r&&getResolvedProjectReferenceByPath(r)}function forEachResolvedProjectReference(t){return e.forEachResolvedProjectReference(ae,t)}function getSourceOfProjectReferenceRedirect(t){if(!e.isDeclarationFileName(t))return undefined;if(ce===undefined){ce=new e.Map;forEachResolvedProjectReference(function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");ce.set(toPath(n),true)}else{var i=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!I.useCaseSensitiveFileNames())});e.forEach(t.commandLine.fileNames,function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!I.useCaseSensitiveFileNames(),i);ce.set(toPath(n),r)}})}})}return ce.get(toPath(t))}function isSourceOfProjectReferenceRedirect(e){return ue&&!!getResolvedProjectReferenceToRedirect(e)}function getResolvedProjectReferenceByPath(e){if(!se){return undefined}return se.get(e)||undefined}function processReferencedFiles(t,r){e.forEach(t.referencedFiles,function(n,i){processSourceFile(resolveTripleslashReference(n.fileName,t.fileName),r,false,undefined,{kind:e.FileIncludeKind.ReferenceFile,file:t.path,index:i})})}function processTypeReferenceDirectives(t){var r=e.map(t.typeReferenceDirectives,function(t){return e.toFileNameLowerCase(t.fileName)});if(!r){return}var n=resolveTypeReferenceDirectiveNamesWorker(r,t);for(var i=0;iN;var m=p&&!getResolutionDiagnostic(a,o)&&!a.noResolve&&s1})){createDiagnosticForOptionName(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}}if(d.useDefineForClassFields&&f===0){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields")}if(d.checkJs&&!e.getAllowJSCompilerOption(d)){j.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"))}if(d.emitDeclarationOnly){if(!e.getEmitDeclarations(d)){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")}if(d.noEmit){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")}}if(d.emitDecoratorMetadata&&!d.experimentalDecorators){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")}if(d.jsxFactory){if(d.reactNamespace){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")}if(d.jsx===4||d.jsx===5){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+d.jsx))}if(!e.parseIsolatedEntityName(d.jsxFactory,f)){createOptionValueDiagnostic("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,d.jsxFactory)}}else if(d.reactNamespace&&!e.isIdentifierText(d.reactNamespace,f)){createOptionValueDiagnostic("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,d.reactNamespace)}if(d.jsxFragmentFactory){if(!d.jsxFactory){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory")}if(d.jsx===4||d.jsx===5){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+d.jsx))}if(!e.parseIsolatedEntityName(d.jsxFragmentFactory,f)){createOptionValueDiagnostic("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,d.jsxFragmentFactory)}}if(d.reactNamespace){if(d.jsx===4||d.jsx===5){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+d.jsx))}}if(d.jsxImportSource){if(d.jsx===2){createDiagnosticForOptionName(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+d.jsx))}}if(!d.noEmit&&!d.suppressOutputPathCheck){var v=getEmitHost();var T=new e.Set;e.forEachEmittedFile(v,function(e){if(!d.emitDeclarationOnly){verifyEmitFilePath(e.jsFilePath,T)}verifyEmitFilePath(e.declarationFilePath,T)})}function verifyEmitFilePath(t,r){if(t){var n=toPath(t);if(re.has(n)){var i=void 0;if(!d.configFilePath){i=e.chainDiagnosticMessages(undefined,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)}i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t);blockEmittingOfFile(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=!I.useCaseSensitiveFileNames()?e.toFileNameLowerCase(n):n;if(r.has(a)){blockEmittingOfFile(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t))}else{r.add(a)}}}}function createDiagnosticExplainingFile(t,r,i,a){var s;var o;var c;var u=isReferencedFile(r)?r:undefined;if(t)(s=D.get(t.path))===null||s===void 0?void 0:s.forEach(processReason);if(r)processReason(r);if(u&&(o===null||o===void 0?void 0:o.length)===1)o=undefined;var l=u&&getReferencedFileLocation(getSourceFileByPath,u);var p=o&&e.chainDiagnosticMessages(o,e.Diagnostics.The_file_is_in_the_program_because_Colon);var d=t&&e.explainIfFileIsRedirect(t);var f=e.chainDiagnosticMessages.apply(void 0,n([d?p?n([p],d,true):d:p,i],a||e.emptyArray,false));return l&&isReferenceFileLocation(l)?e.createFileDiagnosticFromMessageChain(l.file,l.pos,l.end-l.pos,f,c):e.createCompilerDiagnosticFromMessageChain(f,c);function processReason(t){(o||(o=[])).push(e.fileIncludeReasonToDiagnostics(Ae,t));if(!u&&isReferencedFile(t)){u=t}else if(u!==t){c=e.append(c,fileIncludeReasonToRelatedInformation(t))}if(t===r)r=undefined}}function addFilePreprocessingFileExplainingDiagnostic(e,t,r,n){(P||(P=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function addProgramDiagnosticExplainingFile(e,t,r){j.add(createDiagnosticExplainingFile(e,undefined,t,r))}function fileIncludeReasonToRelatedInformation(t){if(isReferencedFile(t)){var r=getReferencedFileLocation(getSourceFileByPath,t);var n;switch(t.kind){case e.FileIncludeKind.Import:n=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:n=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:n=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:n=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return isReferenceFileLocation(r)?e.createFileDiagnostic(r.file,r.pos,r.end-r.pos,n):undefined}if(!d.configFile)return undefined;var i;var a;switch(t.kind){case e.FileIncludeKind.RootFile:if(!d.configFile.configFileSpecs)return undefined;var s=e.getNormalizedAbsolutePath(p[t.index],J);var o=e.getMatchedFileSpec(Ae,s);if(o){i=e.getTsConfigPropArrayElementValue(d.configFile,"files",o);a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var c=e.getMatchedIncludeSpec(Ae,s);if(!c)return undefined;i=e.getTsConfigPropArrayElementValue(d.configFile,"include",c);a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var u=e.Debug.checkDefined(ae===null||ae===void 0?void 0:ae[t.index]);var l=forEachProjectReference(m,ae,function(e,t,r){return e===u?{sourceFile:(t===null||t===void 0?void 0:t.sourceFile)||d.configFile,index:r}:undefined});if(!l)return undefined;var f=l.sourceFile,g=l.index;var _=e.firstDefined(e.getTsConfigPropArray(f,"references"),function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:undefined});return _&&_.elements.length>g?e.createDiagnosticForNodeInSourceFile(f,_.elements[g],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):undefined;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!d.types)return undefined;i=getOptionsSyntaxByArrayElementValue("types",t.typeReference);a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(t.index!==undefined){i=getOptionsSyntaxByArrayElementValue("lib",d.lib[t.index]);a=e.Diagnostics.File_is_library_specified_here;break}var h=e.forEachEntry(e.targetOptionDeclaration.type,function(e,t){return e===d.target?t:undefined});i=h?getOptionsSyntaxByValue("target",h):undefined;a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(d.configFile,i,a)}function verifyProjectReferences(){var t=!d.suppressOutputPathCheck?e.getTsBuildInfoEmitOutputFilePath(d):undefined;forEachProjectReference(m,ae,function(r,n,i){var a=(n?n.commandLine.projectReferences:m)[i];var s=n&&n.sourceFile;if(!r){createDiagnosticForReference(s,i,e.Diagnostics.File_0_not_found,a.path);return}var o=r.commandLine.options;if(!o.composite||o.noEmit){var c=n?n.commandLine.fileNames:p;if(c.length){if(!o.composite)createDiagnosticForReference(s,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path);if(o.noEmit)createDiagnosticForReference(s,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)}}if(a.prepend){var u=e.outFile(o);if(u){if(!I.fileExists(u)){createDiagnosticForReference(s,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,u,a.path)}}else{createDiagnosticForReference(s,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}}if(!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(o)){createDiagnosticForReference(s,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path);W.set(toPath(t),true)}})}function createDiagnosticForOptionPathKeyValue(t,r,n,i,a,s){var o=true;var c=getOptionPathsSyntax();for(var u=0,l=c;ur){j.add(e.createDiagnosticForNodeInSourceFile(d.configFile,_.elements[r],n,i,a,s));o=false}}}}if(o){j.add(e.createCompilerDiagnostic(n,i,a,s))}}function createDiagnosticForOptionPaths(t,r,n,i){var a=true;var s=getOptionPathsSyntax();for(var o=0,c=s;or){j.add(e.createDiagnosticForNodeInSourceFile(t||d.configFile,s.elements[r],n,i,a))}else{j.add(e.createCompilerDiagnostic(n,i,a))}}function createDiagnosticForOption(t,r,n,i,a,s,o){var c=getCompilerOptionsObjectLiteralSyntax();var u=!c||!createOptionDiagnosticInObjectLiteralSyntax(c,t,r,n,i,a,s,o);if(u){j.add(e.createCompilerDiagnostic(i,a,s,o))}}function getCompilerOptionsObjectLiteralSyntax(){if(K===undefined){K=false;var t=e.getTsConfigObjectLiteralExpression(d.configFile);if(t){for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0){var a=t.getTypeChecker();for(var s=0,o=r.imports;s0){for(var p=0,d=r.referencedFiles;p1){addReferenceFromAmbientModule(S)}}return i;function addReferenceFromAmbientModule(t){if(!t.declarations){return}for(var n=0,i=t.declarations;n0){var p=l.pop();if(!u.has(p)){var d=r.getSourceFileByPath(p);u.set(p,d);if(d&&updateShapeSignature(t,r,d,i,a,s,o)){l.push.apply(l,getReferencedByPaths(t,d.resolvedPath))}}}return e.arrayFrom(e.mapDefinedIterator(u.values(),function(e){return e}))}})(t=e.BuilderState||(e.BuilderState={}))})(u||(u={}));var u;(function(e){var t;(function(e){e[e["DtsOnly"]=0]="DtsOnly";e[e["Full"]=1]="Full"})(t=e.BuilderFileEmit||(e.BuilderFileEmit={}));function hasSameKeys(t,r){return t===r||t!==undefined&&r!==undefined&&t.size===r.size&&!e.forEachKey(t,function(e){return!r.has(e)})}function createBuilderProgramState(t,r,n,i){var a=e.BuilderState.create(t,r,n,i);a.program=t;var s=t.getCompilerOptions();a.compilerOptions=s;if(!e.outFile(s)){a.semanticDiagnosticsPerFile=new e.Map}a.changedFilesSet=new e.Set;var o=e.BuilderState.canReuseOldState(a.referencedMap,n);var c=o?n.compilerOptions:undefined;var u=o&&n.semanticDiagnosticsPerFile&&!!a.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,c);if(o){if(!n.currentChangedFilePath){var l=n.currentAffectedFilesSignatures;e.Debug.assert(!n.affectedFiles&&(!l||!l.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=n.changedFilesSet;if(u){e.Debug.assert(!p||!e.forEachKey(p,function(e){return n.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files")}p===null||p===void 0?void 0:p.forEach(function(e){return a.changedFilesSet.add(e)});if(!e.outFile(s)&&n.affectedFilesPendingEmit){a.affectedFilesPendingEmit=n.affectedFilesPendingEmit.slice();a.affectedFilesPendingEmitKind=n.affectedFilesPendingEmitKind&&new e.Map(n.affectedFilesPendingEmitKind);a.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex;a.seenAffectedFiles=new e.Set}}var d=a.referencedMap;var f=o?n.referencedMap:undefined;var m=u&&!s.skipLibCheck===!c.skipLibCheck;var g=m&&!s.skipDefaultLibCheck===!c.skipDefaultLibCheck;a.fileInfos.forEach(function(i,s){var c;var l;if(!o||!(c=n.fileInfos.get(s))||c.version!==i.version||!hasSameKeys(l=d&&d.getValues(s),f&&f.getValues(s))||l&&e.forEachKey(l,function(e){return!a.fileInfos.has(e)&&n.fileInfos.has(e)})){a.changedFilesSet.add(s)}else if(u){var p=t.getSourceFileByPath(s);if(p.isDeclarationFile&&!m){return}if(p.hasNoDefaultLib&&!g){return}var _=n.semanticDiagnosticsPerFile.get(s);if(_){a.semanticDiagnosticsPerFile.set(s,n.hasReusableDiagnostic?convertToDiagnostics(_,t,r):_);if(!a.semanticDiagnosticsFromOldState){a.semanticDiagnosticsFromOldState=new e.Set}a.semanticDiagnosticsFromOldState.add(s)}}});if(o&&e.forEachEntry(n.fileInfos,function(e,t){return e.affectsGlobalScope&&!a.fileInfos.has(t)})){e.BuilderState.getAllFilesExcludingDefaultLibraryFile(a,t,undefined).forEach(function(e){return a.changedFilesSet.add(e.resolvedPath)})}else if(c&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,c)){t.getSourceFiles().forEach(function(e){return addToAffectedFilesPendingEmit(a,e.resolvedPath,1)});e.Debug.assert(!a.seenAffectedFiles||!a.seenAffectedFiles.size);a.seenAffectedFiles=a.seenAffectedFiles||new e.Set}a.buildInfoEmitPending=!!a.changedFilesSet.size;return a}function convertToDiagnostics(t,r,n){if(!t.length)return e.emptyArray;var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map(function(e){var t=convertToDiagnosticRelatedInformation(e,r,toPath);t.reportsUnnecessary=e.reportsUnnecessary;t.reportsDeprecated=e.reportDeprecated;t.source=e.source;t.skippedOn=e.skippedOn;var n=e.relatedInformation;t.relatedInformation=n?n.length?n.map(function(e){return convertToDiagnosticRelatedInformation(e,r,toPath)}):[]:undefined;return t});function toPath(t){return e.toPath(t,i,n)}}function convertToDiagnosticRelatedInformation(e,t,r){var n=e.file;return i(i({},e),{file:n?t.getSourceFileByPath(r(n)):undefined})}function releaseCache(t){e.BuilderState.releaseCache(t);t.program=undefined}function cloneBuilderProgramState(t){var r;var n=e.BuilderState.clone(t);n.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile);n.changedFilesSet=new e.Set(t.changedFilesSet);n.affectedFiles=t.affectedFiles;n.affectedFilesIndex=t.affectedFilesIndex;n.currentChangedFilePath=t.currentChangedFilePath;n.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures);n.currentAffectedFilesExportedModulesMap=(r=t.currentAffectedFilesExportedModulesMap)===null||r===void 0?void 0:r.clone();n.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles);n.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles;n.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState);n.program=t.program;n.compilerOptions=t.compilerOptions;n.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice();n.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind);n.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex;n.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles);n.programEmitComplete=t.programEmitComplete;return n}function assertSourceFileOkWithoutNextAffectedCall(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function getNextAffectedFile(t,r,n){while(true){var i=t.affectedFiles;if(i){var a=t.seenAffectedFiles;var s=t.affectedFilesIndex;while(s0){var c=o.pop();if(!s.has(c)){s.set(c,true);n(t,c);if(isChangedSignature(t,c)){var u=e.Debug.checkDefined(t.program).getSourceFileByPath(c);o.push.apply(o,e.BuilderState.getReferencedByPaths(t,u.resolvedPath))}}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var l=new e.Set;(i=t.currentAffectedFilesExportedModulesMap.getKeys(r.resolvedPath))===null||i===void 0?void 0:i.forEach(function(e){return forEachFilesReferencingPath(t,e,l,n)});(a=t.exportedModulesMap.getKeys(r.resolvedPath))===null||a===void 0?void 0:a.forEach(function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!((r=t.currentAffectedFilesExportedModulesMap.deletedKeys())===null||r===void 0?void 0:r.has(e))&&forEachFilesReferencingPath(t,e,l,n)})}function forEachFilesReferencingPath(e,t,r,n){var i;(i=e.referencedMap.getKeys(t))===null||i===void 0?void 0:i.forEach(function(t){return forEachFileAndExportsOfFile(e,t,r,n)})}function forEachFileAndExportsOfFile(t,r,n,i){var a,s,o;if(!e.tryAddToSet(n,r)){return}i(t,r);e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);(a=t.currentAffectedFilesExportedModulesMap.getKeys(r))===null||a===void 0?void 0:a.forEach(function(e){return forEachFileAndExportsOfFile(t,e,n,i)});(s=t.exportedModulesMap.getKeys(r))===null||s===void 0?void 0:s.forEach(function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!((r=t.currentAffectedFilesExportedModulesMap.deletedKeys())===null||r===void 0?void 0:r.has(e))&&forEachFileAndExportsOfFile(t,e,n,i)});(o=t.referencedMap.getKeys(r))===null||o===void 0?void 0:o.forEach(function(e){return!n.has(e)&&i(t,e)})}function doneWithAffectedFile(t,r,n,i,a){if(a){t.buildInfoEmitPending=false}else if(r===t.program){t.changedFilesSet.clear();t.programEmitComplete=true}else{t.seenAffectedFiles.add(r.resolvedPath);if(n!==undefined){(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n)}if(i){t.affectedFilesPendingEmitIndex++;t.buildInfoEmitPending=true}else{t.affectedFilesIndex++}}}function toAffectedFileResult(e,t,r){doneWithAffectedFile(e,r);return{result:t,affected:r}}function toAffectedFileEmitResult(e,t,r,n,i,a){doneWithAffectedFile(e,r,n,i,a);return{result:t,affected:r}}function getSemanticDiagnosticsOfFile(t,r,n){return e.concatenate(getBinderAndCheckerDiagnosticsOfFile(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function getBinderAndCheckerDiagnosticsOfFile(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a){return e.filterSemanticDiagnostics(a,t.compilerOptions)}}var s=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);if(t.semanticDiagnosticsPerFile){t.semanticDiagnosticsPerFile.set(i,s)}return e.filterSemanticDiagnostics(s,t.compilerOptions)}function getProgramBuildInfo(t,r){if(e.outFile(t.compilerOptions))return undefined;var n=e.Debug.checkDefined(t.program).getCurrentDirectory();var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),n));var a=[];var s=new e.Map;var o;var c;var u=e.arrayFrom(t.fileInfos.entries(),function(r){var n=r[0],i=r[1];var s=toFileId(n);e.Debug.assert(a[s-1]===relativeToBuildInfo(n));var o=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n);var c=o!==null&&o!==void 0?o:i.signature;return i.version===c?i.affectsGlobalScope?{version:i.version,signature:undefined,affectsGlobalScope:true}:i.version:c!==undefined?o===undefined?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope}:{version:i.version,signature:false,affectsGlobalScope:i.affectsGlobalScope}});var l;if(t.referencedMap){l=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(e){return[toFileId(e),toFileIdListId(t.referencedMap.getValues(e))]})}var p;if(t.exportedModulesMap){p=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(e){var r;if(t.currentAffectedFilesExportedModulesMap){if((r=t.currentAffectedFilesExportedModulesMap.deletedKeys())===null||r===void 0?void 0:r.has(e)){return undefined}var n=t.currentAffectedFilesExportedModulesMap.getValues(e);if(n){return[toFileId(e),toFileIdListId(n)]}}return[toFileId(e),toFileIdListId(t.exportedModulesMap.getValues(e))]})}var d;if(t.semanticDiagnosticsPerFile){for(var f=0,m=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);f1||t.charCodeAt(0)!==47;if(a&&t.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-z]\$\//)===0){n=t.indexOf(e.directorySeparator,n+1);if(n===-1){return false}i=t.substring(r+i.length,n+1)}if(a&&i.search(/users\//i)!==0){return true}for(var s=n+1,o=2;o>0;o--){s=t.indexOf(e.directorySeparator,s)+1;if(s===0){return false}}return true}e.canWatchDirectory=canWatchDirectory;function createResolutionCache(t,r,n){var i;var a;var s;var o=e.createMultiMap();var c=[];var u=e.createMultiMap();var l=false;var p;var d;var f;var m=e.memoize(function(){return t.getCurrentDirectory()});var g=t.getCachedDirectoryStructureHost();var _=new e.Map;var h=e.createCacheWithRedirects();var y=e.createCacheWithRedirects();var v=e.createModuleResolutionCache(m(),t.getCanonicalFileName,undefined,h,y);var T=new e.Map;var S=e.createCacheWithRedirects();var b=e.createTypeReferenceDirectiveResolutionCache(m(),t.getCanonicalFileName,undefined,v.getPackageJsonInfoCache(),S);var E=[".ts",".tsx",".js",".jsx",".json"];var x=new e.Map;var D=new e.Map;var C=r&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(r,m()));var A=C&&t.toPath(C);var k=A!==undefined?A.split(e.directorySeparator).length:0;var P=new e.Map;return{getModuleResolutionCache:function(){return v},startRecordingFilesWithChangedResolutions:startRecordingFilesWithChangedResolutions,finishRecordingFilesWithChangedResolutions:finishRecordingFilesWithChangedResolutions,startCachingPerDirectoryResolution:clearPerDirectoryResolutions,finishCachingPerDirectoryResolution:finishCachingPerDirectoryResolution,resolveModuleNames:resolveModuleNames,getResolvedModuleWithFailedLookupLocationsFromCache:getResolvedModuleWithFailedLookupLocationsFromCache,resolveTypeReferenceDirectives:resolveTypeReferenceDirectives,removeResolutionsFromProjectReferenceRedirects:removeResolutionsFromProjectReferenceRedirects,removeResolutionsOfFile:removeResolutionsOfFile,hasChangedAutomaticTypeDirectiveNames:function(){return l},invalidateResolutionOfFile:invalidateResolutionOfFile,invalidateResolutionsOfFailedLookupLocations:invalidateResolutionsOfFailedLookupLocations,setFilesWithInvalidatedNonRelativeUnresolvedImports:setFilesWithInvalidatedNonRelativeUnresolvedImports,createHasInvalidatedResolution:createHasInvalidatedResolution,isFileWithInvalidatedNonRelativeUnresolvedImports:isFileWithInvalidatedNonRelativeUnresolvedImports,updateTypeRootsWatch:updateTypeRootsWatch,closeTypeRootsWatch:closeTypeRootsWatch,clear:clear};function getResolvedModule(e){return e.resolvedModule}function getResolvedTypeReferenceDirective(e){return e.resolvedTypeReferenceDirective}function isInDirectoryPath(t,r){if(t===undefined||r.length<=t.length){return false}return e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function clear(){e.clearMap(D,e.closeFileWatcherOf);x.clear();o.clear();closeTypeRootsWatch();_.clear();T.clear();u.clear();c.length=0;p=undefined;d=undefined;f=undefined;clearPerDirectoryResolutions();l=false}function startRecordingFilesWithChangedResolutions(){i=[]}function finishRecordingFilesWithChangedResolutions(){var e=i;i=undefined;return e}function isFileWithInvalidatedNonRelativeUnresolvedImports(e){if(!s){return false}var t=s.get(e);return!!t&&!!t.length}function createHasInvalidatedResolution(t){invalidateResolutionsOfFailedLookupLocations();if(t){a=undefined;return e.returnTrue}var r=a;a=undefined;return function(e){return!!r&&r.has(e)||isFileWithInvalidatedNonRelativeUnresolvedImports(e)}}function clearPerDirectoryResolutions(){v.clear();b.clear();o.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);o.clear()}function finishCachingPerDirectoryResolution(){s=undefined;clearPerDirectoryResolutions();D.forEach(function(e,t){if(e.refCount===0){D.delete(t);e.watcher.close()}});l=false}function resolveModuleName(r,n,i,a,s){var o;var c=e.resolveModuleName(r,n,i,a,v,s);if(!t.getGlobalCache){return c}var u=t.getGlobalCache();if(u!==undefined&&!e.isExternalModuleNameRelative(r)&&!(c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(t.globalCacheResolutionModuleName)(r),t.projectName,i,a,u,v),p=l.resolvedModule,d=l.failedLookupLocations;if(p){c.resolvedModule=p;(o=c.failedLookupLocations).push.apply(o,d);return c}}return c}function resolveTypeReferenceDirective(t,r,n,i,a){return e.resolveTypeReferenceDirective(t,r,n,i,a,b)}function resolveNamesWithLocalCache(r){var n,a,s;var o=r.names,c=r.containingFile,u=r.redirectedReference,l=r.cache,p=r.perDirectoryCacheWithRedirects,d=r.loader,f=r.getResolutionWithResolvedFileName,m=r.shouldRetryResolution,g=r.reusedNames,_=r.logChanges;var h=t.toPath(c);var y=l.get(h)||l.set(h,new e.Map).get(h);var v=e.getDirectoryPath(h);var T=p.getOrCreateMapOfCacheRedirects(u);var S=T.get(v);if(!S){S=new e.Map;T.set(v,S)}var b=[];var E=t.getCompilationSettings();var x=_&&isFileWithInvalidatedNonRelativeUnresolvedImports(h);var D=t.getCurrentProgram();var C=D&&D.getResolvedProjectReferenceToRedirect(c);var A=C?!u||u.sourceFile.path!==C.sourceFile.path:!!u;var k=new e.Map;for(var P=0,N=o;Pk+1){return{dir:i.slice(0,k+1).join(e.directorySeparator),dirPath:n.slice(0,k+1).join(e.directorySeparator)}}else{return{dir:C,dirPath:A,nonRecursive:false}}}return getDirectoryToWatchFromFailedLookupLocationDirectory(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function getDirectoryToWatchFromFailedLookupLocationDirectory(t,r){while(e.pathContainsNodeModules(r)){t=e.getDirectoryPath(t);r=e.getDirectoryPath(r)}if(e.isNodeModulesDirectory(r)){return canWatchDirectory(e.getDirectoryPath(r))?{dir:t,dirPath:r}:undefined}var n=true;var i,a;if(A!==undefined){while(!isInDirectoryPath(r,A)){var s=e.getDirectoryPath(r);if(s===r){break}n=false;i=r;a=t;r=s;t=e.getDirectoryPath(t)}}return canWatchDirectory(r)?{dir:a||t,dirPath:i||r,nonRecursive:n}:undefined}function isPathWithDefaultFailedLookupExtension(t){return e.fileExtensionIsOneOf(t,E)}function watchFailedLookupLocationsOfExternalModuleResolutions(r,n,i,a){if(n.refCount){n.refCount++;e.Debug.assertDefined(n.files)}else{n.refCount=1;e.Debug.assert(e.length(n.files)===0);if(e.isExternalModuleNameRelative(r)){watchFailedLookupLocationOfResolution(n)}else{o.add(r,n)}var s=a(n);if(s&&s.resolvedFileName){u.add(t.toPath(s.resolvedFileName),n)}}(n.files||(n.files=[])).push(i)}function watchFailedLookupLocationOfResolution(r){e.Debug.assert(!!r.refCount);var n=r.failedLookupLocations;if(!n.length)return;c.push(r);var i=false;for(var a=0,s=n;a1);x.set(f,_-1)}}if(g===A){o=true}else{removeDirectoryWatcher(g)}}}if(o){removeDirectoryWatcher(A)}}function removeDirectoryWatcher(e){var t=D.get(e);t.refCount--}function createDirectoryWatcher(e,r,n){return t.watchDirectoryOfFailedLookupLocation(e,function(e){var n=t.toPath(e);if(g){g.addOrDeleteFileOrDirectory(e,n)}scheduleInvalidateResolutionOfFailedLookupLocation(n,r===n)},n?0:1)}function removeResolutionsOfFileFromCache(e,t,r){var n=e.get(t);if(n){n.forEach(function(e){return stopWatchFailedLookupLocationOfResolution(e,t,r)});e.delete(t)}}function removeResolutionsFromProjectReferenceRedirects(r){if(!e.fileExtensionIs(r,".json")){return}var n=t.getCurrentProgram();if(!n){return}var i=n.getResolvedProjectReferenceByPath(r);if(!i){return}i.commandLine.fileNames.forEach(function(e){return removeResolutionsOfFile(t.toPath(e))})}function removeResolutionsOfFile(e){removeResolutionsOfFileFromCache(_,e,getResolvedModule);removeResolutionsOfFileFromCache(T,e,getResolvedTypeReferenceDirective)}function invalidateResolutions(t,r){if(!t)return false;var n=false;for(var i=0,s=t;i1){n.sort(comparePathsByRedirectAndNumberOfDirectorySeparators)}o.push.apply(o,n)}var i=e.getDirectoryPath(t);if(i===t)return u=t,"break";t=i;u=t};var u;for(var l=e.getDirectoryPath(t);a.size!==0;){var p=c(l);l=u;if(p==="break")break}if(a.size){var d=e.arrayFrom(a.values());if(d.length>1)d.sort(comparePathsByRedirectAndNumberOfDirectorySeparators);o.push.apply(o,d)}return o}function tryGetModuleNameFromAmbientModule(t,r){var n;var i=(n=t.declarations)===null||n===void 0?void 0:n.find(function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))});if(i){return i.name.text}var a=e.mapDefined(t.declarations,function(t){var n,i,a,s;if(!e.isModuleDeclaration(t))return;var o=getTopNamespace(t);if(!(((n=o===null||o===void 0?void 0:o.parent)===null||n===void 0?void 0:n.parent)&&e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent)&&e.isSourceFile(o.parent.parent.parent)))return;var c=(s=(a=(i=o.parent.parent.symbol.exports)===null||i===void 0?void 0:i.get("export="))===null||a===void 0?void 0:a.valueDeclaration)===null||s===void 0?void 0:s.expression;if(!c)return;var u=r.getSymbolAtLocation(c);if(!u)return;var l=(u===null||u===void 0?void 0:u.flags)&2097152?r.getAliasedSymbol(u):u;if(l===t.symbol)return o.parent.parent;function getTopNamespace(e){while(e.flags&4){e=e.parent}return e}});var s=a[0];if(s){return s.name.text}}function tryGetModuleNameFromPaths(t,r,n){for(var i in n){for(var a=0,s=n[i];a=l.length+p.length&&e.startsWith(r,l)&&e.endsWith(r,p)||!p&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-p.length-l.length);return i.replace("*",d)}}else if(c===r||c===t){return i}}}}function tryGetModuleNameFromRootDirs(t,r,n,i,a,s){var o=getPathRelativeToRootDirs(r,t,i);if(o===undefined){return undefined}var c=getPathRelativeToRootDirs(n,t,i);var u=c!==undefined?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,o,i)):o;return e.getEmitModuleResolutionKind(s)===e.ModuleResolutionKind.NodeJs?removeExtensionAndIndexPostFix(u,a,s):e.removeFileExtension(u)}function tryGetModuleNameAsNodeModule(t,r,n,i,a){var s=t.path,o=t.isRedirect;var c=r.getCanonicalFileName,u=r.sourceDirectory;if(!n.fileExists||!n.readFile){return undefined}var l=getNodeModulePathParts(s);if(!l){return undefined}var p=s;var d=false;if(!a){var f=l.packageRootIndex;var m=void 0;while(true){var g=tryDirectoryWithPackageJson(f),_=g.moduleFileToTry,h=g.packageRootPath;if(h){p=h;d=true;break}if(!m)m=_;f=s.indexOf(e.directorySeparator,f+1);if(f===-1){p=getExtensionlessFileName(m);break}}}if(o&&!d){return undefined}var y=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation();var v=c(p.substring(0,l.topLevelNodeModulesIndex));if(!(e.startsWith(u,v)||y&&e.startsWith(c(y),v))){return undefined}var T=p.substring(l.topLevelPackageNameIndex+1);var S=e.getPackageNameFromTypesPackageName(T);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===T?undefined:S;function tryDirectoryWithPackageJson(t){var r=s.substring(0,t);var a=e.combinePaths(r,"package.json");var o=s;if(n.fileExists(a)){var u=JSON.parse(n.readFile(a));var l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):undefined;if(l){var p=s.slice(r.length+1);var d=tryGetModuleNameFromPaths(e.removeFileExtension(p),removeExtensionAndIndexPostFix(p,0,i),l.paths);if(d!==undefined){o=e.combinePaths(r,d)}}var f=u.typings||u.types||u.main;if(e.isString(f)){var m=e.toPath(f,r,c);if(e.removeFileExtension(m)===e.removeFileExtension(c(o))){return{packageRootPath:r,moduleFileToTry:o}}}}return{moduleFileToTry:o}}function getExtensionlessFileName(t){var r=e.removeFileExtension(t);if(c(r.substring(l.fileNameIndex))==="/index"&&!tryGetAnyFileFromPath(n,r.substring(0,l.fileNameIndex))){return r.substring(0,l.fileNameIndex)}return r}}function tryGetAnyFileFromPath(t,r){if(!t.fileExists)return;var n=e.getSupportedExtensions({allowJs:true},[{extension:"node",isMixedContent:false},{extension:"json",isMixedContent:false,scriptKind:6}]);for(var i=0,a=n;i=0){o=c;c=t.indexOf("/",o+1);switch(u){case 0:if(t.indexOf(e.nodeModulesPathPart,o)===o){r=o;n=c;u=1}break;case 1:case 2:if(u===1&&t.charAt(o+1)==="@"){u=2}else{i=c;u=3}break;case 3:if(t.indexOf(e.nodeModulesPathPart,o)===o){u=1}else{u=3}break}}a=o;return u>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:a}:undefined}function getPathRelativeToRootDirs(t,r,n){return e.firstDefined(r,function(e){var r=getRelativePathIfInDirectory(t,e,n);return isPathRelativeToParent(r)?undefined:r})}function removeExtensionAndIndexPostFix(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+getJSExtensionForFile(t,n);default:return e.Debug.assertNever(r)}}function getJSExtensionForFile(t,r){var n;return(n=tryGetJSExtensionForFile(t,r))!==null&&n!==void 0?n:e.Debug.fail("Extension "+e.extensionFromPath(t)+" is unsupported:: FileName:: "+t)}function tryGetJSExtensionForFile(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return r.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return n;default:return undefined}}t.tryGetJSExtensionForFile=tryGetJSExtensionForFile;function getRelativePathIfInDirectory(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,false);return e.isRootedDiskPath(i)?undefined:i}function isPathRelativeToParent(t){return e.startsWith(t,"..")}})(t=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(u||(u={}));var u;(function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:undefined;function createDiagnosticReporter(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n){return function(t){return r.write(e.formatDiagnostic(t,i))}}var a=new Array(1);return function(t){a[0]=t;r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine());a[0]=undefined}}e.createDiagnosticReporter=createDiagnosticReporter;function clearScreenIfNotWatchingForFileChanges(t,r,n){if(t.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&e.contains(e.screenStartingMessageCodes,r.code)){t.clearScreen();return true}return false}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function getPlainDiagnosticFollowingNewLines(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}function getLocaleTimeString(e){return!e.now?(new Date).toLocaleTimeString():e.now().toLocaleTimeString("en-US",{timeZone:"UTC"})}e.getLocaleTimeString=getLocaleTimeString;function createWatchStatusReporter(t,r){return r?function(r,n,i){clearScreenIfNotWatchingForFileChanges(t,r,i);var a="["+e.formatColorAndReset(getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ";a+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(n+n);t.write(a)}:function(r,n,i){var a="";if(!clearScreenIfNotWatchingForFileChanges(t,r,i)){a+=n}a+=getLocaleTimeString(t)+" - ";a+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+getPlainDiagnosticFollowingNewLines(r,n);t.write(a)}}e.createWatchStatusReporter=createWatchStatusReporter;function parseConfigFileWithSystem(t,r,n,i,a,s){var o=a;o.onUnRecoverableConfigFileDiagnostic=function(e){return reportUnrecoverableDiagnostic(a,s,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,o,n,i);o.onUnRecoverableConfigFileDiagnostic=undefined;return c}e.parseConfigFileWithSystem=parseConfigFileWithSystem;function getErrorCountForSummary(t){return e.countWhere(t,function(t){return t.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=getErrorCountForSummary;function getWatchErrorSummaryDiagnosticMessage(t){return t===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=getWatchErrorSummaryDiagnosticMessage;function getErrorSummaryText(t,r){if(t===0)return"";var n=e.createCompilerDiagnostic(t===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r}e.getErrorSummaryText=getErrorSummaryText;function isBuilderProgram(e){return!!e.getState}e.isBuilderProgram=isBuilderProgram;function listFiles(t,r){var n=t.getCompilerOptions();if(n.explainFiles){explainFiles(isBuilderProgram(t)?t.getProgram():t,r)}else if(n.listFiles||n.listFilesOnly){e.forEach(t.getSourceFiles(),function(e){r(e.fileName)})}}e.listFiles=listFiles;function explainFiles(t,r){var n,i;var a=t.getFileIncludeReasons();var s=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames());var o=function(r){return e.convertToRelativePath(r,t.getCurrentDirectory(),s)};for(var c=0,u=t.getSourceFiles();c0){return e.ExitStatus.DiagnosticsPresent_OutputsSkipped}else if(p.length>0){return e.ExitStatus.DiagnosticsPresent_OutputsGenerated}return e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=emitFilesAndReportErrorsAndGetExitStatus;e.noopFileWatcher={close:e.noop};e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function createWatchHost(t,r){if(t===void 0){t=e.sys}var n=r||createWatchStatusReporter(t);return{onWatchStatusChange:n,watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}e.createWatchHost=createWatchHost;e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"};function createWatchFactory(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None;var i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop;var a=e.getWatchFactory(t,n,i);a.writeLog=i;return a}e.createWatchFactory=createWatchFactory;function createCompilerHostFromProgramHost(t,r,n){if(n===void 0){n=t}var i=t.useCaseSensitiveFileNames();var a=e.memoize(function(){return t.getNewLine()});return{getSourceFile:function(n,i,a){var s;try{e.performance.mark("beforeIORead");s=t.readFile(n,r().charset);e.performance.mark("afterIORead");e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){if(a){a(e.message)}s=""}return s!==undefined?e.createSourceFile(n,s,i):undefined},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:writeFile,getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature};function writeFile(r,n,i,a){try{e.performance.mark("beforeIOWrite");e.writeFileEnsuringDirectories(r,n,i,function(e,r,n){return t.writeFile(e,r,n)},function(e){return t.createDirectory(e)},function(e){return t.directoryExists(e)});e.performance.mark("afterIOWrite");e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){if(a){a(e.message)}}}}e.createCompilerHostFromProgramHost=createCompilerHostFromProgramHost;function setGetSourceFileAsHashVersioned(t,r){var i=t.getSourceFile;var a=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){var e=[];for(var r=0;re?t:e}function isDeclarationFile(t){return e.fileExtensionIs(t,".d.ts")}function isCircularBuildOrder(e){return!!e&&!!e.buildOrder}e.isCircularBuildOrder=isCircularBuildOrder;function getBuildOrderFromAnyBuildOrder(e){return isCircularBuildOrder(e)?e.buildOrder:e}e.getBuildOrderFromAnyBuildOrder=getBuildOrderFromAnyBuildOrder;function createBuilderStatusReporter(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine);t.write(i)}}e.createBuilderStatusReporter=createBuilderStatusReporter;function createSolutionBuilderHostBase(t,r,n,i){var a=e.createProgramHost(t,r);a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined;a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop;a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop;a.reportDiagnostic=n||e.createDiagnosticReporter(t);a.reportSolutionBuilderStatus=i||createBuilderStatusReporter(t);a.now=e.maybeBind(t,t.now);return a}function createSolutionBuilderHost(t,r,n,i,a){if(t===void 0){t=e.sys}var s=createSolutionBuilderHostBase(t,r,n,i);s.reportErrorSummary=a;return s}e.createSolutionBuilderHost=createSolutionBuilderHost;function createSolutionBuilderWithWatchHost(t,r,n,i,a){if(t===void 0){t=e.sys}var s=createSolutionBuilderHostBase(t,r,n,i);var o=e.createWatchHost(t,a);e.copyProperties(s,o);return s}e.createSolutionBuilderWithWatchHost=createSolutionBuilderWithWatchHost;function getCompilerOptionsOfBuildOptions(t){var r={};e.commonOptionsWithBuild.forEach(function(n){if(e.hasProperty(t,n.name))r[n.name]=t[n.name]});return r}function createSolutionBuilder(e,t,r){return createSolutionBuilderWorker(false,e,t,r)}e.createSolutionBuilder=createSolutionBuilder;function createSolutionBuilderWithWatch(e,t,r,n){return createSolutionBuilderWorker(true,e,t,r,n)}e.createSolutionBuilderWithWatch=createSolutionBuilderWithWatch;function createSolutionBuilderState(t,r,n,i,a){var s=r;var o=r;var c=s.getCurrentDirectory();var u=e.createGetCanonicalFileName(s.useCaseSensitiveFileNames());var l=getCompilerOptionsOfBuildOptions(i);var p=e.createCompilerHostFromProgramHost(s,function(){return T.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(p,s);p.getParsedCommandLine=function(e){return parseConfigFile(T,e,toResolvedConfigFilePath(T,e))};p.resolveModuleNames=e.maybeBind(s,s.resolveModuleNames);p.resolveTypeReferenceDirectives=e.maybeBind(s,s.resolveTypeReferenceDirectives);var d=!p.resolveModuleNames?e.createModuleResolutionCache(c,u):undefined;var f=!p.resolveTypeReferenceDirectives?e.createTypeReferenceDirectiveResolutionCache(c,u,undefined,d===null||d===void 0?void 0:d.getPackageJsonInfoCache()):undefined;if(!p.resolveModuleNames){var m=function(t,r,n){return e.resolveModuleName(t,r,T.projectCompilerOptions,p,d,n).resolvedModule};p.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,i,m)}}if(!p.resolveTypeReferenceDirectives){var g=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,T.projectCompilerOptions,p,n,T.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};p.resolveTypeReferenceDirectives=function(t,r,n){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,n,g)}}var _=e.createWatchFactory(o,i),h=_.watchFile,y=_.watchDirectory,v=_.writeLog;var T={host:s,hostWithWatch:o,currentDirectory:c,getCanonicalFileName:u,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(s),write:e.maybeBind(s,s.trace),options:i,baseCompilerOptions:l,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:p,moduleResolutionCache:d,typeReferenceDirectiveResolutionCache:f,buildOrder:undefined,readFileWithCache:function(e){return s.readFile(e)},projectCompilerOptions:l,cache:undefined,allProjectBuildPending:true,needsSummary:true,watchAllProjectsPending:t,currentInvalidatedProject:undefined,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:undefined,reportFileChangeDetected:false,watchFile:h,watchDirectory:y,writeLog:v};return T}function toPath(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function toResolvedConfigFilePath(e,t){var r=e.resolvedConfigFilePaths;var n=r.get(t);if(n!==undefined)return n;var i=toPath(e,t);r.set(t,i);return i}function isParsedCommandLine(e){return!!e.options}function getCachedParsedConfigFile(e,t){var r=e.configFileCache.get(t);return r&&isParsedCommandLine(r)?r:undefined}function parseConfigFile(t,r,n){var i=t.configFileCache;var a=i.get(n);if(a){return isParsedCommandLine(a)?a:undefined}var s;var o=t.parseConfigFileHost,c=t.baseCompilerOptions,u=t.baseWatchOptions,l=t.extendedConfigCache,p=t.host;var d;if(p.getParsedCommandLine){d=p.getParsedCommandLine(r);if(!d)s=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)}else{o.onUnRecoverableConfigFileDiagnostic=function(e){return s=e};d=e.getParsedCommandLineOfConfigFile(r,c,o,l,u);o.onUnRecoverableConfigFileDiagnostic=e.noop}i.set(n,d||s);return d}function resolveProjectName(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function createBuildOrder(t,r){var n=new e.Map;var i=new e.Map;var a=[];var s;var o;for(var c=0,u=r;ca)}}}function needsBuild(t,r,n){var i=t.options;if(r.type!==e.UpToDateStatusType.OutOfDateWithPrepend||i.force)return true;return n.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options)}function getNextInvalidatedProject(t,r,n){if(!t.projectPendingBuild.size)return undefined;if(isCircularBuildOrder(r))return undefined;if(t.currentInvalidatedProject){return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,r)?t.currentInvalidatedProject:undefined}var i=t.options,s=t.projectPendingBuild;for(var o=0;oc){o=d;c=f}}}if(!i.fileNames.length&&!e.canJsonReportNoInputFiles(i.raw)){return{type:e.UpToDateStatusType.ContainerOnly}}var m=e.getAllProjectOutputs(i,!u.useCaseSensitiveFileNames());var g="(none)";var _=r;var h="(none)";var y=t;var v;var T=t;var S=false;if(!s){for(var b=0,E=m;by){y=D;h=x}if(isDeclarationFile(x)){var C=e.getModifiedTime(u,x);T=newer(T,C)}}}var A=false;var k=false;var P;if(i.projectReferences){n.projectStatus.set(a,{type:e.UpToDateStatusType.ComputingUpstream});for(var N=0,O=i.projectReferences;N=0}t.hasArgument=hasArgument;function findArgument(t){var r=e.sys.args.indexOf(t);return r>=0&&ra){return 2}if(e.charCodeAt(0)===46){return 3}if(e.charCodeAt(0)===95){return 4}if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=validatePackageNameWorker(r[1],false);if(n!==0){return{name:r[1],isScopeName:true,result:n}}var i=validatePackageNameWorker(r[2],false);if(i!==0){return{name:r[2],isScopeName:false,result:i}}return 0}}if(encodeURIComponent(e)!==e){return 5}return 0}function renderPackageNameValidationFailure(e,t){return typeof e==="object"?renderPackageNameValidationFailureWorker(t,e.result,e.name,e.isScopeName):renderPackageNameValidationFailureWorker(t,e,t,false)}t.renderPackageNameValidationFailure=renderPackageNameValidationFailure;function renderPackageNameValidationFailureWorker(t,r,n,i){var s=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+s+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+s+" name '"+n+"' should be less than "+a+" characters";case 3:return"'"+t+"':: "+s+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+s+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+s+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}})(t=e.JsTyping||(e.JsTyping={}))})(u||(u={}));var u;(function(e){var t;(function(e){var t=function(){function StringScriptSnapshot(e){this.text=e}StringScriptSnapshot.prototype.getText=function(e,t){return e===0&&t===this.text.length?this.text:this.text.substring(e,t)};StringScriptSnapshot.prototype.getLength=function(){return this.text.length};StringScriptSnapshot.prototype.getChangeRange=function(){return undefined};return StringScriptSnapshot}();function fromString(e){return new t(e)}e.fromString=fromString})(t=e.ScriptSnapshot||(e.ScriptSnapshot={}));var r;(function(e){e[e["Dependencies"]=1]="Dependencies";e[e["DevDependencies"]=2]="DevDependencies";e[e["PeerDependencies"]=4]="PeerDependencies";e[e["OptionalDependencies"]=8]="OptionalDependencies";e[e["All"]=15]="All"})(r=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var n;(function(e){e[e["Off"]=0]="Off";e[e["On"]=1]="On";e[e["Auto"]=2]="Auto"})(n=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var i;(function(e){e[e["Semantic"]=0]="Semantic";e[e["PartialSemantic"]=1]="PartialSemantic";e[e["Syntactic"]=2]="Syntactic"})(i=e.LanguageServiceMode||(e.LanguageServiceMode={}));e.emptyOptions={};var a;(function(e){e["Original"]="original";e["TwentyTwenty"]="2020"})(a=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var s;(function(e){e[e["Invoked"]=1]="Invoked";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["TriggerForIncompleteCompletions"]=3]="TriggerForIncompleteCompletions"})(s=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var o;(function(e){e["Type"]="Type";e["Parameter"]="Parameter";e["Enum"]="Enum"})(o=e.InlayHintKind||(e.InlayHintKind={}));var c;(function(e){e["none"]="none";e["definition"]="definition";e["reference"]="reference";e["writtenReference"]="writtenReference"})(c=e.HighlightSpanKind||(e.HighlightSpanKind={}));var u;(function(e){e[e["None"]=0]="None";e[e["Block"]=1]="Block";e[e["Smart"]=2]="Smart"})(u=e.IndentStyle||(e.IndentStyle={}));var l;(function(e){e["Ignore"]="ignore";e["Insert"]="insert";e["Remove"]="remove"})(l=e.SemicolonPreference||(e.SemicolonPreference={}));function getDefaultFormatCodeSettings(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:true,indentStyle:u.Smart,insertSpaceAfterConstructor:false,insertSpaceAfterCommaDelimiter:true,insertSpaceAfterSemicolonInForStatements:true,insertSpaceBeforeAndAfterBinaryOperators:true,insertSpaceAfterKeywordsInControlFlowStatements:true,insertSpaceAfterFunctionKeywordForAnonymousFunctions:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:false,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:true,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:false,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:false,insertSpaceBeforeFunctionParenthesis:false,placeOpenBraceOnNewLineForFunctions:false,placeOpenBraceOnNewLineForControlBlocks:false,semicolons:l.Ignore,trimTrailingWhitespace:true}}e.getDefaultFormatCodeSettings=getDefaultFormatCodeSettings;e.testFormatSettings=getDefaultFormatCodeSettings("\n");var p;(function(e){e[e["aliasName"]=0]="aliasName";e[e["className"]=1]="className";e[e["enumName"]=2]="enumName";e[e["fieldName"]=3]="fieldName";e[e["interfaceName"]=4]="interfaceName";e[e["keyword"]=5]="keyword";e[e["lineBreak"]=6]="lineBreak";e[e["numericLiteral"]=7]="numericLiteral";e[e["stringLiteral"]=8]="stringLiteral";e[e["localName"]=9]="localName";e[e["methodName"]=10]="methodName";e[e["moduleName"]=11]="moduleName";e[e["operator"]=12]="operator";e[e["parameterName"]=13]="parameterName";e[e["propertyName"]=14]="propertyName";e[e["punctuation"]=15]="punctuation";e[e["space"]=16]="space";e[e["text"]=17]="text";e[e["typeParameterName"]=18]="typeParameterName";e[e["enumMemberName"]=19]="enumMemberName";e[e["functionName"]=20]="functionName";e[e["regularExpressionLiteral"]=21]="regularExpressionLiteral";e[e["link"]=22]="link";e[e["linkName"]=23]="linkName";e[e["linkText"]=24]="linkText"})(p=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var d;(function(e){e["Comment"]="comment";e["Region"]="region";e["Code"]="code";e["Imports"]="imports"})(d=e.OutliningSpanKind||(e.OutliningSpanKind={}));var f;(function(e){e[e["JavaScript"]=0]="JavaScript";e[e["SourceMap"]=1]="SourceMap";e[e["Declaration"]=2]="Declaration"})(f=e.OutputFileType||(e.OutputFileType={}));var m;(function(e){e[e["None"]=0]="None";e[e["InMultiLineCommentTrivia"]=1]="InMultiLineCommentTrivia";e[e["InSingleQuoteStringLiteral"]=2]="InSingleQuoteStringLiteral";e[e["InDoubleQuoteStringLiteral"]=3]="InDoubleQuoteStringLiteral";e[e["InTemplateHeadOrNoSubstitutionTemplate"]=4]="InTemplateHeadOrNoSubstitutionTemplate";e[e["InTemplateMiddleOrTail"]=5]="InTemplateMiddleOrTail";e[e["InTemplateSubstitutionPosition"]=6]="InTemplateSubstitutionPosition"})(m=e.EndOfLineState||(e.EndOfLineState={}));var g;(function(e){e[e["Punctuation"]=0]="Punctuation";e[e["Keyword"]=1]="Keyword";e[e["Operator"]=2]="Operator";e[e["Comment"]=3]="Comment";e[e["Whitespace"]=4]="Whitespace";e[e["Identifier"]=5]="Identifier";e[e["NumberLiteral"]=6]="NumberLiteral";e[e["BigIntLiteral"]=7]="BigIntLiteral";e[e["StringLiteral"]=8]="StringLiteral";e[e["RegExpLiteral"]=9]="RegExpLiteral"})(g=e.TokenClass||(e.TokenClass={}));var _;(function(e){e["unknown"]="";e["warning"]="warning";e["keyword"]="keyword";e["scriptElement"]="script";e["moduleElement"]="module";e["classElement"]="class";e["localClassElement"]="local class";e["interfaceElement"]="interface";e["typeElement"]="type";e["enumElement"]="enum";e["enumMemberElement"]="enum member";e["variableElement"]="var";e["localVariableElement"]="local var";e["functionElement"]="function";e["localFunctionElement"]="local function";e["memberFunctionElement"]="method";e["memberGetAccessorElement"]="getter";e["memberSetAccessorElement"]="setter";e["memberVariableElement"]="property";e["constructorImplementationElement"]="constructor";e["callSignatureElement"]="call";e["indexSignatureElement"]="index";e["constructSignatureElement"]="construct";e["parameterElement"]="parameter";e["typeParameterElement"]="type parameter";e["primitiveType"]="primitive type";e["label"]="label";e["alias"]="alias";e["constElement"]="const";e["letElement"]="let";e["directory"]="directory";e["externalModuleName"]="external module name";e["jsxAttribute"]="JSX attribute";e["string"]="string";e["link"]="link";e["linkName"]="link name";e["linkText"]="link text"})(_=e.ScriptElementKind||(e.ScriptElementKind={}));var h;(function(e){e["none"]="";e["publicMemberModifier"]="public";e["privateMemberModifier"]="private";e["protectedMemberModifier"]="protected";e["exportedModifier"]="export";e["ambientModifier"]="declare";e["staticModifier"]="static";e["abstractModifier"]="abstract";e["optionalModifier"]="optional";e["deprecatedModifier"]="deprecated";e["dtsModifier"]=".d.ts";e["tsModifier"]=".ts";e["tsxModifier"]=".tsx";e["jsModifier"]=".js";e["jsxModifier"]=".jsx";e["jsonModifier"]=".json"})(h=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var y;(function(e){e["comment"]="comment";e["identifier"]="identifier";e["keyword"]="keyword";e["numericLiteral"]="number";e["bigintLiteral"]="bigint";e["operator"]="operator";e["stringLiteral"]="string";e["whiteSpace"]="whitespace";e["text"]="text";e["punctuation"]="punctuation";e["className"]="class name";e["enumName"]="enum name";e["interfaceName"]="interface name";e["moduleName"]="module name";e["typeParameterName"]="type parameter name";e["typeAliasName"]="type alias name";e["parameterName"]="parameter name";e["docCommentTagName"]="doc comment tag name";e["jsxOpenTagName"]="jsx open tag name";e["jsxCloseTagName"]="jsx close tag name";e["jsxSelfClosingTagName"]="jsx self closing tag name";e["jsxAttribute"]="jsx attribute";e["jsxText"]="jsx text";e["jsxAttributeStringLiteralValue"]="jsx attribute string literal value"})(y=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var v;(function(e){e[e["comment"]=1]="comment";e[e["identifier"]=2]="identifier";e[e["keyword"]=3]="keyword";e[e["numericLiteral"]=4]="numericLiteral";e[e["operator"]=5]="operator";e[e["stringLiteral"]=6]="stringLiteral";e[e["regularExpressionLiteral"]=7]="regularExpressionLiteral";e[e["whiteSpace"]=8]="whiteSpace";e[e["text"]=9]="text";e[e["punctuation"]=10]="punctuation";e[e["className"]=11]="className";e[e["enumName"]=12]="enumName";e[e["interfaceName"]=13]="interfaceName";e[e["moduleName"]=14]="moduleName";e[e["typeParameterName"]=15]="typeParameterName";e[e["typeAliasName"]=16]="typeAliasName";e[e["parameterName"]=17]="parameterName";e[e["docCommentTagName"]=18]="docCommentTagName";e[e["jsxOpenTagName"]=19]="jsxOpenTagName";e[e["jsxCloseTagName"]=20]="jsxCloseTagName";e[e["jsxSelfClosingTagName"]=21]="jsxSelfClosingTagName";e[e["jsxAttribute"]=22]="jsxAttribute";e[e["jsxText"]=23]="jsxText";e[e["jsxAttributeStringLiteralValue"]=24]="jsxAttributeStringLiteralValue";e[e["bigintLiteral"]=25]="bigintLiteral"})(v=e.ClassificationType||(e.ClassificationType={}))})(u||(u={}));var u;(function(e){e.scanner=e.createScanner(99,true);var t;(function(e){e[e["None"]=0]="None";e[e["Value"]=1]="Value";e[e["Type"]=2]="Type";e[e["Namespace"]=4]="Namespace";e[e["All"]=7]="All"})(t=e.SemanticMeaning||(e.SemanticMeaning={}));function getMeaningFromDeclaration(t){switch(t.kind){case 252:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return t.name===undefined?1|2:2;case 294:case 255:return 1|2;case 259:if(e.isAmbientModule(t)){return 4|1}else if(e.getModuleInstanceState(t)===1){return 4|1}else{return 4}case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 4|1}return 7}e.getMeaningFromDeclaration=getMeaningFromDeclaration;function getMeaningFromLocation(t){t=getAdjustedReferenceLocation(t);var r=t.parent;if(t.kind===300){return 1}else if(e.isExportAssignment(r)||e.isExportSpecifier(r)||e.isExternalModuleReference(r)||e.isImportSpecifier(r)||e.isImportClause(r)||e.isImportEqualsDeclaration(r)&&t===r.name){var n=r;while(n){if(e.isImportEqualsDeclaration(n)||e.isImportClause(n)||e.isExportDeclaration(n)){return n.isTypeOnly?2:7}n=n.parent}return 7}else if(isInRightSideOfInternalImportEqualsDeclaration(t)){return getMeaningFromRightHandSideOfImportEquals(t)}else if(e.isDeclarationName(t)){return getMeaningFromDeclaration(r)}else if(e.isEntityName(t)&&e.findAncestor(t,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))){return 7}else if(isTypeReference(t)){return 2}else if(isNamespaceReference(t)){return 4}else if(e.isTypeParameterDeclaration(r)){e.Debug.assert(e.isJSDocTemplateTag(r.parent));return 2}else if(e.isLiteralTypeNode(r)){return 2|1}else{return 1}}e.getMeaningFromLocation=getMeaningFromLocation;function getMeaningFromRightHandSideOfImportEquals(t){var r=t.kind===159?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:undefined;return r&&r.parent.kind===263?7:4}function isInRightSideOfInternalImportEqualsDeclaration(t){while(t.parent.kind===159){t=t.parent}return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}e.isInRightSideOfInternalImportEqualsDeclaration=isInRightSideOfInternalImportEqualsDeclaration;function isNamespaceReference(e){return isQualifiedNameNamespaceReference(e)||isPropertyAccessNamespaceReference(e)}function isQualifiedNameNamespaceReference(e){var t=e;var r=true;if(t.parent.kind===159){while(t.parent&&t.parent.kind===159){t=t.parent}r=t.right===e}return t.parent.kind===176&&!r}function isPropertyAccessNamespaceReference(e){var t=e;var r=true;if(t.parent.kind===204){while(t.parent&&t.parent.kind===204){t=t.parent}r=t.name===e}if(!r&&t.parent.kind===226&&t.parent.parent.kind===289){var n=t.parent.parent.parent;return n.kind===255&&t.parent.parent.token===117||n.kind===256&&t.parent.parent.token===94}return false}function isTypeReference(t){if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}switch(t.kind){case 108:return!e.isExpressionNode(t);case 190:return true}switch(t.parent.kind){case 176:return true;case 198:return!t.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return false}function isCallExpressionTarget(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isCallExpression,selectExpressionOfCallOrNewExpressionOrDecorator,r,n)}e.isCallExpressionTarget=isCallExpressionTarget;function isNewExpressionTarget(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isNewExpression,selectExpressionOfCallOrNewExpressionOrDecorator,r,n)}e.isNewExpressionTarget=isNewExpressionTarget;function isCallOrNewExpressionTarget(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isCallOrNewExpression,selectExpressionOfCallOrNewExpressionOrDecorator,r,n)}e.isCallOrNewExpressionTarget=isCallOrNewExpressionTarget;function isTaggedTemplateTag(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isTaggedTemplateExpression,selectTagOfTaggedTemplateExpression,r,n)}e.isTaggedTemplateTag=isTaggedTemplateTag;function isDecoratorTarget(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isDecorator,selectExpressionOfCallOrNewExpressionOrDecorator,r,n)}e.isDecoratorTarget=isDecoratorTarget;function isJsxOpeningLikeElementTagName(t,r,n){if(r===void 0){r=false}if(n===void 0){n=false}return isCalleeWorker(t,e.isJsxOpeningLikeElement,selectTagNameOfJsxOpeningLikeElement,r,n)}e.isJsxOpeningLikeElementTagName=isJsxOpeningLikeElementTagName;function selectExpressionOfCallOrNewExpressionOrDecorator(e){return e.expression}function selectTagOfTaggedTemplateExpression(e){return e.tag}function selectTagNameOfJsxOpeningLikeElement(e){return e.tagName}function isCalleeWorker(t,r,n,i,a){var s=i?climbPastPropertyOrElementAccess(t):climbPastPropertyAccess(t);if(a){s=e.skipOuterExpressions(s)}return!!s&&!!s.parent&&r(s.parent)&&n(s.parent)===s}function climbPastPropertyAccess(e){return isRightSideOfPropertyAccess(e)?e.parent:e}e.climbPastPropertyAccess=climbPastPropertyAccess;function climbPastPropertyOrElementAccess(e){return isRightSideOfPropertyAccess(e)||isArgumentExpressionOfElementAccess(e)?e.parent:e}e.climbPastPropertyOrElementAccess=climbPastPropertyOrElementAccess;function getTargetLabel(e,t){while(e){if(e.kind===248&&e.label.escapedText===t){return e.label}e=e.parent}return undefined}e.getTargetLabel=getTargetLabel;function hasPropertyAccessExpressionWithName(t,r){if(!e.isPropertyAccessExpression(t.expression)){return false}return t.expression.name.text===r}e.hasPropertyAccessExpressionWithName=hasPropertyAccessExpressionWithName;function isJumpStatementTarget(t){var r;return e.isIdentifier(t)&&((r=e.tryCast(t.parent,e.isBreakOrContinueStatement))===null||r===void 0?void 0:r.label)===t}e.isJumpStatementTarget=isJumpStatementTarget;function isLabelOfLabeledStatement(t){var r;return e.isIdentifier(t)&&((r=e.tryCast(t.parent,e.isLabeledStatement))===null||r===void 0?void 0:r.label)===t}e.isLabelOfLabeledStatement=isLabelOfLabeledStatement;function isLabelName(e){return isLabelOfLabeledStatement(e)||isJumpStatementTarget(e)}e.isLabelName=isLabelName;function isTagName(t){var r;return((r=e.tryCast(t.parent,e.isJSDocTag))===null||r===void 0?void 0:r.tagName)===t}e.isTagName=isTagName;function isRightSideOfQualifiedName(t){var r;return((r=e.tryCast(t.parent,e.isQualifiedName))===null||r===void 0?void 0:r.right)===t}e.isRightSideOfQualifiedName=isRightSideOfQualifiedName;function isRightSideOfPropertyAccess(t){var r;return((r=e.tryCast(t.parent,e.isPropertyAccessExpression))===null||r===void 0?void 0:r.name)===t}e.isRightSideOfPropertyAccess=isRightSideOfPropertyAccess;function isArgumentExpressionOfElementAccess(t){var r;return((r=e.tryCast(t.parent,e.isElementAccessExpression))===null||r===void 0?void 0:r.argumentExpression)===t}e.isArgumentExpressionOfElementAccess=isArgumentExpressionOfElementAccess;function isNameOfModuleDeclaration(t){var r;return((r=e.tryCast(t.parent,e.isModuleDeclaration))===null||r===void 0?void 0:r.name)===t}e.isNameOfModuleDeclaration=isNameOfModuleDeclaration;function isNameOfFunctionDeclaration(t){var r;return e.isIdentifier(t)&&((r=e.tryCast(t.parent,e.isFunctionLike))===null||r===void 0?void 0:r.name)===t}e.isNameOfFunctionDeclaration=isNameOfFunctionDeclaration;function isLiteralNameOfPropertyDeclarationOrIndexAccess(t){switch(t.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(t.parent)===t;case 205:return t.parent.argumentExpression===t;case 160:return true;case 194:return t.parent.parent.kind===192;default:return false}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=isLiteralNameOfPropertyDeclarationOrIndexAccess;function isExpressionOfExternalModuleImportEqualsDeclaration(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t}e.isExpressionOfExternalModuleImportEqualsDeclaration=isExpressionOfExternalModuleImportEqualsDeclaration;function getContainerNode(t){if(e.isJSDocTypeAlias(t)){t=t.parent.parent}while(true){t=t.parent;if(!t){return undefined}switch(t.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return t}}}e.getContainerNode=getContainerNode;function getNodeKind(t){switch(t.kind){case 300:return e.isExternalModule(t)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return getKindOfVariableDeclaration(t);case 201:return getKindOfVariableDeclaration(e.getRootDeclaration(t));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var r=t.initializer;return e.isFunctionLike(r)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(t,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var n=e.getAssignmentDeclarationKind(t);var i=t.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=getNodeKind(i);return a===""?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:{e.assertType(n);return""}}case 79:return e.isImportClause(t.parent)?"alias":"";case 269:var s=getNodeKind(t.expression);return s===""?"const":s;default:return""}function getKindOfVariableDeclaration(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}}e.getNodeKind=getNodeKind;function isThis(t){switch(t.kind){case 108:return true;case 79:return e.identifierIsThisKeyword(t)&&t.parent.kind===162;default:return false}}e.isThis=isThis;var r=/^\/\/\/\s*=r.end}e.startEndContainsRange=startEndContainsRange;function rangeContainsStartEnd(e,t,r){return e.pos<=t&&e.end>=r}e.rangeContainsStartEnd=rangeContainsStartEnd;function rangeOverlapsWithStartEnd(e,t,r){return startEndOverlapsWithStartEnd(e.pos,e.end,t,r)}e.rangeOverlapsWithStartEnd=rangeOverlapsWithStartEnd;function nodeOverlapsWithStartEnd(e,t,r,n){return startEndOverlapsWithStartEnd(e.getStart(t),e.end,r,n)}e.nodeOverlapsWithStartEnd=nodeOverlapsWithStartEnd;function startEndOverlapsWithStartEnd(e,t,r,n){var i=Math.max(e,r);var a=Math.min(t,n);return it){break}var l=c.getEnd();if(tn.getStart(t)&&rt.end||e.pos===t.end;return r&&nodeHasTokens(e,n)?find(e):undefined})}}e.findNextToken=findNextToken;function findPrecedingToken(t,r,n,i){var a=find(n||r);e.Debug.assert(!(a&&isWhiteSpaceOnlyJsxText(a)));return a;function find(a){if(isNonWhitespaceToken(a)&&a.kind!==1){return a}var s=a.getChildren(r);var o=e.binarySearchKey(s,t,function(e,t){return t},function(e,r){if(t=s[e-1].end){return 0}return 1}return-1});if(o>=0&&s[o]){var c=s[o];if(t=t||!nodeHasTokens(c,r)||isWhiteSpaceOnlyJsxText(c);if(l){var p=findRightmostChildNodeWithTokens(s,o,r);return p&&findRightmostToken(p,r)}else{return find(c)}}}e.Debug.assert(n!==undefined||a.kind===300||a.kind===1||e.isJSDocCommentContainingNode(a));var d=findRightmostChildNodeWithTokens(s,s.length,r);return d&&findRightmostToken(d,r)}}e.findPrecedingToken=findPrecedingToken;function isNonWhitespaceToken(t){return e.isToken(t)&&!isWhiteSpaceOnlyJsxText(t)}function findRightmostToken(e,t){if(isNonWhitespaceToken(e)){return e}var r=e.getChildren(t);if(r.length===0){return e}var n=findRightmostChildNodeWithTokens(r,r.length,t);return n&&findRightmostToken(n,t)}function findRightmostChildNodeWithTokens(t,r,n){for(var i=r-1;i>=0;i--){var a=t[i];if(isWhiteSpaceOnlyJsxText(a)){e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`")}else if(nodeHasTokens(t[i],n)){return t[i]}}}function isInString(t,r,n){if(n===void 0){n=findPrecedingToken(r,t)}if(n&&e.isStringTextContainingNode(n)){var i=n.getStart(t);var a=n.getEnd();if(in.getStart(t)}e.isInTemplateString=isInTemplateString;function isInJSXText(t,r){var n=getTokenAtPosition(t,r);if(e.isJsxText(n)){return true}if(n.kind===18&&e.isJsxExpression(n.parent)&&e.isJsxElement(n.parent.parent)){return true}if(n.kind===29&&e.isJsxOpeningLikeElement(n.parent)&&e.isJsxElement(n.parent.parent)){return true}return false}e.isInJSXText=isInJSXText;function isInsideJsxElement(e,t){function isInsideJsxElementTraversal(r){while(r){if(r.kind>=277&&r.kind<=286||r.kind===11||r.kind===29||r.kind===31||r.kind===79||r.kind===19||r.kind===18||r.kind===43){r=r.parent}else if(r.kind===276){if(t>r.getStart(e))return true;r=r.parent}else{return false}}return false}return isInsideJsxElementTraversal(getTokenAtPosition(e,t))}e.isInsideJsxElement=isInsideJsxElement;function findPrecedingMatchingToken(t,r,n){var i=e.tokenToString(t.kind);var a=e.tokenToString(r);var s=t.getFullStart();var o=n.text.lastIndexOf(a,s);if(o===-1){return undefined}if(n.text.lastIndexOf(i,s-1)=r})}e.getPossibleGenericSignatures=getPossibleGenericSignatures;function getPossibleTypeArgumentsInfo(t,r){if(r.text.lastIndexOf("<",t?t.pos:r.text.length)===-1){return undefined}var n=t;var i=0;var a=0;while(n){switch(n.kind){case 29:n=findPrecedingToken(n.getFullStart(),r);if(n&&n.kind===28){n=findPrecedingToken(n.getFullStart(),r)}if(!n||!e.isIdentifier(n))return undefined;if(!i){return e.isDeclarationName(n)?undefined:{called:n,nTypeArguments:a}}i--;break;case 49:i=+3;break;case 48:i=+2;break;case 31:i++;break;case 19:n=findPrecedingMatchingToken(n,18,r);if(!n)return undefined;break;case 21:n=findPrecedingMatchingToken(n,20,r);if(!n)return undefined;break;case 23:n=findPrecedingMatchingToken(n,22,r);if(!n)return undefined;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n)){break}return undefined}n=findPrecedingToken(n.getFullStart(),r)}return undefined}e.getPossibleTypeArgumentsInfo=getPossibleTypeArgumentsInfo;function isInComment(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,undefined,n)}e.isInComment=isInComment;function hasDocComment(t,r){var n=getTokenAtPosition(t,r);return!!e.findAncestor(n,e.isJSDoc)}e.hasDocComment=hasDocComment;function nodeHasTokens(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function getNodeModifiers(t,r){if(r===void 0){r=0}var n=[];var i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;if(i&8)n.push("private");if(i&16)n.push("protected");if(i&4)n.push("public");if(i&32||e.isClassStaticBlockDeclaration(t))n.push("static");if(i&128)n.push("abstract");if(i&1)n.push("export");if(i&8192)n.push("deprecated");if(t.flags&8388608)n.push("declare");if(t.kind===269)n.push("export");return n.length>0?n.join(","):""}e.getNodeModifiers=getNodeModifiers;function getTypeArgumentOrTypeParameterList(t){if(t.kind===176||t.kind===206){return t.typeArguments}if(e.isFunctionLike(t)||t.kind===255||t.kind===256){return t.typeParameters}return undefined}e.getTypeArgumentOrTypeParameterList=getTypeArgumentOrTypeParameterList;function isComment(e){return e===2||e===3}e.isComment=isComment;function isStringOrRegularExpressionOrTemplateLiteral(t){if(t===10||t===13||e.isTemplateLiteralKind(t)){return true}return false}e.isStringOrRegularExpressionOrTemplateLiteral=isStringOrRegularExpressionOrTemplateLiteral;function isPunctuation(e){return 18<=e&&e<=78}e.isPunctuation=isPunctuation;function isInsideTemplateLiteral(t,r,n){return e.isTemplateLiteralKind(t.kind)&&(t.getStart(n)=2||!!e.noEmit}e.compilerOptionsIndicateEs6Modules=compilerOptionsIndicateEs6Modules;function createModuleSpecifierResolutionHost(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=createModuleSpecifierResolutionHost;function getModuleSpecifierResolverHost(e,t){return i(i({},createModuleSpecifierResolutionHost(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=getModuleSpecifierResolverHost;function makeImportIfNecessary(e,t,r,n){return e||t&&t.length?makeImport(e,t,r,n):undefined}e.makeImportIfNecessary=makeImportIfNecessary;function makeImport(t,r,n,i,a){return e.factory.createImportDeclaration(undefined,undefined,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):undefined):undefined,typeof n==="string"?makeStringLiteral(n,i):n)}e.makeImport=makeImport;function makeStringLiteral(t,r){return e.factory.createStringLiteral(t,r===0)}e.makeStringLiteral=makeStringLiteral;var n;(function(e){e[e["Single"]=0]="Single";e[e["Double"]=1]="Double"})(n=e.QuotePreference||(e.QuotePreference={}));function quotePreferenceFromString(t,r){return e.isStringDoubleQuoted(t,r)?1:0}e.quotePreferenceFromString=quotePreferenceFromString;function getQuotePreference(t,r){if(r.quotePreference&&r.quotePreference!=="auto"){return r.quotePreference==="single"?0:1}else{var n=t.imports&&e.find(t.imports,function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)});return n?quotePreferenceFromString(n,t):1}}e.getQuotePreference=getQuotePreference;function getQuoteFromPreference(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}}e.getQuoteFromPreference=getQuoteFromPreference;function symbolNameNoDefault(t){var r=symbolEscapedNameNoDefault(t);return r===undefined?undefined:e.unescapeLeadingUnderscores(r)}e.symbolNameNoDefault=symbolNameNoDefault;function symbolEscapedNameNoDefault(t){if(t.escapedName!=="default"){return t.escapedName}return e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&r.kind===79?r.escapedText:undefined})}e.symbolEscapedNameNoDefault=symbolEscapedNameNoDefault;function isModuleSpecifierLike(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,false)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)}e.isModuleSpecifierLike=isModuleSpecifierLike;function isObjectBindingElementWithoutPropertyName(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName}e.isObjectBindingElementWithoutPropertyName=isObjectBindingElementWithoutPropertyName;function getPropertySymbolFromBindingElement(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}e.getPropertySymbolFromBindingElement=getPropertySymbolFromBindingElement;function getParentNodeInSpan(t,r,n){if(!t)return undefined;while(t.parent){if(e.isSourceFile(t.parent)||!spanContainsNode(n,t.parent,r)){return t}t=t.parent}}e.getParentNodeInSpan=getParentNodeInSpan;function spanContainsNode(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function findModifier(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})}e.findModifier=findModifier;function insertImports(t,r,n,i){var a=e.isArray(n)?n[0]:n;var s=a.kind===235?e.isRequireVariableStatement:e.isAnyImportSyntax;var o=e.filter(r.statements,s);var c=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(!o.length){t.insertNodesAtTopOfFile(r,c,i)}else if(o&&e.OrganizeImports.importsAreSorted(o)){for(var u=0,l=c;u0&&e.declarations[0].kind===162}e.isFirstDeclarationOfSymbolParameter=isFirstDeclarationOfSymbolParameter;var a=getDisplayPartWriter();function getDisplayPartWriter(){var t=e.defaultMaximumTruncationLength*10;var r;var n;var i;var a;resetWriter();var s=function(t){return writeKind(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var n=r.length&&r[r.length-1].text;if(a>t&&n&&n!=="..."){if(!e.isWhiteSpaceLike(n.charCodeAt(n.length-1))){r.push(displayPart(" ",e.SymbolDisplayPartKind.space))}r.push(displayPart("...",e.SymbolDisplayPartKind.punctuation))}return r},writeKeyword:function(t){return writeKind(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return writeKind(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return writeKind(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return writeKind(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return writeKind(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return writeKind(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return writeKind(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return writeKind(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return writeKind(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:writeSymbol,writeLine:writeLine,write:s,writeComment:s,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return false},hasTrailingWhitespace:function(){return false},hasTrailingComment:function(){return false},rawWrite:e.notImplemented,getIndent:function(){return i},increaseIndent:function(){i++},decreaseIndent:function(){i--},clear:resetWriter,trackSymbol:function(){return false},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function writeIndent(){if(a>t)return;if(n){var s=e.getIndentString(i);if(s){a+=s.length;r.push(displayPart(s,e.SymbolDisplayPartKind.space))}n=false}}function writeKind(e,n){if(a>t)return;writeIndent();a+=e.length;r.push(displayPart(e,n))}function writeSymbol(e,n){if(a>t)return;writeIndent();a+=e.length;r.push(symbolPart(e,n))}function writeLine(){if(a>t)return;a+=1;r.push(lineBreakPart());n=true}function resetWriter(){r=[];n=true;i=0;a=0}}function symbolPart(t,r){return displayPart(t,displayPartKind(r));function displayPartKind(t){var r=t.flags;if(r&3){return isFirstDeclarationOfSymbolParameter(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName}else if(r&4){return e.SymbolDisplayPartKind.propertyName}else if(r&32768){return e.SymbolDisplayPartKind.propertyName}else if(r&65536){return e.SymbolDisplayPartKind.propertyName}else if(r&8){return e.SymbolDisplayPartKind.enumMemberName}else if(r&16){return e.SymbolDisplayPartKind.functionName}else if(r&32){return e.SymbolDisplayPartKind.className}else if(r&64){return e.SymbolDisplayPartKind.interfaceName}else if(r&384){return e.SymbolDisplayPartKind.enumName}else if(r&1536){return e.SymbolDisplayPartKind.moduleName}else if(r&8192){return e.SymbolDisplayPartKind.methodName}else if(r&262144){return e.SymbolDisplayPartKind.typeParameterName}else if(r&524288){return e.SymbolDisplayPartKind.aliasName}else if(r&2097152){return e.SymbolDisplayPartKind.aliasName}return e.SymbolDisplayPartKind.text}}e.symbolPart=symbolPart;function displayPart(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}e.displayPart=displayPart;function spacePart(){return displayPart(" ",e.SymbolDisplayPartKind.space)}e.spacePart=spacePart;function keywordPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}e.keywordPart=keywordPart;function punctuationPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=punctuationPart;function operatorPart(t){return displayPart(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}e.operatorPart=operatorPart;function parameterNamePart(t){return displayPart(t,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=parameterNamePart;function propertyNamePart(t){return displayPart(t,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=propertyNamePart;function textOrKeywordPart(t){var r=e.stringToToken(t);return r===undefined?textPart(t):keywordPart(r)}e.textOrKeywordPart=textOrKeywordPart;function textPart(t){return displayPart(t,e.SymbolDisplayPartKind.text)}e.textPart=textPart;function typeAliasNamePart(t){return displayPart(t,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=typeAliasNamePart;function typeParameterNamePart(t){return displayPart(t,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=typeParameterNamePart;function linkTextPart(t){return displayPart(t,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=linkTextPart;function linkNamePart(t,r){return{text:e.getTextOfNode(t),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:createTextSpanFromNode(r)}}}e.linkNamePart=linkNamePart;function linkPart(t){return displayPart(t,e.SymbolDisplayPartKind.link)}e.linkPart=linkPart;function buildLinkParts(t,r){var n;var i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain";var a=[linkPart("{@"+i+" ")];if(!t.name){if(t.text){a.push(linkTextPart(t.text))}}else{var s=r===null||r===void 0?void 0:r.getSymbolAtLocation(t.name);var o=(s===null||s===void 0?void 0:s.valueDeclaration)||((n=s===null||s===void 0?void 0:s.declarations)===null||n===void 0?void 0:n[0]);if(o){a.push(linkNamePart(t.name,o));if(t.text){a.push(linkTextPart(t.text))}}else{a.push(linkTextPart(e.getTextOfNode(t.name)+" "+t.text))}}a.push(linkPart("}"));return a}e.buildLinkParts=buildLinkParts;var s="\r\n";function getNewLineOrDefaultFromHost(e,t){var r;return(t===null||t===void 0?void 0:t.newLineCharacter)||((r=e.getNewLine)===null||r===void 0?void 0:r.call(e))||s}e.getNewLineOrDefaultFromHost=getNewLineOrDefaultFromHost;function lineBreakPart(){return displayPart("\n",e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=lineBreakPart;function mapToDisplayParts(e){try{e(a);return a.displayParts()}finally{a.clear()}}e.mapToDisplayParts=mapToDisplayParts;function typeToDisplayParts(e,t,r,n){if(n===void 0){n=0}return mapToDisplayParts(function(i){e.writeType(t,r,n|1024|16384,i)})}e.typeToDisplayParts=typeToDisplayParts;function symbolToDisplayParts(e,t,r,n,i){if(i===void 0){i=0}return mapToDisplayParts(function(a){e.writeSymbol(t,r,n,i|8,a)})}e.symbolToDisplayParts=symbolToDisplayParts;function signatureToDisplayParts(e,t,r,n){if(n===void 0){n=0}n|=16384|1024|32|8192;return mapToDisplayParts(function(i){e.writeSignature(t,r,n,undefined,i)})}e.signatureToDisplayParts=signatureToDisplayParts;function isImportOrExportSpecifierName(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t}e.isImportOrExportSpecifierName=isImportOrExportSpecifierName;function getScriptKind(t,r){return e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t))}e.getScriptKind=getScriptKind;function getSymbolTarget(t,r){var n=t;while(isAliasSymbol(n)||isTransientSymbol(n)&&n.target){if(isTransientSymbol(n)&&n.target){n=n.target}else{n=e.skipAlias(n,r)}}return n}e.getSymbolTarget=getSymbolTarget;function isTransientSymbol(e){return(e.flags&33554432)!==0}function isAliasSymbol(e){return(e.flags&2097152)!==0}function getUniqueSymbolId(t,r){return e.getSymbolId(e.skipAlias(t,r))}e.getUniqueSymbolId=getUniqueSymbolId;function getFirstNonSpaceCharacterPosition(t,r){while(e.isWhiteSpaceLike(t.charCodeAt(r))){r+=1}return r}e.getFirstNonSpaceCharacterPosition=getFirstNonSpaceCharacterPosition;function getPrecedingNonSpaceCharacterPosition(t,r){while(r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r))){r-=1}return r+1}e.getPrecedingNonSpaceCharacterPosition=getPrecedingNonSpaceCharacterPosition;function getSynthesizedDeepClone(e,t){if(t===void 0){t=true}var r=e&&getSynthesizedDeepCloneWorker(e);if(r&&!t)suppressLeadingAndTrailingTrivia(r);return r}e.getSynthesizedDeepClone=getSynthesizedDeepClone;function getSynthesizedDeepCloneWithReplacements(t,r,n){var i=n(t);if(i){e.setOriginalNode(i,t)}else{i=getSynthesizedDeepCloneWorker(t,n)}if(i&&!r)suppressLeadingAndTrailingTrivia(i);return i}e.getSynthesizedDeepCloneWithReplacements=getSynthesizedDeepCloneWithReplacements;function getSynthesizedDeepCloneWorker(t,r){var n=r?function(e){return getSynthesizedDeepCloneWithReplacements(e,true,r)}:getSynthesizedDeepClone;var i=r?function(e){return e&&getSynthesizedDeepClonesWithReplacements(e,true,r)}:function(e){return e&&getSynthesizedDeepClones(e)};var a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var s=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(s,t)}a.parent=undefined;return a}function getSynthesizedDeepClones(t,r){if(r===void 0){r=true}return t&&e.factory.createNodeArray(t.map(function(e){return getSynthesizedDeepClone(e,r)}),t.hasTrailingComma)}e.getSynthesizedDeepClones=getSynthesizedDeepClones;function getSynthesizedDeepClonesWithReplacements(t,r,n){return e.factory.createNodeArray(t.map(function(e){return getSynthesizedDeepCloneWithReplacements(e,r,n)}),t.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=getSynthesizedDeepClonesWithReplacements;function suppressLeadingAndTrailingTrivia(e){suppressLeadingTrivia(e);suppressTrailingTrivia(e)}e.suppressLeadingAndTrailingTrivia=suppressLeadingAndTrailingTrivia;function suppressLeadingTrivia(e){addEmitFlagsRecursively(e,512,getFirstChild)}e.suppressLeadingTrivia=suppressLeadingTrivia;function suppressTrailingTrivia(t){addEmitFlagsRecursively(t,1024,e.getLastChild)}e.suppressTrailingTrivia=suppressTrailingTrivia;function copyComments(e,t){var r=e.getSourceFile();var n=r.text;if(hasLeadingLineBreak(e,n)){copyLeadingComments(e,t,r)}else{copyTrailingAsLeadingComments(e,t,r)}copyTrailingComments(e,t,r)}e.copyComments=copyComments;function hasLeadingLineBreak(e,t){var r=e.getFullStart();var n=e.getStart();for(var i=r;i=0);return s}e.getRenameLocation=getRenameLocation;function copyLeadingComments(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,getAddCommentsFunction(r,n,i,a,e.addSyntheticLeadingComment))}e.copyLeadingComments=copyLeadingComments;function copyTrailingComments(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,getAddCommentsFunction(r,n,i,a,e.addSyntheticTrailingComment))}e.copyTrailingComments=copyTrailingComments;function copyTrailingAsLeadingComments(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,getAddCommentsFunction(r,n,i,a,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=copyTrailingAsLeadingComments;function getAddCommentsFunction(e,t,r,n,i){return function(a,s,o,c){if(o===3){a+=2;s-=2}else{a+=2}i(e,r||o,t.text.slice(a,s),n!==undefined?n:c)}}function indexInTextChange(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);if(n===-1)n=t.indexOf("."+r);if(n===-1)n=t.indexOf('"'+r);return n===-1?-1:n+1}function needsParentheses(t){return e.isBinaryExpression(t)&&t.operatorToken.kind===27||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)}e.needsParentheses=needsParentheses;function getContextualTypeFromParent(e,t){var r=e.parent;switch(r.kind){case 207:return t.getContextualType(r);case 219:{var n=r,i=n.left,a=n.operatorToken,s=n.right;return isEqualityOperatorKind(a.kind)?t.getTypeAtLocation(e===s?i:s):t.getContextualType(e)}case 287:return r.expression===e?getSwitchedType(r,t):undefined;default:return t.getContextualType(e)}}e.getContextualTypeFromParent=getContextualTypeFromParent;function quote(t,r,n){var i=getQuotePreference(t,r);var a=JSON.stringify(n);return i===0?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a}e.quote=quote;function isEqualityOperatorKind(e){switch(e){case 36:case 34:case 37:case 35:return true;default:return false}}e.isEqualityOperatorKind=isEqualityOperatorKind;function isStringLiteralOrTemplate(e){switch(e.kind){case 10:case 14:case 221:case 208:return true;default:return false}}e.isStringLiteralOrTemplate=isStringLiteralOrTemplate;function hasIndexSignature(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}e.hasIndexSignature=hasIndexSignature;function getSwitchedType(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}e.getSwitchedType=getSwitchedType;e.ANONYMOUS="anonymous function";function getTypeNodeIfAccessible(e,t,r,n){var i=r.getTypeChecker();var a=true;var s=function(){a=false};var o=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){a=a&&i.isSymbolAccessible(e,t,r,false).accessibility===0;return!a},reportInaccessibleThisError:s,reportPrivateInBaseOfClassExpression:s,reportInaccessibleUniqueSymbolError:s,moduleResolverHost:getModuleSpecifierResolverHost(r,n)});return a?o:undefined}e.getTypeNodeIfAccessible=getTypeNodeIfAccessible;function syntaxRequiresTrailingCommaOrSemicolonOrASI(e){return e===172||e===173||e===174||e===164||e===166}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=syntaxRequiresTrailingCommaOrSemicolonOrASI;function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(e){return e===254||e===169||e===167||e===170||e===171}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI;function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(e){return e===259}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=syntaxRequiresTrailingModuleBlockOrSemicolonOrASI;function syntaxRequiresTrailingSemicolonOrASI(e){return e===235||e===236||e===238||e===243||e===244||e===245||e===249||e===251||e===165||e===257||e===264||e===263||e===270||e===262||e===269}e.syntaxRequiresTrailingSemicolonOrASI=syntaxRequiresTrailingSemicolonOrASI;e.syntaxMayBeASICandidate=e.or(syntaxRequiresTrailingCommaOrSemicolonOrASI,syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI,syntaxRequiresTrailingModuleBlockOrSemicolonOrASI,syntaxRequiresTrailingSemicolonOrASI);function nodeIsASICandidate(t,r){var n=t.getLastToken(r);if(n&&n.kind===26){return false}if(syntaxRequiresTrailingCommaOrSemicolonOrASI(t.kind)){if(n&&n.kind===27){return false}}else if(syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(t.kind)){var i=e.last(t.getChildren(r));if(i&&e.isModuleBlock(i)){return false}}else if(syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(t.kind)){var i=e.last(t.getChildren(r));if(i&&e.isFunctionBlock(i)){return false}}else if(!syntaxRequiresTrailingSemicolonOrASI(t.kind)){return false}if(t.kind===238){return true}var a=e.findAncestor(t,function(e){return!e.parent});var s=findNextToken(t,a,r);if(!s||s.kind===19){return true}var o=r.getLineAndCharacterOfPosition(t.getEnd()).line;var c=r.getLineAndCharacterOfPosition(s.getStart(r)).line;return o!==c}function positionIsASICandidate(t,r,n){var i=e.findAncestor(r,function(r){if(r.end!==t){return"quit"}return e.syntaxMayBeASICandidate(r.kind)});return!!i&&nodeIsASICandidate(i,n)}e.positionIsASICandidate=positionIsASICandidate;function probablyUsesSemicolons(t){var r=0;var n=0;var i=5;e.forEachChild(t,function visit(a){if(syntaxRequiresTrailingSemicolonOrASI(a.kind)){var s=a.getLastToken(t);if(s&&s.kind===26){r++}else{n++}}if(r+n>=i){return true}return e.forEachChild(a,visit)});if(r===0&&n<=1){return true}return r/n>1/i}e.probablyUsesSemicolons=probablyUsesSemicolons;function tryGetDirectories(e,t){return tryIOAndConsumeErrors(e,e.getDirectories,t)||[]}e.tryGetDirectories=tryGetDirectories;function tryReadDirectory(t,r,n,i,a){return tryIOAndConsumeErrors(t,t.readDirectory,r,n,i,a)||e.emptyArray}e.tryReadDirectory=tryReadDirectory;function tryFileExists(e,t){return tryIOAndConsumeErrors(e,e.fileExists,t)}e.tryFileExists=tryFileExists;function tryDirectoryExists(t,r){return tryAndIgnoreErrors(function(){return e.directoryProbablyExists(r,t)})||false}e.tryDirectoryExists=tryDirectoryExists;function tryAndIgnoreErrors(e){try{return e()}catch(e){return undefined}}e.tryAndIgnoreErrors=tryAndIgnoreErrors;function tryIOAndConsumeErrors(e,t){var r=[];for(var n=2;n=0){var a=r[i];e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile");return e.cast(a,isDiagnosticWithLocation)}}e.findDiagnosticForNode=findDiagnosticForNode;function getDiagnosticsWithinSpan(t,r){var n;var i=e.binarySearchKey(r,t.start,function(e){return e.start},e.compareValues);if(i<0){i=~i}while(((n=r[i-1])===null||n===void 0?void 0:n.start)===t.start){i--}var a=[];var s=e.textSpanEnd(t);while(true){var o=e.tryCast(r[i],isDiagnosticWithLocation);if(!o||o.start>s){break}if(e.textSpanContainsTextSpan(t,o)){a.push(o)}i++}return a}e.getDiagnosticsWithinSpan=getDiagnosticsWithinSpan;function getRefactorContextSpan(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,n===undefined?r:n)}e.getRefactorContextSpan=getRefactorContextSpan;function mapOneOrMany(t,r,n){if(n===void 0){n=e.identity}return t?e.isArray(t)?n(e.map(t,r)):r(t,0):undefined}e.mapOneOrMany=mapOneOrMany;function firstOrOnly(t){return e.isArray(t)?e.first(t):t}e.firstOrOnly=firstOrOnly;function getNameForExportedSymbol(t,r){if(!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")){return e.firstDefined(t.declarations,function(t){var r;return e.isExportAssignment(t)?(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))===null||r===void 0?void 0:r.text:undefined})||e.codefix.moduleSymbolToValidIdentifier(getSymbolParentOrFail(t),r)}return t.name}e.getNameForExportedSymbol=getNameForExportedSymbol;function getSymbolParentOrFail(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". "+("Declarations: "+((r=t.declarations)===null||r===void 0?void 0:r.map(function(t){var r=e.Debug.formatSyntaxKind(t.kind);var n=e.isInJSFile(t);var i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")}).join(", "))+"."))}function stringContainsAt(e,t,r){var n=t.length;if(n+r>e.length){return false}for(var i=0;i=n.length){var h=getNewEndOfLineState(r,s,e.lastOrUndefined(c));if(h!==undefined){f=h}}}while(s!==1);function handleToken(){switch(s){case 43:case 68:if(!t[o]&&r.reScanSlashToken()===13){s=13}break;case 29:if(o===79){g++}break;case 31:if(g>0){g--}break;case 129:case 148:case 145:case 132:case 149:if(g>0&&!a){s=79}break;case 15:c.push(s);break;case 18:if(c.length>0){c.push(s)}break;case 19:if(c.length>0){var n=e.lastOrUndefined(c);if(n===15){s=r.reScanTemplateToken(false);if(s===17){c.pop()}else{e.Debug.assertEqual(s,16,"Should have been a template middle.")}}else{e.Debug.assertEqual(n,18,"Should have been an open brace");c.pop()}}break;default:if(!e.isKeyword(s)){break}if(o===24){s=79}else if(e.isKeyword(o)&&e.isKeyword(s)&&!canFollow(o,s)){s=79}}}return{endOfLineState:f,spans:m}}return{getClassificationsForLine:getClassificationsForLine,getEncodedLexicalClassifications:getEncodedLexicalClassifications}}e.createClassifier=createClassifier;var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(e){return e},function(){return true});function getNewEndOfLineState(t,r,n){switch(r){case 10:{if(!t.isUnterminated())return undefined;var i=t.getTokenText();var a=i.length-1;var s=0;while(i.charCodeAt(a-s)===92){s++}if((s&1)===0)return undefined;return i.charCodeAt(0)===34?3:2}case 3:return t.isUnterminated()?1:undefined;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated()){return undefined}switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return n===15?6:undefined}}function pushEncodedClassification(e,t,r,n,i){if(n===8){return}if(e===0&&r>0){e+=r}var a=t-e;if(a>0){i.push(e-r,a,n)}}function convertClassificationsToResult(t,r){var n=[];var i=t.spans;var a=0;for(var s=0;s=0){var l=o-a;if(l>0){n.push({length:l,classification:e.TokenClass.Whitespace})}}n.push({length:c,classification:convertClassification(u)});a=o+c}var p=r.length-a;if(p>0){n.push({length:p,classification:e.TokenClass.Whitespace})}return{entries:n,finalLexState:t.endOfLineState}}function convertClassification(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return undefined}}function canFollow(t,r){if(!e.isAccessibilityModifier(t)){return true}switch(r){case 135:case 147:case 133:case 124:return true;default:return false}}function getPrefixFromLexState(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:true};case 6:return{prefix:"",pushTemplate:true};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}function isBinaryExpressionOperatorToken(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return true;default:return false}}function isPrefixUnaryExpressionOperatorToken(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return true;default:return false}}function classFromKind(t){if(e.isKeyword(t)){return 3}else if(isBinaryExpressionOperatorToken(t)||isPrefixUnaryExpressionOperatorToken(t)){return 5}else if(t>=18&&t<=78){return 10}switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:if(e.isTemplateLiteralKind(t)){return 6}return 2}}function getSemanticClassifications(e,t,r,n,i){return convertClassificationsToSpans(getEncodedSemanticClassifications(e,t,r,n,i))}e.getSemanticClassifications=getSemanticClassifications;function checkForClassificationCancellation(e,t){switch(t){case 259:case 255:case 256:case 254:case 224:case 211:case 212:e.throwIfCancellationRequested()}}function getEncodedSemanticClassifications(t,r,n,i,a){var s=[];n.forEachChild(function cb(s){if(!s||!e.textSpanIntersectsWith(a,s.pos,s.getFullWidth())){return}checkForClassificationCancellation(r,s.kind);if(e.isIdentifier(s)&&!e.nodeIsMissing(s)&&i.has(s.escapedText)){var o=t.getSymbolAtLocation(s);var c=o&&classifySymbol(o,e.getMeaningFromLocation(s),t);if(c){pushClassification(s.getStart(n),s.getEnd(),c)}}s.forEachChild(cb)});return{spans:s,endOfLineState:0};function pushClassification(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i);s.push(t);s.push(i);s.push(n)}}e.getEncodedSemanticClassifications=getEncodedSemanticClassifications;function classifySymbol(e,t,r){var n=e.getFlags();if((n&2885600)===0){return undefined}else if(n&32){return 11}else if(n&384){return 12}else if(n&524288){return 16}else if(n&1536){return t&4||t&1&&hasValueSideModule(e)?14:undefined}else if(n&2097152){return classifySymbol(r.getAliasedSymbol(e),t,r)}else if(t&2){return n&64?13:n&262144?15:undefined}else{return undefined}}function hasValueSideModule(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&e.getModuleInstanceState(t)===1})}function getClassificationTypeName(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return undefined}}function convertClassificationsToSpans(t){e.Debug.assert(t.spans.length%3===0);var r=t.spans;var n=[];for(var i=0;i])*)(\/>)?)?/im;var a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim;var s=r.text.substr(t,n);var o=i.exec(s);if(!o){return false}if(!o[3]||!(o[3]in e.commentPragmas)){return false}var c=t;pushCommentRange(c,o[1].length);c+=o[1].length;pushClassification(c,o[2].length,10);c+=o[2].length;pushClassification(c,o[3].length,21);c+=o[3].length;var u=o[4];var l=c;while(true){var p=a.exec(u);if(!p){break}var d=c+p.index+p[1].length;if(d>l){pushCommentRange(l,d-l);l=d}pushClassification(l,p[2].length,22);l+=p[2].length;if(p[3].length){pushCommentRange(l,p[3].length);l+=p[3].length}pushClassification(l,p[4].length,5);l+=p[4].length;if(p[5].length){pushCommentRange(l,p[5].length);l+=p[5].length}pushClassification(l,p[6].length,24);l+=p[6].length}c+=o[4].length;if(c>l){pushCommentRange(l,c-l)}if(o[5]){pushClassification(c,o[5].length,10);c+=o[5].length}var f=t+n;if(c=0);if(i>0){var a=r||classifyTokenType(t.kind,t);if(a){pushClassification(n,i,a)}}return true}function tryClassifyJsxElementName(e){switch(e.parent&&e.parent.kind){case 278:if(e.parent.tagName===e){return 19}break;case 279:if(e.parent.tagName===e){return 20}break;case 277:if(e.parent.tagName===e){return 21}break;case 283:if(e.parent.name===e){return 22}break}return undefined}function classifyTokenType(t,r){if(e.isKeyword(t)){return 3}if(t===29||t===31){if(r&&e.getTypeArgumentOrTypeParameterList(r.parent)){return 10}}if(e.isPunctuation(t)){if(r){var n=r.parent;if(t===63){if(n.kind===252||n.kind===165||n.kind===162||n.kind===283){return 5}}if(n.kind===219||n.kind===217||n.kind===218||n.kind===220){return 5}}return 10}else if(t===8){return 4}else if(t===9){return 25}else if(t===10){return r&&r.parent.kind===283?24:6}else if(t===13){return 6}else if(e.isTemplateLiteralKind(t)){return 6}else if(t===11){return 23}else if(t===79){if(r){switch(r.parent.kind){case 255:if(r.parent.name===r){return 11}return;case 161:if(r.parent.name===r){return 15}return;case 256:if(r.parent.name===r){return 13}return;case 258:if(r.parent.name===r){return 12}return;case 259:if(r.parent.name===r){return 14}return;case 162:if(r.parent.name===r){return e.isThisIdentifier(r)?3:17}return}}return 2}}function processElement(n){if(!n){return}if(e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){checkForClassificationCancellation(t,n.kind);for(var s=0,o=n.getChildren(r);s0})){return 0}if(i(function(e){return e.getCallSignatures().length>0})&&!i(function(e){return e.getProperties().length>0})||isExpressionInCallExpression(t)){return r===9?11:10}}}return r}function isLocalDeclaration(t,r){if(e.isBindingElement(t)){t=getDeclarationForBindingElement(t)}if(e.isVariableDeclaration(t)){return(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r}else if(e.isFunctionDeclaration(t)){return!e.isSourceFile(t.parent)&&t.getSourceFile()===r}return false}function getDeclarationForBindingElement(t){while(true){if(e.isBindingElement(t.parent.parent)){t=t.parent.parent}else{return t.parent.parent}}}function inImportClause(t){var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))}function isExpressionInCallExpression(t){while(isRightSideOfQualifiedNameOrPropertyAccess(t)){t=t.parent}return e.isCallExpression(t.parent)&&t.parent.expression===t}function isRightSideOfQualifiedNameOrPropertyAccess(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var a=new e.Map([[252,7],[162,6],[165,9],[259,3],[258,1],[294,8],[255,0],[167,11],[254,10],[211,10],[166,11],[170,9],[171,9],[164,9],[256,2],[257,5],[161,4],[291,9],[292,9]])})(r=t.v2020||(t.v2020={}))})(t=e.classifier||(e.classifier={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r;(function(r){function getStringLiteralCompletions(t,r,n,i,a,s,o,c){if(e.isInReferenceComment(t,r)){var u=getTripleSlashReferenceCompletion(t,r,a,s);return u&&convertPathCompletions(u)}if(e.isInString(t,r,n)){if(!n||!e.isStringLiteralLike(n))return undefined;var u=getStringLiteralCompletionEntries(t,n,r,i,a,s,c);return convertStringLiteralCompletions(u,n,t,i,o,a,c)}}r.getStringLiteralCompletions=getStringLiteralCompletions;function convertStringLiteralCompletions(r,n,i,a,s,o,c){if(r===undefined){return undefined}var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return convertPathCompletions(r.paths);case 1:{var l=[];t.getCompletionEntriesFromSymbols(r.symbols,l,n,i,i,a,99,s,4,c,o);return{isGlobalCompletion:false,isMemberCompletion:true,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:l}}case 2:{var l=r.types.map(function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}});return{isGlobalCompletion:false,isMemberCompletion:false,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:l}}default:return e.Debug.assertNever(r)}}function getStringLiteralCompletionDetails(t,r,n,i,a,s,o,c,u){if(!i||!e.isStringLiteralLike(i))return undefined;var l=getStringLiteralCompletionEntries(r,i,n,a,s,o,u);return l&&stringLiteralCompletionDetails(t,i,l,r,a,c)}r.getStringLiteralCompletionDetails=getStringLiteralCompletionDetails;function stringLiteralCompletionDetails(r,n,i,a,s,o){switch(i.kind){case 0:{var c=e.find(i.paths,function(e){return e.name===r});return c&&t.createCompletionDetails(r,kindModifiersFromExtension(c.extension),c.kind,[e.textPart(r)])}case 1:{var c=e.find(i.symbols,function(e){return e.name===r});return c&&t.createCompletionDetailsForSymbol(c,s,a,n,o)}case 2:return e.find(i.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):undefined;default:return e.Debug.assertNever(i)}}function convertPathCompletions(e){var r=false;var n=true;var i=e.map(function(e){var r=e.name,n=e.kind,i=e.span,a=e.extension;return{name:r,kind:n,kindModifiers:kindModifiersFromExtension(a),sortText:t.SortText.LocationPriority,replacementSpan:i}});return{isGlobalCompletion:r,isMemberCompletion:false,isNewIdentifierLocation:n,entries:i}}function kindModifiersFromExtension(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return e.Debug.fail("Extension "+".tsbuildinfo"+" is unsupported.");case undefined:return"";default:return e.Debug.assertNever(t)}}var i;(function(e){e[e["Paths"]=0]="Paths";e[e["Properties"]=1]="Properties";e[e["Types"]=2]="Types"})(i||(i={}));function getStringLiteralCompletionEntries(t,r,n,i,a,s,o){var c=walkUpParentheses(r.parent);switch(c.kind){case 194:{var u=walkUpParentheses(c.parent);switch(u.kind){case 176:{var l=u;var p=e.findAncestor(c,function(e){return e.parent===l});if(p){return{kind:2,types:getStringLiteralTypes(i.getTypeArgumentConstraint(p)),isNewIdentifier:false}}return undefined}case 192:var d=u,f=d.indexType,m=d.objectType;if(!e.rangeContainsPosition(f,n)){return undefined}return stringLiteralCompletionsFromProperties(i.getTypeFromTypeNode(m));case 198:return{kind:0,paths:getStringLiteralCompletionsFromModuleNames(t,r,a,s,i,o)};case 185:{if(!e.isTypeReferenceNode(u.parent)){return undefined}var g=getAlreadyUsedTypesInStringLiteralUnion(u,c);var _=getStringLiteralTypes(i.getTypeArgumentConstraint(u)).filter(function(t){return!e.contains(g,t.value)});return{kind:2,types:_,isNewIdentifier:false}}default:return undefined}}case 291:if(e.isObjectLiteralExpression(c.parent)&&c.name===r){return stringLiteralCompletionsForObjectLiteral(i,c.parent)}return fromContextualType();case 205:{var h=c,y=h.expression,v=h.argumentExpression;if(r===e.skipParentheses(v)){return stringLiteralCompletionsFromProperties(i.getTypeAtLocation(y))}return undefined}case 206:case 207:if(!isRequireCallArgument(r)&&!e.isImportCall(c)){var T=e.SignatureHelp.getArgumentInfoForCompletions(r,n,t);return T?getStringLiteralCompletionsFromSignature(T,i):fromContextualType()}case 264:case 270:case 275:return{kind:0,paths:getStringLiteralCompletionsFromModuleNames(t,r,a,s,i,o)};default:return fromContextualType()}function fromContextualType(){return{kind:2,types:getStringLiteralTypes(e.getContextualTypeFromParent(r,i)),isNewIdentifier:false}}}function walkUpParentheses(t){switch(t.kind){case 189:return e.walkUpParenthesizedTypes(t);case 210:return e.walkUpParenthesizedExpressions(t);default:return t}}function getAlreadyUsedTypesInStringLiteralUnion(t,r){return e.mapDefined(t.types,function(t){return t!==r&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:undefined})}function getStringLiteralCompletionsFromSignature(t,r){var n=false;var i=new e.Map;var a=[];r.getResolvedSignature(t.invocation,a,t.argumentCount);var s=e.flatMap(a,function(a){if(!e.signatureHasRestParameter(a)&&t.argumentCount>a.parameters.length)return;var s=r.getParameterType(a,t.argumentIndex);n=n||!!(s.flags&4);return getStringLiteralTypes(s,i)});return{kind:2,types:s,isNewIdentifier:n}}function stringLiteralCompletionsFromProperties(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(t)}}function stringLiteralCompletionsForObjectLiteral(r,n){var i=r.getContextualType(n);if(!i)return undefined;var a=r.getContextualType(n,4);var s=t.getPropertiesForObjectExpression(i,a,n,r);return{kind:1,symbols:s,hasIndexSignature:e.hasIndexSignature(i)}}function getStringLiteralTypes(t,r){if(r===void 0){r=new e.Map}if(!t)return e.emptyArray;t=e.skipConstraint(t);return t.isUnion()?e.flatMap(t.types,function(e){return getStringLiteralTypes(e,r)}):t.isStringLiteral()&&!(t.flags&1024)&&e.addToSeen(r,t.value)?[t]:e.emptyArray}function nameAndKind(e,t,r){return{name:e,kind:t,extension:r}}function directoryResult(e){return nameAndKind(e,"directory",undefined)}function addReplacementSpans(t,r,n){var i=getDirectoryFragmentTextSpan(t,r);var a=t.length===0?undefined:e.createTextSpan(r,t.length);return n.map(function(t){var r=t.name,n=t.kind,s=t.extension;return Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))!==-1?{name:r,kind:n,extension:s,span:a}:{name:r,kind:n,extension:s,span:i}})}function getStringLiteralCompletionsFromModuleNames(e,t,r,n,i,a){return addReplacementSpans(t.text,t.getStart(e)+1,getStringLiteralCompletionsFromModuleNamesWorker(e,t,r,n,i,a))}function getStringLiteralCompletionsFromModuleNamesWorker(t,r,n,i,a,s){var o=e.normalizeSlashes(r.text);var c=t.path;var u=e.getDirectoryPath(c);return isPathRelativeToScript(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?getCompletionEntriesForRelativeModules(o,u,n,i,c,s):getCompletionEntriesForNonRelativeModules(o,u,n,i,a)}function getExtensionOptions(e,t){if(t===void 0){t=0}return{extensions:getSupportedExtensionsForModuleResolution(e),includeExtensionsOption:t}}function getCompletionEntriesForRelativeModules(e,t,r,n,i,a){var s=a.importModuleSpecifierEnding==="js"?2:0;var o=getExtensionOptions(r,s);if(r.rootDirs){return getCompletionEntriesForDirectoryFragmentWithRootDirs(r.rootDirs,e,t,o,r,n,i)}else{return getCompletionEntriesForDirectoryFragment(e,t,o,n,i)}}function getSupportedExtensionsForModuleResolution(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function getBaseDirectoriesFromRootDirs(t,r,i,a){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var s=e.firstDefined(t,function(t){return e.containsPath(t,i,r,a)?i.substr(t.length):undefined});return e.deduplicate(n(n([],t.map(function(t){return e.combinePaths(t,s)}),true),[i],false),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function getCompletionEntriesForDirectoryFragmentWithRootDirs(t,r,n,i,a,s,o){var c=a.project||s.getCurrentDirectory();var u=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames());var l=getBaseDirectoriesFromRootDirs(t,c,n,u);return e.flatMap(l,function(e){return getCompletionEntriesForDirectoryFragment(r,e,i,s,o)})}var a;(function(e){e[e["Exclude"]=0]="Exclude";e[e["Include"]=1]="Include";e[e["ModuleSpecifierCompletion"]=2]="ModuleSpecifierCompletion"})(a||(a={}));function getCompletionEntriesForDirectoryFragment(t,r,n,i,a,s){var o=n.extensions,c=n.includeExtensionsOption;if(s===void 0){s=[]}if(t===undefined){t=""}t=e.normalizeSlashes(t);if(!e.hasTrailingDirectorySeparator(t)){t=e.getDirectoryPath(t)}if(t===""){t="."+e.directorySeparator}t=e.ensureTrailingDirectorySeparator(t);var u=e.resolvePath(r,t);var l=e.hasTrailingDirectorySeparator(u)?u:e.getDirectoryPath(u);var p=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,l))return s;var d=e.tryReadDirectory(i,l,o,undefined,["./*"]);if(d){var f=new e.Map;for(var m=0,g=d;m=e.pos&&r<=e.end});if(!c){return undefined}var u=t.text.slice(c.pos,r);var l=s.exec(u);if(!l){return undefined}var p=l[1],d=l[2],f=l[3];var m=e.getDirectoryPath(t.path);var g=d==="path"?getCompletionEntriesForDirectoryFragment(f,m,getExtensionOptions(n,1),i,t.path):d==="types"?getCompletionEntriesFromTypings(i,n,m,getFragmentDirectory(f),getExtensionOptions(n)):e.Debug.fail();return addReplacementSpans(f,c.pos+p.length,g)}function getCompletionEntriesFromTypings(t,r,n,i,a,s){if(s===void 0){s=[]}var o=new e.Map;var c=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(r,t)})||e.emptyArray;for(var u=0,l=c;u=2&&e.charCodeAt(0)===46){var t=e.length>=3&&e.charCodeAt(1)===46?2:1;var r=e.charCodeAt(t);return r===47||r===92}return false}var s=/^(\/\/\/\s*");var u=e.createTextSpanFromNode(i.tagName);var l={name:c,kind:"class",kindModifiers:undefined,sortText:r.LocationPriority};return{isGlobalCompletion:false,isMemberCompletion:true,isNewIdentifierLocation:false,optionalReplacementSpan:u,entries:[l]}}return}function getJSCompletionEntries(t,n,i,a,s){e.getNameTable(t).forEach(function(t,o){if(t===n){return}var c=e.unescapeLeadingUnderscores(o);if(!i.has(c)&&e.isIdentifierText(c,a)){i.add(c);s.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:true})}})}function completionNameForLiteral(t,r,n){return typeof n==="object"?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function createCompletionEntryForLiteral(e,t,n){return{name:completionNameForLiteral(e,t,n),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function createCompletionEntry(t,r,n,i,a,s,o,c,u,l,p,d,f,m,g,_){var h;var y;var v=e.getReplacementSpanForContextToken(n);var T;var S;var b;var E;var x=u&&originIsNullableMember(u);var D=u&&originIsSymbolMember(u)||c;if(u&&originIsThisType(u)){y=c?"this"+(x?"?.":"")+"["+quotePropertyName(a,_,o)+"]":"this"+(x?"?.":".")+o}else if((D||x)&&p){y=D?c?"["+quotePropertyName(a,_,o)+"]":"["+o+"]":o;if(x||p.questionDotToken){y="?."+y}var C=e.findChildOfKind(p,24,a)||e.findChildOfKind(p,28,a);if(!C){return undefined}var A=e.startsWith(o,p.name.text)?p.name.end:C.end;v=e.createTextSpanFromBounds(C.getStart(a),A)}if(d){if(y===undefined)y=o;y="{"+y+"}";if(typeof d!=="boolean"){v=e.createTextSpanFromNode(d,a)}}if(u&&originIsPromise(u)&&p){if(y===undefined)y=o;var k=e.findPrecedingToken(p.pos,a);var P="";if(k&&e.positionIsASICandidate(k.end,k.parent,a)){P=";"}P+="(await "+p.expression.getText()+")";y=c?""+P+y:""+P+(x?"?.":".")+y;v=e.createTextSpanFromBounds(p.getStart(a),p.end)}if(originIsResolvedExport(u)){b=[e.textPart(u.moduleSpecifier)];if(f){h=getInsertTextAndReplacementSpanForImportCompletion(o,f,u,m,g,_),y=h.insertText,v=h.replacementSpan;S=_.includeCompletionsWithSnippetText?true:undefined}}if(y!==undefined&&!_.includeCompletionsWithInsertText){return undefined}if(originIsExport(u)||originIsResolvedExport(u)){T=originToCompletionEntryData(u);E=!f}return{name:o,kind:e.SymbolDisplay.getSymbolKind(s,t,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(s,t),sortText:r,source:getSourceFromOrigin(u),hasAction:E?true:undefined,isRecommended:isRecommendedCompletionMatch(t,l,s)||undefined,insertText:y,replacementSpan:v,sourceDisplay:b,isSnippet:S,isPackageJsonImport:originIsPackageJsonImport(u)||undefined,isImportStatementCompletion:!!f||undefined,data:T}}function originToCompletionEntryData(t){return{exportName:t.exportName,fileName:t.fileName,ambientModuleName:t.fileName?undefined:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?true:undefined,moduleSpecifier:originIsResolvedExport(t)?t.moduleSpecifier:undefined}}function getInsertTextAndReplacementSpanForImportCompletion(t,r,n,i,a,s){var o=r.getSourceFile();var c=e.createTextSpanFromNode(r,o);var u=e.quote(o,s,n.moduleSpecifier);var l=n.isDefaultExport?1:n.exportName==="export="?2:0;var p=s.includeCompletionsWithSnippetText?"$1":"";var d=e.codefix.getImportKind(o,l,a,true);var f=i?";":"";switch(d){case 3:return{replacementSpan:c,insertText:"import "+t+p+" = require("+u+")"+f};case 1:return{replacementSpan:c,insertText:"import "+t+p+" from "+u+f};case 2:return{replacementSpan:c,insertText:"import * as "+t+" from "+u+f};case 0:return{replacementSpan:c,insertText:"import { "+t+p+" } from "+u+f}}}function quotePropertyName(t,r,n){if(/^\d+$/.test(n)){return n}return e.quote(t,r,n)}function isRecommendedCompletionMatch(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function getSourceFromOrigin(t){if(originIsExport(t)){return e.stripQuotes(t.moduleSymbol.name)}if(originIsResolvedExport(t)){return t.moduleSpecifier}if((t===null||t===void 0?void 0:t.kind)===1){return a.ThisProperty}}function getCompletionEntriesFromSymbols(t,r,n,i,a,s,o,c,u,l,p,d,f,m,g,_,h,y,v){var T;var S=e.timestamp();var b=getVariableDeclaration(i);var E=e.probablyUsesSemicolons(a);var x=new e.Map;for(var D=0;D-1?createSimpleDetails(m,"keyword",e.SymbolDisplayPartKind.keyword):undefined;default:return e.Debug.assertNever(h)}}case"symbol":{var y=_.symbol,v=_.location,T=_.origin,S=_.previousToken;var b=getCompletionEntryCodeActionsAndSourceDisplay(T,y,r,o,f,i,a,S,c,u,s.data),E=b.codeActions,x=b.sourceDisplay;return createCompletionDetailsForSymbol(y,p,i,v,l,E,x)}case"literal":{var D=_.literal;return createSimpleDetails(completionNameForLiteral(i,u,D),"string",typeof D==="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return d().some(function(e){return e.name===m})?createSimpleDetails(m,"keyword",e.SymbolDisplayPartKind.keyword):undefined;default:e.Debug.assertNever(_)}}t.getCompletionEntryDetails=getCompletionEntryDetails;function createSimpleDetails(t,r,n){return createCompletionDetails(t,"",r,[e.displayPart(t,n)])}function createCompletionDetailsForSymbol(t,r,n,i,a,s,o){var c=r.runWithCancellationToken(a,function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)}),u=c.displayParts,l=c.documentation,p=c.symbolKind,d=c.tags;return createCompletionDetails(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),p,u,l,d,s,o)}t.createCompletionDetailsForSymbol=createCompletionDetailsForSymbol;function createCompletionDetails(e,t,r,n,i,a,s,o){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:s,source:o,sourceDisplay:o}}t.createCompletionDetails=createCompletionDetails;function getCompletionEntryCodeActionsAndSourceDisplay(t,r,n,i,a,s,o,c,u,l,p){if(p===null||p===void 0?void 0:p.moduleSpecifier){var d=getRelevantTokens(o,s),f=d.contextToken,m=d.previousToken;if(m&&getImportCompletionNode(f||m)){return{codeActions:undefined,sourceDisplay:[e.textPart(p.moduleSpecifier)]}}}if(!t||!(originIsExport(t)||originIsResolvedExport(t))){return{codeActions:undefined,sourceDisplay:undefined}}var g=t.isFromPackageJson?i.getPackageJsonAutoImportProvider().getTypeChecker():n.getTypeChecker();var _=t.moduleSymbol;var h=g.getMergedSymbol(e.skipAlias(r.exportSymbol||r,g));var y=e.codefix.getImportCompletionAction(h,_,s,e.getNameForExportedSymbol(r,a.target),i,n,u,c&&e.isIdentifier(c)?c.getStart(s):o,l),v=y.moduleSpecifier,T=y.codeAction;e.Debug.assert(!(p===null||p===void 0?void 0:p.moduleSpecifier)||v===p.moduleSpecifier);return{sourceDisplay:[e.textPart(v)],codeActions:[T]}}function getCompletionEntrySymbol(e,t,r,n,i,a,s){var o=getSymbolCompletionFromEntryId(e,t,r,n,i,a,s);return o.type==="symbol"?o.symbol:undefined}t.getCompletionEntrySymbol=getCompletionEntrySymbol;var u;(function(e){e[e["Data"]=0]="Data";e[e["JsDocTagName"]=1]="JsDocTagName";e[e["JsDocTag"]=2]="JsDocTag";e[e["JsDocParameterName"]=3]="JsDocParameterName";e[e["Keywords"]=4]="Keywords"})(u||(u={}));var l;(function(e){e[e["ObjectPropertyDeclaration"]=0]="ObjectPropertyDeclaration";e[e["Global"]=1]="Global";e[e["PropertyAccess"]=2]="PropertyAccess";e[e["MemberLike"]=3]="MemberLike";e[e["String"]=4]="String";e[e["None"]=5]="None"})(l=t.CompletionKind||(t.CompletionKind={}));function getRecommendedCompletion(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),function(r){var i=r&&r.symbol;return i&&(i.flags&(8|384|32)&&!e.isAbstractConstructorSymbol(i))?getFirstSymbolInChain(i,t,n):undefined})}function getContextualType(t,r,n,i){var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 252:return i.getContextualType(a.initializer);case 219:return i.getTypeAtLocation(a.left);case 283:return i.getContextualTypeForJsxAttribute(a);default:return undefined}case 103:return i.getContextualType(a);case 82:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&a.parent.kind!==276?i.getContextualTypeForJsxAttribute(a.parent):undefined;default:var s=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return s?i.getContextualTypeForArgumentAtIndex(s.invocation,s.argumentIndex+(t.kind===27?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}function getFirstSymbolInChain(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,false);if(i)return e.first(i);return t.parent&&(isModuleSymbol(t.parent)?t:getFirstSymbolInChain(t.parent,r,n))}function isModuleSymbol(e){var t;return!!((t=e.declarations)===null||t===void 0?void 0:t.some(function(e){return e.kind===300}))}function getCompletionData(t,r,n,i,a,s,o,c,u){var l=t.getTypeChecker();var p=e.timestamp();var d=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-p));p=e.timestamp();var f=e.isInComment(n,a,d);r("getCompletionData: Is inside comment: "+(e.timestamp()-p));var m=false;var g=false;if(f){if(e.hasDocComment(n,a)){if(n.text.charCodeAt(a-1)===64){return{kind:1}}else{var _=e.getLineStartPositionForPosition(a,n);if(!/[^\*|\s(/)]/.test(n.text.substring(_,a))){return{kind:2}}}}var h=getJsDocTagAtPosition(d,a);if(h){if(h.tagName.pos<=a&&a<=h.tagName.end){return{kind:1}}if(isTagWithTypeExpression(h)&&h.typeExpression&&h.typeExpression.kind===304){d=e.getTokenAtPosition(n,a);if(!d||!e.isDeclarationName(d)&&(d.parent.kind!==342||d.parent.name!==d)){m=isCurrentlyEditingNode(h.typeExpression)}}if(!m&&e.isJSDocParameterTag(h)&&(e.nodeIsMissing(h.name)||h.name.pos<=a&&a<=h.name.end)){return{kind:3,tag:h}}}if(!m){r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return undefined}}p=e.timestamp();var y=getRelevantTokens(a,n);var v=y.previousToken;var T=y.contextToken;r("getCompletionData: Get previous token: "+(e.timestamp()-p));var S=d;var b;var E=false;var x=false;var D=false;var C=false;var A=false;var k=false;var P;var N=e.getTouchingPropertyName(n,a);if(T){var O=getImportCompletionNode(T);if(O===154){return{kind:4,keywords:[154]}}if(O&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText){P=O}if(!P&&isCompletionListBlocker(T)){r("Returning an empty list because completion was requested in an invalid position.");return undefined}var F=T.parent;if(T.kind===24||T.kind===28){E=T.kind===24;x=T.kind===28;switch(F.kind){case 204:b=F;S=b.expression;var w=e.getLeftmostAccessExpression(b);if(e.nodeIsMissing(w)||(e.isCallExpression(S)||e.isFunctionLike(S))&&S.end===T.pos&&S.getChildCount(n)&&e.last(S.getChildren(n)).kind!==21){return undefined}break;case 159:S=F.left;break;case 259:S=F.name;break;case 198:S=F;break;case 229:S=F.getFirstToken(n);e.Debug.assert(S.kind===100||S.kind===103);break;default:return undefined}}else if(!P&&n.languageVariant===1){if(F&&F.kind===204){T=F;F=F.parent}if(d.parent===N){switch(d.kind){case 31:if(d.parent.kind===276||d.parent.kind===278){N=d}break;case 43:if(d.parent.kind===277){N=d}break}}switch(F.kind){case 279:if(T.kind===43){C=true;N=T}break;case 219:if(!binaryExpressionMayBeOpenTag(F)){break}case 277:case 276:case 278:k=true;if(T.kind===29){D=true;N=T}break;case 286:case 285:if(v.kind===19&&d.kind===31){k=true}break;case 283:if(F.initializer===v&&v.end0){J=e.concatenate(J,filterObjectMembersList(r,e.Debug.checkDefined(n)))}setSortTextToOptionalMember();return 1}function tryGetImportOrExportClauseCompletionSymbols(){var t=T&&(T.kind===18||T.kind===27)?e.tryCast(T.parent,e.isNamedImportsOrExports):undefined;if(!t)return 0;var r=(t.kind===267?t.parent.parent:t.parent).moduleSpecifier;if(!r)return t.kind===267?2:0;var n=l.getSymbolAtLocation(r);if(!n)return 2;L=3;M=false;var i=l.getExportsAndPropertiesOfModule(n);var a=new e.Set(t.elements.filter(function(e){return!isCurrentlyEditingNode(e)}).map(function(e){return(e.propertyName||e.name).escapedText}));J=e.concatenate(J,i.filter(function(e){return e.escapedName!=="default"&&!a.has(e.escapedName)}));return 1}function tryGetLocalNamedExportCompletionSymbols(){var t;var r=T&&(T.kind===18||T.kind===27)?e.tryCast(T.parent,e.isNamedExports):undefined;if(!r){return 0}var n=e.findAncestor(r,e.or(e.isSourceFile,e.isModuleDeclaration));L=5;M=false;(t=n.locals)===null||t===void 0?void 0:t.forEach(function(t,r){var i,a;J.push(t);if((a=(i=n.symbol)===null||i===void 0?void 0:i.exports)===null||a===void 0?void 0:a.has(r)){V[e.getSymbolId(t)]=12}});return 1}function tryGetClassLikeCompletionSymbols(){var t=tryGetObjectTypeDeclarationCompletionContainer(n,T,N,a);if(!t)return 0;L=3;M=true;j=T.kind===41?0:e.isClassLike(t)?2:3;if(!e.isClassLike(t))return 1;var r=T.kind===26?T.parent.parent:T.parent;var i=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(T.kind===79&&!isCurrentlyEditingNode(T)){switch(T.getText()){case"private":i=i|8;break;case"static":i=i|32;break;case"override":i=i|16384;break}}if(e.isClassStaticBlockDeclaration(r)){i|=32}if(!(i&8)){var s=e.isClassLike(t)&&i&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t);var o=e.flatMap(s,function(e){var r=l.getTypeAtLocation(e);return i&32?(r===null||r===void 0?void 0:r.symbol)&&l.getPropertiesOfType(l.getTypeOfSymbolAtLocation(r.symbol,t)):r&&l.getPropertiesOfType(r)});J=e.concatenate(J,filterClassMembersList(o,t.members,i))}return 1}function tryGetObjectLikeCompletionContainer(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r)){return r}break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):undefined;case 79:return t.text==="async"&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:undefined}}return undefined}function isConstructorParameterCompletion(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function tryGetConstructorLikeCompletionContainer(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:undefined;default:if(isConstructorParameterCompletion(t)){return r.parent}}}return undefined}function tryGetFunctionLikeBodyCompletionContainer(t){if(t){var r;var n=e.findAncestor(t.parent,function(t){if(e.isClassLike(t)){return"quit"}if(e.isFunctionLikeDeclaration(t)&&r===t.body){return true}r=t;return false});return n&&n}}function tryGetContainingJsxElement(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(r&&(r.kind===277||r.kind===278)){if(t.kind===31){var i=e.findPrecedingToken(t.pos,n,undefined);if(!r.typeArguments||i&&i.kind===43)break}return r}else if(r.kind===283){return r.parent.parent}break;case 10:if(r&&(r.kind===283||r.kind===285)){return r.parent.parent}break;case 19:if(r&&r.kind===286&&r.parent&&r.parent.kind===283){return r.parent.parent.parent}if(r&&r.kind===285){return r.parent.parent}break}}return undefined}function isSolelyIdentifierDefinitionLocation(t){var r=t.parent;var n=r.kind;switch(t.kind){case 27:return n===252||isVariableDeclarationListButNotTypeArgument(t)||n===235||n===258||isFunctionLikeButNotConstructor(n)||n===256||n===200||n===257||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return n===200;case 58:return n===201;case 22:return n===200;case 20:return n===290||isFunctionLikeButNotConstructor(n);case 18:return n===258;case 29:return n===255||n===224||n===256||n===257||e.isFunctionLikeKind(n);case 124:return n===165&&!e.isClassLike(r.parent);case 25:return n===162||!!r.parent&&r.parent.kind===200;case 123:case 121:case 122:return n===162&&!e.isConstructorDeclaration(r.parent);case 127:return n===268||n===273||n===266;case 135:case 147:return!isFromObjectTypeDeclaration(t);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return true;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(isClassMemberCompletionKeyword(keywordForNode(t))&&isFromObjectTypeDeclaration(t)){return false}if(isConstructorParameterCompletion(t)){if(!e.isIdentifier(t)||e.isParameterPropertyModifier(keywordForNode(t))||isCurrentlyEditingNode(t)){return false}}switch(keywordForNode(t)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return true;case 130:return e.isPropertyDeclaration(t.parent)}var i=e.findAncestor(t.parent,e.isClassLike);if(i&&t===v&&isPreviousPropertyDeclarationTerminated(t,a)){return false}var s=e.getAncestor(t.parent,165);if(s&&t!==v&&e.isClassLike(v.parent.parent)&&a<=v.end){if(isPreviousPropertyDeclarationTerminated(t,v.end)){return false}else if(t.kind!==63&&(e.isInitializedProperty(s)||e.hasType(s))){return true}}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==v||a>v.end))}function isPreviousPropertyDeclarationTerminated(t,r){return t.kind!==63&&(t.kind===26||!e.positionsAreOnSameLine(t.end,r,n))}function isFunctionLikeButNotConstructor(t){return e.isFunctionLikeKind(t)&&t!==169}function isDotOfNumericLiteral(e){if(e.kind===8){var t=e.getFullText();return t.charAt(t.length-1)==="."}return false}function isVariableDeclarationListButNotTypeArgument(t){return t.parent.kind===253&&!e.isPossiblyTypeArgumentPosition(t,n,l)}function filterObjectMembersList(t,r){if(r.length===0){return t}var n=new e.Set;var i=new e.Set;for(var a=0,s=r;a=0;i--){if(pushKeywordIf(r,n[i],115)){break}}}}e.forEach(aggregateAllBreakAndContinueStatements(t.statement),function(e){if(ownsBreakOrContinueStatement(t,e)){pushKeywordIf(r,e.getFirstToken(),81,86)}});return r}function getBreakOrContinueStatementOccurrences(e){var t=getBreakOrContinueOwner(e);if(t){switch(t.kind){case 240:case 241:case 242:case 238:case 239:return getLoopBreakContinueOccurrences(t);case 247:return getSwitchCaseDefaultOccurrences(t)}}return undefined}function getSwitchCaseDefaultOccurrences(t){var r=[];pushKeywordIf(r,t.getFirstToken(),107);e.forEach(t.caseBlock.clauses,function(n){pushKeywordIf(r,n.getFirstToken(),82,88);e.forEach(aggregateAllBreakAndContinueStatements(n),function(e){if(ownsBreakOrContinueStatement(t,e)){pushKeywordIf(r,e.getFirstToken(),81)}})});return r}function getTryCatchFinallyOccurrences(t,r){var n=[];pushKeywordIf(n,t.getFirstToken(),111);if(t.catchClause){pushKeywordIf(n,t.catchClause.getFirstToken(),83)}if(t.finallyBlock){var i=e.findChildOfKind(t,96,r);pushKeywordIf(n,i,96)}return n}function getThrowOccurrences(t,r){var n=getThrowStatementOwner(t);if(!n){return undefined}var i=[];e.forEach(aggregateOwnedThrowStatements(n),function(t){i.push(e.findChildOfKind(t,109,r))});if(e.isFunctionBlock(n)){e.forEachReturnStatement(n,function(t){i.push(e.findChildOfKind(t,105,r))})}return i}function getReturnOccurrences(t,r){var n=e.getContainingFunction(t);if(!n){return undefined}var i=[];e.forEachReturnStatement(e.cast(n.body,e.isBlock),function(t){i.push(e.findChildOfKind(t,105,r))});e.forEach(aggregateOwnedThrowStatements(n.body),function(t){i.push(e.findChildOfKind(t,109,r))});return i}function getAsyncAndAwaitOccurrences(t){var r=e.getContainingFunction(t);if(!r){return undefined}var n=[];if(r.modifiers){r.modifiers.forEach(function(e){pushKeywordIf(n,e,130)})}e.forEachChild(r,function(t){traverseWithoutCrossingFunction(t,function(t){if(e.isAwaitExpression(t)){pushKeywordIf(n,t.getFirstToken(),131)}})});return n}function getYieldOccurrences(t){var r=e.getContainingFunction(t);if(!r){return undefined}var n=[];e.forEachChild(r,function(t){traverseWithoutCrossingFunction(t,function(t){if(e.isYieldExpression(t)){pushKeywordIf(n,t.getFirstToken(),125)}})});return n}function traverseWithoutCrossingFunction(t,r){r(t);if(!e.isFunctionLike(t)&&!e.isClassLike(t)&&!e.isInterfaceDeclaration(t)&&!e.isModuleDeclaration(t)&&!e.isTypeAliasDeclaration(t)&&!e.isTypeNode(t)){e.forEachChild(t,function(e){return traverseWithoutCrossingFunction(e,r)})}}function getIfElseOccurrences(t,r){var n=getIfElseKeywords(t,r);var i=[];for(var a=0;a=s.end;u--){if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(u))){c=false;break}}if(c){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),o.end),kind:"reference"});a++;continue}}i.push(getHighlightSpanForNode(n[a],r))}return i}function getIfElseKeywords(t,r){var n=[];while(e.isIfStatement(t.parent)&&t.parent.elseStatement===t){t=t.parent}while(true){var i=t.getChildren(r);pushKeywordIf(n,i[0],99);for(var a=i.length-1;a>=0;a--){if(pushKeywordIf(n,i[a],91)){break}}if(!t.elseStatement||!e.isIfStatement(t.elseStatement)){break}t=t.elseStatement}return n}function isLabeledBy(t,r){return!!e.findAncestor(t.parent,function(t){return!e.isLabeledStatement(t)?"quit":t.label.escapedText===r})}})(t=e.DocumentHighlights||(e.DocumentHighlights={}))})(u||(u={}));var u;(function(e){function isDocumentRegistryEntry(e){return!!e.sourceFile}function createDocumentRegistry(e,t){return createDocumentRegistryInternal(e,t)}e.createDocumentRegistry=createDocumentRegistry;function createDocumentRegistryInternal(t,r,n){if(r===void 0){r=""}var i=new e.Map;var a=e.createGetCanonicalFileName(!!t);function reportStats(){var t=e.arrayFrom(i.keys()).filter(function(e){return e&&e.charAt(0)==="_"}).map(function(e){var t=i.get(e);var r=[];t.forEach(function(e,t){if(isDocumentRegistryEntry(e)){r.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount})}else{e.forEach(function(e,n){return r.push({name:t,scriptKind:n,refCount:e.languageServiceRefCount})})}});r.sort(function(e,t){return t.refCount-e.refCount});return{bucket:e,sourceFiles:r}});return JSON.stringify(t,undefined,2)}function acquireDocument(t,n,i,s,o){var c=e.toPath(t,r,a);var u=getKeyForCompilationSettings(n);return acquireDocumentWithKey(t,c,n,u,i,s,o)}function acquireDocumentWithKey(e,t,r,n,i,a,s){return acquireOrUpdateDocument(e,t,r,n,i,a,true,s)}function updateDocument(t,n,i,s,o){var c=e.toPath(t,r,a);var u=getKeyForCompilationSettings(n);return updateDocumentWithKey(t,c,n,u,i,s,o)}function updateDocumentWithKey(e,t,r,n,i,a,s){return acquireOrUpdateDocument(e,t,r,n,i,a,false,s)}function getDocumentRegistryEntry(t,r){var n=isDocumentRegistryEntry(t)?t:t.get(e.Debug.checkDefined(r,"If there are more than one scriptKind's for same document the scriptKind should be provided"));e.Debug.assert(r===undefined||!n||n.sourceFile.scriptKind===r,"Script kind should match provided ScriptKind:"+r+" and sourceFile.scriptKind: "+(n===null||n===void 0?void 0:n.sourceFile.scriptKind)+", !entry: "+!n);return n}function acquireOrUpdateDocument(t,r,a,s,o,c,u,l){l=e.ensureScriptKind(t,l);var p=l===6?100:a.target||1;var d=e.getOrUpdate(i,s,function(){return new e.Map});var f=d.get(r);var m=f&&getDocumentRegistryEntry(f,l);if(!m&&n){var g=n.getDocument(s,r);if(g){e.Debug.assert(u);m={sourceFile:g,languageServiceRefCount:0};setBucketEntry()}}if(!m){var g=e.createLanguageServiceSourceFile(t,o,p,c,false,l);if(n){n.setDocument(s,r,g)}m={sourceFile:g,languageServiceRefCount:1};setBucketEntry()}else{if(m.sourceFile.version!==c){m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,o,c,o.getChangeRange(m.sourceFile.scriptSnapshot));if(n){n.setDocument(s,r,m.sourceFile)}}if(u){m.languageServiceRefCount++}}e.Debug.assert(m.languageServiceRefCount!==0);return m.sourceFile;function setBucketEntry(){if(!f){d.set(r,m)}else if(isDocumentRegistryEntry(f)){var t=new e.Map;t.set(f.sourceFile.scriptKind,f);t.set(l,m);d.set(r,t)}else{f.set(l,m)}}}function releaseDocument(t,n,i){var s=e.toPath(t,r,a);var o=getKeyForCompilationSettings(n);return releaseDocumentWithKey(s,o,i)}function releaseDocumentWithKey(t,r,n){var a=e.Debug.checkDefined(i.get(r));var s=a.get(t);var o=getDocumentRegistryEntry(s,n);o.languageServiceRefCount--;e.Debug.assert(o.languageServiceRefCount>=0);if(o.languageServiceRefCount===0){if(isDocumentRegistryEntry(s)){a.delete(t)}else{s.delete(n);if(s.size===1){a.set(t,e.firstDefinedIterator(s.values(),e.identity))}}}}function getLanguageServiceRefCounts(t,r){return e.arrayFrom(i.entries(),function(e){var n=e[0],i=e[1];var a=i.get(t);var s=a&&getDocumentRegistryEntry(a,r);return[n,s&&s.languageServiceRefCount]})}return{acquireDocument:acquireDocument,acquireDocumentWithKey:acquireDocumentWithKey,updateDocument:updateDocument,updateDocumentWithKey:updateDocumentWithKey,releaseDocument:releaseDocument,releaseDocumentWithKey:releaseDocumentWithKey,getLanguageServiceRefCounts:getLanguageServiceRefCounts,reportStats:reportStats,getKeyForCompilationSettings:getKeyForCompilationSettings}}e.createDocumentRegistryInternal=createDocumentRegistryInternal;function getKeyForCompilationSettings(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}})(u||(u={}));var u;(function(e){var t;(function(t){function createImportTracker(e,t,r,n){var a=getDirectImportsMap(e,r,n);return function(s,o,c){var u=getImportersForExport(e,t,a,o,r,n),l=u.directImports,p=u.indirectUsers;return i({indirectUsers:p},getSearchesFromDirectImports(l,s,o.exportKind,r,c))}}t.createImportTracker=createImportTracker;var r;(function(e){e[e["Named"]=0]="Named";e[e["Default"]=1]="Default";e[e["ExportEquals"]=2]="ExportEquals"})(r=t.ExportKind||(t.ExportKind={}));var n;(function(e){e[e["Import"]=0]="Import";e[e["Export"]=1]="Export"})(n=t.ImportExport||(t.ImportExport={}));function getImportersForExport(t,r,n,i,a,s){var o=i.exportingModuleSymbol,c=i.exportKind;var u=e.nodeSeenTracker();var l=e.nodeSeenTracker();var p=[];var d=!!o.globalExports;var f=d?undefined:[];handleDirectImports(o);return{directImports:p,indirectUsers:getIndirectUsers()};function getIndirectUsers(){if(d){return t}if(o.declarations){for(var n=0,i=o.declarations;n=0){if(c>n.end)break;var u=c+o;if((c===0||!e.isIdentifierPart(a.charCodeAt(c-1),99))&&(u===s||!e.isIdentifierPart(a.charCodeAt(u),99))){i.push(c)}c=a.indexOf(r,c+o+1)}return i}function getLabelReferencesInNode(t,r){var n=t.getSourceFile();var i=r.text;var a=e.mapDefined(getPossibleSymbolReferenceNodes(n,i,t),function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?nodeEntry(t):undefined});return[{definition:{type:1,node:r},references:a}]}function isValidReferencePosition(t,r){switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent)){return true}case 79:return t.text.length===r.length;case 14:case 10:{var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return false}}function getAllReferencesForKeyword(t,r,n,i){var a=e.flatMap(t,function(t){n.throwIfCancellationRequested();return e.mapDefined(getPossibleSymbolReferenceNodes(t,e.tokenToString(r),t),function(e){if(e.kind===r&&(!i||i(e))){return nodeEntry(e)}})});return a.length?[{definition:{type:2,node:a[0].node},references:a}]:undefined}function getReferencesInSourceFile(e,t,r,n){if(n===void 0){n=true}r.cancellationToken.throwIfCancellationRequested();return getReferencesInContainer(e,e,t,r,n)}function getReferencesInContainer(e,t,r,n,i){if(!n.markSearchedSymbols(t,r.allSearchSymbols)){return}for(var a=0,s=getPossibleSymbolReferencePositions(t,r.text,e);a0;s--){var i=n[s];startNode(t,i)}return[n.length-1,n[0]]}function startNode(e,t){var r=emptyNavigationBarNode(e,t);pushChild(u,r);c.push(u);l.push(p);p=undefined;u=r}function endNode(){if(u.children){mergeChildren(u.children,u);sortChildren(u.children)}u=c.pop();p=l.pop()}function addNodeWithRecursiveChild(e,t,r){startNode(e,r);addChildrenRecursively(t);endNode()}function addNodeWithRecursiveInitializer(t){if(t.initializer&&isFunctionOrClassExpression(t.initializer)){startNode(t);e.forEachChild(t.initializer,addChildrenRecursively);endNode()}else{addNodeWithRecursiveChild(t,t.initializer)}}function hasNavigationBarName(t){return!e.hasDynamicName(t)||t.kind!==219&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&e.idText(t.name.expression.expression)==="Symbol"}function addChildrenRecursively(t){var r;s.throwIfCancellationRequested();if(!t||e.isToken(t)){return}switch(t.kind){case 169:var n=t;addNodeWithRecursiveChild(n,n.body);for(var i=0,a=n.parameters;i0){startNode(x,k);e.forEachChild(x.right,addChildrenRecursively);endNode()}}}else if(e.isFunctionExpression(x.right)||e.isArrowFunction(x.right)){addNodeWithRecursiveChild(t,x.right,k)}else{startNode(x,k);addNodeWithRecursiveChild(t,x.right,D.name);endNode()}endNestedNodes(A);return}case 7:case 9:{var P=t;var k=E===7?P.arguments[0]:P.arguments[0].expression;var N=P.arguments[1];var O=startNestedNodes(t,k),A=O[0],F=O[1];startNode(t,F);startNode(t,e.setTextRange(e.factory.createIdentifier(N.text),N));addChildrenRecursively(t.arguments[2]);endNode();endNode();endNestedNodes(A);return}case 5:{var x=t;var D=x.left;var w=D.expression;if(e.isIdentifier(w)&&e.getElementOrPropertyAccessName(D)!=="prototype"&&p&&p.has(w.text)){if(e.isFunctionExpression(x.right)||e.isArrowFunction(x.right)){addNodeWithRecursiveChild(t,x.right,w)}else if(e.isBindableStaticAccessExpression(D)){startNode(x,w);addNodeWithRecursiveChild(x.left,x.right,e.getNameOrArgument(D));endNode()}return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(E)}}default:if(e.hasJSDocNodes(t)){e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){if(e.isJSDocTypeAlias(t)){addLeafNode(t)}})})}e.forEachChild(t,addChildrenRecursively)}}function mergeChildren(t,r){var n=new e.Map;e.filterMutate(t,function(t,i){var a=t.name||e.getNameOfDeclaration(t.node);var s=a&&nodeText(a);if(!s){return true}var o=n.get(s);if(!o){n.set(s,t);return true}if(o instanceof Array){for(var c=0,u=o;c0){return cleanText(n)}}switch(t.kind){case 300:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 269:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:if(e.getSyntacticModifierFlags(t)&512){return"default"}return getFunctionOrClassName(t);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return""}}function primaryNavBarMenuItems(e){var t=[];function recur(e){if(shouldAppearInPrimaryNavBarMenu(e)){t.push(e);if(e.children){for(var r=0,n=e.children;r0){return cleanText(e.declarationNameToString(t.name))}else if(e.isVariableDeclaration(r)){return cleanText(e.declarationNameToString(r.name))}else if(e.isBinaryExpression(r)&&r.operatorToken.kind===63){return nodeText(r.left).replace(n,"")}else if(e.isPropertyAssignment(r)){return nodeText(r.name)}else if(e.getSyntacticModifierFlags(t)&512){return"default"}else if(e.isClassLike(t)){return""}else if(e.isCallExpression(r)){var i=getCalledExpressionName(r.expression);if(i!==undefined){i=cleanText(i);if(i.length>a){return i+" callback"}var s=cleanText(e.mapDefined(r.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(o):undefined}).join(", "));return i+"("+s+") callback"}}return""}function getCalledExpressionName(t){if(e.isIdentifier(t)){return t.text}else if(e.isPropertyAccessExpression(t)){var r=getCalledExpressionName(t.expression);var n=t.name.text;return r===undefined?n:r+"."+n}else{return undefined}}function isFunctionOrClassExpression(e){switch(e.kind){case 212:case 211:case 224:return true;default:return false}}function cleanText(e){e=e.length>a?e.substring(0,a)+"...":e;return e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(t=e.NavigationBar||(e.NavigationBar={}))})(u||(u={}));var u;(function(e){var t;(function(t){function organizeImports(t,r,n,i,a,s){var o=e.textChanges.ChangeTracker.fromContext({host:n,formatContext:r,preferences:a});var c=function(r){return e.stableSort(coalesceImports(removeUnusedImports(r,t,i,s)),function(e,t){return compareImportsOrRequireStatements(e,t)})};var u=t.statements.filter(e.isImportDeclaration);organizeImportsWorker(u,c);var l=t.statements.filter(e.isExportDeclaration);organizeImportsWorker(l,coalesceExports);for(var p=0,d=t.statements.filter(e.isAmbientModule);p0?d[0]:m[0];var C=x.length===0?T?undefined:e.factory.createNamedImports(e.emptyArray):m.length===0?e.factory.createNamedImports(x):e.factory.updateNamedImports(m[0].importClause.namedBindings,x);if(p&&T&&C){o.push(updateImportDeclarationAndClause(D,T,undefined));o.push(updateImportDeclarationAndClause((r=m[0])!==null&&r!==void 0?r:D,undefined,C))}else{o.push(updateImportDeclarationAndClause(D,T,C))}}return o}t.coalesceImports=coalesceImports;function getCategorizedImports(t){var r;var n={defaultImports:[],namespaceImports:[],namedImports:[]};var i={defaultImports:[],namespaceImports:[],namedImports:[]};for(var a=0,s=t;a1){i.push(createOutliningSpanFromBounds(s,o,"comment"))}}}function addOutliningForLeadingCommentsForNode(t,r,n,i){if(e.isJsxText(t))return;addOutliningForLeadingCommentsForPos(t.pos,r,n,i)}function createOutliningSpanFromBounds(t,r,n){return createOutliningSpan(e.createTextSpanFromBounds(t,r),n)}function getOutliningSpanForNode(t,r){switch(t.kind){case 233:if(e.isFunctionLike(t.parent)){return functionSpan(t.parent,t,r)}switch(t.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return spanForNode(t.parent);case 250:var n=t.parent;if(n.tryBlock===t){return spanForNode(t.parent)}else if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return spanForNode(i)}default:return createOutliningSpan(e.createTextSpanFromNode(t,r),"code")}case 260:return spanForNode(t.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return spanForNode(t);case 182:return spanForNode(t,false,!e.isTupleTypeNode(t.parent),22);case 287:case 288:return spanForNodeArray(t.statements);case 203:return spanForObjectOrArrayLiteral(t);case 202:return spanForObjectOrArrayLiteral(t,22);case 276:return spanForJSXElement(t);case 280:return spanForJSXFragment(t);case 277:case 278:return spanForJSXAttributes(t.attributes);case 221:case 14:return spanForTemplateLiteral(t);case 200:return spanForNode(t,false,!e.isBindingElement(t.parent),22);case 212:return spanForArrowFunction(t);case 206:return spanForCallExpression(t)}function spanForCallExpression(t){if(!t.arguments.length){return undefined}var n=e.findChildOfKind(t,20,r);var i=e.findChildOfKind(t,21,r);if(!n||!i||e.positionsAreOnSameLine(n.pos,i.pos,r)){return undefined}return spanBetweenTokens(n,i,t,r,false,true)}function spanForArrowFunction(t){if(e.isBlock(t.body)||e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r)){return undefined}var n=e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd());return createOutliningSpan(n,"code",e.createTextSpanFromNode(t))}function spanForJSXElement(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd());var i=t.openingElement.tagName.getText(r);var a="<"+i+">...";return createOutliningSpan(n,"code",n,false,a)}function spanForJSXFragment(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());var i="<>...";return createOutliningSpan(n,"code",n,false,i)}function spanForJSXAttributes(e){if(e.properties.length===0){return undefined}return createOutliningSpanFromBounds(e.getStart(r),e.getEnd(),"code")}function spanForTemplateLiteral(e){if(e.kind===14&&e.text.length===0){return undefined}return createOutliningSpanFromBounds(e.getStart(r),e.getEnd(),"code")}function spanForObjectOrArrayLiteral(t,r){if(r===void 0){r=18}return spanForNode(t,false,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function spanForNode(n,i,a,s,o){if(i===void 0){i=false}if(a===void 0){a=true}if(s===void 0){s=18}if(o===void 0){o=s===18?19:23}var c=e.findChildOfKind(t,s,r);var u=e.findChildOfKind(t,o,r);return c&&u&&spanBetweenTokens(c,u,n,r,i,a)}function spanForNodeArray(t){return t.length?createOutliningSpan(e.createTextSpanFromRange(t),"code"):undefined}}function functionSpan(t,r,n){var i=tryGetFunctionOpenToken(t,r,n);var a=e.findChildOfKind(r,19,n);return i&&a&&spanBetweenTokens(i,a,t,n,t.kind!==212)}function spanBetweenTokens(t,r,n,i,a,s){if(a===void 0){a=false}if(s===void 0){s=true}var o=e.createTextSpanFromBounds(s?t.getFullStart():t.getStart(i),r.getEnd());return createOutliningSpan(o,"code",e.createTextSpanFromNode(n,i),a)}function createOutliningSpan(e,t,r,n,i){if(r===void 0){r=e}if(n===void 0){n=false}if(i===void 0){i="..."}return{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}function tryGetFunctionOpenToken(t,r,n){if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i){return i}}return e.findChildOfKind(r,18,n)}})(t=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(u||(u={}));var u;(function(e){var t;(function(e){e[e["exact"]=0]="exact";e[e["prefix"]=1]="prefix";e[e["substring"]=2]="substring";e[e["camelCase"]=3]="camelCase"})(t=e.PatternMatchKind||(e.PatternMatchKind={}));function createPatternMatch(e,t){return{kind:e,isCaseSensitive:t}}function createPatternMatcher(t){var r=new e.Map;var n=t.trim().split(".").map(function(e){return createSegment(e.trim())});if(n.some(function(e){return!e.subWordTextChunks.length}))return undefined;return{getFullMatch:function(e,t){return getFullMatch(e,t,n,r)},getMatchForLastSegmentOfPattern:function(t){return matchSegment(t,e.last(n),r)},patternContainsDots:n.length>1}}e.createPatternMatcher=createPatternMatcher;function getFullMatch(t,r,n,i){var a=matchSegment(r,e.last(n),i);if(!a){return undefined}if(n.length-1>t.length){return undefined}var s;for(var o=n.length-2,c=t.length-1;o>=0;o-=1,c-=1){s=betterMatch(s,matchSegment(t[c],n[o],i))}return s}function getWordSpans(e,t){var r=t.get(e);if(!r){t.set(e,r=breakIntoWordSpans(e))}return r}function matchTextChunk(r,n,i){var a=indexOfIgnoringCase(r,n.textLowerCase);if(a===0){return createPatternMatch(n.text.length===r.length?t.exact:t.prefix,e.startsWith(r,n.text))}if(n.isLowerCase){if(a===-1)return undefined;var s=getWordSpans(r,i);for(var o=0,c=s;o0){return createPatternMatch(t.substring,true)}if(n.characterSpans.length>0){var l=getWordSpans(r,i);var p=tryCamelCaseMatch(r,l,n,false)?true:tryCamelCaseMatch(r,l,n,true)?false:undefined;if(p!==undefined){return createPatternMatch(t.camelCase,p)}}}}function matchSegment(e,t,r){if(every(t.totalTextChunk.text,function(e){return e!==32&&e!==42})){var n=matchTextChunk(e,t.totalTextChunk,r);if(n)return n}var i=t.subWordTextChunks;var a;for(var s=0,o=i;s=65&&t<=90){return true}if(t<127||!e.isUnicodeIdentifierStart(t,99)){return false}var r=String.fromCharCode(t);return r===r.toUpperCase()}function isLowerCaseLetter(t){if(t>=97&&t<=122){return true}if(t<127||!e.isUnicodeIdentifierStart(t,99)){return false}var r=String.fromCharCode(t);return r===r.toLowerCase()}function indexOfIgnoringCase(e,t){var r=e.length-t.length;var n=function(r){if(every(t,function(t,n){return toLowerCase(e.charCodeAt(n+r))===t})){return{value:r}}};for(var i=0;i<=r;i++){var a=n(i);if(typeof a==="object")return a.value}return-1}function toLowerCase(e){if(e>=65&&e<=90){return 97+(e-65)}if(e<127){return e}return String.fromCharCode(e).toLowerCase().charCodeAt(0)}function isDigit(e){return e>=48&&e<=57}function isWordChar(e){return isUpperCaseLetter(e)||isLowerCaseLetter(e)||isDigit(e)||e===95||e===36}function breakPatternIntoTextChunks(e){var t=[];var r=0;var n=0;for(var i=0;i0){t.push(createTextChunk(e.substr(r,n)));n=0}}}if(n>0){t.push(createTextChunk(e.substr(r,n)))}return t}function createTextChunk(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:breakIntoCharacterSpans(e)}}function breakIntoCharacterSpans(e){return breakIntoSpans(e,false)}e.breakIntoCharacterSpans=breakIntoCharacterSpans;function breakIntoWordSpans(e){return breakIntoSpans(e,true)}e.breakIntoWordSpans=breakIntoWordSpans;function breakIntoSpans(t,r){var n=[];var i=0;for(var a=1;at){break e}var d=e.singleOrUndefined(e.getTrailingCommentRanges(r.text,l.end));if(d&&d.kind===2){pushSelectionCommentRange(d.pos,d.end)}if(positionShouldSnapToNode(r,t,l)){if(e.isBlock(l)||e.isTemplateSpan(l)||e.isTemplateHead(l)||e.isTemplateTail(l)||u&&e.isTemplateHead(u)||e.isVariableDeclarationList(l)&&e.isVariableStatement(s)||e.isSyntaxList(l)&&e.isVariableDeclarationList(s)||e.isVariableDeclaration(l)&&e.isSyntaxList(s)&&o.length===1||e.isJSDocTypeExpression(l)||e.isJSDocSignature(l)||e.isJSDocTypeLiteral(l)){s=l;break}if(e.isTemplateSpan(s)&&p&&e.isTemplateMiddleOrTemplateTail(p)){var f=l.getFullStart()-"${".length;var m=p.getStart()+"}".length;pushSelectionRange(f,m)}var g=e.isSyntaxList(l)&&isListOpener(u)&&isListCloser(p)&&!e.positionsAreOnSameLine(u.getStart(),p.getStart(),r);var _=g?u.getEnd():l.getStart();var h=g?p.getStart():getEndPos(r,l);if(e.hasJSDocNodes(l)&&((n=l.jsDoc)===null||n===void 0?void 0:n.length)){pushSelectionRange(e.first(l.jsDoc).getStart(),h)}pushSelectionRange(_,h);if(e.isStringLiteral(l)||e.isTemplateLiteral(l)){pushSelectionRange(_+1,h-1)}s=l;break}if(c===o.length-1){break e}}}return a;function pushSelectionRange(r,n){if(r!==n){var s=e.createTextSpanFromBounds(r,n);if(!a||!e.textSpansEqual(s,a.textSpan)&&e.textSpanIntersectsWithPosition(s,t)){a=i({textSpan:s},a&&{parent:a})}}}function pushSelectionCommentRange(e,t){pushSelectionRange(e,t);var n=e;while(r.text.charCodeAt(n)===47){n++}pushSelectionRange(n,t)}}t.getSmartSelectionRange=getSmartSelectionRange;function positionShouldSnapToNode(t,r,n){e.Debug.assert(n.pos<=r);if(r0&&e.last(r).kind===27){n++}return n}function getArgumentIndexForTemplatePiece(t,r,n,i){e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node.");if(e.isTemplateLiteralToken(r)){if(e.isInsideTemplateLiteral(r,n,i)){return 0}return t+2}return t+1}function getArgumentListInfoForTemplate(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;if(r!==0){e.Debug.assertLessThan(r,i)}return{isTypeParameterList:false,invocation:{kind:0,node:t},argumentsSpan:getApplicableSpanForTaggedTemplate(t,n),argumentIndex:r,argumentCount:i}}function getApplicableSpanForArguments(t,r){var n=t.getFullStart();var i=e.skipTrivia(r.text,t.getEnd(),false);return e.createTextSpan(n,i-n)}function getApplicableSpanForTaggedTemplate(t,r){var n=t.template;var i=n.getStart();var a=n.getEnd();if(n.kind===221){var s=e.last(n.templateSpans);if(s.literal.getFullWidth()===0){a=e.skipTrivia(r.text,a,false)}}return e.createTextSpan(i,a-i)}function getContainingArgumentInfo(t,r,n,i,a){var s=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)});var a=getImmediatelyContainingArgumentOrContextualParameterInfo(t,r,n,i);if(a){return{value:a}}};for(var o=t;!e.isSourceFile(o)&&(a||!e.isBlock(o));o=o.parent){var c=s(o);if(typeof c==="object")return c.value}return undefined}function getChildListThatStartsWithOpenerToken(t,r,n){var i=t.getChildren(n);var a=i.indexOf(r);e.Debug.assert(a>=0&&i.length>a+1);return i[a+1]}function getExpressionFromInvocation(t){return t.kind===0?e.getInvokedExpression(t.node):t.called}function getEnclosingDeclarationFromInvocation(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var a=8192|70221824|16384;function createSignatureHelpItems(t,r,n,i,a,s){var o;var c=n.isTypeParameterList,u=n.argumentCount,l=n.argumentsSpan,p=n.invocation,d=n.argumentIndex;var f=getEnclosingDeclarationFromInvocation(p);var m=p.kind===2?p.symbol:a.getSymbolAtLocation(getExpressionFromInvocation(p))||s&&((o=r.declaration)===null||o===void 0?void 0:o.symbol);var g=m?e.symbolToDisplayParts(a,m,s?i:undefined,undefined):e.emptyArray;var _=e.map(t,function(e){return getSignatureHelpItem(e,g,c,a,f,i)});if(d!==0){e.Debug.assertLessThan(d,u)}var h=0;var y=0;for(var v=0;v<_.length;v++){var T=_[v];if(t[v]===r){h=y;if(T.length>1){var S=0;for(var b=0,E=T;b=u){h=y+S;break}S++}}}y+=T.length}e.Debug.assert(h!==-1);var D={items:e.flatMapToMutable(_,e.identity),applicableSpan:l,selectedItemIndex:h,argumentIndex:d,argumentCount:u};var C=D.items[h];if(C.isVariadic){var A=e.findIndex(C.parameters,function(e){return!!e.isRest});if(-1t){return e.substr(0,t-"...".length)+"..."}return e}function printTypeInSingleLine(t){var r=70221824|1048576|16384;var n={removeComments:true};var a=e.createPrinter(n);return e.usingSingleLineStringWriter(function(n){var s=p.typeToTypeNode(t,undefined,r,n);e.Debug.assertIsDefined(s,"should always get typenode");a.writeNode(4,s,i,n)})}function isUndefined(e){return e==="undefined"}}t.provideInlayHints=provideInlayHints})(t=e.InlayHints||(e.InlayHints={}))})(u||(u={}));var u;(function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function getSourceMapper(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames());var n=t.getCurrentDirectory();var i=new e.Map;var a=new e.Map;return{tryGetSourcePosition:tryGetSourcePosition,tryGetGeneratedPosition:tryGetGeneratedPosition,toLineColumnOffset:toLineColumnOffset,clearCache:clearCache};function toPath(t){return e.toPath(t,n,r)}function getDocumentPositionMapper(n,i){var s=toPath(n);var o=a.get(s);if(o)return o;var c;if(t.getDocumentPositionMapper){c=t.getDocumentPositionMapper(n,i)}else if(t.readFile){var u=getSourceFileLike(n);c=u&&e.getDocumentPositionMapper({getSourceFileLike:getSourceFileLike,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(u.text,e.getLineStarts(u)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):undefined})}a.set(s,c||e.identitySourceMapConsumer);return c||e.identitySourceMapConsumer}function tryGetSourcePosition(t){if(!e.isDeclarationFileName(t.fileName))return undefined;var r=getSourceFile(t.fileName);if(!r)return undefined;var n=getDocumentPositionMapper(t.fileName).getSourcePosition(t);return!n||n===t?undefined:tryGetSourcePosition(n)||n}function tryGetGeneratedPosition(i){if(e.isDeclarationFileName(i.fileName))return undefined;var a=getSourceFile(i.fileName);if(!a)return undefined;var s=t.getProgram();if(s.isSourceOfProjectReferenceRedirect(a.fileName)){return undefined}var o=s.getCompilerOptions();var c=e.outFile(o);var u=c?e.removeFileExtension(c)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,s.getCompilerOptions(),n,s.getCommonSourceDirectory(),r);if(u===undefined)return undefined;var l=getDocumentPositionMapper(u,i.fileName).getGeneratedPosition(i);return l===i?undefined:l}function getSourceFile(e){var r=t.getProgram();if(!r)return undefined;var n=toPath(e);var i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:undefined}function getOrCreateSourceFileLike(e){var r=toPath(e);var n=i.get(r);if(n!==undefined)return n?n:undefined;if(!t.readFile||t.fileExists&&!t.fileExists(r)){i.set(r,false);return undefined}var a=t.readFile(r);var s=a?createSourceFileLike(a):false;i.set(r,s);return s?s:undefined}function getSourceFileLike(e){return!t.getSourceFileLike?getSourceFile(e)||getOrCreateSourceFileLike(e):t.getSourceFileLike(e)}function toLineColumnOffset(e,t){var r=getSourceFileLike(e);return r.getLineAndCharacterOfPosition(t)}function clearCache(){i.clear();a.clear()}}e.getSourceMapper=getSourceMapper;function getDocumentPositionMapper(r,n,i,a){var s=e.tryGetSourceMappingURL(i);if(s){var o=t.exec(s);if(o){if(o[1]){var c=o[1];return convertDocumentToSourceMapper(r,e.base64decode(e.sys,c),n)}s=undefined}}var u=[];if(s){u.push(s)}u.push(n+".map");var l=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n));for(var p=0,d=u;p2)return false;if(t.arguments.length<2)return true;return e.some(t.arguments,function(t){return t.kind===104||e.isIdentifier(t)&&t.text==="undefined"})}function isFixablePromiseArgument(r,n){switch(r.kind){case 254:case 211:var i=e.getFunctionFlags(r);if(i&1){return false}case 212:t.set(getKeyFromNode(r),true);case 104:return true;case 79:case 204:{var a=n.getSymbolAtLocation(r);if(!a){return false}return n.isUndefinedSymbol(a)||e.some(e.skipAlias(a,n).declarations,function(t){return e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer)})}default:return false}}function getKeyFromNode(e){return e.pos.toString()+":"+e.end.toString()}function canBeConvertedToClass(t,r){var n,i,a,s;if(t.kind===211){if(e.isVariableDeclaration(t.parent)&&((n=t.symbol.members)===null||n===void 0?void 0:n.size)){return true}var o=r.getSymbolOfExpando(t,false);return!!(o&&(((i=o.exports)===null||i===void 0?void 0:i.size)||((a=o.members)===null||a===void 0?void 0:a.size)))}if(t.kind===254){return!!((s=t.symbol.members)===null||s===void 0?void 0:s.size)}return false}function canBeConvertedToAsync(e){switch(e.kind){case 254:case 167:case 211:case 212:return true;default:return false}}e.canBeConvertedToAsync=canBeConvertedToAsync})(u||(u={}));var u;(function(e){var t;(function(t){var r=8192|70221824|16384;function getSymbolKind(t,r,n){var i=getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,r,n);if(i!==""){return i}var a=e.getCombinedLocalAndExportSymbolFlags(r);if(a&32){return e.getDeclarationOfKind(r,224)?"local class":"class"}if(a&384)return"enum";if(a&524288)return"type";if(a&64)return"interface";if(a&262144)return"type parameter";if(a&8)return"enum member";if(a&2097152)return"alias";if(a&1536)return"module";return i}t.getSymbolKind=getSymbolKind;function getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,r,n){var i=t.getRootSymbols(r);if(i.length===1&&e.first(i).flags&8192&&t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length!==0){return"method"}if(t.isUndefinedSymbol(r)){return"var"}if(t.isArgumentsSymbol(r)){return"local var"}if(n.kind===108&&e.isExpression(n)){return"parameter"}var a=e.getCombinedLocalAndExportSymbolFlags(r);if(a&3){if(e.isFirstDeclarationOfSymbolParameter(r)){return"parameter"}else if(r.valueDeclaration&&e.isVarConst(r.valueDeclaration)){return"const"}else if(e.forEach(r.declarations,e.isLet)){return"let"}return isLocalVariableOrFunction(r)?"local var":"var"}if(a&16)return isLocalVariableOrFunction(r)?"local function":"function";if(a&32768)return"getter";if(a&65536)return"setter";if(a&8192)return"method";if(a&16384)return"constructor";if(a&4){if(a&33554432&&r.checkFlags&6){var s=e.forEach(t.getRootSymbols(r),function(e){var t=e.getFlags();if(t&(98308|3)){return"property"}});if(!s){var o=t.getTypeOfSymbolAtLocation(r,n);if(o.getCallSignatures().length){return"method"}return"property"}return s}switch(n.parent&&n.parent.kind){case 278:case 276:case 277:return n.kind===79?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function getNormalizedSymbolModifiers(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1);var a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,function(t){return!e.isDeprecatedDeclaration(t)})?8192:0;var s=e.getNodeModifiers(n,a);if(s){return s.split(",")}}return[]}function getSymbolModifiers(t,r){if(!r){return""}var n=new e.Set(getNormalizedSymbolModifiers(r));if(r.flags&2097152){var i=t.getAliasedSymbol(r);if(i!==r){e.forEach(getNormalizedSymbolModifiers(i),function(e){n.add(e)})}}if(r.flags&16777216){n.add("optional")}return n.size>0?e.arrayFrom(n.values()).join(","):""}t.getSymbolModifiers=getSymbolModifiers;function getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,i,a,s,o,c){var u;if(o===void 0){o=e.getMeaningFromLocation(s)}var l=[];var p=[];var d=[];var f=e.getCombinedLocalAndExportSymbolFlags(n);var m=o&1?getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(t,n,s):"";var g=false;var _=s.kind===108&&e.isInExpressionContext(s);var h;var y;var v;var T;var S=false;if(s.kind===108&&!_){return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:undefined}}if(m!==""||f&32||f&2097152){if(m==="getter"||m==="setter"){m="property"}var b=void 0;h=_?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(n,s);if(s.parent&&s.parent.kind===204){var E=s.parent.name;if(E===s||E&&E.getFullWidth()===0){s=s.parent}}var x=void 0;if(e.isCallOrNewExpression(s)){x=s}else if(e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)){x=s.parent}else if(s.parent&&(e.isJsxOpeningLikeElement(s.parent)||e.isTaggedTemplateExpression(s.parent))&&e.isFunctionLike(n.valueDeclaration)){x=s.parent}if(x){b=t.getResolvedSignature(x);var D=x.kind===207||e.isCallExpression(x)&&x.expression.kind===106;var C=D?h.getConstructSignatures():h.getCallSignatures();if(b&&!e.contains(C,b.target)&&!e.contains(C,b)){b=C.length?C[0]:undefined}if(b){if(D&&f&32){m="constructor";addPrefixForAnyFunctionOrVar(h.symbol,m)}else if(f&2097152){m="alias";pushSymbolKind(m);l.push(e.spacePart());if(D){if(b.flags&4){l.push(e.keywordPart(126));l.push(e.spacePart())}l.push(e.keywordPart(103));l.push(e.spacePart())}addFullSymbolName(n)}else{addPrefixForAnyFunctionOrVar(n,m)}switch(m){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":l.push(e.punctuationPart(58));l.push(e.spacePart());if(!(e.getObjectFlags(h)&16)&&h.symbol){e.addRange(l,e.symbolToDisplayParts(t,h.symbol,a,undefined,4|1));l.push(e.lineBreakPart())}if(D){if(b.flags&4){l.push(e.keywordPart(126));l.push(e.spacePart())}l.push(e.keywordPart(103));l.push(e.spacePart())}addSignatureDisplayParts(b,C,262144);break;default:addSignatureDisplayParts(b,C)}g=true;S=C.length>1}}else if(e.isNameOfFunctionDeclaration(s)&&!(f&98304)||s.kind===133&&s.parent.kind===169){var A=s.parent;var k=n.declarations&&e.find(n.declarations,function(e){return e===(s.kind===133?A.parent:A)});if(k){var C=A.kind===169?h.getNonNullableType().getConstructSignatures():h.getNonNullableType().getCallSignatures();if(!t.isImplementationOfOverload(A)){b=t.getSignatureFromDeclaration(A)}else{b=C[0]}if(A.kind===169){m="constructor";addPrefixForAnyFunctionOrVar(h.symbol,m)}else{addPrefixForAnyFunctionOrVar(A.kind===172&&!(h.symbol.flags&2048||h.symbol.flags&4096)?h.symbol:n,m)}if(b){addSignatureDisplayParts(b,C)}g=true;S=C.length>1}}}if(f&32&&!g&&!_){addAliasPrefixIfNecessary();if(e.getDeclarationOfKind(n,224)){pushSymbolKind("local class")}else{l.push(e.keywordPart(84))}l.push(e.spacePart());addFullSymbolName(n);writeTypeParametersOfSymbol(n,i)}if(f&64&&o&2){prefixNextMeaning();l.push(e.keywordPart(118));l.push(e.spacePart());addFullSymbolName(n);writeTypeParametersOfSymbol(n,i)}if(f&524288&&o&2){prefixNextMeaning();l.push(e.keywordPart(150));l.push(e.spacePart());addFullSymbolName(n);writeTypeParametersOfSymbol(n,i);l.push(e.spacePart());l.push(e.operatorPart(63));l.push(e.spacePart());e.addRange(l,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(n),a,8388608))}if(f&384){prefixNextMeaning();if(e.some(n.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})){l.push(e.keywordPart(85));l.push(e.spacePart())}l.push(e.keywordPart(92));l.push(e.spacePart());addFullSymbolName(n)}if(f&1536&&!_){prefixNextMeaning();var P=e.getDeclarationOfKind(n,259);var N=P&&P.name&&P.name.kind===79;l.push(e.keywordPart(N?141:140));l.push(e.spacePart());addFullSymbolName(n)}if(f&262144&&o&2){prefixNextMeaning();l.push(e.punctuationPart(20));l.push(e.textPart("type parameter"));l.push(e.punctuationPart(21));l.push(e.spacePart());addFullSymbolName(n);if(n.parent){addInPrefix();addFullSymbolName(n.parent,a);writeTypeParametersOfSymbol(n.parent,a)}else{var O=e.getDeclarationOfKind(n,161);if(O===undefined)return e.Debug.fail();var P=O.parent;if(P){if(e.isFunctionLikeKind(P.kind)){addInPrefix();var b=t.getSignatureFromDeclaration(P);if(P.kind===173){l.push(e.keywordPart(103));l.push(e.spacePart())}else if(P.kind!==172&&P.name){addFullSymbolName(P.symbol)}e.addRange(l,e.signatureToDisplayParts(t,b,i,32))}else if(P.kind===257){addInPrefix();l.push(e.keywordPart(150));l.push(e.spacePart());addFullSymbolName(P.symbol);writeTypeParametersOfSymbol(P.symbol,i)}}}}if(f&8){m="enum member";addPrefixForAnyFunctionOrVar(n,"enum member");var P=(u=n.declarations)===null||u===void 0?void 0:u[0];if((P===null||P===void 0?void 0:P.kind)===294){var F=t.getConstantValue(P);if(F!==undefined){l.push(e.spacePart());l.push(e.operatorPart(63));l.push(e.spacePart());l.push(e.displayPart(e.getTextOfConstantValue(F),typeof F==="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral))}}}if(n.flags&2097152){prefixNextMeaning();if(!g){var w=t.getAliasedSymbol(n);if(w!==n&&w.declarations&&w.declarations.length>0){var I=w.declarations[0];var L=e.getNameOfDeclaration(I);if(L){var M=e.isModuleWithStringLiteralName(I)&&e.hasSyntacticModifier(I,2);var R=n.name!=="default"&&!M;var B=getSymbolDisplayPartsDocumentationAndSymbolKind(t,w,e.getSourceFileOfNode(I),I,L,o,R?n:w);l.push.apply(l,B.displayParts);l.push(e.lineBreakPart());v=B.documentation;T=B.tags}else{v=w.getContextualDocumentationComment(I,t);T=w.getJsDocTags(t)}}}if(n.declarations){switch(n.declarations[0].kind){case 262:l.push(e.keywordPart(93));l.push(e.spacePart());l.push(e.keywordPart(141));break;case 269:l.push(e.keywordPart(93));l.push(e.spacePart());l.push(e.keywordPart(n.declarations[0].isExportEquals?63:88));break;case 273:l.push(e.keywordPart(93));break;default:l.push(e.keywordPart(100))}}l.push(e.spacePart());addFullSymbolName(n);e.forEach(n.declarations,function(r){if(r.kind===263){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n)){l.push(e.spacePart());l.push(e.operatorPart(63));l.push(e.spacePart());l.push(e.keywordPart(144));l.push(e.punctuationPart(20));l.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral));l.push(e.punctuationPart(21))}else{var i=t.getSymbolAtLocation(n.moduleReference);if(i){l.push(e.spacePart());l.push(e.operatorPart(63));l.push(e.spacePart());addFullSymbolName(i,a)}}return true}})}if(!g){if(m!==""){if(h){if(_){prefixNextMeaning();l.push(e.keywordPart(108))}else{addPrefixForAnyFunctionOrVar(n,m)}if(m==="property"||m==="JSX attribute"||f&3||m==="local var"||_){l.push(e.punctuationPart(58));l.push(e.spacePart());if(h.symbol&&h.symbol.flags&262144){var j=e.mapToDisplayParts(function(n){var i=t.typeParameterToDeclaration(h,a,r);getPrinter().writeNode(4,i,e.getSourceFileOfNode(e.getParseTreeNode(a)),n)});e.addRange(l,j)}else{e.addRange(l,e.typeToDisplayParts(t,h,a))}if(n.target&&n.target.tupleLabelDeclaration){var J=n.target.tupleLabelDeclaration;e.Debug.assertNode(J.name,e.isIdentifier);l.push(e.spacePart());l.push(e.punctuationPart(20));l.push(e.textPart(e.idText(J.name)));l.push(e.punctuationPart(21))}}else if(f&16||f&8192||f&16384||f&131072||f&98304||m==="method"){var C=h.getNonNullableType().getCallSignatures();if(C.length){addSignatureDisplayParts(C[0],C);S=C.length>1}}}}else{m=getSymbolKind(t,n,s)}}if(p.length===0&&!S){p=n.getContextualDocumentationComment(a,t)}if(p.length===0&&f&4){if(n.parent&&n.declarations&&e.forEach(n.parent.declarations,function(e){return e.kind===300})){for(var U=0,V=n.declarations;U0){break}}}}if(d.length===0&&!S){d=n.getJsDocTags(t)}if(p.length===0&&v){p=v}if(d.length===0&&T){d=T}return{displayParts:l,documentation:p,symbolKind:m,tags:d.length===0?undefined:d};function getPrinter(){if(!y){y=e.createPrinter({removeComments:true})}return y}function prefixNextMeaning(){if(l.length){l.push(e.lineBreakPart())}addAliasPrefixIfNecessary()}function addAliasPrefixIfNecessary(){if(c){pushSymbolKind("alias");l.push(e.spacePart())}}function addInPrefix(){l.push(e.spacePart());l.push(e.keywordPart(101));l.push(e.spacePart())}function addFullSymbolName(r,a){if(c&&r===n){r=c}var s=e.symbolToDisplayParts(t,r,a||i,undefined,1|2|4);e.addRange(l,s);if(n.flags&16777216){l.push(e.punctuationPart(57))}}function addPrefixForAnyFunctionOrVar(t,r){prefixNextMeaning();if(r){pushSymbolKind(r);if(t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})){l.push(e.spacePart());addFullSymbolName(t)}}}function pushSymbolKind(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":l.push(e.textOrKeywordPart(t));return;default:l.push(e.punctuationPart(20));l.push(e.textOrKeywordPart(t));l.push(e.punctuationPart(21));return}}function addSignatureDisplayParts(r,n,i){if(i===void 0){i=0}e.addRange(l,e.signatureToDisplayParts(t,r,a,i|32));if(n.length>1){l.push(e.spacePart());l.push(e.punctuationPart(20));l.push(e.operatorPart(39));l.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral));l.push(e.spacePart());l.push(e.textPart(n.length===2?"overload":"overloads"));l.push(e.punctuationPart(21))}p=r.getDocumentationComment(t);d=r.getJsDocTags();if(n.length>1&&p.length===0&&d.length===0){p=n[0].getDocumentationComment(t);d=n[0].getJsDocTags()}}function writeTypeParametersOfSymbol(n,i){var a=e.mapToDisplayParts(function(a){var s=t.symbolToTypeParameterDeclarations(n,i,r);getPrinter().writeList(53776,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),a)});e.addRange(l,a)}}t.getSymbolDisplayPartsDocumentationAndSymbolKind=getSymbolDisplayPartsDocumentationAndSymbolKind;function isLocalVariableOrFunction(t){if(t.parent){return false}return e.forEach(t.declarations,function(t){if(t.kind===211){return true}if(t.kind!==252&&t.kind!==254){return false}for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent){if(r.kind===300||r.kind===260){return false}}return true})}})(t=e.SymbolDisplay||(e.SymbolDisplay={}))})(u||(u={}));var u;(function(e){function transpileModule(t,r){var n=[];var i=r.compilerOptions?fixupCompilerOptions(r.compilerOptions,n):{};var a=e.getDefaultCompilerOptions();for(var s in a){if(e.hasProperty(a,s)&&i[s]===undefined){i[s]=a[s]}}for(var o=0,c=e.transpileOptionValueCompilerOptions;o>=n}return r}function increaseInsertionIndex(t,r){var n=(t>>r&i)+1;e.Debug.assert((n&i)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");return t&~(i<=n.length){return false}var r=n[i];if(t.end<=r.start){return false}if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length)){return true}i++}};function rangeHasNoErrors(){return false}}function getScanStartPosition(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end){return i}var a=e.findPrecedingToken(r.pos,n);if(!a){return t.pos}if(a.end>=r.pos){return t.pos}return a.end}function getOwnOrInheritedDelta(e,r,n){var i=-1;var a;while(e){var s=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&s!==i){break}if(t.SmartIndenter.shouldIndentChildNode(r,e,a,n)){return r.indentSize}i=s;a=e;e=e.parent}return 0}function formatNodeGivenIndentation(e,r,n,i,a,s){var o={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,o.pos,o.end,function(t){return formatSpanWorker(o,e,i,a,t,s,1,function(e){return false},r)})}t.formatNodeGivenIndentation=formatNodeGivenIndentation;function formatNodeLines(t,r,n,i){if(!t){return[]}var a={pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end};return formatSpan(a,r,n,i)}function formatSpan(e,r,n,i){var a=findEnclosingNode(e,r);return t.getFormattingScanner(r.text,r.languageVariant,getScanStartPosition(a,e,r),e.end,function(s){return formatSpanWorker(e,a,t.SmartIndenter.getIndentationForNode(a,e,r,n.options),getOwnOrInheritedDelta(a,n.options,r),s,n,i,prepareRangeContainsErrorFunction(r.parseDiagnostics,e),r)})}function formatSpanWorker(r,n,i,a,s,o,c,u,l){var p=o.options,d=o.getRules,f=o.host;var m=new t.FormattingContext(l,c,p);var g;var _;var h;var y;var v=-1;var T=[];s.advance();if(s.isOnToken()){var S=l.getLineAndCharacterOfPosition(n.getStart(l)).line;var b=S;if(n.decorators){b=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line}processNode(n,n,S,b,i,a)}if(!s.isOnToken()){var E=t.SmartIndenter.nodeWillIndentChild(p,n,undefined,l,false)?i+p.indentSize:i;var x=s.getCurrentLeadingTrivia();if(x){indentTriviaItems(x,E,false,function(e){return processRange(e,l.getLineAndCharacterOfPosition(e.pos),n,n,undefined)})}}if(p.trimTrailingWhitespace!==false){trimTrailingWhitespacesForRemainingRange()}return T;function tryComputeIndentationForListItem(r,n,i,a,s){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(s!==-1){return s}}else{var o=l.getLineAndCharacterOfPosition(r).line;var c=e.getLineStartPositionForPosition(r,l);var u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,p);if(o!==i||r===u){var d=t.SmartIndenter.getBaseIndentation(p);return d>u?d:u}}return-1}function computeIndentation(e,r,n,i,a,s){var o=t.SmartIndenter.shouldIndentChildNode(p,e)?p.indentSize:0;if(s===r){return{indentation:r===y?v:a.getIndentation(),delta:Math.min(p.indentSize,a.getDelta(e)+o)}}else if(n===-1){if(e.kind===20&&r===y){return{indentation:v,delta:a.getDelta(e)}}else if(t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)){return{indentation:a.getIndentation(),delta:o}}else{return{indentation:a.getIndentation()+a.getDelta(e),delta:o}}}else{return{indentation:n,delta:o}}}function getFirstNonDecoratorTokenOfNode(t){if(t.modifiers&&t.modifiers.length){return t.modifiers[0].kind}switch(t.kind){case 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(t.asteriskToken){return 41}case 165:case 162:var r=e.getNameOfDeclaration(t);if(r){return r.kind}}}function getDynamicIndentation(e,r,n,i){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return n+getDelta(r)}return t!==-1?t:n},getIndentationForToken:function(e,t,r,i){return!i&&shouldAddDelta(e,t,r)?n+getDelta(r):n},getIndentation:function(){return n},getDelta:getDelta,recomputeIndentation:function(r,a){if(t.SmartIndenter.shouldIndentChildNode(p,a,e,l)){n+=r?p.indentSize:-p.indentSize;i=t.SmartIndenter.shouldIndentChildNode(p,e)?p.indentSize:0}}};function shouldAddDelta(t,n,i){switch(n){case 18:case 19:case 21:case 91:case 115:case 59:return false;case 43:case 31:switch(i.kind){case 278:case 279:case 277:case 226:return false}break;case 22:case 23:if(i.kind!==193){return false}break}return r!==t&&!(e.decorators&&n===getFirstNonDecoratorTokenOfNode(e))}function getDelta(r){return t.SmartIndenter.nodeWillIndentChild(p,e,r,l,true)?i:0}}function processNode(n,i,a,o,c,d){if(!e.rangeOverlapsWithStartEnd(r,n.getStart(l),n.getEnd())){return}var f=getDynamicIndentation(n,a,c,d);var m=i;e.forEachChild(n,function(e){processChildNode(e,-1,n,f,a,o,false)},function(e){processChildNodes(e,n,a,f)});while(s.isOnToken()){var T=s.readTokenInfo(n);if(T.token.end>n.end){break}consumeTokenAndAdvanceScanner(T,n,f,n)}if(!n.parent&&s.isOnEOF()){var S=s.readEOFTokenRange();if(S.end<=n.end&&g){processPair(S,l.getLineAndCharacterOfPosition(S.pos).line,n,g,h,_,i,f)}}function processChildNode(t,i,a,o,c,u,p,d){var f=t.getStart(l);var g=l.getLineAndCharacterOfPosition(f).line;var _=g;if(t.decorators){_=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(t,l)).line}var h=-1;if(p&&e.rangeContainsRange(r,a)){h=tryComputeIndentationForListItem(f,t.end,c,r,i);if(h!==-1){i=h}}if(!e.rangeOverlapsWithStartEnd(r,t.pos,t.end)){if(t.endf){if(y.token.pos>f){s.skipToStartOf(t)}break}consumeTokenAndAdvanceScanner(y,n,o,n)}if(!s.isOnToken()){return i}if(e.isToken(t)){var y=s.readTokenInfo(t);if(t.kind!==11){e.Debug.assert(y.token.end===t.end,"Token end is child end");consumeTokenAndAdvanceScanner(y,n,o,t);return i}}var v=t.kind===163?g:u;var T=computeIndentation(t,g,h,n,o,v);processNode(t,m,g,_,T.indentation,T.delta);m=n;if(d&&a.kind===202&&i===-1){i=T.indentation}return i}function processChildNodes(r,i,a,o){e.Debug.assert(e.isNodeArray(r));var c=getOpenTokenForList(i,r);var u=o;var d=a;if(c!==0){while(s.isOnToken()){var f=s.readTokenInfo(i);if(f.token.end>r.pos){break}else if(f.token.kind===c){d=l.getLineAndCharacterOfPosition(f.token.pos).line;consumeTokenAndAdvanceScanner(f,i,o,i);var m=void 0;if(v!==-1){m=v}else{var g=e.getLineStartPositionForPosition(f.token.pos,l);m=t.SmartIndenter.findFirstNonWhitespaceColumn(g,f.token.pos,l,p)}u=getDynamicIndentation(i,a,m,p.indentSize)}else{consumeTokenAndAdvanceScanner(f,i,o,i)}}}var _=-1;for(var h=0;h0){var b=getIndentationString(S,p);recordReplace(v,T.character,b)}else{recordDelete(v,T.character)}}}function trimTrailingWhitespacesForLines(t,r,n){for(var i=t;is){continue}var o=getTrailingWhitespaceStartPosition(a,s);if(o!==-1){e.Debug.assert(o===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(o-1)));recordDelete(o,s+1-o)}}}function getTrailingWhitespaceStartPosition(t,r){var n=r;while(n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n))){n--}if(n!==r){return n+1}return-1}function trimTrailingWhitespacesForRemainingRange(){var e=g?g.end:r.pos;var t=l.getLineAndCharacterOfPosition(e).line;var n=l.getLineAndCharacterOfPosition(r.end).line;trimTrailingWhitespacesForLines(t,n+1,g)}function recordDelete(t,r){if(r){T.push(e.createTextChangeFromStartLength(t,r,""))}}function recordReplace(t,r,n){if(r||n){T.push(e.createTextChangeFromStartLength(t,r,n))}}function recordInsert(t,r){if(r){T.push(e.createTextChangeFromStartLength(t,0,r))}}function applyRuleEdits(t,r,n,i,a){var s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos){recordDelete(r.end,i.pos-r.end);return s?2:0}break;case 32:recordDelete(r.pos,r.end-r.pos);break;case 8:if(t.flags!==1&&n!==a){return 0}var o=a-n;if(o!==1){recordReplace(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(f,p));return s?0:1}break;case 4:if(t.flags!==1&&n!==a){return 0}var c=i.pos-r.end;if(c!==1||l.text.charCodeAt(r.end)!==32){recordReplace(r.end,i.pos-r.end," ");return s?2:0}break;case 64:recordInsert(r.end,";")}return 0}}var n;(function(e){e[e["None"]=0]="None";e[e["LineAdded"]=1]="LineAdded";e[e["LineRemoved"]=2]="LineRemoved"})(n||(n={}));function getRangeOfEnclosingComment(t,r,n,i){if(i===void 0){i=e.getTokenAtPosition(t,r)}var a=e.findAncestor(i,e.isJSDoc);if(a)i=a.parent;var s=i.getStart(t);if(s<=r&&rn.text.length){return getBaseIndentation(i)}if(i.indentStyle===e.IndentStyle.None){return 0}var s=e.findPrecedingToken(r,n,undefined,true);var o=t.getRangeOfEnclosingComment(n,r,s||null);if(o&&o.kind===3){return getCommentIndent(n,r,i,o)}if(!s){return getBaseIndentation(i)}var c=e.isStringOrRegularExpressionOrTemplateLiteral(s.kind);if(c&&s.getStart(n)<=r&&r=0);if(a<=s){return findFirstNonWhitespaceColumn(e.getStartPositionOfLine(s,t),r,t,n)}var o=e.getStartPositionOfLine(a,t);var c=findFirstNonWhitespaceCharacterAndColumn(o,r,t,n),u=c.column,l=c.character;if(u===0){return u}var p=t.text.charCodeAt(o+l);return p===42?u-1:u}function getBlockIndent(t,r,n){var i=r;while(i>0){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a)){break}i--}var s=e.getLineStartPositionForPosition(i,t);return findFirstNonWhitespaceColumn(s,i,t,n)}function getSmartIndent(t,r,n,i,a,s){var o;var c=n;while(c){if(e.positionBelongsToNode(c,r,t)&&shouldIndentChildNode(s,c,o,t,true)){var u=getStartLineAndCharacterForNode(c,t);var l=nextTokenIsCurlyBraceOnSameLineAsCursor(n,c,i,t);var p=l!==0?a&&l===2?s.indentSize:0:i!==u.line?s.indentSize:0;return getIndentationForNodeWorker(c,u,undefined,p,t,true,s)}var d=getActualIndentationForListItem(c,t,s,true);if(d!==-1){return d}o=c;c=c.parent}return getBaseIndentation(s)}function getIndentationForNode(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return getIndentationForNodeWorker(e,i,t,0,r,false,n)}r.getIndentationForNode=getIndentationForNode;function getBaseIndentation(e){return e.baseIndentSize||0}r.getBaseIndentation=getBaseIndentation;function getIndentationForNodeWorker(e,t,r,n,i,a,s){var o;var c=e.parent;while(c){var u=true;if(r){var l=e.getStart(i);u=lr.end}var p=getContainingListOrParentStart(c,e,i);var d=p.line===t.line||childStartsOnTheSameLineWithElseInIfStatement(c,e,t.line,i);if(u){var f=(o=getContainingList(e,i))===null||o===void 0?void 0:o[0];var m=!!f&&getStartLineAndCharacterForNode(f,i).line>p.line;var g=getActualIndentationForListItem(e,i,s,m);if(g!==-1){return g+n}g=getActualIndentationForNode(e,c,t,d,i,s);if(g!==-1){return g+n}}if(shouldIndentChildNode(s,c,e,i,a)&&!d){n+=s.indentSize}var _=isArgumentAndStartLineOverlapsExpressionBeingCalled(c,e,t.line,i);e=c;c=e.parent;t=_?i.getLineAndCharacterOfPosition(e.getStart(i)):p}return n+getBaseIndentation(s)}function getContainingListOrParentStart(e,t,r){var n=getContainingList(t,r);var i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function getActualIndentationForListItemBeforeComma(t,r,n){var i=e.findListItemInfo(t);if(i&&i.listItemIndex>0){return deriveActualIndentationFromList(i.list.getChildren(),i.listItemIndex-1,r,n)}else{return-1}}function getActualIndentationForNode(t,r,n,i,a,s){var o=(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(r.kind===300||!i);if(!o){return-1}return findColumnForFirstNonWhitespaceCharacterInLine(n,a,s)}var i;(function(e){e[e["Unknown"]=0]="Unknown";e[e["OpenBrace"]=1]="OpenBrace";e[e["CloseBrace"]=2]="CloseBrace"})(i||(i={}));function nextTokenIsCurlyBraceOnSameLineAsCursor(t,r,n,i){var a=e.findNextToken(t,r,i);if(!a){return 0}if(a.kind===18){return 1}else if(a.kind===19){var s=getStartLineAndCharacterForNode(a,i).line;return n===s?2:0}return 0}function getStartLineAndCharacterForNode(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function isArgumentAndStartLineOverlapsExpressionBeingCalled(t,r,n,i){if(!(e.isCallExpression(t)&&e.contains(t.arguments,r))){return false}var a=t.expression.getEnd();var s=e.getLineAndCharacterOfPosition(i,a).line;return s===n}r.isArgumentAndStartLineOverlapsExpressionBeingCalled=isArgumentAndStartLineOverlapsExpressionBeingCalled;function childStartsOnTheSameLineWithElseInIfStatement(t,r,n,i){if(t.kind===237&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);e.Debug.assert(a!==undefined);var s=getStartLineAndCharacterForNode(a,i).line;return s===n}return false}r.childStartsOnTheSameLineWithElseInIfStatement=childStartsOnTheSameLineWithElseInIfStatement;function childIsUnindentedBranchOfConditionalExpression(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue){return n===a}else{var s=getStartLineAndCharacterForNode(t.whenTrue,i).line;var o=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===s&&o===n}}return false}r.childIsUnindentedBranchOfConditionalExpression=childIsUnindentedBranchOfConditionalExpression;function argumentStartsOnSameLineAsPreviousArgument(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return false;var a=e.find(t.arguments,function(e){return e.pos===r.pos});if(!a)return false;var s=t.arguments.indexOf(a);if(s===0)return false;var o=t.arguments[s-1];var c=e.getLineAndCharacterOfPosition(i,o.getEnd()).line;if(n===c){return true}}return false}r.argumentStartsOnSameLineAsPreviousArgument=argumentStartsOnSameLineAsPreviousArgument;function getContainingList(e,t){return e.parent&&getListByRange(e.getStart(t),e.getEnd(),e.parent,t)}r.getContainingList=getContainingList;function getListByPosition(e,t,r){return t&&getListByRange(e,e,t,r)}function getListByRange(t,r,n,i){switch(n.kind){case 176:return getList(n.typeArguments);case 203:return getList(n.properties);case 202:return getList(n.elements);case 180:return getList(n.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return getList(n.typeParameters)||getList(n.parameters);case 255:case 224:case 256:case 257:case 339:return getList(n.typeParameters);case 207:case 206:return getList(n.typeArguments)||getList(n.arguments);case 253:return getList(n.declarations);case 267:case 271:return getList(n.elements);case 199:case 200:return getList(n.elements)}function getList(a){return a&&e.rangeContainsStartEnd(getVisualListRange(n,a,i),t,r)?a:undefined}}function getVisualListRange(e,t,r){var n=e.getChildren(r);for(var i=1;i=0&&r=0;o--){if(t[o].kind===27){continue}var c=n.getLineAndCharacterOfPosition(t[o].end).line;if(c!==s.line){return findColumnForFirstNonWhitespaceCharacterInLine(s,n,i)}s=getStartLineAndCharacterForNode(t[o],n)}return-1}function findColumnForFirstNonWhitespaceCharacterInLine(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return findFirstNonWhitespaceColumn(n,n+e.character,t,r)}function findFirstNonWhitespaceCharacterAndColumn(t,r,n,i){var a=0;var s=0;for(var o=t;o0?1:0;var y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+h,t);y=skipWhitespacesAndLineBreaks(t.text,y);return e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function getEndPositionOfMultilineTrailingComment(t,r,n){var i=r.end;var s=n.trailingTriviaOption;if(s===a.Include){var o=e.getTrailingCommentRanges(t.text,i);if(o){var c=e.getLineOfLocalPosition(t,r.end);for(var u=0,l=o;uc){break}var d=e.getLineOfLocalPosition(t,p.end);if(d>c){return e.skipTrivia(t.text,p.end,true,true)}}}}return undefined}function getAdjustedEndPosition(t,r,n){var i;var s=r.end;var o=n.trailingTriviaOption;if(o===a.Exclude){return s}if(o===a.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(t.text,s),e.getLeadingCommentRanges(t.text,s));var u=(i=c===null||c===void 0?void 0:c[c.length-1])===null||i===void 0?void 0:i.end;if(u){return u}return s}var l=getEndPositionOfMultilineTrailingComment(t,r,n);if(l){return l}var p=e.skipTrivia(t.text,s,true);return p!==s&&(o===a.Include||e.isLineBreak(t.text.charCodeAt(p-1)))?p:s}function isSeparator(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===203)}function isThisTypeAnnotatable(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)}t.isThisTypeAnnotatable=isThisTypeAnnotatable;var c=function(){function ChangeTracker(t,r){this.newLineCharacter=t;this.formatContext=r;this.changes=[];this.newFiles=[];this.classesWithNodesInsertedAtStart=new e.Map;this.deletedNodes=[]}ChangeTracker.fromContext=function(t){return new ChangeTracker(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)};ChangeTracker.with=function(e,t){var r=ChangeTracker.fromContext(e);t(r);return r.getChanges()};ChangeTracker.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n",joiner:", "})};ChangeTracker.prototype.getOptionsForInsertNodeBefore=function(t,r,n){if(e.isStatement(t)||e.isClassElement(t)){return{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}}else if(e.isVariableDeclaration(t)){return{suffix:", "}}else if(e.isParameter(t)){return e.isParameter(r)?{suffix:", "}:{}}else if(e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)){return{suffix:", "}}else if(e.isImportSpecifier(t)){return{suffix:","+(n?this.newLineCharacter:" ")}}return e.Debug.failBadSyntaxKind(t)};ChangeTracker.prototype.insertNodeAtConstructorStart=function(t,r,i){var a=e.firstOrUndefined(r.body.statements);if(!a||!r.body.multiLine){this.replaceConstructorBody(t,r,n([i],r.body.statements,true))}else{this.insertNodeBefore(t,a,i)}};ChangeTracker.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,i){var a=e.find(r.body.statements,function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)});if(!a||!r.body.multiLine){this.replaceConstructorBody(t,r,n(n([],r.body.statements,true),[i],false))}else{this.insertNodeAfter(t,a,i)}};ChangeTracker.prototype.insertNodeAtConstructorEnd=function(t,r,i){var a=e.lastOrUndefined(r.body.statements);if(!a||!r.body.multiLine){this.replaceConstructorBody(t,r,n(n([],r.body.statements,true),[i],false))}else{this.insertNodeAfter(t,a,i)}};ChangeTracker.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,true))};ChangeTracker.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=getAdjustedStartPosition(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})};ChangeTracker.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)};ChangeTracker.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)};ChangeTracker.prototype.insertNodeAtStartWorker=function(e,t,r){var n;var i=(n=this.guessIndentationFromExistingMembers(e,t))!==null&&n!==void 0?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,getMembersOrProperties(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))};ChangeTracker.prototype.guessIndentationFromExistingMembers=function(t,r){var n;var i=r;for(var a=0,s=getMembersOrProperties(r);a0?{fileName:a.fileName,textChanges:u}:undefined})}t.getTextChangesFromChanges=getTextChangesFromChanges;function newFileChanges(t,r,n,i,a){var s=newFileChangesWorker(t,e.getScriptKindFromFileName(r),n,i,a);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:true}}t.newFileChanges=newFileChanges;function newFileChangesWorker(t,r,n,i,a){var s=n.map(function(e){return e===4?"":getNonformattedText(e,t,i).text}).join(i);var o=e.createSourceFile("any file name",s,99,true,r);var c=e.formatting.formatDocument(o,a);return applyChanges(s,c)+i}t.newFileChangesWorker=newFileChangesWorker;function computeNewText(t,r,n,i,a){var s;if(t.kind===o.Remove){return""}if(t.kind===o.Text){return t.text}var c=t.options,u=c===void 0?{}:c,l=t.range.pos;var p=function(e){return getFormattedTextOfNode(e,r,l,u,n,i,a)};var d=t.kind===o.ReplaceWithMultipleNodes?t.nodes.map(function(t){return e.removeSuffix(p(t),n)}).join(((s=t.options)===null||s===void 0?void 0:s.joiner)||n):p(t.node);var f=u.preserveLeadingWhitespace||u.indentation!==undefined||e.getLineStartPositionForPosition(l,r)===l?d:d.replace(/^\s+/,"");return(u.prefix||"")+f+(!u.suffix||e.endsWith(f,u.suffix)?"":u.suffix)}function getFormatCodeSettingsForWriting(t,r){var n=t.options;var a=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore;var s=n.semicolons===e.SemicolonPreference.Remove||a&&!e.probablyUsesSemicolons(r);return i(i({},n),{semicolons:s?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function getFormattedTextOfNode(t,r,n,a,s,o,c){var u=a.indentation,l=a.prefix,p=a.delta;var d=getNonformattedText(t,r,s),f=d.node,m=d.text;if(c)c(f,m);var g=getFormatCodeSettingsForWriting(o,r);var _=u!==undefined?u:e.formatting.SmartIndenter.getIndentation(n,r,g,l===s||e.getLineStartPositionForPosition(n,r)===n);if(p===undefined){p=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)?g.indentSize||0:0}var h={text:m,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}};var y=e.formatting.formatNodeGivenIndentation(f,h,r.languageVariant,_,p,i(i({},o),{options:g}));return applyChanges(m,y)}function getNonformattedText(t,r,n){var i=createWriter(n);var a=n==="\n"?1:0;e.createPrinter({newLine:a,neverAsciiEscape:true,preserveSourceNewlines:true,terminateUnterminatedLiterals:true},i).writeNode(4,t,r,i);return{text:i.getText(),node:assignPositionsToNode(t)}}t.getNonformattedText=getNonformattedText})(u||(u={}));function applyChanges(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,s=i.newText;t=""+t.substring(0,a.start)+s+t.substring(e.textSpanEnd(a))}return t}t.applyChanges=applyChanges;function isTrivia(t){return e.skipTrivia(t,0)===t.length}function assignPositionsToNode(t){var r=e.visitEachChild(t,assignPositionsToNode,e.nullTransformationContext,assignPositionsToNodeArray,assignPositionsToNode);var n=e.nodeIsSynthesized(r)?r:Object.create(r);e.setTextRangePosEnd(n,getPos(t),getEnd(t));return n}function assignPositionsToNodeArray(t,r,n,i,a){var s=e.visitNodes(t,r,n,i,a);if(!s){return s}var o=s===t?e.factory.createNodeArray(s.slice(0)):s;e.setTextRangePosEnd(o,getPos(t),getEnd(t));return o}function createWriter(t){var r=0;var n=e.createTextWriter(t);var i=function(e){if(e){setPos(e,r)}};var a=function(e){if(e){setEnd(e,r)}};var s=function(e){if(e){setPos(e,r)}};var o=function(e){if(e){setEnd(e,r)}};var c=function(e){if(e){setPos(e,r)}};var u=function(e){if(e){setEnd(e,r)}};function setLastNonTriviaPosition(t,i){if(i||!isTrivia(t)){r=n.getTextPos();var a=0;while(e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1))){a++}r-=a}}function write(e){n.write(e);setLastNonTriviaPosition(e,false)}function writeComment(e){n.writeComment(e)}function writeKeyword(e){n.writeKeyword(e);setLastNonTriviaPosition(e,false)}function writeOperator(e){n.writeOperator(e);setLastNonTriviaPosition(e,false)}function writePunctuation(e){n.writePunctuation(e);setLastNonTriviaPosition(e,false)}function writeTrailingSemicolon(e){n.writeTrailingSemicolon(e);setLastNonTriviaPosition(e,false)}function writeParameter(e){n.writeParameter(e);setLastNonTriviaPosition(e,false)}function writeProperty(e){n.writeProperty(e);setLastNonTriviaPosition(e,false)}function writeSpace(e){n.writeSpace(e);setLastNonTriviaPosition(e,false)}function writeStringLiteral(e){n.writeStringLiteral(e);setLastNonTriviaPosition(e,false)}function writeSymbol(e,t){n.writeSymbol(e,t);setLastNonTriviaPosition(e,false)}function writeLine(e){n.writeLine(e)}function increaseIndent(){n.increaseIndent()}function decreaseIndent(){n.decreaseIndent()}function getText(){return n.getText()}function rawWrite(e){n.rawWrite(e);setLastNonTriviaPosition(e,false)}function writeLiteral(e){n.writeLiteral(e);setLastNonTriviaPosition(e,true)}function getTextPos(){return n.getTextPos()}function getLine(){return n.getLine()}function getColumn(){return n.getColumn()}function getIndent(){return n.getIndent()}function isAtStartOfLine(){return n.isAtStartOfLine()}function clear(){n.clear();r=0}return{onBeforeEmitNode:i,onAfterEmitNode:a,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:o,onBeforeEmitToken:c,onAfterEmitToken:u,write:write,writeComment:writeComment,writeKeyword:writeKeyword,writeOperator:writeOperator,writePunctuation:writePunctuation,writeTrailingSemicolon:writeTrailingSemicolon,writeParameter:writeParameter,writeProperty:writeProperty,writeSpace:writeSpace,writeStringLiteral:writeStringLiteral,writeSymbol:writeSymbol,writeLine:writeLine,increaseIndent:increaseIndent,decreaseIndent:decreaseIndent,getText:getText,rawWrite:rawWrite,writeLiteral:writeLiteral,getTextPos:getTextPos,getLine:getLine,getColumn:getColumn,getIndent:getIndent,isAtStartOfLine:isAtStartOfLine,hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:clear}}function getInsertionPositionAtSourceFileTop(t){var r;for(var n=0,i=t.statements;n=_+2)break}if(t.statements.length){if(p===undefined)p=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line;var h=t.getLineAndCharacterOfPosition(m.end).line;if(p1)break}var l=a<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=o(e,["fixId","fixAllDescription"]);return l?n:i(i({},n),{fixId:t,fixAllDescription:r})}}function getFixes(t){var n=getDiagnostics(t);var i=r.get(String(t.errorCode));return e.flatMap(i,function(r){return e.map(r.getCodeActions(t),removeFixIdIfFixAllUnavailable(r,n))})}t.getFixes=getFixes;function getAllFixes(t){return a.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)}t.getAllFixes=getAllFixes;function createCombinedCodeActions(e,t){return{changes:e,commands:t}}t.createCombinedCodeActions=createCombinedCodeActions;function createFileTextChanges(e,t){return{fileName:e,textChanges:t}}t.createFileTextChanges=createFileTextChanges;function codeFixAll(t,r,n){var i=[];var a=e.textChanges.ChangeTracker.with(t,function(e){return eachDiagnostic(t,r,function(t){return n(e,t,i)})});return createCombinedCodeActions(a,i.length===0?undefined:i)}t.codeFixAll=codeFixAll;function eachDiagnostic(t,r,n){for(var i=0,a=getDiagnostics(t);ie.textSpanEnd(r)){return"quit"}return(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))});return i}function getIsMatchingAsyncError(t,r){return function(n){var i=n.start,a=n.length,s=n.relatedInformation,o=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&o===r&&!!s&&e.some(s,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="addMissingAwait";var i=e.Diagnostics.Property_0_does_not_exist_on_type_1.code;var a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code];var s=n([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,i],a,true);t.registerCodeFix({fixIds:[r],errorCodes:s,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,i=t.span,a=t.cancellationToken,s=t.program;var o=getFixableErrorSpanExpression(r,n,i,a,s);if(!o){return}var c=t.program.getTypeChecker();var u=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([getDeclarationSiteFix(t,o,n,c,u),getUseSiteFix(t,o,n,c,u)])},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.cancellationToken;var o=r.program.getTypeChecker();var c=new e.Set;return t.codeFixAll(r,s,function(e,t){var s=getFixableErrorSpanExpression(n,t.code,t,a,i);if(!s){return}var u=function(t){return t(e),[]};return getDeclarationSiteFix(r,s,t.code,o,u,c)||getUseSiteFix(r,s,t.code,o,u,c)})}});function getDeclarationSiteFix(r,n,i,a,s,o){var c=r.sourceFile,u=r.program,l=r.cancellationToken;var p=findAwaitableInitializers(n,c,l,u,a);if(p){var d=s(function(t){e.forEach(p.initializers,function(e){var r=e.expression;return makeChange(t,i,c,a,r,o)});if(o&&p.needsSecondPassForFixAll){makeChange(t,i,c,a,n,o)}});return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",d,p.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,p.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function getUseSiteFix(n,i,a,s,o,c){var u=o(function(e){return makeChange(e,a,n.sourceFile,s,i,c)});return t.createCodeFixAction(r,u,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function isMissingAwaitError(t,r,n,i,a){var s=a.getDiagnosticsProducingTypeChecker();var o=s.getDiagnostics(t,i);return e.some(o,function(t){var i=t.start,a=t.length,s=t.relatedInformation,o=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&o===r&&!!s&&e.some(s,function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function getFixableErrorSpanExpression(t,r,n,i,a){var s=e.getTokenAtPosition(t,n.start);var o=e.findAncestor(s,function(r){if(r.getStart(t)e.textSpanEnd(n)){return"quit"}return e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))});return o&&isMissingAwaitError(t,r,n,i,a)&&isInsideAwaitableBody(o)?o:undefined}function findAwaitableInitializers(t,r,n,i,a){var s=getIdentifiersFromErrorSpanExpression(t,a);if(!s){return}var o=s.isCompleteFix;var c;var u=function(t){var s=a.getSymbolAtLocation(t);if(!s){return"continue"}var u=e.tryCast(s.valueDeclaration,e.isVariableDeclaration);var l=u&&e.tryCast(u.name,e.isIdentifier);var p=e.getAncestor(u,235);if(!u||!p||u.type||!u.initializer||p.getSourceFile()!==r||e.hasSyntacticModifier(p,1)||!l||!isInsideAwaitableBody(u.initializer)){o=false;return"continue"}var d=i.getSemanticDiagnostics(r,n);var f=e.FindAllReferences.Core.eachSymbolReferenceInFile(l,a,r,function(e){return t!==e&&!symbolReferenceIsAlsoMissingAwait(e,d,r,a)});if(f){o=false;return"continue"}(c||(c=[])).push({expression:u.initializer,declarationSymbol:s})};for(var l=0,p=s.identifiers;l0){return[t.createCodeFixAction(r,i,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]}},fixIds:[r],getAllCodeActions:function(r){var i=new e.Set;return t.codeFixAll(r,n,function(e,t){return makeChange(e,t.file,t.start,r.program,i)})}});function makeChange(t,r,n,i,a){var s=e.getTokenAtPosition(r,n);var o=e.findAncestor(s,function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:isPossiblyPartOfDestructuring(t)?false:"quit"});if(o)return applyChange(t,o,r,a);var c=s.parent;if(e.isBinaryExpression(c)&&c.operatorToken.kind===63&&e.isExpressionStatement(c.parent)){return applyChange(t,s,r,a)}if(e.isArrayLiteralExpression(c)){var u=i.getTypeChecker();if(!e.every(c.elements,function(e){return arrayElementCouldBeVariableDeclaration(e,u)})){return}return applyChange(t,c,r,a)}var l=e.findAncestor(s,function(t){return e.isExpressionStatement(t.parent)?true:isPossiblyPartOfCommaSeperatedInitializer(t)?false:"quit"});if(l){var p=i.getTypeChecker();if(!expressionCouldBeVariableDeclaration(l,p)){return}return applyChange(t,l,r,a)}}function applyChange(t,r,n,i){if(!i||e.tryAddToSet(i,r)){t.insertModifierBefore(n,85,r)}}function isPossiblyPartOfDestructuring(e){switch(e.kind){case 79:case 202:case 203:case 291:case 292:return true;default:return false}}function arrayElementCouldBeVariableDeclaration(t,r){var n=e.isIdentifier(t)?t:e.isAssignmentExpression(t,true)&&e.isIdentifier(t.left)?t.left:undefined;return!!n&&!r.getSymbolAtLocation(n)}function isPossiblyPartOfCommaSeperatedInitializer(e){switch(e.kind){case 79:case 219:case 27:return true;default:return false}}function expressionCouldBeVariableDeclaration(t,r){if(!e.isBinaryExpression(t)){return false}if(t.operatorToken.kind===27){return e.every([t.left,t.right],function(e){return expressionCouldBeVariableDeclaration(e,r)})}return t.operatorToken.kind===63&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="addMissingDeclareProperty";var n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span.start)});if(i.length>0){return[t.createCodeFixAction(r,i,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]}},fixIds:[r],getAllCodeActions:function(r){var i=new e.Set;return t.codeFixAll(r,n,function(e,t){return makeChange(e,t.file,t.start,i)})}});function makeChange(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(!e.isIdentifier(a)){return}var s=a.parent;if(s.kind===165&&(!i||e.tryAddToSet(i,s))){t.insertModifierBefore(r,134,s)}}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="addMissingInvocationForDecorator";var n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,i,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t.start)})}});function makeChange(t,r,n){var i=e.getTokenAtPosition(r,n);var a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var s=e.factory.createCallExpression(a.expression,undefined,undefined);t.replaceNode(r,a.expression,s)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="addNameToNamelessParameter";var n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,i,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t.start)})}});function makeChange(t,r,n){var i=e.getTokenAtPosition(r,n);if(!e.isIdentifier(i)){return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind))}var a=i.parent;if(!e.isParameter(a)){return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind))}var s=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one.");e.Debug.assert(s>-1,"Parameter not found in parent parameter list.");var o=e.factory.createParameterDeclaration(undefined,a.modifiers,a.dotDotDotToken,"arg"+s,a.questionToken,e.factory.createTypeReferenceNode(i,undefined),a.initializer);t.replaceNode(r,i,o)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="annotateWithTypeFromJSDoc";var n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=getDeclaration(n.sourceFile,n.span.start);if(!i)return;var a=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,i)});return[t.createCodeFixAction(r,a,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=getDeclaration(t.file,t.start);if(r)doChange(e,t.file,r)})}});function getDeclaration(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,parameterShouldGetTypeFromJSDoc)}function parameterShouldGetTypeFromJSDoc(e){return isDeclarationWithType(e)&&hasUsableJSDoc(e)}t.parameterShouldGetTypeFromJSDoc=parameterShouldGetTypeFromJSDoc;function hasUsableJSDoc(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(hasUsableJSDoc)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function doChange(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);if(i.length)t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);if(a)t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var s=0,o=n.parameters;s1){t.delete(r,c);t.insertNodeAfter(r,l,u)}else{t.replaceNode(r,l,u)}}function createClassElementsFromSymbol(n){var i=[];if(n.members){n.members.forEach(function(e,n){if(n==="constructor"&&e.valueDeclaration){t.delete(r,e.valueDeclaration.parent);return}var a=createClassElement(e,undefined);if(a){i.push.apply(i,a)}})}if(n.exports){n.exports.forEach(function(t){if(t.name==="prototype"&&t.declarations){var r=t.declarations[0];if(t.declarations.length===1&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(r.parent.right)){var n=r.parent.right;var a=createClassElement(n.symbol,undefined);if(a){i.push.apply(i,a)}}}else{var a=createClassElement(t,[e.factory.createToken(124)]);if(a){i.push.apply(i,a)}}})}return i;function shouldConvertDeclaration(t,r){if(e.isAccessExpression(t)){if(e.isPropertyAccessExpression(t)&&isConstructorAssignment(t))return true;return e.isFunctionLike(r)}else{return e.every(t.properties,function(t){if(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))return true;if(e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&!!t.name)return true;if(isConstructorAssignment(t))return true;return false})}}function createClassElement(n,i){var o=[];if(!(n.flags&8192)&&!(n.flags&4096)){return o}var c=n.valueDeclaration;var u=c.parent;var l=u.right;if(!shouldConvertDeclaration(c,l)){return o}var p=u.parent&&u.parent.kind===236?u.parent:u;t.delete(r,p);if(!l){o.push(e.factory.createPropertyDeclaration([],i,n.name,undefined,undefined,undefined));return o}if(e.isAccessExpression(c)&&(e.isFunctionExpression(l)||e.isArrowFunction(l))){var d=e.getQuotePreference(r,a);var f=tryGetPropertyName(c,s,d);if(f){return createFunctionLikeExpressionMember(o,l,f)}return o}else if(e.isObjectLiteralExpression(l)){return e.flatMap(l.properties,function(t){if(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)){return o.concat(t)}if(e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)){return createFunctionLikeExpressionMember(o,t.initializer,t.name)}if(isConstructorAssignment(t))return o;return[]})}else{if(e.isSourceFileJS(r))return o;if(!e.isPropertyAccessExpression(c))return o;var m=e.factory.createPropertyDeclaration(undefined,i,c.name,undefined,undefined,l);e.copyLeadingComments(u.parent,m,r);o.push(m);return o}function createFunctionLikeExpressionMember(t,r,n){if(e.isFunctionExpression(r))return createFunctionExpressionMember(t,r,n);else return createArrowFunctionExpressionMember(t,r,n)}function createFunctionExpressionMember(t,n,a){var s=e.concatenate(i,getModifierKindFromSource(n,130));var o=e.factory.createMethodDeclaration(undefined,s,undefined,a,undefined,undefined,n.parameters,undefined,n.body);e.copyLeadingComments(u,o,r);return t.concat(o)}function createArrowFunctionExpressionMember(t,n,a){var s=n.body;var o;if(s.kind===233){o=s}else{o=e.factory.createBlock([e.factory.createReturnStatement(s)])}var c=e.concatenate(i,getModifierKindFromSource(n,130));var l=e.factory.createMethodDeclaration(undefined,c,undefined,a,undefined,undefined,n.parameters,undefined,o);e.copyLeadingComments(u,l,r);return t.concat(l)}}}function createClassFromVariableDeclaration(t){var r=t.initializer;if(!r||!e.isFunctionExpression(r)||!e.isIdentifier(t.name)){return undefined}var n=createClassElementsFromSymbol(t.symbol);if(r.body){n.unshift(e.factory.createConstructorDeclaration(undefined,undefined,r.parameters,r.body))}var i=getModifierKindFromSource(t.parent.parent,93);var a=e.factory.createClassDeclaration(undefined,i,t.name,undefined,undefined,n);return a}function createClassFromFunctionDeclaration(t){var r=createClassElementsFromSymbol(o);if(t.body){r.unshift(e.factory.createConstructorDeclaration(undefined,undefined,t.parameters,t.body))}var n=getModifierKindFromSource(t,93);var i=e.factory.createClassDeclaration(undefined,n,t.name,undefined,undefined,r);return i}}function getModifierKindFromSource(t,r){return e.filter(t.modifiers,function(e){return e.kind===r})}function isConstructorAssignment(t){if(!t.name)return false;if(e.isIdentifier(t.name)&&t.name.text==="constructor")return true;return false}function tryGetPropertyName(t,r,n){if(e.isPropertyAccessExpression(t)){return t.name}var i=t.argumentExpression;if(e.isNumericLiteral(i)){return i}if(e.isStringLiteralLike(i)){return e.isIdentifierText(i.text,r.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,n===0):i}return undefined}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="convertToAsyncFunction";var i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code];var a=true;t.registerCodeFix({errorCodes:i,getCodeActions:function(n){a=true;var i=e.textChanges.ChangeTracker.with(n,function(e){return convertToAsyncFunction(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return a?[t.createCodeFixAction(r,i,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){return convertToAsyncFunction(t,r.file,r.start,e.program.getTypeChecker())})}});var s;(function(e){e[e["Identifier"]=0]="Identifier";e[e["BindingPattern"]=1]="BindingPattern"})(s||(s={}));function convertToAsyncFunction(t,r,n,i){var a=e.getTokenAtPosition(r,n);var s;if(e.isIdentifier(a)&&e.isVariableDeclaration(a.parent)&&a.parent.initializer&&e.isFunctionLikeDeclaration(a.parent.initializer)){s=a.parent.initializer}else{s=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)}if(!s){return}var o=new e.Map;var c=e.isInJSFile(s);var u=getAllPromiseExpressionsToReturn(s,i);var l=renameCollidingVarNames(s,i,o);if(!e.returnsPromise(l,i)){return}var p=l.body&&e.isBlock(l.body)?getReturnStatementsWithPromiseHandlers(l.body,i):e.emptyArray;var d={checker:i,synthNamesMap:o,setOfExpressionsToReturn:u,isInJSFile:c};if(!p.length){return}var f=s.modifiers?s.modifiers.end:s.decorators?e.skipTrivia(r.text,s.decorators.end):s.getStart(r);var m=s.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,f,130,m);var g=function(n){e.forEachChild(n,function visit(i){if(e.isCallExpression(i)){var a=transformExpression(i,d);t.replaceNodeWithNodes(r,n,a)}else if(!e.isFunctionLike(i)){e.forEachChild(i,visit)}})};for(var _=0,h=p;_0){return D}if(h){var E=getPossiblyAwaitedRightHandSide(a.checker,h,_);if(!shouldReturn(i,a)){var C=createVariableOrAssignmentOrExpressionStatement(r,E,undefined);if(r){r.types.push(h)}return C}else{return maybeAnnotateAndReturn(E,(l=i.typeArguments)===null||l===void 0?void 0:l[0])}}else{return silentFail()}}}default:return silentFail()}return e.emptyArray}function getPossiblyAwaitedRightHandSide(t,r,n){var i=e.getSynthesizedDeepClone(n);return!!t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function getLastCallSignature(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function removeReturns(t,r,n,i){var a=[];for(var s=0,o=t;s0){return}}else if(!e.isFunctionLike(r)){e.forEachChild(r,visit)}})}return i}function getArgBindingName(t,r){var n=[];var i;if(e.isFunctionLikeDeclaration(t)){if(t.parameters.length>0){var a=t.parameters[0].name;i=getMappedBindingNameOrDefault(a)}}else if(e.isIdentifier(t)){i=getMapEntryOrDefault(t)}else if(e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)){i=getMapEntryOrDefault(t.name)}if(!i||"identifier"in i&&i.identifier.text==="undefined"){return undefined}return i;function getMappedBindingNameOrDefault(t){if(e.isIdentifier(t))return getMapEntryOrDefault(t);var r=e.flatMap(t.elements,function(t){if(e.isOmittedExpression(t))return[];return[getMappedBindingNameOrDefault(t.name)]});return createSynthBindingPattern(t,r)}function getMapEntryOrDefault(t){var i=getOriginalNode(t);var a=getSymbol(i);if(!a){return createSynthIdentifier(t,n)}var s=r.synthNamesMap.get(e.getSymbolId(a).toString());return s||createSynthIdentifier(t,n)}function getSymbol(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}function getOriginalNode(e){return e.original?e.original:e}}function isEmptyBindingName(t){if(!t){return true}if(isSynthIdentifier(t)){return!t.identifier.text}return e.every(t.elements,isEmptyBindingName)}function getNode(e){return isSynthIdentifier(e)?e.identifier:e.bindingPattern}function createSynthIdentifier(e,t){if(t===void 0){t=[]}return{kind:0,identifier:e,types:t,hasBeenDeclared:false}}function createSynthBindingPattern(t,r,n){if(r===void 0){r=e.emptyArray}if(n===void 0){n=[]}return{kind:1,bindingPattern:t,elements:r,types:n}}function isSynthIdentifier(e){return e.kind===0}function isSynthBindingPattern(e){return e.kind===1}function shouldReturn(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.preferences;var s=e.textChanges.ChangeTracker.with(r,function(t){var r=convertFileToEs6Module(n,i.getTypeChecker(),t,i.getCompilerOptions().target,e.getQuotePreference(n,a));if(r){for(var s=0,o=i.getSourceFiles();s1?[[reExportStar(n),reExportDefault(n)],true]:[[reExportDefault(n)],true]}function reExportStar(e){return makeExportDeclaration(undefined,e)}function reExportDefault(t){return makeExportDeclaration([e.factory.createExportSpecifier(undefined,"default")],t)}function convertExportsPropertyAssignment(t,r,n){var i=t.left,a=t.right,s=t.parent;var o=i.name.text;if((e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))&&(!a.name||a.name.text===o)){n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "});if(!a.name)n.insertName(r,a,o);var c=e.findChildOfKind(s,26,r);if(c)n.delete(r,c)}else{n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}}function convertExportsDotXEquals_replaceNode(t,r,n){var i=[e.factory.createToken(93)];switch(r.kind){case 211:{var a=r.name;if(a&&a.text!==t){return exportConst()}}case 212:return functionExpressionToDeclaration(t,i,r,n);case 224:return classExpressionToDeclaration(t,i,r,n);default:return exportConst()}function exportConst(){return makeConst(i,e.factory.createIdentifier(t),replaceImportUseSites(r,n))}}function replaceImportUseSites(t,r){if(!r||!e.some(e.arrayFrom(r.keys()),function(r){return e.rangeContainsRange(t,r)})){return t}return e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,true,replaceNode):e.getSynthesizedDeepCloneWithReplacements(t,true,replaceNode);function replaceNode(e){if(e.kind===204){var t=r.get(e);r.delete(e);return t}}}function convertSingleImport(r,n,i,a,s,o){switch(r.kind){case 199:{var c=e.mapAllOrFail(r.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?undefined:makeImportSpecifier(t.propertyName&&t.propertyName.text,t.name.text)});if(c){return convertedImports([e.makeImport(undefined,c,n,o)])}}case 200:{var u=makeUniqueName(t.moduleSpecifierToValidIdentifier(n.text,s),a);return convertedImports([e.makeImport(e.factory.createIdentifier(u),undefined,n,o),makeConst(undefined,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))])}case 79:return convertSingleIdentifierImport(r,n,i,a,o);default:return e.Debug.assertNever(r,"Convert to ES6 module got invalid name kind "+r.kind)}}function convertSingleIdentifierImport(t,r,n,i,a){var s=n.getSymbolAtLocation(t);var o=new e.Map;var c=false;var u;for(var l=0,p=i.original.get(t.text);l=e.ModuleKind.ES2015){return i?1:2}if(a){return e.isExternalModule(t)||n?i?1:2:3}for(var s=0,o=t.statements;s");return[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}else{t.replaceNode(r,o,e.factory.createToken(85));t.insertText(r,c.end," = ");t.insertText(r,u.pos," =>");return[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixIncorrectNamedTupleSyntax";var n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span;var s=getNamedTupleMember(i,a.start);var o=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,s)});return[t.createCodeFixAction(r,o,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]});function getNamedTupleMember(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,function(e){return e.kind===195})}function doChange(t,r,n){if(!n){return}var i=n.type;var a=false;var s=false;while(i.kind===183||i.kind===184||i.kind===189){if(i.kind===183){a=true}else if(i.kind===184){s=true}i=i.type}var o=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(s?e.factory.createToken(25):undefined),n.name,n.questionToken||(a?e.factory.createToken(57):undefined),i);if(o===n){return}t.replaceNode(r,n,o)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixSpelling";var n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.errorCode;var s=getInfo(i,n.span.start,n,a);if(!s)return undefined;var o=s.node,c=s.suggestedSymbol;var u=n.host.getCompilationSettings().target;var l=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o,c,u)});return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,e.symbolName(c)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=getInfo(r.file,r.start,e,r.code);var i=e.host.getCompilationSettings().target;if(n)doChange(t,e.sourceFile,n.node,n.suggestedSymbol,i)})}});function getInfo(t,r,n,i){var a=e.getTokenAtPosition(t,r);var s=a.parent;if((i===e.Diagnostics.No_overload_matches_this_call.code||i===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(s))return undefined;var o=n.program.getTypeChecker();var c;if(e.isPropertyAccessExpression(s)&&s.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var u=o.getTypeAtLocation(s.expression);if(s.flags&32){u=o.getNonNullableType(u)}c=o.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(s)&&s.right===a){var l=o.getSymbolAtLocation(s.left);if(l&&l.flags&1536){c=o.getSuggestedSymbolForNonexistentModule(s.right,l)}}else if(e.isImportSpecifier(s)&&s.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=e.findAncestor(a,e.isImportDeclaration);var d=getResolvedSourceFileFromImportDeclaration(t,n,p);if(d&&d.symbol){c=o.getSuggestedSymbolForNonexistentModule(a,d.symbol)}}else if(e.isJsxAttribute(s)&&s.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var f=e.findAncestor(a,e.isJsxOpeningLikeElement);var m=o.getContextualTypeForArgumentAtIndex(f,0);c=o.getSuggestedSymbolForNonexistentJSXAttribute(a,m)}else if(e.hasSyntacticModifier(s,16384)&&e.isClassElement(s)&&s.name===a){var g=e.findAncestor(a,e.isClassLike);var _=g?e.getEffectiveBaseTypeNode(g):undefined;var h=_?o.getTypeAtLocation(_):undefined;if(h){c=o.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),h)}}else{var y=e.getMeaningFromLocation(a);var v=e.getTextOfNode(a);e.Debug.assert(v!==undefined,"name should be defined");c=o.getSuggestedSymbolForNonexistentSymbol(a,v,convertSemanticMeaningToSymbolFlags(y))}return c===undefined?undefined:{node:a,suggestedSymbol:c}}function doChange(t,r,n,i,a){var s=e.symbolName(i);if(!e.isIdentifierText(s,a)&&e.isPropertyAccessExpression(n.parent)){var o=i.valueDeclaration;if(o&&e.isNamedDeclaration(o)&&e.isPrivateIdentifier(o.name)){t.replaceNode(r,n,e.factory.createIdentifier(s))}else{t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(s)))}}else{t.replaceNode(r,n,e.factory.createIdentifier(s))}}function convertSemanticMeaningToSymbolFlags(e){var t=0;if(e&4){t|=1920}if(e&2){t|=788968}if(e&1){t|=111551}return t}function getResolvedSourceFileFromImportDeclaration(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return undefined;var i=e.getResolvedModule(t,n.moduleSpecifier.text);if(!i)return undefined;return r.program.getSourceFile(i.resolvedFileName)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="returnValueCorrect";var n="fixAddReturnStatement";var i="fixRemoveBracesFromArrowFunctionBody";var a="fixWrapTheBlockWithParen";var s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];var o;(function(e){e[e["MissingReturnStatement"]=0]="MissingReturnStatement";e[e["MissingParentheses"]=1]="MissingParentheses"})(o||(o={}));t.registerCodeFix({errorCodes:s,fixIds:[n,i,a],getCodeActions:function(t){var r=t.program,n=t.sourceFile,i=t.span.start,a=t.errorCode;var s=getInfo(r.getTypeChecker(),n,i,a);if(!s)return undefined;if(s.kind===o.MissingReturnStatement){return e.append([getActionForfixAddReturnStatement(t,s.expression,s.statement)],e.isArrowFunction(s.declaration)?getActionForFixRemoveBracesFromArrowFunctionBody(t,s.declaration,s.expression,s.commentSource):undefined)}else{return[getActionForfixWrapTheBlockWithParen(t,s.declaration,s.expression)]}},getAllCodeActions:function(r){return t.codeFixAll(r,s,function(t,s){var o=getInfo(r.program.getTypeChecker(),s.file,s.start,s.code);if(!o)return undefined;switch(r.fixId){case n:addReturnStatement(t,s.file,o.expression,o.statement);break;case i:if(!e.isArrowFunction(o.declaration))return undefined;removeBlockBodyBrace(t,s.file,o.declaration,o.expression,o.commentSource,false);break;case a:if(!e.isArrowFunction(o.declaration))return undefined;wrapBlockWithParen(t,s.file,o.declaration,o.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}});function createObjectTypeFromLabeledExpression(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(undefined,a,[],[],[])}function getFixInfo(t,r,n,i){if(!r.body||!e.isBlock(r.body)||e.length(r.body.statements)!==1)return undefined;var a=e.first(r.body.statements);if(e.isExpressionStatement(a)&&checkFixedAssignableTo(t,r,t.getTypeAtLocation(a.expression),n,i)){return{declaration:r,kind:o.MissingReturnStatement,expression:a.expression,statement:a,commentSource:a.expression}}else if(e.isLabeledStatement(a)&&e.isExpressionStatement(a.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(a.label,a.statement.expression)]);var c=createObjectTypeFromLabeledExpression(t,a.label,a.statement.expression);if(checkFixedAssignableTo(t,r,c,n,i)){return e.isArrowFunction(r)?{declaration:r,kind:o.MissingParentheses,expression:s,statement:a,commentSource:a.statement.expression}:{declaration:r,kind:o.MissingReturnStatement,expression:s,statement:a,commentSource:a.statement.expression}}}else if(e.isBlock(a)&&e.length(a.statements)===1){var u=e.first(a.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);var c=createObjectTypeFromLabeledExpression(t,u.label,u.statement.expression);if(checkFixedAssignableTo(t,r,c,n,i)){return{declaration:r,kind:o.MissingReturnStatement,expression:s,statement:a,commentSource:u}}}}return undefined}function checkFixedAssignableTo(t,r,n,i,a){if(a){var s=t.getSignatureFromDeclaration(r);if(s){if(e.hasSyntacticModifier(r,256)){n=t.createPromiseType(n)}var o=t.createSignature(r,s.typeParameters,s.thisParameter,s.parameters,n,undefined,s.minArgumentCount,s.flags);n=t.createAnonymousType(undefined,e.createSymbolTable(),[o],[],[])}else{n=t.getAnyType()}}return t.isTypeAssignableTo(n,i)}function getInfo(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(!a.parent)return undefined;var s=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!s||!s.body||!s.type||!e.rangeContainsRange(s.type,a))return undefined;return getFixInfo(t,s,t.getTypeFromTypeNode(s.type),false);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!e.isCallExpression(s.parent)||!s.body)return undefined;var o=s.parent.arguments.indexOf(s);var c=t.getContextualTypeForArgumentAtIndex(s.parent,o);if(!c)return undefined;return getFixInfo(t,s,c,true);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return undefined;var u=getVariableLikeInitializer(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return undefined;return getFixInfo(t,u,t.getTypeAtLocation(a.parent),true)}return undefined}function getVariableLikeInitializer(t){switch(t.kind){case 252:case 162:case 201:case 165:case 291:return t.initializer;case 283:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:undefined);case 292:case 164:case 294:case 342:case 335:return undefined}}function addReturnStatement(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":undefined})}function removeBlockBodyBrace(t,r,n,i,a,s){var o=s||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a);e.copyComments(a,o);t.replaceNode(r,n.body,o)}function wrapBlockWithParen(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function getActionForfixAddReturnStatement(i,a,s){var o=e.textChanges.ChangeTracker.with(i,function(e){return addReturnStatement(e,i.sourceFile,a,s)});return t.createCodeFixAction(r,o,e.Diagnostics.Add_a_return_statement,n,e.Diagnostics.Add_all_missing_return_statement)}function getActionForFixRemoveBracesFromArrowFunctionBody(n,a,s,o){var c=e.textChanges.ChangeTracker.with(n,function(e){return removeBlockBodyBrace(e,n.sourceFile,a,s,o,false)});return t.createCodeFixAction(r,c,e.Diagnostics.Remove_braces_from_arrow_function_body,i,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function getActionForfixWrapTheBlockWithParen(n,i,s){var o=e.textChanges.ChangeTracker.with(n,function(e){return wrapBlockWithParen(e,n.sourceFile,i,s)});return t.createCodeFixAction(r,o,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,a,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixMissingMember";var i="fixMissingProperties";var a="fixMissingAttributes";var s="fixMissingFunctionDeclaration";var o=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Cannot_find_name_0.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(n){var o=n.program.getTypeChecker();var c=getInfo(n.sourceFile,n.span.start,o,n.program);if(!c){return undefined}if(c.kind===3){var u=e.textChanges.ChangeTracker.with(n,function(e){return addObjectLiteralProperties(e,n,c)});return[t.createCodeFixAction(i,u,e.Diagnostics.Add_missing_properties,i,e.Diagnostics.Add_all_missing_properties)]}if(c.kind===4){var u=e.textChanges.ChangeTracker.with(n,function(e){return addJsxAttributes(e,n,c)});return[t.createCodeFixAction(a,u,e.Diagnostics.Add_missing_attributes,a,e.Diagnostics.Add_all_missing_attributes)]}if(c.kind===2){var u=e.textChanges.ChangeTracker.with(n,function(e){return addFunctionDeclaration(e,n,c)});return[t.createCodeFixAction(s,u,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],s,e.Diagnostics.Add_all_missing_function_declarations)]}if(c.kind===0){var u=e.textChanges.ChangeTracker.with(n,function(e){return addEnumMemberDeclaration(e,n.program.getTypeChecker(),c)});return[t.createCodeFixAction(r,u,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],r,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(getActionsForMissingMethodDeclaration(n,c),getActionsForMissingMemberDeclaration(n,c))},fixIds:[r,s,i,a],getAllCodeActions:function(r){var n=r.program,c=r.fixId;var u=n.getTypeChecker();var l=new e.Map;var p=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,function(d){t.eachDiagnostic(r,o,function(t){var n=getInfo(t.file,t.start,u,r.program);if(!n||!e.addToSeen(l,e.getNodeId(n.parentDeclaration)+"#"+n.token.text)){return}if(c===s&&n.kind===2){addFunctionDeclaration(d,r,n)}else if(c===i&&n.kind===3){addObjectLiteralProperties(d,r,n)}else if(c===a&&n.kind===4){addJsxAttributes(d,r,n)}else{if(n.kind===0){addEnumMemberDeclaration(d,u,n)}if(n.kind===1){var o=n.parentDeclaration,f=n.token;var m=e.getOrUpdate(p,o,function(){return[]});if(!m.some(function(e){return e.token.text===f.text})){m.push(n)}}}});p.forEach(function(i,a){var s=t.getAllSupers(a,u);var o=function(t){if(s.some(function(e){var r=p.get(e);return!!r&&r.some(function(e){var r=e.token;return r.text===t.token.text})}))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,o=t.modifierFlags,c=t.token,u=t.call,l=t.isJSFile;if(u&&!e.isPrivateIdentifier(c)){addMethodDeclaration(r,d,u,c,o&32,i,a)}else{if(l&&!e.isInterfaceDeclaration(i)){addMissingMemberInJs(d,a,i,c,!!(o&32))}else{var f=getTypeNode(n.getTypeChecker(),i,c);addPropertyDeclaration(d,a,i,c.text,f,o&32)}}};for(var c=0,l=i;c=e.ModuleKind.ES2015&&s99;if(l){var c=e.textChanges.ChangeTracker.with(r,function(r){var n=e.getTsConfigObjectLiteralExpression(i);if(!n)return;var a=[["target",e.factory.createStringLiteral("es2017")]];if(s===e.ModuleKind.CommonJS){a.push(["module",e.factory.createStringLiteral("commonjs")])}t.setJsonCompilerOptionValues(r,i,a)});a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",c,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:undefined}})})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixPropertyAssignment";var n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var i=n.sourceFile,a=n.span;var s=getProperty(i,a.start);var o=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,s)});return[t.createCodeFixAction(r,o,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return doChange(e,t.file,getProperty(t.file,t.start))})}});function doChange(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function getProperty(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="extendsInterfaceBecomesImplements";var n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile;var a=getNodes(i,n.span.start);if(!a)return undefined;var s=a.extendsToken,o=a.heritageClauses;var c=e.textChanges.ChangeTracker.with(n,function(e){return doChanges(e,i,s,o)});return[t.createCodeFixAction(r,c,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=getNodes(t.file,t.start);if(r)doChanges(e,t.file,r.extendsToken,r.heritageClauses)})}});function getNodes(t,r){var n=e.getTokenAtPosition(t,r);var i=e.getContainingClass(n).heritageClauses;var a=i[0].getFirstToken();return a.kind===94?{extendsToken:a,heritageClauses:i}:undefined}function doChanges(t,r,n,i){t.replaceNode(r,n,e.factory.createToken(117));if(i.length===2&&i[0].token===94&&i[1].token===117){var a=i[1].getFirstToken();var s=a.getFullStart();t.replaceRange(r,{pos:s,end:s},e.factory.createToken(27));var o=r.text;var c=a.end;while(c":">","}":"}"};function isValidCharacter(t){return e.hasProperty(a,t)}function doChange(t,r,n,i,s){var o=n.getText()[i];if(!isValidCharacter(o)){return}var c=s?a[o]:"{"+e.quote(n,r,o)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="unusedIdentifier";var n="unusedIdentifier_prefix";var i="unusedIdentifier_delete";var a="unusedIdentifier_deleteImports";var s="unusedIdentifier_infer";var o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,c=i.sourceFile,u=i.program,l=i.cancellationToken;var p=u.getTypeChecker();var d=u.getSourceFiles();var f=e.getTokenAtPosition(c,i.span.start);if(e.isJSDocTemplateTag(f)){return[createDeleteFix(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(c,f)}),e.Diagnostics.Remove_template_tag)]}if(f.kind===29){var m=e.textChanges.ChangeTracker.with(i,function(e){return deleteTypeParameters(e,c,f)});return[createDeleteFix(m,e.Diagnostics.Remove_type_parameters)]}var g=tryGetFullImport(f);if(g){var m=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(c,g)});return[t.createCodeFixAction(r,m,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(g)],a,e.Diagnostics.Delete_all_unused_imports)]}else if(isImport(f)){var _=e.textChanges.ChangeTracker.with(i,function(e){return tryDeleteDeclaration(c,f,e,p,d,u,l,false)});if(_.length){return[t.createCodeFixAction(r,_,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,f.getText(c)],a,e.Diagnostics.Delete_all_unused_imports)]}}if(e.isObjectBindingPattern(f.parent)||e.isArrayBindingPattern(f.parent)){if(e.isParameter(f.parent.parent)){var h=f.parent.elements;var y=[h.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(h,function(e){return e.getText(c)}).join(", ")];return[createDeleteFix(e.textChanges.ChangeTracker.with(i,function(e){return deleteDestructuringElements(e,c,f.parent)}),y)]}return[createDeleteFix(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(c,f.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(canDeleteEntireVariableStatement(c,f)){return[createDeleteFix(e.textChanges.ChangeTracker.with(i,function(e){return deleteEntireVariableStatement(e,c,f.parent)}),e.Diagnostics.Remove_variable_statement)]}var v=[];if(f.kind===136){var m=e.textChanges.ChangeTracker.with(i,function(e){return changeInferToUnknown(e,c,f)});var T=e.cast(f.parent,e.isInferTypeNode).typeParameter.name.text;v.push(t.createCodeFixAction(r,m,[e.Diagnostics.Replace_infer_0_with_unknown,T],s,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var _=e.textChanges.ChangeTracker.with(i,function(e){return tryDeleteDeclaration(c,f,e,p,d,u,l,false)});if(_.length){var T=e.isComputedPropertyName(f.parent)?f.parent:f;v.push(createDeleteFix(_,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(c)]))}}var S=e.textChanges.ChangeTracker.with(i,function(e){return tryPrefixDeclaration(e,o,c,f)});if(S.length){v.push(t.createCodeFixAction(r,S,[e.Diagnostics.Prefix_0_with_an_underscore,f.getText(c)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible))}return v},fixIds:[n,i,a,s],getAllCodeActions:function(r){var c=r.sourceFile,u=r.program,l=r.cancellationToken;var p=u.getTypeChecker();var d=u.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var f=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:tryPrefixDeclaration(t,o.code,c,f);break;case a:{var m=tryGetFullImport(f);if(m){t.delete(c,m)}else if(isImport(f)){tryDeleteDeclaration(c,f,t,p,d,u,l,true)}break}case i:{if(f.kind===136||isImport(f)){break}else if(e.isJSDocTemplateTag(f)){t.delete(c,f)}else if(f.kind===29){deleteTypeParameters(t,c,f)}else if(e.isObjectBindingPattern(f.parent)){if(f.parent.parent.initializer){break}else if(!e.isParameter(f.parent.parent)||isNotProvidedArguments(f.parent.parent,p,d)){t.delete(c,f.parent.parent)}}else if(e.isArrayBindingPattern(f.parent.parent)&&f.parent.parent.parent.initializer){break}else if(canDeleteEntireVariableStatement(c,f)){deleteEntireVariableStatement(t,c,f.parent)}else{tryDeleteDeclaration(c,f,t,p,d,u,l,true)}break}case s:if(f.kind===136){changeInferToUnknown(t,c,f)}break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}});function changeInferToUnknown(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(153))}function createDeleteFix(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function deleteTypeParameters(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function isImport(e){return e.kind===100||e.kind===79&&(e.parent.kind===268||e.parent.kind===265)}function tryGetFullImport(t){return t.kind===100?e.tryCast(t.parent,e.isImportDeclaration):undefined}function canDeleteEntireVariableStatement(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function deleteEntireVariableStatement(e,t,r){e.delete(t,r.parent.kind===235?r.parent:r)}function deleteDestructuringElements(t,r,n){e.forEach(n.elements,function(e){return t.delete(r,e)})}function tryPrefixDeclaration(t,r,n,i){if(r===e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)return;if(i.kind===136){i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name}if(e.isIdentifier(i)&&canPrefix(i)){t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text));if(e.isParameter(i.parent)){e.getJSDocParameterTags(i.parent).forEach(function(r){if(e.isIdentifier(r.name)){t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))}})}}}function canPrefix(e){switch(e.parent.kind){case 162:case 161:return true;case 252:{var t=e.parent;switch(t.parent.parent.kind){case 242:case 241:return true}}}return false}function tryDeleteDeclaration(t,r,n,i,a,s,o,c){tryDeleteDeclarationWorker(r,n,t,i,a,s,o,c);if(e.isIdentifier(r)){e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,function(r){if(e.isPropertyAccessExpression(r.parent)&&r.parent.name===r)r=r.parent;if(!c&&mayDeleteExpression(r)){n.delete(t,r.parent.parent)}})}}function tryDeleteDeclarationWorker(t,r,n,i,a,s,o,c){var u=t.parent;if(e.isParameter(u)){tryDeleteParameter(r,n,u,i,a,s,o,c)}else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var l=e.isImportClause(u)?t:e.isComputedPropertyName(u)?u.parent:u;e.Debug.assert(l!==n,"should not delete whole source file");r.delete(n,l)}}function tryDeleteParameter(t,r,n,i,a,s,o,c){if(c===void 0){c=false}if(mayDeleteParameter(i,r,n,a,s,o,c)){if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))){n.modifiers.forEach(function(e){return t.deleteModifier(r,e)})}else if(!n.initializer&&isNotProvidedArguments(n,i,a)){t.delete(r,n)}}}function isNotProvidedArguments(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,function(e,t){return!t||t.arguments.length>i})}function mayDeleteParameter(t,r,n,i,a,s,o){var c=n.parent;switch(c.kind){case 167:case 169:var u=c.parameters.indexOf(n);var l=e.isMethodDeclaration(c)?c.name:c;var p=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,l,a,i,s);if(p){for(var d=0,f=p;du;var v=e.isPropertyAccessExpression(h.node.parent)&&e.isSuperKeyword(h.node.parent.expression)&&e.isCallExpression(h.node.parent.parent)&&h.node.parent.parent.arguments.length>u;var T=(e.isMethodDeclaration(h.node.parent)||e.isMethodSignature(h.node.parent))&&h.node.parent!==n.parent&&h.node.parent.parameters.length>u;if(y||v||T)return false}}}}return true;case 254:{if(c.name&&isCallbackLike(t,r,c.name)){return isLastParameter(c,n,o)}return true}case 211:case 212:return isLastParameter(c,n,o);case 171:return false;default:return e.Debug.failBadSyntaxKind(c)}}function isCallbackLike(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0})}function isLastParameter(t,r,n){var i=t.parameters;var a=i.indexOf(r);e.Debug.assert(a!==-1,"The parameter should already be in the list");return n?i.slice(a+1).every(function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced}):a===i.length-1}function mayDeleteExpression(t){return(e.isBinaryExpression(t.parent)&&t.parent.left===t||(e.isPostfixUnaryExpression(t.parent)||e.isPrefixUnaryExpression(t.parent))&&t.parent.operand===t)&&e.isExpressionStatement(t.parent.parent)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixUnreachableCode";var n=[e.Diagnostics.Unreachable_code_detected.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)});return[t.createCodeFixAction(r,i,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return doChange(e,t.file,t.start,t.length,t.code)})}});function doChange(t,r,n,i,a){var s=e.getTokenAtPosition(r,n);var o=e.findAncestor(s,e.isStatement);if(o.getStart(r)!==s.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(o.kind),tokenKind:e.Debug.formatSyntaxKind(s.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements)){switch(u.kind){case 237:if(u.elseStatement){if(e.isBlock(o.parent)){break}else{t.replaceNode(r,o,e.factory.createBlock(e.emptyArray))}return}case 239:case 240:t.delete(r,u);return}}if(e.isBlock(o.parent)){var l=n+i;var p=e.Debug.checkDefined(lastWhere(e.sliceAfter(o.parent.statements,o),function(e){return e.posN.length){var O=u.getSignatureFromDeclaration(c[c.length-1]);outputMethod(y,O,m,d,createStubbedMethodBody(y))}else{e.Debug.assert(c.length===N.length,"Declarations and signatures should match count");o(createMethodImplementingSignatures(u,i,r,N,d,_,m,y))}}break}function outputMethod(e,t,n,a,c){var u=createSignatureDeclarationFromSignature(167,i,e,t,c,a,n,_,r,s);if(u)o(u)}}function createSignatureDeclarationFromSignature(t,r,n,i,a,s,o,c,u,l){var p=r.program;var d=p.getTypeChecker();var f=e.getEmitScriptTarget(p.getCompilerOptions());var m=1|1073741824|256|(n===0?268435456:0);var g=d.signatureToSignatureDeclaration(i,t,u,m,getNoopSymbolTrackerWithResolver(r));if(!g){return undefined}var _=g.typeParameters;var h=g.parameters;var y=g.type;if(l){if(_){var v=e.sameMap(_,function(t){var r=t.constraint;var n=t.default;if(r){var i=tryGetAutoImportableReferenceFromTypeNode(r,f);if(i){r=i.typeNode;importSymbols(l,i.symbols)}}if(n){var i=tryGetAutoImportableReferenceFromTypeNode(n,f);if(i){n=i.typeNode;importSymbols(l,i.symbols)}}return e.factory.updateTypeParameterDeclaration(t,t.name,r,n)});if(_!==v){_=e.setTextRange(e.factory.createNodeArray(v,_.hasTrailingComma),_)}}var T=e.sameMap(h,function(t){var r=tryGetAutoImportableReferenceFromTypeNode(t.type,f);var n=t.type;if(r){n=r.typeNode;importSymbols(l,r.symbols)}return e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)});if(h!==T){h=e.setTextRange(e.factory.createNodeArray(T,h.hasTrailingComma),h)}if(y){var S=tryGetAutoImportableReferenceFromTypeNode(y,f);if(S){y=S.typeNode;importSymbols(l,S.symbols)}}}var b=c?e.factory.createToken(57):undefined;var E=g.asteriskToken;if(e.isFunctionExpression(g)){return e.factory.updateFunctionExpression(g,o,g.asteriskToken,e.tryCast(s,e.isIdentifier),_,h,y,a!==null&&a!==void 0?a:g.body)}if(e.isArrowFunction(g)){return e.factory.updateArrowFunction(g,o,_,h,y,g.equalsGreaterThanToken,a!==null&&a!==void 0?a:g.body)}if(e.isMethodDeclaration(g)){return e.factory.updateMethodDeclaration(g,undefined,o,E,s!==null&&s!==void 0?s:e.factory.createIdentifier(""),b,_,h,y,a)}return undefined}t.createSignatureDeclarationFromSignature=createSignatureDeclarationFromSignature;function createSignatureDeclarationFromCallExpression(t,r,n,i,a,s,o){var c=e.getQuotePreference(r.sourceFile,r.preferences);var u=e.getEmitScriptTarget(r.program.getCompilerOptions());var l=getNoopSymbolTrackerWithResolver(r);var p=r.program.getTypeChecker();var d=e.isInJSFile(o);var f=i.typeArguments,m=i.arguments,g=i.parent;var _=d?undefined:p.getContextualType(i);var h=e.map(m,function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:undefined});var y=d?[]:e.map(m,function(e){return typeToAutoImportableTypeNode(p,n,p.getBaseTypeOfLiteralType(p.getTypeAtLocation(e)),o,u,undefined,l)});var v=s?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(s)):undefined;var T=e.isYieldExpression(g)?e.factory.createToken(41):undefined;var S=d||f===undefined?undefined:e.map(f,function(t,r){return e.factory.createTypeParameterDeclaration(84+f.length-1<=90?String.fromCharCode(84+r):"T"+r)});var b=createDummyParameters(m.length,h,y,undefined,d);var E=d||_===undefined?undefined:p.typeToTypeNode(_,o,undefined,l);if(t===167){return e.factory.createMethodDeclaration(undefined,v,T,a,undefined,S,b,E,e.isInterfaceDeclaration(o)?undefined:createStubbedMethodBody(c))}return e.factory.createFunctionDeclaration(undefined,v,T,a,S,b,E,createStubbedBody(e.Diagnostics.Function_not_implemented.message,c))}t.createSignatureDeclarationFromCallExpression=createSignatureDeclarationFromCallExpression;function typeToAutoImportableTypeNode(t,r,n,i,a,s,o){var c=t.typeToTypeNode(n,i,s,o);if(c&&e.isImportTypeNode(c)){var u=tryGetAutoImportableReferenceFromTypeNode(c,a);if(u){importSymbols(r,u.symbols);c=u.typeNode}}return e.getSynthesizedDeepClone(c)}t.typeToAutoImportableTypeNode=typeToAutoImportableTypeNode;function createDummyParameters(t,r,n,i,a){var s=[];for(var o=0;o=i?e.factory.createToken(57):undefined,a?undefined:n&&n[o]||e.factory.createKeywordTypeNode(129),undefined);s.push(c)}return s}function createMethodImplementingSignatures(t,r,n,i,a,s,o,c){var u=i[0];var l=i[0].minArgumentCount;var p=false;for(var d=0,f=i;d=u.parameters.length&&(!e.signatureHasRestParameter(m)||e.signatureHasRestParameter(u))){u=m}}var g=u.parameters.length-(e.signatureHasRestParameter(u)?1:0);var _=u.parameters.map(function(e){return e.name});var h=createDummyParameters(g,_,undefined,l,false);if(p){var y=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129));var v=e.factory.createParameterDeclaration(undefined,undefined,e.factory.createToken(25),_[g]||"rest",g>=l?e.factory.createToken(57):undefined,y,undefined);h.push(v)}return createStubbedMethod(o,a,s,undefined,h,getReturnTypeFromSignatures(i,t,r,n),c)}function getReturnTypeFromSignatures(t,r,n,i){if(e.length(t)){var a=r.getUnionType(e.map(t,r.getReturnTypeOfSignature));return r.typeToTypeNode(a,i,undefined,getNoopSymbolTrackerWithResolver(n))}}function createStubbedMethod(t,r,n,i,a,s,o){return e.factory.createMethodDeclaration(undefined,t,undefined,r,n?e.factory.createToken(57):undefined,i,a,s,createStubbedMethodBody(o))}function createStubbedMethodBody(t){return createStubbedBody(e.Diagnostics.Method_not_implemented.message,t)}function createStubbedBody(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),undefined,[e.factory.createStringLiteral(t,r===0)]))],true)}t.createStubbedBody=createStubbedBody;function createVisibilityModifier(t){if(t&4){return e.factory.createToken(123)}else if(t&16){return e.factory.createToken(122)}return undefined}function setJsonCompilerOptionValues(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(!i)return undefined;var a=findJsonProperty(i,"compilerOptions");if(a===undefined){t.insertNodeAtObjectStart(r,i,createJsonPropertyAssignment("compilerOptions",e.factory.createObjectLiteralExpression(n.map(function(e){var t=e[0],r=e[1];return createJsonPropertyAssignment(t,r)}),true)));return}var s=a.initializer;if(!e.isObjectLiteralExpression(s)){return}for(var o=0,c=n;o0){return[t.createCodeFixAction(r,i,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t)})}});function makeChange(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(!i){return}var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixAddModuleReferTypeMissingTypeof";var n=r;var i=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,a=r.span;var s=getImportTypeNode(i,a.start);var o=e.textChanges.ChangeTracker.with(r,function(e){return doChange(e,i,s)});return[t.createCodeFixAction(n,o,e.Diagnostics.Add_missing_typeof,n,e.Diagnostics.Add_missing_typeof)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){return doChange(t,e.sourceFile,getImportTypeNode(r.file,r.start))})}});function getImportTypeNode(t,r){var n=e.getTokenAtPosition(t,r);e.Debug.assert(n.kind===100,"This token should be an ImportKeyword");e.Debug.assert(n.parent.kind===198,"Token parent should be an ImportType");return n.parent}function doChange(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,true);t.replaceNode(r,n,i)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="wrapJsxInFragment";var n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span;var s=findNodeToFix(i,a.start);if(!s)return undefined;var o=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,s)});return[t.createCodeFixAction(r,o,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=findNodeToFix(e.sourceFile,r.start);if(!n)return undefined;doChange(t,e.sourceFile,n)})}});function findNodeToFix(t,r){var n=e.getTokenAtPosition(t,r);var i=n.parent;var a=i.parent;if(!e.isBinaryExpression(a)){a=a.parent;if(!e.isBinaryExpression(a))return undefined}if(!e.nodeIsMissing(a.operatorToken))return undefined;return a}function doChange(t,r,n){var i=flattenInvalidBinaryExpr(n);if(i)t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}function flattenInvalidBinaryExpr(t){var r=[];var n=t;while(true){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&n.operatorToken.kind===27){r.push(n.left);if(e.isJsxChild(n.right)){r.push(n.right);return r}else if(e.isBinaryExpression(n.right)){n=n.right;continue}else return undefined}else return undefined}}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixConvertToMappedObjectType";var i=r;var a=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];t.registerCodeFix({errorCodes:a,getCodeActions:function(r){var n=r.sourceFile,a=r.span;var s=getInfo(n,a.start);if(!s)return undefined;var o=e.textChanges.ChangeTracker.with(r,function(e){return doChange(e,n,s)});var c=e.idText(s.container.name);return[t.createCodeFixAction(i,o,[e.Diagnostics.Convert_0_to_mapped_object_type,c],i,[e.Diagnostics.Convert_0_to_mapped_object_type,c])]},fixIds:[i],getAllCodeActions:function(e){return t.codeFixAll(e,a,function(e,t){var r=getInfo(t.file,t.start);if(r)doChange(e,t.file,r)})}});function getInfo(t,r){var n=e.getTokenAtPosition(t,r);var i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(e.isClassDeclaration(i.parent))return undefined;var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:i,container:a}}function createTypeAliasFromInterface(t,r){return e.factory.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}function doChange(t,r,i){var a=i.indexSignature,s=i.container;var o=e.isInterfaceDeclaration(s)?s.members:s.type.members;var c=o.filter(function(t){return!e.isIndexSignatureDeclaration(t)});var u=e.first(a.parameters);var l=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type);var p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(a)?e.factory.createModifier(143):undefined,l,undefined,a.questionToken,a.type);var d=e.factory.createIntersectionTypeNode(n(n(n([],e.getAllSuperTypeNodes(s),true),[p],false),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray,true));t.replaceNode(r,s,createTypeAliasFromInterface(s,d))}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="removeAccidentalCallParentheses";var n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(!i){return undefined}var a=e.textChanges.ChangeTracker.with(n,function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})});return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]},fixIds:[r]})})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="removeUnnecessaryAwait";var n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.textChanges.ChangeTracker.with(n,function(e){return makeChange(e,n.sourceFile,n.span)});if(i.length>0){return[t.createCodeFixAction(r,i,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return makeChange(e,t.file,t)})}});function makeChange(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),function(e){return e.kind===131});var a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(!a){return}var s=a;var o=e.isParenthesizedExpression(a.parent);if(o){var c=e.getLeftmostExpression(a.expression,false);if(e.isIdentifier(c)){var u=e.findPrecedingToken(a.parent.pos,r);if(u&&u.kind!==103){s=a.parent}}}t.replaceNode(r,s,a.expression)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code];var n="splitTypeOnlyImport";t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,function(e){return splitTypeOnlyImport(e,getImportDeclaration(r.sourceFile,r.span),r)});if(i.length){return[t.createCodeFixAction(n,i,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]}},getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,r){splitTypeOnlyImport(t,getImportDeclaration(e.sourceFile,r),e)})}});function getImportDeclaration(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function splitTypeOnlyImport(t,r,n){if(!r){return}var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,undefined),r.moduleSpecifier));t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(undefined,undefined,e.factory.updateImportClause(i,i.isTypeOnly,undefined,i.namedBindings),r.moduleSpecifier))}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixConvertConstToLet";var n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,s=n.program;var o=getConstTokenRange(i,a.start,s);if(o===undefined)return;var c=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,o)});return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]},fixIds:[r]});function getConstTokenRange(t,r,n){var i;var a=n.getTypeChecker();var s=a.getSymbolAtLocation(e.getTokenAtPosition(t,r));var o=e.tryCast((i=s===null||s===void 0?void 0:s.valueDeclaration)===null||i===void 0?void 0:i.parent,e.isVariableDeclarationList);if(o===undefined)return;var c=e.findChildOfKind(o,85,t);if(c===undefined)return;return e.createRange(c.pos,c.end)}function doChange(e,t,r){e.replaceRangeWithText(t,r,"let")}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="fixExpectedComma";var n=e.Diagnostics._0_expected.code;var i=[n];t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile;var a=getInfo(i,n.span.start,n.errorCode);if(!a){return undefined}var s=e.textChanges.ChangeTracker.with(n,function(e){return doChange(e,i,a)});return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){var n=getInfo(r.file,r.start,r.code);if(n)doChange(t,e.sourceFile,n)})}});function getInfo(t,r,n){var i=e.getTokenAtPosition(t,r);return i.kind===26&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:undefined}function doChange(t,r,n){var i=n.node;var a=e.factory.createToken(27);t.replaceNode(r,i,a)}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="addVoidToPromise";var n="addVoidToPromise";var i=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];t.registerCodeFix({errorCodes:i,fixIds:[n],getCodeActions:function(i){var a=e.textChanges.ChangeTracker.with(i,function(e){return makeChange(e,i.sourceFile,i.span,i.program)});if(a.length>0){return[t.createCodeFixAction(r,a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,n,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]}},getAllCodeActions:function(r){return t.codeFixAll(r,i,function(t,n){return makeChange(t,n.file,n,r.program,new e.Set)})}});function makeChange(t,r,n,i,a){var s=e.getTokenAtPosition(r,n.start);if(!e.isIdentifier(s)||!e.isCallExpression(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;var o=i.getTypeChecker();var c=o.getSymbolAtLocation(s);var u=c===null||c===void 0?void 0:c.valueDeclaration;if(!u||!e.isParameter(u)||!e.isNewExpression(u.parent.parent))return;if(a===null||a===void 0?void 0:a.has(u))return;a===null||a===void 0?void 0:a.add(u);var l=getEffectiveTypeArguments(u.parent.parent);if(e.some(l)){var p=l[0];var d=!e.isUnionTypeNode(p)&&!e.isParenthesizedTypeNode(p)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([p,e.factory.createKeywordTypeNode(114)]).types[0]);if(d){t.insertText(r,p.pos,"(")}t.insertText(r,p.end,d?") | void":" | void")}else{var f=o.getResolvedSignature(s.parent);var m=f===null||f===void 0?void 0:f.parameters[0];var g=m&&o.getTypeOfSymbolAtLocation(m,u.parent.parent);if(e.isInJSFile(u)){if(!g||g.flags&3){t.insertText(r,u.parent.parent.end,")");t.insertText(r,e.skipTrivia(r.text,u.parent.parent.pos),"/** @type {Promise} */(")}}else{if(!g||g.flags&2){t.insertText(r,u.parent.parent.expression.end,"")}}}}function getEffectiveTypeArguments(t){var r;if(e.isInJSFile(t)){if(e.isParenthesizedExpression(t.parent)){var n=(r=e.getJSDocTypeTag(t.parent))===null||r===void 0?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&e.idText(n.typeName)==="Promise"){return n.typeArguments}}}else{return t.typeArguments}}})(t=e.codefix||(e.codefix={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="Convert export";var n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"};var a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};t.registerRefactor(r,{kinds:[n.kind,a.kind],getAvailableActions:function(s){var o=getInfo(s,s.triggerReason==="invoked");if(!o)return e.emptyArray;if(!t.isRefactorErrorInfo(o)){var c=o.wasDefault?n:a;return[{name:r,description:c.description,actions:[c]}]}if(s.preferences.provideRefactorNotApplicableReason){return[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[i(i({},n),{notApplicableReason:o.error}),i(i({},a),{notApplicableReason:o.error})]}]}return e.emptyArray},getEditsForAction:function(r,i){e.Debug.assert(i===n.name||i===a.name,"Unexpected action name");var s=getInfo(r);e.Debug.assert(s&&!t.isRefactorErrorInfo(s),"Expected applicable refactor info");var o=e.textChanges.ChangeTracker.with(r,function(e){return doChange(r.file,r.program,s,e,r.cancellationToken)});return{edits:o,renameFilename:undefined,renameLocation:undefined}}});function getInfo(t,r){if(r===void 0){r=true}var n=t.file,i=t.program;var a=e.getRefactorContextSpan(t);var s=e.getTokenAtPosition(n,a.start);var o=!!(s.parent&&e.getSyntacticModifierFlags(s.parent)&1)&&r?s.parent:e.getParentNodeInSpan(s,n,a);if(!o||!e.isSourceFile(o.parent)&&!(e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent))){return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)}}var c=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol;var u=e.getSyntacticModifierFlags(o)||(e.isExportAssignment(o)&&!o.isExportEquals?513:0);var l=!!(u&512);if(!(u&1)||!l&&c.exports.has("default")){return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)}}var p=i.getTypeChecker();var d=function(t){return e.isIdentifier(t)&&p.getSymbolAtLocation(t)?undefined:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(o.kind){case 254:case 255:case 256:case 258:case 257:case 259:{var f=o;if(!f.name)return undefined;return d(f.name)||{exportNode:f,exportName:f.name,wasDefault:l,exportingModuleSymbol:c}}case 235:{var m=o;if(!(m.declarationList.flags&2)||m.declarationList.declarations.length!==1){return undefined}var g=e.first(m.declarationList.declarations);if(!g.initializer)return undefined;e.Debug.assert(!l,"Can't have a default flag here");return d(g.name)||{exportNode:m,exportName:g.name,wasDefault:l,exportingModuleSymbol:c}}case 269:{var f=o;if(f.isExportEquals)return undefined;return d(f.expression)||{exportNode:f,exportName:f.expression,wasDefault:l,exportingModuleSymbol:c}}default:return undefined}}function doChange(e,t,r,n,i){changeExport(e,r,n,t.getTypeChecker());changeImports(t,r,n,i)}function changeExport(t,r,n,i){var a=r.wasDefault,s=r.exportNode,o=r.exportName;if(a){if(e.isExportAssignment(s)&&!s.isExportEquals){var c=s.expression;var u=makeExportSpecifier(c.text,c.text);n.replaceNode(t,s,e.factory.createExportDeclaration(undefined,undefined,false,e.factory.createNamedExports([u])))}else{n.delete(t,e.Debug.checkDefined(e.findModifier(s,88),"Should find a default keyword in modifier list"))}}else{var l=e.Debug.checkDefined(e.findModifier(s,93),"Should find an export keyword in modifier list");switch(s.kind){case 254:case 255:case 256:n.insertNodeAfter(t,l,e.factory.createToken(88));break;case 235:var p=e.first(s.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(o,i,t)&&!p.type){n.replaceNode(t,s,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:n.deleteModifier(t,l);n.insertNodeAfter(t,s,e.factory.createExportDefault(e.factory.createIdentifier(o.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+s.kind)}}}function changeImports(t,r,n,i){var a=r.wasDefault,s=r.exportName,o=r.exportingModuleSymbol;var c=t.getTypeChecker();var u=e.Debug.checkDefined(c.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),c,i,u,o,s.text,a,function(e){var t=e.getSourceFile();if(a){changeDefaultToNamedImport(t,e,n,s.text)}else{changeNamedToDefaultImport(t,e,n)}})}function changeDefaultToNamedImport(t,r,n,i){var a=r.parent;switch(a.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 268:case 273:{var s=a;n.replaceNode(t,s,makeImportSpecifier(i,s.name.text));break}case 265:{var o=a;e.Debug.assert(o.name===r,"Import clause name should match provided ref");var s=makeImportSpecifier(i,r.text);var c=o.namedBindings;if(!c){n.replaceNode(t,r,e.factory.createNamedImports([s]))}else if(c.kind===266){n.deleteRange(t,{pos:r.getStart(t),end:c.getStart(t)});var u=e.isStringLiteral(o.parent.moduleSpecifier)?e.quotePreferenceFromString(o.parent.moduleSpecifier,t):1;var l=e.makeImport(undefined,[makeImportSpecifier(i,r.text)],o.parent.moduleSpecifier,u);n.insertNodeAfter(t,o.parent,l)}else{n.delete(t,r);n.insertNodeAtEndOfList(t,c.elements,s)}break}default:e.Debug.failBadSyntaxKind(a)}}function changeNamedToDefaultImport(t,r,n){var i=r.parent;switch(i.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 268:{var a=e.factory.createIdentifier(i.name.text);if(i.parent.elements.length===1){n.replaceNode(t,i.parent,a)}else{n.delete(t,i);n.insertNodeBefore(t,i.parent,a)}break}case 273:{n.replaceNode(t,i,makeExportSpecifier("default",i.name.text));break}default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}function makeImportSpecifier(t,r){return e.factory.createImportSpecifier(t===r?undefined:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function makeExportSpecifier(t,r){return e.factory.createExportSpecifier(t===r?undefined:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="Convert import";var n={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"};var a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};t.registerRefactor(r,{kinds:[n.kind,a.kind],getAvailableActions:function(s){var o=getImportToConvert(s,s.triggerReason==="invoked");if(!o)return e.emptyArray;if(!t.isRefactorErrorInfo(o)){var c=o.kind===266;var u=c?n:a;return[{name:r,description:u.description,actions:[u]}]}if(s.preferences.provideRefactorNotApplicableReason){return[{name:r,description:n.description,actions:[i(i({},n),{notApplicableReason:o.error})]},{name:r,description:a.description,actions:[i(i({},a),{notApplicableReason:o.error})]}]}return e.emptyArray},getEditsForAction:function(r,i){e.Debug.assert(i===n.name||i===a.name,"Unexpected action name");var s=getImportToConvert(r);e.Debug.assert(s&&!t.isRefactorErrorInfo(s),"Expected applicable refactor info");var o=e.textChanges.ChangeTracker.with(r,function(e){return doChange(r.file,r.program,e,s)});return{edits:o,renameFilename:undefined,renameLocation:undefined}}});function getImportToConvert(t,r){if(r===void 0){r=true}var n=t.file;var i=e.getRefactorContextSpan(t);var a=e.getTokenAtPosition(n,i.start);var s=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!s||!e.isImportDeclaration(s))return{error:"Selection is not an import declaration."};if(s.getEnd()=o.pos?c.getEnd():o.getEnd());var l=s?getValidParentNodeOfEmptySpan(o):getValidParentNodeContainingSpan(o,u);var p=l&&isValidExpressionOrStatement(l)?getExpression(l):undefined;if(!p)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var d=i.getTypeChecker();return e.isConditionalExpression(p)?getConditionalInfo(p,d):getBinaryInfo(p)}function getConditionalInfo(t,r){var n=t.condition;var i=getFinalExpressionInChain(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i))){return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)}}if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&getMatchingStart(n,i.expression)){return{finalExpression:i,occurrences:[n],expression:t}}else if(e.isBinaryExpression(n)){var a=getOccurrencesInExpression(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function getBinaryInfo(t){if(t.operatorToken.kind!==55){return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)}}var r=getFinalExpressionInChain(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=getOccurrencesInExpression(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function getOccurrencesInExpression(t,r){var n=[];while(e.isBinaryExpression(r)&&r.operatorToken.kind===55){var i=getMatchingStart(e.skipParentheses(t),e.skipParentheses(r.right));if(!i){break}n.push(i);t=i;r=r.left}var a=getMatchingStart(t,r);if(a){n.push(a)}return n.length>0?n:undefined}function getMatchingStart(t,r){if(!e.isIdentifier(r)&&!e.isPropertyAccessExpression(r)&&!e.isElementAccessExpression(r)){return undefined}return chainStartsWith(t,r)?r:undefined}function chainStartsWith(t,r){while(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)){if(getTextOfChainNode(t)===getTextOfChainNode(r))break;t=t.expression}while(e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r)){if(getTextOfChainNode(t)!==getTextOfChainNode(r))return false;t=t.expression;r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}function getTextOfChainNode(t){if(e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)){return t.getText()}if(e.isPropertyAccessExpression(t)){return getTextOfChainNode(t.name)}if(e.isElementAccessExpression(t)){return getTextOfChainNode(t.argumentExpression)}return undefined}function getValidParentNodeContainingSpan(e,t){while(e.parent){if(isValidExpressionOrStatement(e)&&t.length!==0&&e.end>=t.start+t.length){return e}e=e.parent}return undefined}function getValidParentNodeOfEmptySpan(e){while(e.parent){if(isValidExpressionOrStatement(e)&&!isValidExpressionOrStatement(e.parent)){return e}e=e.parent}return undefined}function getExpression(t){if(isValidExpression(t)){return t}if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t);var n=r===null||r===void 0?void 0:r.initializer;return n&&isValidExpression(n)?n:undefined}return t.expression&&isValidExpression(t.expression)?t.expression:undefined}function getFinalExpressionInChain(t){t=e.skipParentheses(t);if(e.isBinaryExpression(t)){return getFinalExpressionInChain(t.left)}else if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)){return t}return undefined}function convertOccurrences(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=convertOccurrences(t,r.expression,n);var a=n.length>0?n[n.length-1]:undefined;var s=(a===null||a===void 0?void 0:a.getText())===r.expression.getText();if(s)n.pop();if(e.isCallExpression(r)){return s?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments)}else if(e.isPropertyAccessExpression(r)){return s?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name)}else if(e.isElementAccessExpression(r)){return s?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}}return r}function doChange(t,r,n,i,a){var s=i.finalExpression,o=i.occurrences,c=i.expression;var u=o[o.length-1];var l=convertOccurrences(r,s,o);if(l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))){if(e.isBinaryExpression(c)){n.replaceNodeRange(t,u,s,l)}else if(e.isConditionalExpression(c)){n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse))}}}})(r=t.convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r;(function(r){var n="Convert overload list to single signature";var i=e.Diagnostics.Convert_overload_list_to_single_signature.message;var a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:getEditsForAction,getAvailableActions:getAvailableActions});function getAvailableActions(t){var r=t.file,s=t.startPosition,o=t.program;var c=getConvertableOverloadListAtPosition(r,s,o);if(!c)return e.emptyArray;return[{name:n,description:i,actions:[a]}]}function getEditsForAction(t){var r=t.file,n=t.startPosition,i=t.program;var a=getConvertableOverloadListAtPosition(r,n,i);if(!a)return undefined;var s=i.getTypeChecker();var o=a[a.length-1];var c=o;switch(o.kind){case 166:{c=e.factory.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,getNewParametersForCombinedSignature(a),o.type);break}case 167:{c=e.factory.updateMethodDeclaration(o,o.decorators,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,getNewParametersForCombinedSignature(a),o.type,o.body);break}case 172:{c=e.factory.updateCallSignature(o,o.typeParameters,getNewParametersForCombinedSignature(a),o.type);break}case 169:{c=e.factory.updateConstructorDeclaration(o,o.decorators,o.modifiers,getNewParametersForCombinedSignature(a),o.body);break}case 173:{c=e.factory.updateConstructSignature(o,o.typeParameters,getNewParametersForCombinedSignature(a),o.type);break}case 254:{c=e.factory.updateFunctionDeclaration(o,o.decorators,o.modifiers,o.asteriskToken,o.name,o.typeParameters,getNewParametersForCombinedSignature(a),o.type,o.body);break}default:return e.Debug.failBadSyntaxKind(o,"Unhandled signature kind in overload list conversion refactoring")}if(c===o){return}var u=e.textChanges.ChangeTracker.with(t,function(e){e.replaceNodeRange(r,a[0],a[a.length-1],c)});return{renameFilename:undefined,renameLocation:undefined,edits:u};function getNewParametersForCombinedSignature(t){var r=t[t.length-1];if(e.isFunctionLikeDeclaration(r)&&r.body){t=t.slice(0,t.length-1)}return e.factory.createNodeArray([e.factory.createParameterDeclaration(undefined,undefined,e.factory.createToken(25),"args",undefined,e.factory.createUnionTypeNode(e.map(t,convertSignatureParametersToTuple)))])}function convertSignatureParametersToTuple(t){var r=e.map(t.parameters,convertParameterToNamedTupleMember);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,function(t){return!!e.length(e.getSyntheticLeadingComments(t))})?0:1)}function convertParameterToNamedTupleMember(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(129)),t);var n=t.symbol&&t.symbol.getDocumentationComment(s);if(n){var i=e.displayPartsToString(n);if(i.length){e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map(function(e){return" * "+e}).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:true,hasLeadingNewline:true}])}}return r}}function isConvertableSignatureDeclaration(e){switch(e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return true}return false}function getConvertableOverloadListAtPosition(t,r,n){var i=e.getTokenAtPosition(t,r);var a=e.findAncestor(i,isConvertableSignatureDeclaration);if(!a){return}var s=n.getTypeChecker();var o=a.symbol;if(!o){return}var c=o.declarations;if(e.length(c)<=1){return}if(!e.every(c,function(r){return e.getSourceFileOfNode(r)===t})){return}if(!isConvertableSignatureDeclaration(c[0])){return}var u=c[0].kind;if(!e.every(c,function(e){return e.kind===u})){return}var l=c;if(e.some(l,function(t){return!!t.typeParameters||e.some(t.parameters,function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)})})){return}var p=e.mapDefined(l,function(e){return s.getSignatureFromDeclaration(e)});if(e.length(p)!==e.length(c)){return}var d=s.getReturnTypeOfSignature(p[0]);if(!e.every(p,function(e){return s.getReturnTypeOfSignature(e)===d})){return}return l}})(r=t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r;(function(r){var n="Extract Symbol";var a={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"};var s={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};t.registerRefactor(n,{kinds:[a.kind,s.kind],getAvailableActions:getAvailableActions,getEditsForAction:getEditsForAction});function getAvailableActions(r){var o=r.kind;var c=getRangeToExtract(r.file,e.getRefactorContextSpan(r),r.triggerReason==="invoked");var u=c.targetRange;if(u===undefined){if(!c.errors||c.errors.length===0||!r.preferences.provideRefactorNotApplicableReason){return e.emptyArray}var l=[];if(t.refactorKindBeginsWith(s.kind,o)){l.push({name:n,description:s.description,actions:[i(i({},s),{notApplicableReason:getStringError(c.errors)})]})}if(t.refactorKindBeginsWith(a.kind,o)){l.push({name:n,description:a.description,actions:[i(i({},a),{notApplicableReason:getStringError(c.errors)})]})}return l}var p=getPossibleExtractions(u,r);if(p===undefined){return e.emptyArray}var d=[];var f=new e.Map;var m;var g=[];var _=new e.Map;var h;var y=0;for(var v=0,T=p;v=r.start+r.length){(a||(a=[])).push(e.createDiagnosticForNode(t,o.cannotExtractSuper));return true}}else{m|=c.UsesThis}break;case 212:e.forEachChild(t,function check(t){if(e.isThis(t)){m|=c.UsesThis}else if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t)){return false}else{e.forEachChild(t,check)}});case 255:case 254:if(e.isSourceFile(t.parent)&&t.parent.externalModuleIndicator===undefined){(a||(a=[])).push(e.createDiagnosticForNode(t,o.functionWillNotBeVisibleInTheNewScope))}case 224:case 211:case 167:case 169:case 170:case 171:return false}var l=s;switch(t.kind){case 237:s=0;break;case 250:s=0;break;case 233:if(t.parent&&t.parent.kind===250&&t.parent.finallyBlock===t){s=4}break;case 288:case 287:s|=1;break;default:if(e.isIterationStatement(t,false)){s|=1|2}break}switch(t.kind){case 190:case 108:m|=c.UsesThis;break;case 248:{var p=t.label;(u||(u=[])).push(p.escapedText);e.forEachChild(t,visit);u.pop();break}case 244:case 243:{var p=t.label;if(p){if(!e.contains(u,p.escapedText)){(a||(a=[])).push(e.createDiagnosticForNode(t,o.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange))}}else{if(!(s&(t.kind===244?1:2))){(a||(a=[])).push(e.createDiagnosticForNode(t,o.cannotExtractRangeContainingConditionalBreakOrContinueStatements))}}break}case 216:m|=c.IsAsyncFunction;break;case 222:m|=c.IsGenerator;break;case 245:if(s&4){m|=c.HasReturn}else{(a||(a=[])).push(e.createDiagnosticForNode(t,o.cannotExtractRangeContainingConditionalReturnStatement))}break;default:e.forEachChild(t,visit);break}s=l}}}r.getRangeToExtract=getRangeToExtract;function getAdjustedSpanFromNodes(e,t,r){var n=e.getStart(r);var i=t.getEnd();if(r.text.charCodeAt(i)===59){i++}return{start:n,length:i-n}}function getStatementOrExpressionRange(t){if(e.isStatement(t)){return[t]}else if(e.isExpressionNode(t)){return e.isExpressionStatement(t.parent)?[t.parent]:t}return undefined}function isScope(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function collectEnclosingScopes(t){var r=isReadonlyArray(t.range)?e.first(t.range):t.range;if(t.facts&c.UsesThis){var n=e.getContainingClass(r);if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);return i?[i,n]:[n]}}var a=[];while(true){r=r.parent;if(r.kind===162){r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent}if(isScope(r)){a.push(r);if(r.kind===300){return a}}}}function getFunctionExtractionAtIndex(t,r,n){var i=getPossibleExtractionsWorker(t,r),a=i.scopes,s=i.readsAndWrites,o=s.target,c=s.usagesPerScope,u=s.functionErrorsPerScope,l=s.exposedVariableDeclarations;e.Debug.assert(!u[n].length,"The extraction went missing? How?");r.cancellationToken.throwIfCancellationRequested();return extractFunctionInScope(o,a[n],c[n],l,t,r)}function getConstantExtractionAtIndex(t,r,n){var i=getPossibleExtractionsWorker(t,r),a=i.scopes,s=i.readsAndWrites,o=s.target,c=s.usagesPerScope,u=s.constantErrorsPerScope,l=s.exposedVariableDeclarations;e.Debug.assert(!u[n].length,"The extraction went missing? How?");e.Debug.assert(l.length===0,"Extract constant accepted a range containing a variable declaration?");r.cancellationToken.throwIfCancellationRequested();var p=e.isExpression(o)?o:o.statements[0].expression;return extractConstantInScope(p,a[n],c[n],t.facts,r)}function getPossibleExtractions(t,r){var n=getPossibleExtractionsWorker(t,r),i=n.scopes,a=n.readsAndWrites,s=a.functionErrorsPerScope,o=a.constantErrorsPerScope;var c=i.map(function(t,r){var n=getDescriptionForFunctionInScope(t);var i=getDescriptionForConstantInScope(t);var a=e.isFunctionLikeDeclaration(t)?getDescriptionForFunctionLikeDeclaration(t):e.isClassLike(t)?getDescriptionForClassLikeDeclaration(t):getDescriptionForModuleLikeDeclaration(t);var c;var u;if(a===1){c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[n,"global"]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"])}else if(a===0){c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[n,"module"]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"module"])}else{c=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[n,a]);u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,a])}if(r===0&&!e.isClassLike(t)){u=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[i])}return{functionExtraction:{description:c,errors:s[r]},constantExtraction:{description:u,errors:o[r]}}});return c}function getPossibleExtractionsWorker(e,t){var r=t.file;var n=collectEnclosingScopes(e);var i=getEnclosingTextRange(e,r);var a=collectReadsAndWrites(e,n,i,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:n,readsAndWrites:a}}function getDescriptionForFunctionInScope(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}function getDescriptionForConstantInScope(t){return e.isClassLike(t)?"readonly field":"constant"}function getDescriptionForFunctionLikeDeclaration(t){switch(t.kind){case 169:return"constructor";case 211:case 254:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+t.name.getText()+"'";case 170:return"'get "+t.name.getText()+"'";case 171:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}function getDescriptionForClassLikeDeclaration(e){return e.kind===255?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}function getDescriptionForModuleLikeDeclaration(e){return e.kind===260?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}var u;(function(e){e[e["Module"]=0]="Module";e[e["Global"]=1]="Global"})(u||(u={}));function extractFunctionInScope(t,r,n,i,a,s){var o=n.usages,u=n.typeParameterUsages,l=n.substitutions;var p=s.program.getTypeChecker();var d=e.getEmitScriptTarget(s.program.getCompilerOptions());var f=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host);var m=r.getSourceFile();var g=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",m);var _=e.isInJSFile(r);var h=e.factory.createIdentifier(g);var y;var v=[];var T=[];var S;o.forEach(function(t,n){var i;if(!_){var a=p.getTypeOfSymbolAtLocation(t.symbol,t.node);a=p.getBaseTypeOfLiteralType(a);i=e.codefix.typeToAutoImportableTypeNode(p,f,a,r,d,1)}var s=e.factory.createParameterDeclaration(undefined,undefined,undefined,n,undefined,i);v.push(s);if(t.usage===2){(S||(S=[])).push(t)}T.push(e.factory.createIdentifier(n))});var b=e.arrayFrom(u.values()).map(function(e){return{type:e,declaration:getFirstDeclaration(e)}});var E=b.sort(compareTypesByDeclarationOrder);var x=E.length===0?undefined:E.map(function(e){return e.declaration});var D=x!==undefined?x.map(function(t){return e.factory.createTypeReferenceNode(t.name,undefined)}):undefined;if(e.isExpression(t)&&!_){var C=p.getContextualType(t);y=p.typeToTypeNode(C,r,1)}var A=transformFunctionBody(t,i,S,l,!!(a.facts&c.HasReturn)),k=A.body,P=A.returnValueProperty;e.suppressLeadingAndTrailingTrivia(k);var N;if(e.isClassLike(r)){var O=_?[]:[e.factory.createModifier(121)];if(a.facts&c.InStaticRegion){O.push(e.factory.createModifier(124))}if(a.facts&c.IsAsyncFunction){O.push(e.factory.createModifier(130))}N=e.factory.createMethodDeclaration(undefined,O.length?O:undefined,a.facts&c.IsGenerator?e.factory.createToken(41):undefined,h,undefined,x,v,y,k)}else{N=e.factory.createFunctionDeclaration(undefined,a.facts&c.IsAsyncFunction?[e.factory.createToken(130)]:undefined,a.facts&c.IsGenerator?e.factory.createToken(41):undefined,h,x,v,y,k)}var F=e.textChanges.ChangeTracker.fromContext(s);var w=(isReadonlyArray(a.range)?e.last(a.range):a.range).end;var I=getNodeToInsertFunctionBefore(w,r);if(I){F.insertNodeBefore(s.file,I,N,true)}else{F.insertNodeAtEndOfScope(s.file,r,N)}f.writeFixes(F);var L=[];var M=getCalledExpression(r,a,g);var R=e.factory.createCallExpression(M,D,T);if(a.facts&c.IsGenerator){R=e.factory.createYieldExpression(e.factory.createToken(41),R)}if(a.facts&c.IsAsyncFunction){R=e.factory.createAwaitExpression(R)}if(isInJSXContent(t)){R=e.factory.createJsxExpression(undefined,R)}if(i.length&&!S){e.Debug.assert(!P,"Expected no returnValueProperty");e.Debug.assert(!(a.facts&c.HasReturn),"Expected RangeFacts.HasReturn flag to be unset");if(i.length===1){var B=i[0];L.push(e.factory.createVariableStatement(undefined,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(B.name),undefined,e.getSynthesizedDeepClone(B.type),R)],B.parent.flags)))}else{var j=[];var J=[];var U=i[0].parent.flags;var V=false;for(var W=0,K=i;W1){return t}n=t;t=t.parent}}function getFirstDeclaration(e){var t;var r=e.symbol;if(r&&r.declarations){for(var n=0,i=r.declarations;n0;if(e.isBlock(t)&&!s&&i.size===0){return{body:e.factory.createBlock(t.statements,true),returnValueProperty:undefined}}var o;var c=false;var u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,visitor).slice();if(s&&!a&&e.isStatement(t)){var p=getPropertyAssignmentsForWritesAndVariableDeclarations(r,n);if(p.length===1){l.push(e.factory.createReturnStatement(p[0].name))}else{l.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(p)))}}return{body:e.factory.createBlock(l,true),returnValueProperty:o}}else{return{body:e.factory.createBlock(u,true),returnValueProperty:undefined}}function visitor(t){if(!c&&e.isReturnStatement(t)&&s){var a=getPropertyAssignmentsForWritesAndVariableDeclarations(r,n);if(t.expression){if(!o){o="__return"}a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,visitor)))}if(a.length===1){return e.factory.createReturnStatement(a[0].name)}else{return e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}}else{var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString());var p=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,visitor,e.nullTransformationContext);c=u;return p}}}function transformConstantInitializer(t,r){return r.size?visitor(t):t;function visitor(t){var n=r.get(e.getNodeId(t).toString());return n?e.getSynthesizedDeepClone(n):e.visitEachChild(t,visitor,e.nullTransformationContext)}}function getStatementsOrClassElements(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r)){return r.statements}}else if(e.isModuleBlock(t)||e.isSourceFile(t)){return t.statements}else if(e.isClassLike(t)){return t.members}else{e.assertType(t)}return e.emptyArray}function getNodeToInsertFunctionBefore(t,r){return e.find(getStatementsOrClassElements(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}function getNodeToInsertPropertyBefore(t,r){var n=r.members;e.Debug.assert(n.length>0,"Found no members");var i;var a=true;for(var s=0,o=n;st){return i||n[0]}if(a&&!e.isPropertyDeclaration(c)){if(i!==undefined){return c}a=false}i=c}if(i===undefined)return e.Debug.fail();return i}function getNodeToInsertConstantBefore(t,r){e.Debug.assert(!e.isClassLike(r));var n;for(var i=t;i!==r;i=i.parent){if(isScope(i)){n=i}}for(var i=(n||t).parent;;i=i.parent){if(isBlockLike(i)){var a=void 0;for(var s=0,o=i.statements;st.pos){break}a=c}if(!a&&e.isCaseClause(i)){e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement");return i.parent.parent}return e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}function getPropertyAssignmentsForWritesAndVariableDeclarations(t,r){var n=e.map(t,function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)});var i=e.map(r,function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)});return n===undefined?i:i===undefined?n:n.concat(i)}function isReadonlyArray(t){return e.isArray(t)}function getEnclosingTextRange(t,r){return isReadonlyArray(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}var l;(function(e){e[e["Read"]=1]="Read";e[e["Write"]=2]="Write"})(l||(l={}));function collectReadsAndWrites(t,r,n,i,a,s){var u=new e.Map;var l=[];var p=[];var d=[];var f=[];var m=[];var g=new e.Map;var _=[];var h;var y=!isReadonlyArray(t.range)?t.range:t.range.length===1&&e.isExpressionStatement(t.range[0])?t.range[0].expression:undefined;var v;if(y===undefined){var T=t.range;var S=e.first(T).getStart();var b=e.last(T).end;v=e.createFileDiagnostic(i,S,b-S,o.expressionExpected)}else if(a.getTypeAtLocation(y).flags&(16384|131072)){v=e.createDiagnosticForNode(y,o.uselessConstantType)}for(var E=0,x=r;E0){var F=new e.Map;var w=0;for(var I=P;I!==undefined&&w0&&(n.usages.size>0||n.typeParameterUsages.size>0)){var i=isReadonlyArray(t.range)?t.range[0]:t.range;f[r].push(e.createDiagnosticForNode(i,o.cannotAccessVariablesFromNestedScopes))}var a=false;var s;l[r].usages.forEach(function(t){if(t.usage===2){a=true;if(t.symbol.flags&106500&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)){s=t.symbol.valueDeclaration}}});e.Debug.assert(isReadonlyArray(t.range)||_.length===0,"No variable declarations expected if something was extracted");if(a&&!isReadonlyArray(t.range)){var c=e.createDiagnosticForNode(t.range,o.cannotWriteInExpression);d[r].push(c);f[r].push(c)}else if(s&&r>0){var c=e.createDiagnosticForNode(s,o.cannotExtractReadonlyPropertyInitializerOutsideConstructor);d[r].push(c);f[r].push(c)}else if(h){var c=e.createDiagnosticForNode(h,o.cannotExtractExportedEntity);d[r].push(c);f[r].push(c)}};for(var U=0;U=u){return _}A.set(_,u);if(h){for(var y=0,v=l;y=0){return}var n=e.isIdentifier(r)?getSymbolReferencedByIdentifier(r):a.getSymbolAtLocation(r);if(n){var i=e.find(m,function(e){return e.symbol===n});if(i){if(e.isVariableDeclaration(i)){var s=i.symbol.id.toString();if(!g.has(s)){_.push(i);g.set(s,true)}}else{h=h||i}}}e.forEachChild(r,checkForUsedDeclarations)}function getSymbolReferencedByIdentifier(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?a.getShorthandAssignmentValueSymbol(t.parent):a.getSymbolAtLocation(t)}function tryReplaceWithQualifiedNameOrPropertyAccess(t,r,n){if(!t){return undefined}var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r})){return e.factory.createIdentifier(t.name)}var a=tryReplaceWithQualifiedNameOrPropertyAccess(t.parent,r,n);if(a===undefined){return undefined}return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}function getExtractableParent(t){return e.findAncestor(t,function(t){return t.parent&&isExtractableExpression(t)&&!e.isBinaryExpression(t.parent)})}function isExtractableExpression(e){var t=e.parent;switch(t.kind){case 294:return false}switch(e.kind){case 10:return t.kind!==264&&t.kind!==268;case 223:case 199:case 201:return false;case 79:return t.kind!==201&&t.kind!==268&&t.kind!==273}return true}function isBlockLike(e){switch(e.kind){case 233:case 300:case 260:case 287:return true;default:return false}}function isInJSXContent(t){return(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}})(r=t.extractSymbol||(t.extractSymbol={}))})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r="Extract type";var n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"};var a={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"};var s={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};t.registerRefactor(r,{kinds:[n.kind,a.kind,s.kind],getAvailableActions:function(o){var c=getRangeToExtract(o,o.triggerReason==="invoked");if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){return[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:c.isJS?[s]:e.append([n],c.typeElements&&a)}]}if(o.preferences.provideRefactorNotApplicableReason){return[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[i(i({},s),{notApplicableReason:c.error}),i(i({},n),{notApplicableReason:c.error}),i(i({},a),{notApplicableReason:c.error})]}]}return e.emptyArray},getEditsForAction:function(r,i){var o=r.file;var c=getRangeToExtract(r);e.Debug.assert(c&&!t.isRefactorErrorInfo(c),"Expected to find a range to extract");var u=e.getUniqueName("NewType",o);var l=e.textChanges.ChangeTracker.with(r,function(t){switch(i){case n.name:e.Debug.assert(!c.isJS,"Invalid actionName/JS combo");return doTypeAliasChange(t,o,u,c);case s.name:e.Debug.assert(c.isJS,"Invalid actionName/JS combo");return doTypedefChange(t,o,u,c);case a.name:e.Debug.assert(!c.isJS&&!!c.typeElements,"Invalid actionName/JS combo");return doInterfaceChange(t,o,u,c);default:e.Debug.fail("Unexpected action name")}});var p=o.fileName;var d=e.getRenameLocation(l,p,u,false);return{edits:l,renameFilename:p,renameLocation:d}}});function getRangeToExtract(t,r){if(r===void 0){r=true}var n=t.file,i=t.startPosition;var a=e.isSourceFileJS(n);var s=e.getTokenAtPosition(n,i);var o=e.createTextRangeFromSpan(e.getRefactorContextSpan(t));var c=o.pos===o.end&&r;var u=e.findAncestor(s,function(t){return t.parent&&e.isTypeNode(t)&&!rangeContainsSkipTrivia(o,t.parent,n)&&(c||e.nodeOverlapsWithStartEnd(s,n,o.pos,o.end))});if(!u||!e.isTypeNode(u))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var l=t.program.getTypeChecker();var p=e.Debug.checkDefined(e.findAncestor(u,e.isStatement),"Should find a statement");var d=collectTypeParameters(l,u,p,n);if(!d)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var f=flattenTypeLiteralNodeReference(l,u);return{isJS:a,selection:u,firstStatement:p,typeParameters:d,typeElements:f}}function flattenTypeLiteralNodeReference(t,r){if(!r)return undefined;if(e.isIntersectionTypeNode(r)){var n=[];var i=new e.Map;for(var a=0,s=r.types;an.pos});if(a===-1)return undefined;var s=i[a];if(e.isNamedDeclaration(s)&&s.name&&e.rangeContainsRange(s.name,n)){return{toMove:[i[a]],afterLast:i[a+1]}}if(n.pos>s.getStart(r))return undefined;var o=e.findIndex(i,function(e){return e.end>n.end},a);if(o!==-1&&(o===0||i[o].getStart(r)=a&&e.every(t,function(e){return isValidParameterDeclaration(e,r)})}function isValidParameterDeclaration(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return false}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}function isValidVariableDeclaration(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function hasThisParameter(t){return t.length>0&&e.isThis(t[0].name)}function getRefactorableParametersLength(e){if(hasThisParameter(e)){return e.length-1}return e.length}function getRefactorableParameters(t){if(hasThisParameter(t)){t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)}return t}function createPropertyOrShorthandAssignment(t,r){if(e.isIdentifier(r)&&e.getTextOfIdentifierOrLiteral(r)===t){return e.factory.createShorthandPropertyAssignment(t)}return e.factory.createPropertyAssignment(t,r)}function createNewArgument(t,r){var n=getRefactorableParameters(t.parameters);var i=e.isRestParameter(e.last(n));var a=i?r.slice(0,n.length-1):r;var s=e.map(a,function(t,r){var i=getParameterName(n[r]);var a=createPropertyOrShorthandAssignment(i,t);e.suppressLeadingAndTrailingTrivia(a.name);if(e.isPropertyAssignment(a))e.suppressLeadingAndTrailingTrivia(a.initializer);e.copyComments(t,a);return a});if(i&&r.length>=n.length){var o=r.slice(n.length-1);var c=e.factory.createPropertyAssignment(getParameterName(e.last(n)),e.factory.createArrayLiteralExpression(o));s.push(c)}var u=e.factory.createObjectLiteralExpression(s,false);return u}function createNewParameters(t,r,n){var i=r.getTypeChecker();var a=getRefactorableParameters(t.parameters);var s=e.map(a,createBindingElementFromParameterDeclaration);var o=e.factory.createObjectBindingPattern(s);var c=createParameterTypeNode(a);var u;if(e.every(a,isOptionalParameter)){u=e.factory.createObjectLiteralExpression()}var l=e.factory.createParameterDeclaration(undefined,undefined,undefined,o,undefined,c,u);if(hasThisParameter(t.parameters)){var p=t.parameters[0];var d=e.factory.createParameterDeclaration(undefined,undefined,undefined,p.name,undefined,p.type);e.suppressLeadingAndTrailingTrivia(d.name);e.copyComments(p.name,d.name);if(p.type){e.suppressLeadingAndTrailingTrivia(d.type);e.copyComments(p.type,d.type)}return e.factory.createNodeArray([d,l])}return e.factory.createNodeArray([l]);function createBindingElementFromParameterDeclaration(t){var r=e.factory.createBindingElement(undefined,undefined,getParameterName(t),e.isRestParameter(t)&&isOptionalParameter(t)?e.factory.createArrayLiteralExpression():t.initializer);e.suppressLeadingAndTrailingTrivia(r);if(t.initializer&&r.initializer){e.copyComments(t.initializer,r.initializer)}return r}function createParameterTypeNode(t){var r=e.map(t,createPropertySignatureFromParameterDeclaration);var n=e.addEmitFlags(e.factory.createTypeLiteralNode(r),1);return n}function createPropertySignatureFromParameterDeclaration(t){var r=t.type;if(!r&&(t.initializer||e.isRestParameter(t))){r=getTypeNode(t)}var n=e.factory.createPropertySignature(undefined,getParameterName(t),isOptionalParameter(t)?e.factory.createToken(57):t.questionToken,r);e.suppressLeadingAndTrailingTrivia(n);e.copyComments(t.name,n.name);if(t.type&&n.type){e.copyComments(t.type,n.type)}return n}function getTypeNode(t){var a=i.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(a,t,r,n)}function isOptionalParameter(t){if(e.isRestParameter(t)){var r=i.getTypeAtLocation(t);return!i.isTupleType(r)}return i.isOptionalParameter(t)}}function getParameterName(t){return e.getTextOfIdentifierOrLiteral(t.name)}function getClassNames(t){switch(t.parent.kind){case 255:var r=t.parent;if(r.name)return[r.name];var n=e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export");return[n];case 224:var i=t.parent;var a=t.parent.parent;var s=i.name;if(s)return[s,a.name];return[a.name]}}function getFunctionNames(t){switch(t.kind){case 254:if(t.name)return[t.name];var r=e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export");return[r];case 167:return[t.name];case 169:var n=e.Debug.checkDefined(e.findChildOfKind(t,133,t.getSourceFile()),"Constructor declaration should have constructor keyword");if(t.parent.kind===224){var i=t.parent.parent;return[i.name,n]}return[n];case 212:return[t.parent.name];case 211:if(t.name)return[t.name,t.parent.name];return[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}})(r=t.convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){var t;(function(t){var r;(function(r){var n="Convert to template string";var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string);var s={name:n,description:a,kind:"refactor.rewrite.string"};t.registerRefactor(n,{kinds:[s.kind],getEditsForAction:getEditsForAction,getAvailableActions:getAvailableActions});function getAvailableActions(t){var r=t.file,o=t.startPosition;var c=getNodeOrParentOfParentheses(r,o);var u=getParentBinaryExpression(c);var l={name:n,description:a,actions:[]};if(e.isBinaryExpression(u)&&treeToArray(u).isValidConcatenation){l.actions.push(s);return[l]}else if(t.preferences.provideRefactorNotApplicableReason){l.actions.push(i(i({},s),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)}));return[l]}return e.emptyArray}function getNodeOrParentOfParentheses(t,r){var n=e.getTokenAtPosition(t,r);var i=getParentBinaryExpression(n);var a=!treeToArray(i).isValidConcatenation;if(a&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)){return i.parent.parent}return n}function getEditsForAction(t,r){var n=t.file,i=t.startPosition;var s=getNodeOrParentOfParentheses(n,i);switch(r){case a:return{edits:getEditsForToTemplateLiteral(t,s)};default:return e.Debug.fail("invalid action")}}function getEditsForToTemplateLiteral(t,r){var n=getParentBinaryExpression(r);var i=t.file;var a=nodesToTemplate(treeToArray(n),i);var s=e.getTrailingCommentRanges(i.text,n.end);if(s){var o=s[s.length-1];var c={pos:s[0].pos,end:o.end};return e.textChanges.ChangeTracker.with(t,function(e){e.deleteRange(i,c);e.replaceNode(i,n,a)})}else{return e.textChanges.ChangeTracker.with(t,function(e){return e.replaceNode(i,n,a)})}}function isNotEqualsOperator(e){return e.operatorToken.kind!==63}function getParentBinaryExpression(t){var r=e.findAncestor(t.parent,function(t){switch(t.kind){case 204:case 205:return false;case 221:case 219:return!(e.isBinaryExpression(t.parent)&&isNotEqualsOperator(t.parent));default:return"quit"}});return r||t}function treeToArray(t){var r=function(t){if(!e.isBinaryExpression(t)){return{nodes:[t],operators:[],validOperators:true,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)}}var n=r(t.left),i=n.nodes,a=n.operators,s=n.hasString,o=n.validOperators;if(!(s||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right))){return{nodes:[t],operators:[],hasString:false,validOperators:true}}var c=t.operatorToken.kind===39;var u=o&&c;i.push(t.right);a.push(t.operatorToken);return{nodes:i,operators:a,hasString:true,validOperators:u}};var n=r(t),i=n.nodes,a=n.operators,s=n.validOperators,o=n.hasString;return{nodes:i,operators:a,isValidConcatenation:s&&o}}var o=function(t,r){return function(n,i){if(n0){var s=i.shift();e.copyTrailingComments(t[s],a,r,3,false);n(s,a)}}};function escapeRawStringForTemplate(e){return e.replace(/\\.|[$`]/g,function(e){return e[0]==="\\"?e:"\\"+e})}function getRawTextOfTemplate(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function concatConsecutiveString(t,r){var n=[];var i="",a="";while(t1){return t.getUnionType(e.mapDefined(n,function(e){return e.getReturnType()}))}}var i=t.getSignatureFromDeclaration(r);if(i){return t.getReturnTypeOfSignature(i)}}})(r=t.inferFunctionReturnType||(t.inferFunctionReturnType={}))})(t=e.refactor||(e.refactor={}))})(u||(u={}));var u;(function(e){e.servicesVersion="0.8";function createNode(r,n,i,a){var s=e.isNodeKind(r)?new t(r,n,i):r===79?new u(79,n,i):r===80?new l(80,n,i):new o(r,n,i);s.parent=a;s.flags=a.flags&25358336;return s}var t=function(){function NodeObject(e,t,r){this.pos=t;this.end=r;this.flags=0;this.modifierFlagsCache=0;this.transformFlags=0;this.parent=undefined;this.kind=e}NodeObject.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")};NodeObject.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)};NodeObject.prototype.getStart=function(t,r){this.assertHasRealPosition();return e.getTokenPosOfNode(this,t,r)};NodeObject.prototype.getFullStart=function(){this.assertHasRealPosition();return this.pos};NodeObject.prototype.getEnd=function(){this.assertHasRealPosition();return this.end};NodeObject.prototype.getWidth=function(e){this.assertHasRealPosition();return this.getEnd()-this.getStart(e)};NodeObject.prototype.getFullWidth=function(){this.assertHasRealPosition();return this.end-this.pos};NodeObject.prototype.getLeadingTriviaWidth=function(e){this.assertHasRealPosition();return this.getStart(e)-this.pos};NodeObject.prototype.getFullText=function(e){this.assertHasRealPosition();return(e||this.getSourceFile()).text.substring(this.pos,this.end)};NodeObject.prototype.getText=function(e){this.assertHasRealPosition();if(!e){e=this.getSourceFile()}return e.text.substring(this.getStart(e),this.getEnd())};NodeObject.prototype.getChildCount=function(e){return this.getChildren(e).length};NodeObject.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]};NodeObject.prototype.getChildren=function(e){this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine");return this._children||(this._children=createChildren(this,e))};NodeObject.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(!r.length){return undefined}var n=e.find(r,function(e){return e.kind<304||e.kind>342});return n.kind<159?n:n.getFirstToken(t)};NodeObject.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);var n=e.lastOrUndefined(r);if(!n){return undefined}return n.kind<159?n:n.getLastToken(t)};NodeObject.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)};return NodeObject}();function createChildren(t,r){if(!e.isNodeKind(t.kind)){return e.emptyArray}var n=[];if(e.isJSDocCommentContainingNode(t)){t.forEachChild(function(e){n.push(e)});return n}e.scanner.setText((r||t.getSourceFile()).text);var i=t.pos;var a=function(e){addSyntheticNodes(n,i,e.pos,t);n.push(e);i=e.end};var s=function(e){addSyntheticNodes(n,i,e.pos,t);n.push(createSyntaxList(e,t));i=e.end};e.forEach(t.jsDoc,a);i=t.pos;t.forEachChild(a,s);addSyntheticNodes(n,i,t.end,t);e.scanner.setText(undefined);return n}function addSyntheticNodes(t,r,n,i){e.scanner.setTextPos(r);while(r=r.length){n=this.getEnd()}if(!n){n=r[t+1]-1}var i=this.getFullText();return i[n]==="\n"&&i[n-1]==="\r"?n-1:n};SourceFileObject.prototype.getNamedDeclarations=function(){if(!this.namedDeclarations){this.namedDeclarations=this.computeNamedDeclarations()}return this.namedDeclarations};SourceFileObject.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();this.forEachChild(visit);return t;function addDeclaration(e){var r=getDeclarationName(e);if(r){t.add(r,e)}}function getDeclarations(e){var r=t.get(e);if(!r){t.set(e,r=[])}return r}function getDeclarationName(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):undefined)}function visit(t){switch(t.kind){case 254:case 211:case 167:case 166:var r=t;var n=getDeclarationName(r);if(n){var i=getDeclarations(n);var a=e.lastOrUndefined(i);if(a&&r.parent===a.parent&&r.symbol===a.symbol){if(r.body&&!a.body){i[i.length-1]=r}}else{i.push(r)}}e.forEachChild(t,visit);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:addDeclaration(t);e.forEachChild(t,visit);break;case 162:if(!e.hasSyntacticModifier(t,16476)){break}case 252:case 201:{var s=t;if(e.isBindingPattern(s.name)){e.forEachChild(s.name,visit);break}if(s.initializer){visit(s.initializer)}}case 294:case 165:case 164:addDeclaration(t);break;case 270:var o=t;if(o.exportClause){if(e.isNamedExports(o.exportClause)){e.forEach(o.exportClause.elements,visit)}else{visit(o.exportClause.name)}}break;case 264:var c=t.importClause;if(c){if(c.name){addDeclaration(c.name)}if(c.namedBindings){if(c.namedBindings.kind===266){addDeclaration(c.namedBindings)}else{e.forEach(c.namedBindings.elements,visit)}}}break;case 219:if(e.getAssignmentDeclarationKind(t)!==0){addDeclaration(t)}default:e.forEachChild(t,visit)}}};return SourceFileObject}(t);var m=function(){function SourceMapSourceObject(e,t,r){this.fileName=e;this.text=t;this.skipTrivia=r}SourceMapSourceObject.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)};return SourceMapSourceObject}();function getServicesObjectAllocator(){return{getNodeConstructor:function(){return t},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return u},getPrivateIdentifierConstructor:function(){return l},getSourceFileConstructor:function(){return f},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return p},getSignatureConstructor:function(){return d},getSourceMapSourceConstructor:function(){return m}}}function toEditorSettings(t){var r=true;for(var n in t){if(e.hasProperty(t,n)&&!isCamelCase(n)){r=false;break}}if(r){return t}var i={};for(var n in t){if(e.hasProperty(t,n)){var a=isCamelCase(n)?n:n.charAt(0).toLowerCase()+n.substr(1);i[a]=t[n]}}return i}e.toEditorSettings=toEditorSettings;function isCamelCase(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function displayPartsToString(t){if(t){return e.map(t,function(e){return e.text}).join("")}return""}e.displayPartsToString=displayPartsToString;function getDefaultCompilerOptions(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=getDefaultCompilerOptions;function getSupportedCodeFixes(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=getSupportedCodeFixes;var g=function(){function HostCache(t,r){this.host=t;this.currentDirectory=t.getCurrentDirectory();this.fileNameToEntry=new e.Map;var n=t.getScriptFileNames();for(var i=0,a=n;i=this.throttleWaitMilliseconds){this.lastCancellationCheckTime=t;return this.hostCancellationToken.isCancellationRequested()}return false};ThrottledCancellationToken.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested()){e.tracing===null||e.tracing===void 0?void 0:e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"});throw new e.OperationCanceledException}};return ThrottledCancellationToken}();e.ThrottledCancellationToken=v;var T=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"];var S=n(n([],T,true),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],false);function createLanguageService(t,r,a){var s;if(r===void 0){r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())}var o;if(a===undefined){o=e.LanguageServiceMode.Semantic}else if(typeof a==="boolean"){o=a?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic}else{o=a}var c=new _(t);var u;var l;var p=0;var d=t.getCancellationToken?new y(t.getCancellationToken()):h;var f=t.getCurrentDirectory();if(!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages){e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages())}function log(e){if(t.log){t.log(e)}}var m=e.hostUsesCaseSensitiveFileNames(t);var v=e.createGetCanonicalFileName(m);var b=e.getSourceMapper({useCaseSensitiveFileNames:function(){return m},getCurrentDirectory:function(){return f},getProgram:getProgram,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:log});function getValidSourceFile(e){var t=u.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");r.ProgramFiles=u.getSourceFiles().map(function(e){return e.fileName});throw r}return t}function synchronizeHostData(){var n,i,a;e.Debug.assert(o!==e.LanguageServiceMode.Syntactic);if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(l===s&&!((n=t.hasChangedAutomaticTypeDirectiveNames)===null||n===void 0?void 0:n.call(t))){return}l=s}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;if(p!==c){log("TypeRoots version has changed; provide new program");u=undefined;p=c}var _=new g(t,v);var h=_.getRootFileNames();var y=t.getCompilationSettings()||getDefaultCompilerOptions();var T=t.hasInvalidatedResolution||e.returnFalse;var S=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames);var E=(i=t.getProjectReferences)===null||i===void 0?void 0:i.call(t);var x;var D={useCaseSensitiveFileNames:m,fileExists:fileExists,readFile:readFile,readDirectory:readDirectory,trace:e.maybeBind(t,t.trace),getCurrentDirectory:function(){return f},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(u,h,y,function(e,r){return t.getScriptVersion(r)},fileExists,T,S,getParsedCommandLine,E)){return}var C={getSourceFile:getOrCreateSourceFile,getSourceFileByPath:getOrCreateSourceFileByPath,getCancellationToken:function(){return d},getCanonicalFileName:v,useCaseSensitiveFileNames:function(){return m},getNewLine:function(){return e.getNewLineCharacter(y,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:fileExists,readFile:readFile,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:readDirectory,onReleaseOldSourceFile:onReleaseOldSourceFile,onReleaseParsedCommandLine:onReleaseParsedCommandLine,hasInvalidatedResolution:T,hasChangedAutomaticTypeDirectiveNames:S,trace:D.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:getParsedCommandLine};(a=t.setCompilerHost)===null||a===void 0?void 0:a.call(t,C);var A=r.getKeyForCompilationSettings(y);var k={rootNames:h,options:y,host:C,oldProgram:u,projectReferences:E};u=e.createProgram(k);_=undefined;x=undefined;b.clearCache();u.getTypeChecker();return;function getParsedCommandLine(r){var n=e.toPath(r,f,v);var i=x===null||x===void 0?void 0:x.get(n);if(i!==undefined)return i||undefined;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):getParsedCommandLineOfConfigFileUsingSourceFile(r);(x||(x=new e.Map)).set(n,a||false);return a}function getParsedCommandLineOfConfigFileUsingSourceFile(t){var r=getOrCreateSourceFile(t,100);if(!r)return undefined;r.path=e.toPath(t,f,v);r.resolvedPath=r.path;r.originalFileName=r.fileName;return e.parseJsonSourceFileConfigFileContent(r,D,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),f),undefined,e.getNormalizedAbsolutePath(t,f))}function onReleaseParsedCommandLine(e,r,n){var i;if(t.getParsedCommandLine){(i=t.onReleaseParsedCommandLine)===null||i===void 0?void 0:i.call(t,e,r,n)}else if(r){onReleaseOldSourceFile(r.sourceFile,n)}}function fileExists(r){var n=e.toPath(r,f,v);var i=_&&_.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function readFile(r){var n=e.toPath(r,f,v);var i=_&&_.getEntryByPath(n);if(i){return e.isString(i)?undefined:e.getSnapshotText(i.scriptSnapshot)}return t.readFile&&t.readFile(r)}function readDirectory(r,n,i,a,s){e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'");return t.readDirectory(r,n,i,a,s)}function onReleaseOldSourceFile(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function getOrCreateSourceFile(t,r,n,i){return getOrCreateSourceFileByPath(t,e.toPath(t,f,v),r,n,i)}function getOrCreateSourceFileByPath(t,n,i,a,s){e.Debug.assert(_!==undefined,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var o=_&&_.getOrCreateEntryByPath(t,n);if(!o){return undefined}if(!s){var c=u&&u.getSourceFileByPath(n);if(c){if(o.scriptKind===c.scriptKind){return r.updateDocumentWithKey(t,n,y,A,o.scriptSnapshot,o.version,o.scriptKind)}else{r.releaseDocumentWithKey(c.resolvedPath,r.getKeyForCompilationSettings(u.getCompilerOptions()),c.scriptKind)}}}return r.acquireDocumentWithKey(t,n,y,A,o.scriptSnapshot,o.version,o.scriptKind)}}function getProgram(){if(o===e.LanguageServiceMode.Syntactic){e.Debug.assert(u===undefined);return undefined}synchronizeHostData();return u}function getAutoImportProvider(){var e;return(e=t.getPackageJsonAutoImportProvider)===null||e===void 0?void 0:e.call(t)}function cleanupSemanticCache(){u=undefined}function dispose(){if(u){var n=r.getKeyForCompilationSettings(u.getCompilerOptions());e.forEach(u.getSourceFiles(),function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)});u=undefined}t=undefined}function getSyntacticDiagnostics(e){synchronizeHostData();return u.getSyntacticDiagnostics(getValidSourceFile(e),d).slice()}function getSemanticDiagnostics(t){synchronizeHostData();var r=getValidSourceFile(t);var i=u.getSemanticDiagnostics(r,d);if(!e.getEmitDeclarations(u.getCompilerOptions())){return i.slice()}var a=u.getDeclarationDiagnostics(r,d);return n(n([],i,true),a,true)}function getSuggestionDiagnostics(t){synchronizeHostData();return e.computeSuggestionDiagnostics(getValidSourceFile(t),u,d)}function getCompilerOptionsDiagnostics(){synchronizeHostData();return n(n([],u.getOptionsDiagnostics(d),true),u.getGlobalDiagnostics(d),true)}function getCompletionsAtPosition(r,n,a){if(a===void 0){a=e.emptyOptions}var s=i(i({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});synchronizeHostData();return e.Completions.getCompletionsAtPosition(t,u,log,getValidSourceFile(r),n,s,a.triggerCharacter,a.triggerKind,d)}function getCompletionEntryDetails(r,n,i,a,s,o,c){if(o===void 0){o=e.emptyOptions}synchronizeHostData();return e.Completions.getCompletionEntryDetails(u,log,getValidSourceFile(r),n,{name:i,source:s,data:c},t,a&&e.formatting.getFormatContext(a,t),o,d)}function getCompletionEntrySymbol(r,n,i,a,s){if(s===void 0){s=e.emptyOptions}synchronizeHostData();return e.Completions.getCompletionEntrySymbol(u,log,getValidSourceFile(r),n,{name:i,source:a},t,s)}function getQuickInfoAtPosition(t,r){synchronizeHostData();var n=getValidSourceFile(t);var i=e.getTouchingPropertyName(n,r);if(i===n){return undefined}var a=u.getTypeChecker();var s=getNodeForQuickInfo(i);var o=getSymbolAtLocationForQuickInfo(s,a);if(!o||a.isUnknownSymbol(o)){var c=shouldGetType(n,s,r)?a.getTypeAtLocation(s):undefined;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,n),displayParts:a.runWithCancellationToken(d,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(s))}),documentation:c.symbol?c.symbol.getDocumentationComment(a):undefined,tags:c.symbol?c.symbol.getJsDocTags(a):undefined}}var l=a.runWithCancellationToken(d,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,o,n,e.getContainerNode(s),s)}),p=l.symbolKind,f=l.displayParts,m=l.documentation,g=l.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,o),textSpan:e.createTextSpanFromNode(s,n),displayParts:f,documentation:m,tags:g}}function getNodeForQuickInfo(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos){return t.parent.expression}if(e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos){return t.parent}return t}function shouldGetType(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 204:case 159:return!e.isInComment(t,n);case 108:case 190:case 106:case 195:return true;default:return false}}function getDefinitionAtPosition(t,r){synchronizeHostData();return e.GoToDefinition.getDefinitionAtPosition(u,getValidSourceFile(t),r)}function getDefinitionAndBoundSpan(t,r){synchronizeHostData();return e.GoToDefinition.getDefinitionAndBoundSpan(u,getValidSourceFile(t),r)}function getTypeDefinitionAtPosition(t,r){synchronizeHostData();return e.GoToDefinition.getTypeDefinitionAtPosition(u.getTypeChecker(),getValidSourceFile(t),r)}function getImplementationAtPosition(t,r){synchronizeHostData();return e.FindAllReferences.getImplementationsAtPosition(u,d,u.getSourceFiles(),getValidSourceFile(t),r)}function getOccurrencesAtPosition(t,r){return e.flatMap(getDocumentHighlights(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return i(i({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:t.kind==="writtenReference",isDefinition:false},t.isInString&&{isInString:true}),t.contextSpan&&{contextSpan:t.contextSpan})})})}function getDocumentHighlights(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i}));synchronizeHostData();var a=e.mapDefined(n,function(e){return u.getSourceFile(e)});var s=getValidSourceFile(t);return e.DocumentHighlights.getDocumentHighlights(u,d,s,r,a)}function findRenameLocations(t,r,n,a,s){synchronizeHostData();var o=getValidSourceFile(t);var c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent,l=u.openingElement,p=u.closingElement;return[l,p].map(function(t){var r=e.createTextSpanFromNode(t.tagName,o);return i({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))})}else{return getReferencesWorker(c,r,{findInStrings:n,findInComments:a,providePrefixAndSuffixTextForRename:s,use:2},function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,s||false)})}}function getReferencesAtPosition(t,r){synchronizeHostData();return getReferencesWorker(e.getTouchingPropertyName(getValidSourceFile(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)}function getReferencesWorker(t,r,n,i){synchronizeHostData();var a=n&&n.use===2?u.getSourceFiles().filter(function(e){return!u.isSourceFileDefaultLibrary(e)}):u.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(u,d,a,t,r,n,i)}function findReferences(t,r){synchronizeHostData();return e.FindAllReferences.findReferencedSymbols(u,d,u.getSourceFiles(),getValidSourceFile(t),r)}function getFileReferences(t){synchronizeHostData();return e.FindAllReferences.Core.getReferencesForFileName(t,u,u.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function getNavigateToItems(t,r,n,i){if(i===void 0){i=false}synchronizeHostData();var a=n?[getValidSourceFile(n)]:u.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,u.getTypeChecker(),d,t,r,i)}function getEmitOutput(r,n,i){synchronizeHostData();var a=getValidSourceFile(r);var s=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(u,a,!!n,d,s,i)}function getSignatureHelpItems(t,r,n){var i=n===void 0?e.emptyOptions:n,a=i.triggerReason;synchronizeHostData();var s=getValidSourceFile(t);return e.SignatureHelp.getSignatureHelpItems(u,s,r,a,d)}function getNonBoundSourceFile(e){return c.getCurrentSourceFile(e)}function getNameOrDottedNameSpan(t,r,n){var i=c.getCurrentSourceFile(t);var a=e.getTouchingPropertyName(i,r);if(a===i){return undefined}switch(a.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return undefined}var s=a;while(true){if(e.isRightSideOfPropertyAccess(s)||e.isRightSideOfQualifiedName(s)){s=s.parent}else if(e.isNameOfModuleDeclaration(s)){if(s.parent.parent.kind===259&&s.parent.parent.body===s.parent){s=s.parent.parent.name}else{break}}else{break}}return e.createTextSpanFromBounds(s.getStart(),a.getEnd())}function getBreakpointStatementAtPosition(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)}function getNavigationBarItems(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),d)}function getNavigationTree(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),d)}function getSemanticClassifications(t,r,n){synchronizeHostData();var i=n||"original";if(i==="2020"){return e.classifier.v2020.getSemanticClassifications(u,d,getValidSourceFile(t),r)}else{return e.getSemanticClassifications(u.getTypeChecker(),d,getValidSourceFile(t),u.getClassifiableNames(),r)}}function getEncodedSemanticClassifications(t,r,n){synchronizeHostData();var i=n||"original";if(i==="original"){return e.getEncodedSemanticClassifications(u.getTypeChecker(),d,getValidSourceFile(t),u.getClassifiableNames(),r)}else{return e.classifier.v2020.getEncodedSemanticClassifications(u,d,getValidSourceFile(t),r)}}function getSyntacticClassifications(t,r){return e.getSyntacticClassifications(d,c.getCurrentSourceFile(t),r)}function getEncodedSyntacticClassifications(t,r){return e.getEncodedSyntacticClassifications(d,c.getCurrentSourceFile(t),r)}function getOutliningSpans(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)}var E=new e.Map(e.getEntries((s={},s[18]=19,s[20]=21,s[22]=23,s[31]=29,s)));E.forEach(function(e,t){return E.set(e.toString(),Number(t))});function getBraceMatchingAtPosition(t,r){var n=c.getCurrentSourceFile(t);var i=e.getTouchingToken(n,r);var a=i.getStart(n)===r?E.get(i.kind.toString()):undefined;var s=a&&e.findChildOfKind(i.parent,a,n);return s?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(s,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray}function getIndentationAtPosition(t,r,n){var i=e.timestamp();var a=toEditorSettings(n);var s=c.getCurrentSourceFile(t);log("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i));i=e.timestamp();var o=e.formatting.SmartIndenter.getIndentation(r,s,a);log("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i));return o}function getFormattingEditsForRange(r,n,i,a){var s=c.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,s,e.formatting.getFormatContext(toEditorSettings(a),t))}function getFormattingEditsForDocument(r,n){return e.formatting.formatDocument(c.getCurrentSourceFile(r),e.formatting.getFormatContext(toEditorSettings(n),t))}function getFormattingEditsAfterKeystroke(r,n,i,a){var s=c.getCurrentSourceFile(r);var o=e.formatting.getFormatContext(toEditorSettings(a),t);if(!e.isInComment(s,n)){switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,s,o);case"}":return e.formatting.formatOnClosingCurly(n,s,o);case";":return e.formatting.formatOnSemicolon(n,s,o);case"\n":return e.formatting.formatOnEnter(n,s,o)}}return[]}function getCodeFixesAtPosition(r,n,i,a,s,o){if(o===void 0){o=e.emptyOptions}synchronizeHostData();var c=getValidSourceFile(r);var l=e.createTextSpanFromBounds(n,i);var p=e.formatting.getFormatContext(s,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(r){d.throwIfCancellationRequested();return e.codefix.getFixes({errorCode:r,sourceFile:c,span:l,program:u,host:t,cancellationToken:d,formatContext:p,preferences:o})})}function getCombinedCodeFix(r,n,i,a){if(a===void 0){a=e.emptyOptions}synchronizeHostData();e.Debug.assert(r.type==="file");var s=getValidSourceFile(r.fileName);var o=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:u,host:t,cancellationToken:d,formatContext:o,preferences:a})}function organizeImports(r,n,i){if(i===void 0){i=e.emptyOptions}synchronizeHostData();e.Debug.assert(r.type==="file");var a=getValidSourceFile(r.fileName);var s=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,s,t,u,i,r.skipDestructiveCodeActions)}function getEditsForFileRename(r,n,i,a){if(a===void 0){a=e.emptyOptions}return e.getEditsForFileRename(getProgram(),r,n,t,e.formatting.getFormatContext(i,t),a,b)}function applyCodeActionCommand(t,r){var n=typeof t==="string"?r:t;return e.isArray(n)?Promise.all(n.map(function(e){return applySingleCodeActionCommand(e)})):applySingleCodeActionCommand(n)}function applySingleCodeActionCommand(r){var n=function(t){return e.toPath(t,f,v)};e.Debug.assertEqual(r.type,"install package");return t.installPackage?t.installPackage({fileName:n(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function getDocCommentTemplateAtPosition(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n,i)}function isValidBraceCompletionAtPosition(t,r,n){if(n===60){return false}var i=c.getCurrentSourceFile(t);if(e.isInString(i,r)){return false}if(e.isInsideJsxElementOrAttribute(i,r)){return n===123}if(e.isInTemplateString(i,r)){return false}switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return true}function getJsxClosingTagAtPosition(t,r){var n=c.getCurrentSourceFile(t);var i=e.findPrecedingToken(r,n);if(!i)return undefined;var a=i.kind===31&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:undefined;if(a&&isUnclosedTag(a)){return{newText:""}}}function getLinesForRange(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function toggleLineComment(t,r,n){var i=c.getCurrentSourceFile(t);var a=[];var s=getLinesForRange(i,r),o=s.lineStarts,u=s.firstLine,l=s.lastLine;var p=n||false;var d=Number.MAX_VALUE;var f=new e.Map;var m=new RegExp(/\S/);var g=e.isInsideJsxElement(i,o[u]);var _=g?"{/*":"//";for(var h=u;h<=l;h++){var y=i.text.substring(o[h],i.getLineEndOfPosition(o[h]));var v=m.exec(y);if(v){d=Math.min(d,v.index);f.set(h.toString(),v.index);if(y.substr(v.index,_.length)!==_){p=n===undefined||n}}}for(var h=u;h<=l;h++){if(u!==l&&o[h]===r.end){continue}var T=f.get(h.toString());if(T!==undefined){if(g){a.push.apply(a,toggleMultilineComment(t,{pos:o[h]+d,end:i.getLineEndOfPosition(o[h])},p,g))}else if(p){a.push({newText:_,span:{length:0,start:o[h]+d}})}else if(i.text.substr(o[h]+T,_.length)===_){a.push({newText:"",span:{length:_.length,start:o[h]+T}})}}}return a}function toggleMultilineComment(t,r,n,i){var a;var s=c.getCurrentSourceFile(t);var o=[];var u=s.text;var l=false;var p=n||false;var d=[];var f=r.pos;var m=i!==undefined?i:e.isInsideJsxElement(s,f);var g=m?"{/*":"/*";var _=m?"*/}":"*/";var h=m?"\\{\\/\\*":"\\/\\*";var y=m?"\\*\\/\\}":"\\*\\/";while(f<=r.end){var v=u.substr(f,g.length)===g?g.length:0;var T=e.isInComment(s,f+v);if(T){if(m){T.pos--;T.end++}d.push(T.pos);if(T.kind===3){d.push(T.end)}l=true;f=T.end+1}else{var S=u.substring(f,r.end).search("("+h+")|("+y+")");p=n!==undefined?n:p||!e.isTextWhiteSpaceLike(u,f,S===-1?r.end:f+S);f=S===-1?r.end+1:f+S+_.length}}if(p||!l){if(((a=e.isInComment(s,r.pos))===null||a===void 0?void 0:a.kind)!==2){e.insertSorted(d,r.pos,e.compareValues)}e.insertSorted(d,r.end,e.compareValues);var b=d[0];if(u.substr(b,g.length)!==g){o.push({newText:g,span:{length:0,start:b}})}for(var E=1;E0?C-_.length:0;var v=u.substr(A,_.length)===_?_.length:0;o.push({newText:"",span:{length:g.length,start:C-v}})}}return o}function commentSelection(e,t){var r=c.getCurrentSourceFile(e);var n=getLinesForRange(r,t),i=n.firstLine,a=n.lastLine;return i===a&&t.pos!==t.end?toggleMultilineComment(e,t,true):toggleLineComment(e,t,true)}function uncommentSelection(t,r){var n=c.getCurrentSourceFile(t);var i=[];var a=r.pos;var s=r.end;if(a===s){s+=e.isInsideJsxElement(n,a)?2:1}for(var o=a;o<=s;o++){var u=e.isInComment(n,o);if(u){switch(u.kind){case 2:i.push.apply(i,toggleLineComment(t,{end:u.end,pos:u.pos+1},false));break;case 3:i.push.apply(i,toggleMultilineComment(t,{end:u.end,pos:u.pos+1},false))}o=u.end+1}}return i}function isUnclosedTag(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&isUnclosedTag(i)}function getSpanOfEnclosingComment(t,r,n){var i=c.getCurrentSourceFile(t);var a=e.formatting.getRangeOfEnclosingComment(i,r);return a&&(!n||a.kind===3)?e.createTextSpanFromRange(a):undefined}function getTodoComments(t,r){synchronizeHostData();var n=getValidSourceFile(t);d.throwIfCancellationRequested();var i=n.text;var a=[];if(r.length>0&&!isNodeModulesFile(n.fileName)){var s=getTodoCommentsRegExp();var o=void 0;while(o=s.exec(i)){d.throwIfCancellationRequested();var c=3;e.Debug.assert(o.length===r.length+c);var u=o[1];var l=o.index+u.length;if(!e.isInComment(n,l)){continue}var p=void 0;for(var f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function isNodeModulesFile(t){return e.stringContains(t,"/node_modules/")}}function getRenameInfo(t,r,n){synchronizeHostData();return e.Rename.getRenameInfo(u,getValidSourceFile(t),r,n)}function getRefactorContext(r,n,i,a,s,o){var c=typeof n==="number"?[n,undefined]:[n.pos,n.end],u=c[0],l=c[1];return{file:r,startPosition:u,endPosition:l,program:getProgram(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:s,kind:o}}function getInlayHintsContext(e,r,n){return{file:e,program:getProgram(),host:t,span:r,preferences:n,cancellationToken:d}}function getSmartSelectionRange(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,c.getCurrentSourceFile(t))}function getApplicableRefactors(t,r,n,i,a){if(n===void 0){n=e.emptyOptions}synchronizeHostData();var s=getValidSourceFile(t);return e.refactor.getApplicableRefactors(getRefactorContext(s,r,n,e.emptyOptions,i,a))}function getEditsForRefactor(t,r,n,i,a,s){if(s===void 0){s=e.emptyOptions}synchronizeHostData();var o=getValidSourceFile(t);return e.refactor.getEditsForRefactor(getRefactorContext(o,n,s,r),i,a)}function toLineColumnOffset(e,t){if(t===0){return{line:0,character:0}}return b.toLineColumnOffset(e,t)}function prepareCallHierarchy(t,r){synchronizeHostData();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(u,e.getTouchingPropertyName(getValidSourceFile(t),r));return n&&e.mapOneOrMany(n,function(t){return e.CallHierarchy.createCallHierarchyItem(u,t)})}function provideCallHierarchyIncomingCalls(t,r){synchronizeHostData();var n=getValidSourceFile(t);var i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(u,r===0?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(u,i,d):[]}function provideCallHierarchyOutgoingCalls(t,r){synchronizeHostData();var n=getValidSourceFile(t);var i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(u,r===0?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(u,i):[]}function provideInlayHints(t,r,n){if(n===void 0){n=e.emptyOptions}synchronizeHostData();var i=getValidSourceFile(t);return e.InlayHints.provideInlayHints(getInlayHintsContext(i,r,n))}var x={dispose:dispose,cleanupSemanticCache:cleanupSemanticCache,getSyntacticDiagnostics:getSyntacticDiagnostics,getSemanticDiagnostics:getSemanticDiagnostics,getSuggestionDiagnostics:getSuggestionDiagnostics,getCompilerOptionsDiagnostics:getCompilerOptionsDiagnostics,getSyntacticClassifications:getSyntacticClassifications,getSemanticClassifications:getSemanticClassifications,getEncodedSyntacticClassifications:getEncodedSyntacticClassifications,getEncodedSemanticClassifications:getEncodedSemanticClassifications,getCompletionsAtPosition:getCompletionsAtPosition,getCompletionEntryDetails:getCompletionEntryDetails,getCompletionEntrySymbol:getCompletionEntrySymbol,getSignatureHelpItems:getSignatureHelpItems,getQuickInfoAtPosition:getQuickInfoAtPosition,getDefinitionAtPosition:getDefinitionAtPosition,getDefinitionAndBoundSpan:getDefinitionAndBoundSpan,getImplementationAtPosition:getImplementationAtPosition,getTypeDefinitionAtPosition:getTypeDefinitionAtPosition,getReferencesAtPosition:getReferencesAtPosition,findReferences:findReferences,getFileReferences:getFileReferences,getOccurrencesAtPosition:getOccurrencesAtPosition,getDocumentHighlights:getDocumentHighlights,getNameOrDottedNameSpan:getNameOrDottedNameSpan,getBreakpointStatementAtPosition:getBreakpointStatementAtPosition,getNavigateToItems:getNavigateToItems,getRenameInfo:getRenameInfo,getSmartSelectionRange:getSmartSelectionRange,findRenameLocations:findRenameLocations,getNavigationBarItems:getNavigationBarItems,getNavigationTree:getNavigationTree,getOutliningSpans:getOutliningSpans,getTodoComments:getTodoComments,getBraceMatchingAtPosition:getBraceMatchingAtPosition,getIndentationAtPosition:getIndentationAtPosition,getFormattingEditsForRange:getFormattingEditsForRange,getFormattingEditsForDocument:getFormattingEditsForDocument,getFormattingEditsAfterKeystroke:getFormattingEditsAfterKeystroke,getDocCommentTemplateAtPosition:getDocCommentTemplateAtPosition,isValidBraceCompletionAtPosition:isValidBraceCompletionAtPosition,getJsxClosingTagAtPosition:getJsxClosingTagAtPosition,getSpanOfEnclosingComment:getSpanOfEnclosingComment,getCodeFixesAtPosition:getCodeFixesAtPosition,getCombinedCodeFix:getCombinedCodeFix,applyCodeActionCommand:applyCodeActionCommand,organizeImports:organizeImports,getEditsForFileRename:getEditsForFileRename,getEmitOutput:getEmitOutput,getNonBoundSourceFile:getNonBoundSourceFile,getProgram:getProgram,getAutoImportProvider:getAutoImportProvider,getApplicableRefactors:getApplicableRefactors,getEditsForRefactor:getEditsForRefactor,toLineColumnOffset:toLineColumnOffset,getSourceMapper:function(){return b},clearSourceMapperCache:function(){return b.clearCache()},prepareCallHierarchy:prepareCallHierarchy,provideCallHierarchyIncomingCalls:provideCallHierarchyIncomingCalls,provideCallHierarchyOutgoingCalls:provideCallHierarchyOutgoingCalls,toggleLineComment:toggleLineComment,toggleMultilineComment:toggleMultilineComment,commentSelection:commentSelection,uncommentSelection:uncommentSelection,provideInlayHints:provideInlayHints};switch(o){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:T.forEach(function(e){return x[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:S.forEach(function(e){return x[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(o)}return x}e.createLanguageService=createLanguageService;function getNameTable(e){if(!e.nameTable){initializeNameTable(e)}return e.nameTable}e.getNameTable=getNameTable;function initializeNameTable(t){var r=t.nameTable=new e.Map;t.forEachChild(function walk(t){if(e.isIdentifier(t)&&!e.isTagName(t)&&t.escapedText||e.isStringOrNumericLiteralLike(t)&&literalIsName(t)){var n=e.getEscapedTextOfIdentifierOrLiteral(t);r.set(n,r.get(n)===undefined?t.pos:-1)}else if(e.isPrivateIdentifier(t)){var n=t.escapedText;r.set(n,r.get(n)===undefined?t.pos:-1)}e.forEachChild(t,walk);if(e.hasJSDocNodes(t)){for(var i=0,a=t.jsDoc;ii){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i){return undefined}n=a}if(n.flags&8388608){return undefined}return spanInNode(n);function textSpan(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function textSpanEndingAtNextToken(r,n){return textSpan(r,e.findNextToken(n,n.parent,t))}function spanInNodeIfStartsOnSameLine(e,r){if(e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line){return spanInNode(e)}return spanInNode(r)}function spanInNodeArray(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function spanInPreviousNode(r){return spanInNode(e.findPrecedingToken(r.pos,t))}function spanInNextNode(r){return spanInNode(e.findNextToken(r,r.parent,t))}function spanInNode(r){if(r){var n=r.parent;switch(r.kind){case 235:return spanInVariableDeclaration(r.declarationList.declarations[0]);case 252:case 165:case 164:return spanInVariableDeclaration(r);case 162:return spanInParameterDeclaration(r);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return spanInFunctionDeclaration(r);case 233:if(e.isFunctionBlock(r)){return spanInFunctionBlock(r)}case 260:return spanInBlock(r);case 290:return spanInBlock(r.block);case 236:return textSpan(r.expression);case 245:return textSpan(r.getChildAt(0),r.expression);case 239:return textSpanEndingAtNextToken(r,r.expression);case 238:return spanInNode(r.statement);case 251:return textSpan(r.getChildAt(0));case 237:return textSpanEndingAtNextToken(r,r.expression);case 248:return spanInNode(r.statement);case 244:case 243:return textSpan(r.getChildAt(0),r.label);case 240:return spanInForStatement(r);case 241:return textSpanEndingAtNextToken(r,r.expression);case 242:return spanInInitializerOfForLike(r);case 247:return textSpanEndingAtNextToken(r,r.expression);case 287:case 288:return spanInNode(r.statements[0]);case 250:return spanInBlock(r.tryBlock);case 249:return textSpan(r,r.expression);case 269:return textSpan(r,r.expression);case 263:return textSpan(r,r.moduleReference);case 264:return textSpan(r,r.moduleSpecifier);case 270:return textSpan(r,r.moduleSpecifier);case 259:if(e.getModuleInstanceState(r)!==1){return undefined}case 255:case 258:case 294:case 201:return textSpan(r);case 246:return spanInNode(r.statement);case 163:return spanInNodeArray(n.decorators);case 199:case 200:return spanInBindingPattern(r);case 256:case 257:return undefined;case 26:case 1:return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t));case 27:return spanInPreviousNode(r);case 18:return spanInOpenBraceToken(r);case 19:return spanInCloseBraceToken(r);case 23:return spanInCloseBracketToken(r);case 20:return spanInOpenParenToken(r);case 21:return spanInCloseParenToken(r);case 58:return spanInColonToken(r);case 31:case 29:return spanInGreaterThanOrLessThanToken(r);case 115:return spanInWhileKeyword(r);case 91:case 83:case 96:return spanInNextNode(r);case 158:return spanInOfKeyword(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r)){return spanInArrayLiteralOrObjectLiteralDestructuringPattern(r)}if((r.kind===79||r.kind===223||r.kind===291||r.kind===292)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n)){return textSpan(r)}if(r.kind===219){var i=r,a=i.left,s=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)){return spanInArrayLiteralOrObjectLiteralDestructuringPattern(a)}if(s.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent)){return textSpan(r)}if(s.kind===27){return spanInNode(a)}}if(e.isExpressionNode(r)){switch(n.kind){case 238:return spanInPreviousNode(r);case 163:return spanInNode(r.parent);case 240:case 242:return textSpan(r);case 219:if(r.parent.operatorToken.kind===27){return textSpan(r)}break;case 212:if(r.parent.body===r){return textSpan(r)}break}}switch(r.parent.kind){case 291:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent)){return spanInNode(r.parent.initializer)}break;case 209:if(r.parent.type===r){return spanInNextNode(r.parent.type)}break;case 252:case 162:{var o=r.parent,c=o.initializer,u=o.type;if(c===r||u===r||e.isAssignmentOperator(r.kind)){return spanInPreviousNode(r)}break}case 219:{var a=r.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a){return spanInPreviousNode(r)}break}default:if(e.isFunctionLike(r.parent)&&r.parent.type===r){return spanInPreviousNode(r)}}return spanInNode(r.parent)}}function textSpanFromVariableDeclaration(r){if(e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r){return textSpan(e.findPrecedingToken(r.pos,t,r.parent),r)}else{return textSpan(r)}}function spanInVariableDeclaration(r){if(r.parent.parent.kind===241){return spanInNode(r.parent.parent)}var n=r.parent;if(e.isBindingPattern(r.name)){return spanInBindingPattern(r.name)}if(r.initializer||e.hasSyntacticModifier(r,1)||n.parent.kind===242){return textSpanFromVariableDeclaration(r)}if(e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r){return spanInNode(e.findPrecedingToken(r.pos,t,r.parent))}}function canHaveSpanInParameterDeclaration(t){return!!t.initializer||t.dotDotDotToken!==undefined||e.hasSyntacticModifier(t,4|8)}function spanInParameterDeclaration(t){if(e.isBindingPattern(t.name)){return spanInBindingPattern(t.name)}else if(canHaveSpanInParameterDeclaration(t)){return textSpan(t)}else{var r=t.parent;var n=r.parameters.indexOf(t);e.Debug.assert(n!==-1);if(n!==0){return spanInParameterDeclaration(r.parameters[n-1])}else{return spanInNode(r.body)}}}function canFunctionHaveSpanInWholeDeclaration(t){return e.hasSyntacticModifier(t,1)||t.parent.kind===255&&t.kind!==169}function spanInFunctionDeclaration(e){if(!e.body){return undefined}if(canFunctionHaveSpanInWholeDeclaration(e)){return textSpan(e)}return spanInNode(e.body)}function spanInFunctionBlock(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(canFunctionHaveSpanInWholeDeclaration(e.parent)){return spanInNodeIfStartsOnSameLine(e.parent,t)}return spanInNode(t)}function spanInBlock(r){switch(r.parent.kind){case 259:if(e.getModuleInstanceState(r.parent)!==1){return undefined}case 239:case 237:case 241:return spanInNodeIfStartsOnSameLine(r.parent,r.statements[0]);case 240:case 242:return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return spanInNode(r.statements[0])}function spanInInitializerOfForLike(e){if(e.initializer.kind===253){var t=e.initializer;if(t.declarations.length>0){return spanInNode(t.declarations[0])}}else{return spanInNode(e.initializer)}}function spanInForStatement(e){if(e.initializer){return spanInInitializerOfForLike(e)}if(e.condition){return textSpan(e.condition)}if(e.incrementor){return textSpan(e.incrementor)}}function spanInBindingPattern(t){var r=e.forEach(t.elements,function(e){return e.kind!==225?e:undefined});if(r){return spanInNode(r)}if(t.parent.kind===201){return textSpan(t.parent)}return textSpanFromVariableDeclaration(t.parent)}function spanInArrayLiteralOrObjectLiteralDestructuringPattern(t){e.Debug.assert(t.kind!==200&&t.kind!==199);var r=t.kind===202?t.elements:t.properties;var n=e.forEach(r,function(e){return e.kind!==225?e:undefined});if(n){return spanInNode(n)}return textSpan(t.parent.kind===219?t.parent:t)}function spanInOpenBraceToken(r){switch(r.parent.kind){case 258:var n=r.parent;return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 255:var i=r.parent;return spanInNodeIfStartsOnSameLine(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 261:return spanInNodeIfStartsOnSameLine(r.parent.parent,r.parent.clauses[0])}return spanInNode(r.parent)}function spanInCloseBraceToken(t){switch(t.parent.kind){case 260:if(e.getModuleInstanceState(t.parent.parent)!==1){return undefined}case 258:case 255:return textSpan(t);case 233:if(e.isFunctionBlock(t.parent)){return textSpan(t)}case 290:return spanInNode(e.lastOrUndefined(t.parent.statements));case 261:var r=t.parent;var n=e.lastOrUndefined(r.clauses);if(n){return spanInNode(e.lastOrUndefined(n.statements))}return undefined;case 199:var i=t.parent;return spanInNode(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return textSpan(e.lastOrUndefined(a.properties)||a)}return spanInNode(t.parent)}}function spanInCloseBracketToken(t){switch(t.parent.kind){case 200:var r=t.parent;return textSpan(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return textSpan(e.lastOrUndefined(n.elements)||n)}return spanInNode(t.parent)}}function spanInOpenParenToken(e){if(e.parent.kind===238||e.parent.kind===206||e.parent.kind===207){return spanInPreviousNode(e)}if(e.parent.kind===210){return spanInNextNode(e)}return spanInNode(e.parent)}function spanInCloseParenToken(e){switch(e.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return spanInPreviousNode(e);default:return spanInNode(e.parent)}}function spanInColonToken(t){if(e.isFunctionLike(t.parent)||t.parent.kind===291||t.parent.kind===162){return spanInPreviousNode(t)}return spanInNode(t.parent)}function spanInGreaterThanOrLessThanToken(e){if(e.parent.kind===209){return spanInNextNode(e)}return spanInNode(e.parent)}function spanInWhileKeyword(e){if(e.parent.kind===238){return textSpanEndingAtNextToken(e,e.parent.expression)}return spanInNode(e.parent)}function spanInOfKeyword(e){if(e.parent.kind===242){return spanInNextNode(e)}return spanInNode(e.parent)}}}t.spanInSourceFileAtLocation=spanInSourceFileAtLocation})(t=e.BreakpointResolver||(e.BreakpointResolver={}))})(u||(u={}));var u;(function(e){function transform(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t];var s=e.transformNodes(undefined,undefined,e.factory,n,a,r,true);s.diagnostics=e.concatenate(s.diagnostics,i);return s}e.transform=transform})(u||(u={}));var l=function(){return this}();var u;(function(e){function logInternalError(e,t){if(e){e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}}var t=function(){function ScriptSnapshotShimAdapter(e){this.scriptSnapshotShim=e}ScriptSnapshotShimAdapter.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)};ScriptSnapshotShimAdapter.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()};ScriptSnapshotShimAdapter.prototype.getChangeRange=function(t){var r=t;var n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(n===null){return null}var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)};ScriptSnapshotShimAdapter.prototype.dispose=function(){if("dispose"in this.scriptSnapshotShim){this.scriptSnapshotShim.dispose()}};return ScriptSnapshotShimAdapter}();var r=function(){function LanguageServiceShimHostAdapter(t){var r=this;this.shimHost=t;this.loggingEnabled=false;this.tracingEnabled=false;if("getModuleResolutionsForFile"in this.shimHost){this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:false}:undefined})}}if("directoryExists"in this.shimHost){this.directoryExists=function(e){return r.shimHost.directoryExists(e)}}if("getTypeReferenceDirectiveResolutionsForFile"in this.shimHost){this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,function(t){return e.getProperty(i,t)})}}}LanguageServiceShimHostAdapter.prototype.log=function(e){if(this.loggingEnabled){this.shimHost.log(e)}};LanguageServiceShimHostAdapter.prototype.trace=function(e){if(this.tracingEnabled){this.shimHost.trace(e)}};LanguageServiceShimHostAdapter.prototype.error=function(e){this.shimHost.error(e)};LanguageServiceShimHostAdapter.prototype.getProjectVersion=function(){if(!this.shimHost.getProjectVersion){return undefined}return this.shimHost.getProjectVersion()};LanguageServiceShimHostAdapter.prototype.getTypeRootsVersion=function(){if(!this.shimHost.getTypeRootsVersion){return 0}return this.shimHost.getTypeRootsVersion()};LanguageServiceShimHostAdapter.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():false};LanguageServiceShimHostAdapter.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(e===null||e===""){throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings")}var t=JSON.parse(e);t.allowNonTsExtensions=true;return t};LanguageServiceShimHostAdapter.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)};LanguageServiceShimHostAdapter.prototype.getScriptSnapshot=function(e){var r=this.shimHost.getScriptSnapshot(e);return r&&new t(r)};LanguageServiceShimHostAdapter.prototype.getScriptKind=function(e){if("getScriptKind"in this.shimHost){return this.shimHost.getScriptKind(e)}else{return 0}};LanguageServiceShimHostAdapter.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)};LanguageServiceShimHostAdapter.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e===""){return null}try{return JSON.parse(e)}catch(e){this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format");return null}};LanguageServiceShimHostAdapter.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)};LanguageServiceShimHostAdapter.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()};LanguageServiceShimHostAdapter.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))};LanguageServiceShimHostAdapter.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))};LanguageServiceShimHostAdapter.prototype.readDirectory=function(t,r,n,i,a){var s=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,a))};LanguageServiceShimHostAdapter.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)};LanguageServiceShimHostAdapter.prototype.fileExists=function(e){return this.shimHost.fileExists(e)};return LanguageServiceShimHostAdapter}();e.LanguageServiceShimHostAdapter=r;var a=function(){function CoreServicesShimHostAdapter(e){var t=this;this.shimHost=e;this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():false;if("directoryExists"in this.shimHost){this.directoryExists=function(e){return t.shimHost.directoryExists(e)}}else{this.directoryExists=undefined}if("realpath"in this.shimHost){this.realpath=function(e){return t.shimHost.realpath(e)}}else{this.realpath=undefined}}CoreServicesShimHostAdapter.prototype.readDirectory=function(t,r,n,i,a){var s=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,a))};CoreServicesShimHostAdapter.prototype.fileExists=function(e){return this.shimHost.fileExists(e)};CoreServicesShimHostAdapter.prototype.readFile=function(e){return this.shimHost.readFile(e)};CoreServicesShimHostAdapter.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))};return CoreServicesShimHostAdapter}();e.CoreServicesShimHostAdapter=a;function simpleForwardCall(t,r,n,i){var a;if(i){t.log(r);a=e.timestamp()}var s=n();if(i){var o=e.timestamp();t.log(r+" completed in "+(o-a)+" msec");if(e.isString(s)){var c=s;if(c.length>128){c=c.substring(0,128)+"..."}t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return s}function forwardJSONCall(e,t,r,n){return forwardCall(e,t,true,r,n)}function forwardCall(t,r,n,i,a){try{var s=simpleForwardCall(t,r,i,a);return n?JSON.stringify({result:s}):s}catch(n){if(n instanceof e.OperationCanceledException){return JSON.stringify({canceled:true})}logInternalError(t,n);n.description=r;return JSON.stringify({error:n})}}var s=function(){function ShimBase(e){this.factory=e;e.registerShim(this)}ShimBase.prototype.dispose=function(e){this.factory.unregisterShim(this)};return ShimBase}();function realizeDiagnostics(e,t){return e.map(function(e){return realizeDiagnostic(e,t)})}e.realizeDiagnostics=realizeDiagnostics;function realizeDiagnostic(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}var u=function(t){c(LanguageServiceShimObject,t);function LanguageServiceShimObject(e,r,n){var i=t.call(this,e)||this;i.host=r;i.languageService=n;i.logPerformance=false;i.logger=i.host;return i}LanguageServiceShimObject.prototype.forwardJSONCall=function(e,t){return forwardJSONCall(this.logger,e,t,this.logPerformance)};LanguageServiceShimObject.prototype.dispose=function(e){this.logger.log("dispose()");this.languageService.dispose();this.languageService=null;if(l&&l.CollectGarbage){l.CollectGarbage();this.logger.log("CollectGarbage()")}this.logger=null;t.prototype.dispose.call(this,e)};LanguageServiceShimObject.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})};LanguageServiceShimObject.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){e.languageService.cleanupSemanticCache();return null})};LanguageServiceShimObject.prototype.realizeDiagnostics=function(t){var r=e.getNewLineOrDefaultFromHost(this.host);return realizeDiagnostics(t,r)};LanguageServiceShimObject.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))})};LanguageServiceShimObject.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))})};LanguageServiceShimObject.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",function(){return convertClassifications(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))})};LanguageServiceShimObject.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",function(){return convertClassifications(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))})};LanguageServiceShimObject.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})};LanguageServiceShimObject.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})};LanguageServiceShimObject.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})};LanguageServiceShimObject.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})};LanguageServiceShimObject.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})};LanguageServiceShimObject.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})};LanguageServiceShimObject.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})};LanguageServiceShimObject.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})};LanguageServiceShimObject.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})};LanguageServiceShimObject.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})};LanguageServiceShimObject.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})};LanguageServiceShimObject.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})};LanguageServiceShimObject.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t,r)})};LanguageServiceShimObject.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",function(){return r.languageService.getSmartSelectionRange(e,t)})};LanguageServiceShimObject.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",function(){return a.languageService.findRenameLocations(e,t,r,n,i)})};LanguageServiceShimObject.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})};LanguageServiceShimObject.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})};LanguageServiceShimObject.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})};LanguageServiceShimObject.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})};LanguageServiceShimObject.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})};LanguageServiceShimObject.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})};LanguageServiceShimObject.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('"+e+")",function(){return t.languageService.getFileReferences(e)})};LanguageServiceShimObject.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})};LanguageServiceShimObject.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n));var s=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===s})})};LanguageServiceShimObject.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})};LanguageServiceShimObject.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,s){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var c=n===undefined?undefined:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,c,i,a,s)})};LanguageServiceShimObject.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})};LanguageServiceShimObject.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})};LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})};LanguageServiceShimObject.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)})};LanguageServiceShimObject.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})};LanguageServiceShimObject.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})};LanguageServiceShimObject.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})};LanguageServiceShimObject.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})};LanguageServiceShimObject.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})};LanguageServiceShimObject.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",function(){return r.languageService.prepareCallHierarchy(e,t)})};LanguageServiceShimObject.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)})};LanguageServiceShimObject.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)})};LanguageServiceShimObject.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('"+e+"', '"+JSON.stringify(t)+"', "+JSON.stringify(r)+")",function(){return n.languageService.provideInlayHints(e,t,r)})};LanguageServiceShimObject.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,a=o(r,["diagnostics"]);return i(i({},a),{diagnostics:t.realizeDiagnostics(n)})})};LanguageServiceShimObject.prototype.getEmitOutputObject=function(e){var t=this;return forwardCall(this.logger,"getEmitOutput('"+e+"')",false,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)};LanguageServiceShimObject.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleLineComment(e,t)})};LanguageServiceShimObject.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.toggleMultilineComment(e,t)})};LanguageServiceShimObject.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.commentSelection(e,t)})};LanguageServiceShimObject.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",function(){return r.languageService.uncommentSelection(e,t)})};return LanguageServiceShimObject}(s);function convertClassifications(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var p=function(t){c(ClassifierShimObject,t);function ClassifierShimObject(r,n){var i=t.call(this,r)||this;i.logger=n;i.logPerformance=false;i.classifier=e.createClassifier();return i}ClassifierShimObject.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;if(r===void 0){r=false}return forwardJSONCall(this.logger,"getEncodedLexicalClassifications",function(){return convertClassifications(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)};ClassifierShimObject.prototype.getClassificationsForLine=function(e,t,r){if(r===void 0){r=false}var n=this.classifier.getClassificationsForLine(e,t,r);var i="";for(var a=0,s=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,undefined,r,n):e.Debug.fail("Argument count mismatch")},t);e.updateVariableDeclaration=e.Debug.deprecate(function updateVariableDeclaration(t,r,n,i,a){return arguments.length===5?e.factory.updateVariableDeclaration(t,r,n,i,a):arguments.length===4?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")},t);e.createImportClause=e.Debug.deprecate(function createImportClause(t,r,n){if(n===void 0){n=false}return e.factory.createImportClause(n,t,r)},t);e.updateImportClause=e.Debug.deprecate(function updateImportClause(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)},t);e.createExportDeclaration=e.Debug.deprecate(function createExportDeclaration(t,r,n,i,a){if(a===void 0){a=false}return e.factory.createExportDeclaration(t,r,a,n,i)},t);e.updateExportDeclaration=e.Debug.deprecate(function updateExportDeclaration(t,r,n,i,a,s){return e.factory.updateExportDeclaration(t,r,n,s,i,a)},t);e.createJSDocParamTag=e.Debug.deprecate(function createJSDocParamTag(t,r,n,i){return e.factory.createJSDocParameterTag(undefined,t,r,n,false,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):undefined)},t);e.createComma=e.Debug.deprecate(function createComma(t,r){return e.factory.createComma(t,r)},t);e.createLessThan=e.Debug.deprecate(function createLessThan(t,r){return e.factory.createLessThan(t,r)},t);e.createAssignment=e.Debug.deprecate(function createAssignment(t,r){return e.factory.createAssignment(t,r)},t);e.createStrictEquality=e.Debug.deprecate(function createStrictEquality(t,r){return e.factory.createStrictEquality(t,r)},t);e.createStrictInequality=e.Debug.deprecate(function createStrictInequality(t,r){return e.factory.createStrictInequality(t,r)},t);e.createAdd=e.Debug.deprecate(function createAdd(t,r){return e.factory.createAdd(t,r)},t);e.createSubtract=e.Debug.deprecate(function createSubtract(t,r){return e.factory.createSubtract(t,r)},t);e.createLogicalAnd=e.Debug.deprecate(function createLogicalAnd(t,r){return e.factory.createLogicalAnd(t,r)},t);e.createLogicalOr=e.Debug.deprecate(function createLogicalOr(t,r){return e.factory.createLogicalOr(t,r)},t);e.createPostfixIncrement=e.Debug.deprecate(function createPostfixIncrement(t){return e.factory.createPostfixIncrement(t)},t);e.createLogicalNot=e.Debug.deprecate(function createLogicalNot(t){return e.factory.createLogicalNot(t)},t);e.createNode=e.Debug.deprecate(function createNode(t,r,n){if(r===void 0){r=0}if(n===void 0){n=0}return e.setTextRangePosEnd(t===300?e.parseBaseNodeFactory.createBaseSourceFileNode(t):t===79?e.parseBaseNodeFactory.createBaseIdentifierNode(t):t===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):!e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseTokenNode(t):e.parseBaseNodeFactory.createBaseNode(t),r,n)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."});e.getMutableClone=e.Debug.deprecate(function getMutableClone(t){var r=e.factory.cloneNode(t);e.setTextRange(r,t);e.setParent(r,t.parent);return r},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."});e.isTypeAssertion=e.Debug.deprecate(function isTypeAssertion(e){return e.kind===209},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."});e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function isIdentifierOrPrivateIdentifier(t){return e.isMemberName(t)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(u||(u={}))},3194:function(e,t,r){const n=r(5852);const i=r(8333);const{getUpdatePoint:a,getStringValue:s,getLineNumber:o,getEndLineNumber:c,getCode:u,hasStringOrTemplateArgument:l}=r(3094);e.exports=((e,t="",r="")=>{const p=[];let d="";const f=e=>{if(l(e.container)){const n=s(e.container);p.push({name:n,rawName:n,suites:[d],updatePoint:a(e.container),line:o(e),code:u(r,o(e),c(e)),file:t});return}if(l(e.parent)){const n=s(e.parent);p.push({name:n,rawName:n,suites:[d],updatePoint:a(e.container),line:o(e),code:u(r,o(e),c(e)),file:t})}};n.default(e,{enter(e){if(e.isIdentifier({name:"Feature"})){if(!l(e.parent))return;d=s(e.parent);currentScenario=null}if(e.isIdentifier({name:"only"})){const r=e.parent.object.name;if(["Scenario"].includes(r)){const r=o(e);throw new i("Exclusive tests detected. `.only` call found in "+`${t}:${r}\n`+"Remove `.only` to restore test checks")}}if(e.isIdentifier({name:"xScenario"})){if(l(e.container)){const n=s(e.container);p.push({name:n,suites:[d],updatePoint:a(e.container),line:o(e),code:u(r,o(e),c(e)),skipped:true,file:t});return}}if(e.isIdentifier({name:"Scenario"})){f(e)}if(e.isIdentifier({name:"Data"})){f(e.parentPath.parentPath)}if(e.isIdentifier({name:"tag"})){if(!e.parentPath.container||!e.parentPath.container.arguments||!e.parentPath.container.arguments[0]){return}let t=s(e.parentPath.container);if(!t)return;if(t.startsWith("@")){t=t.slice(1)}if(!e.parentPath.container.callee)return;appendTagToOwner(e.parentPath.container.callee,t)}}});function appendTagToOwner(e,t){if(!e.object)return null;if(e.object.callee.name==="Data"){test=p[p.length-1];if(!test)return;test.name=`${test.name.trim()} @${t}`;return}if(e.object.callee.name==="Scenario"){const r=s(e.object);test=p.filter(e=>e.rawName===r)[0];if(!test)return;test.name=`${test.name.trim()} @${t}`;return}if(e.object.callee.name==="Feature"){d=`${d.trim()} @${t}`;return}return appendTagToOwner(e.object.callee,t)}return p})},3196:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getOpposite=getOpposite;t.getCompletionRecords=getCompletionRecords;t.getSibling=getSibling;t.getPrevSibling=getPrevSibling;t.getNextSibling=getNextSibling;t.getAllNextSiblings=getAllNextSiblings;t.getAllPrevSiblings=getAllPrevSiblings;t.get=get;t._getKey=_getKey;t._getPattern=_getPattern;t.getBindingIdentifiers=getBindingIdentifiers;t.getOuterBindingIdentifiers=getOuterBindingIdentifiers;t.getBindingIdentifierPaths=getBindingIdentifierPaths;t.getOuterBindingIdentifierPaths=getOuterBindingIdentifierPaths;var n=r(7774);var i=r(9978);const{getBindingIdentifiers:a,getOuterBindingIdentifiers:s,isDeclaration:o,numericLiteral:c,unaryExpression:u}=i;const l=0;const p=1;function NormalCompletion(e){return{type:l,path:e}}function BreakCompletion(e){return{type:p,path:e}}function getOpposite(){if(this.key==="left"){return this.getSibling("right")}else if(this.key==="right"){return this.getSibling("left")}return null}function addCompletionRecords(e,t,r){if(e){t.push(..._getCompletionRecords(e,r))}return t}function completionRecordForSwitch(e,t,r){let n=[];for(let i=0;i{e.type=p})}function replaceBreakStatementInBreakCompletion(e,t){e.forEach(e=>{if(e.path.isBreakStatement({label:null})){if(t){e.path.replaceWith(u("void",c(0)))}else{e.path.remove()}}})}function getStatementListCompletion(e,t){const r=[];if(t.canHaveBreak){let n=[];for(let i=0;i0&&o.every(e=>e.type===p)){if(n.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))){normalCompletionToBreak(n);r.push(...n);if(n.some(e=>e.path.isDeclaration())){r.push(...o);replaceBreakStatementInBreakCompletion(o,true)}replaceBreakStatementInBreakCompletion(o,false)}else{r.push(...o);if(!t.shouldPopulateBreak){replaceBreakStatementInBreakCompletion(o,true)}}break}if(i===e.length-1){r.push(...o)}else{n=[];for(let e=0;e=0;n--){const i=_getCompletionRecords(e[n],t);if(i.length>1||i.length===1&&!i[0].path.isVariableDeclaration()){r.push(...i);break}}}return r}function _getCompletionRecords(e,t){let r=[];if(e.isIfStatement()){r=addCompletionRecords(e.get("consequent"),r,t);r=addCompletionRecords(e.get("alternate"),r,t)}else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isProgram()||e.isBlockStatement()){return getStatementListCompletion(e.get("body"),t)}else if(e.isFunction()){return _getCompletionRecords(e.get("body"),t)}else if(e.isTryStatement()){r=addCompletionRecords(e.get("block"),r,t);r=addCompletionRecords(e.get("handler"),r,t)}else if(e.isCatchClause()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isSwitchStatement()){return completionRecordForSwitch(e.get("cases"),r,t)}else if(e.isSwitchCase()){return getStatementListCompletion(e.get("consequent"),{canHaveBreak:true,shouldPopulateBreak:false,inCaseClause:true})}else if(e.isBreakStatement()){r.push(BreakCompletion(e))}else{r.push(NormalCompletion(e))}return r}function getCompletionRecords(){const e=_getCompletionRecords(this,{canHaveBreak:false,shouldPopulateBreak:false,inCaseClause:false});return e.map(e=>e.path)}function getSibling(e){return n.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function getPrevSibling(){return this.getSibling(this.key-1)}function getNextSibling(){return this.getSibling(this.key+1)}function getAllNextSiblings(){let e=this.key;let t=this.getSibling(++e);const r=[];while(t.node){r.push(t);t=this.getSibling(++e)}return r}function getAllPrevSiblings(){let e=this.key;let t=this.getSibling(--e);const r=[];while(t.node){r.push(t);t=this.getSibling(--e)}return r}function get(e,t=true){if(t===true)t=this.context;const r=e.split(".");if(r.length===1){return this._getKey(e,t)}else{return this._getPattern(r,t)}}function _getKey(e,t){const r=this.node;const i=r[e];if(Array.isArray(i)){return i.map((a,s)=>{return n.default.get({listKey:e,parentPath:this,parent:r,container:i,key:s}).setContext(t)})}else{return n.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}}function _getPattern(e,t){let r=this;for(const n of e){if(n==="."){r=r.parentPath}else{if(Array.isArray(r)){r=r[n]}else{r=r.get(n,t)}}}return r}function getBindingIdentifiers(e){return a(this.node,e)}function getOuterBindingIdentifiers(e){return s(this.node,e)}function getBindingIdentifierPaths(e=false,t=false){const r=this;const n=[r];const i=Object.create(null);while(n.length){const r=n.shift();if(!r)continue;if(!r.node)continue;const s=a.keys[r.node.type];if(r.isIdentifier()){if(e){const e=i[r.node.name]=i[r.node.name]||[];e.push(r)}else{i[r.node.name]=r}continue}if(r.isExportDeclaration()){const e=r.get("declaration");if(o(e)){n.push(e)}continue}if(t){if(r.isFunctionDeclaration()){n.push(r.get("id"));continue}if(r.isFunctionExpression()){continue}}if(s){for(let e=0;et.indexOf(e)<0);n.push(l.typeAnnotation)}if(o.length){o.push(...i);for(const e of o){n.push(e.getTypeAnnotation())}}if(!n.length){return}if(u(n[0])&&s){return s(n)}if(a){return a(n)}return c(n)}function getConstantViolationsBefore(e,t,r){const n=e.constantViolations.slice();n.unshift(e.path);return n.filter(e=>{e=e.resolve();const n=e._guessExecutionStatusRelativeTo(t);if(r&&n==="unknown")r.push(e);return n==="before"})}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator;const n=t.get("right").resolve();const a=t.get("left").resolve();let s;if(a.isIdentifier({name:e})){s=n}else if(n.isIdentifier({name:e})){s=a}if(s){if(r==="==="){return s.getTypeAnnotation()}if(i.indexOf(r)>=0){return l()}return}if(r!=="==="&&r!=="==")return;let c;let u;if(a.isUnaryExpression({operator:"typeof"})){c=a;u=n}else if(n.isUnaryExpression({operator:"typeof"})){c=n;u=a}if(!c)return;if(!c.get("argument").isIdentifier({name:e}))return;u=u.resolve();if(!u.isLiteral())return;const p=u.node.value;if(typeof p!=="string")return;return o(p)}function getParentConditionalPath(e,t,r){let n;while(n=t.parentPath){if(n.isIfStatement()||n.isConditionalExpression()){if(t.key==="test"){return}return n}if(n.isFunction()){if(n.parentPath.scope.getBinding(r)!==e)return}t=n}}function getConditionalAnnotation(e,t,r){const n=getParentConditionalPath(e,t,r);if(!n)return;const i=n.get("test");const o=[i];const l=[];for(let e=0;e_template().default.statement` +(()=>{var __webpack_modules__={18541:e=>{function webpackEmptyAsyncContext(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}))}webpackEmptyAsyncContext.keys=()=>[];webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=18541;e.exports=webpackEmptyAsyncContext},44914:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const o=a(r(70857));const s=r(30302);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return(0,s.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return(0,s.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},37484:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.platform=t.toPlatformPath=t.toWin32Path=t.toPosixPath=t.markdownSummary=t.summary=t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const s=r(44914);const c=r(24753);const l=r(30302);const u=a(r(70857));const d=a(r(16928));const p=r(35306);var g;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(g||(t.ExitCode=g={}));function exportVariable(e,t){const r=(0,l.toCommandValue)(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){return(0,c.issueFileCommand)("ENV",(0,c.prepareKeyValueMessage)(e,t))}(0,s.issueCommand)("set-env",{name:e},r)}t.exportVariable=exportVariable;function setSecret(e){(0,s.issueCommand)("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){(0,c.issueFileCommand)("PATH",e)}else{(0,s.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${d.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return r}return r.trim()}t.getInput=getInput;function getMultilineInput(e,t){const r=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return r}return r.map((e=>e.trim()))}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const r=["true","True","TRUE"];const n=["false","False","FALSE"];const i=getInput(e,t);if(r.includes(i))return true;if(n.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){const r=process.env["GITHUB_OUTPUT"]||"";if(r){return(0,c.issueFileCommand)("OUTPUT",(0,c.prepareKeyValueMessage)(e,t))}process.stdout.write(u.EOL);(0,s.issueCommand)("set-output",{name:e},(0,l.toCommandValue)(t))}t.setOutput=setOutput;function setCommandEcho(e){(0,s.issue)("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=g.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){(0,s.issueCommand)("debug",{},e)}t.debug=debug;function error(e,t={}){(0,s.issueCommand)("error",(0,l.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){(0,s.issueCommand)("warning",(0,l.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){(0,s.issueCommand)("notice",(0,l.toCommandProperties)(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){(0,s.issue)("group",e)}t.startGroup=startGroup;function endGroup(){(0,s.issue)("endgroup")}t.endGroup=endGroup;function group(e,t){return o(this,void 0,void 0,(function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r}))}t.group=group;function saveState(e,t){const r=process.env["GITHUB_STATE"]||"";if(r){return(0,c.issueFileCommand)("STATE",(0,c.prepareKeyValueMessage)(e,t))}(0,s.issueCommand)("save-state",{name:e},(0,l.toCommandValue)(t))}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return o(this,void 0,void 0,(function*(){return yield p.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var y=r(71847);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return y.summary}});var h=r(71847);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return h.markdownSummary}});var _=r(31976);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return _.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return _.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return _.toPlatformPath}});t.platform=a(r(18968))},24753:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const o=a(r(76982));const s=a(r(79896));const c=a(r(70857));const l=r(30302);function issueFileCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}s.appendFileSync(r,`${(0,l.toCommandValue)(t)}${c.EOL}`,{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=`ghadelimiter_${o.randomUUID()}`;const n=(0,l.toCommandValue)(t);if(e.includes(r)){throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`)}if(n.includes(r)){throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`)}return`${e}<<${r}${c.EOL}${n}${c.EOL}${r}`}t.prepareKeyValueMessage=prepareKeyValueMessage},35306:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const i=r(54844);const a=r(44552);const o=r(37484);class OidcClient{static createHttpClient(e=true,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new a.BearerCredentialHandler(OidcClient.getRequestToken())],r)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return n(this,void 0,void 0,(function*(){const r=OidcClient.createHttpClient();const n=yield r.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const i=(t=n.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return n(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const r=encodeURIComponent(e);t=`${t}&audience=${r}`}(0,o.debug)(`ID token url is ${t}`);const r=yield OidcClient.getCall(t);(0,o.setSecret)(r);return r}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},31976:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const o=a(r(16928));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,o.sep)}t.toPlatformPath=toPlatformPath},18968:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getDetails=t.isLinux=t.isMacOS=t.isWindows=t.arch=t.platform=void 0;const c=s(r(70857));const l=a(r(95236));const getWindowsInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield l.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield l.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>o(void 0,void 0,void 0,(function*(){var e,t,r,n;const{stdout:i}=yield l.getExecOutput("sw_vers",undefined,{silent:true});const a=(t=(e=i.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const o=(n=(r=i.match(/ProductName:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";return{name:o,version:a}}));const getLinuxInfo=()=>o(void 0,void 0,void 0,(function*(){const{stdout:e}=yield l.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,r]=e.trim().split("\n");return{name:t,version:r}}));t.platform=c.default.platform();t.arch=c.default.arch();t.isWindows=t.platform==="win32";t.isMacOS=t.platform==="darwin";t.isLinux=t.platform==="linux";function getDetails(){return o(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield t.isWindows?getWindowsInfo():t.isMacOS?getMacOsInfo():getLinuxInfo()),{platform:t.platform,arch:t.arch,isWindows:t.isWindows,isMacOS:t.isMacOS,isLinux:t.isLinux})}))}t.getDetails=getDetails},71847:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const i=r(70857);const a=r(79896);const{access:o,appendFile:s,writeFile:c}=a.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return n(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield o(e,a.constants.R_OK|a.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,r={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${n}>`}return`<${e}${n}>${t}`}write(e){return n(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const r=yield this.filePath();const n=t?c:s;yield n(r,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return n(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(i.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t});const n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=false){const r=t?"ol":"ul";const n=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(r,n);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:r,colspan:n,rowspan:i}=e;const a=t?"th":"td";const o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(a,r,o)})).join("");return this.wrap("tr",t)})).join("");const r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:i}=r||{};const a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i});const o=this.wrap("img",null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){const r=`h${t}`;const n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1";const i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t});const n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}}const l=new Summary;t.markdownSummary=l;t.summary=l},30302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},95236:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const s=r(13193);const c=a(r(6665));function exec(e,t,r){return o(this,void 0,void 0,(function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const a=new c.ToolRunner(i,t,r);return a.exec()}))}t.exec=exec;function getExecOutput(e,t,r){var n,i;return o(this,void 0,void 0,(function*(){let a="";let o="";const c=new s.StringDecoder("utf8");const l=new s.StringDecoder("utf8");const u=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const d=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{o+=l.write(e);if(d){d(e)}};const stdOutListener=e=>{a+=c.write(e);if(u){u(e)}};const p=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:stdOutListener,stderr:stdErrListener});const g=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:p}));a+=c.end();o+=l.end();return{exitCode:g,stdout:a,stderr:o}}))}t.getExecOutput=getExecOutput},6665:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const s=a(r(70857));const c=a(r(24434));const l=a(r(35317));const u=a(r(16928));const d=a(r(94994));const p=a(r(75207));const g=r(53557);const y=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(y){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(s.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+s.EOL.length);i=n.indexOf(s.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(y){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(y){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some((e=>e===n))){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return o(this,void 0,void 0,(function*(){if(!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||y&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield d.which(this.toolPath,true);return new Promise(((e,t)=>o(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield p.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const a=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let o="";if(a.stdout){a.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let c="";if(a.stderr){a.stderr.on("data",(e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}a.on("error",(e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()}));a.on("exit",(e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()}));a.on("close",(e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()}));n.on("done",((r,n)=>{if(o.length>0){this.emit("stdline",o)}if(c.length>0){this.emit("errline",c)}a.removeAllListeners();if(r){t(r)}else{e(n)}}));if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){t.push(i);i=""}continue}append(o)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=g.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},51648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const n=r(79896);const i=r(70857);class Context{constructor(){var e,t,r;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(n.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(n.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${i.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(r=process.env.GITHUB_GRAPHQL_URL)!==null&&r!==void 0?r:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},93228:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const o=a(r(51648));const s=r(38006);t.context=new o.Context;function getOctokit(e,t,...r){const n=s.GitHub.plugin(...r);return new n(s.getOctokitOptions(e,t))}t.getOctokit=getOctokit},65156:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const o=a(r(54844));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new o.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},38006:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.defaults=t.context=void 0;const o=a(r(51648));const s=a(r(65156));const c=r(61897);const l=r(84935);const u=r(38082);t.context=new o.Context;const d=s.getApiBaseUrl();t.defaults={baseUrl:d,request:{agent:s.getProxyAgent(d)}};t.GitHub=c.Octokit.plugin(l.restEndpointMethods,u.paginateRest).defaults(t.defaults);function getOctokitOptions(e,t){const r=Object.assign({},t||{});const n=s.getAuthString(e,r);if(n){r.auth=n}return r}t.getOctokitOptions=getOctokitOptions},44552:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return r(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},54844:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const s=a(r(58611));const c=a(r(65692));const l=a(r(54988));const u=a(r(20770));const d=r(46752);var p;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(p||(t.HttpCodes=p={}));var g;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(g||(t.Headers=g={}));var y;(function(e){e["ApplicationJson"]="application/json"})(y||(t.MediaTypes=y={}));function getProxyUrl(e){const t=l.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[p.MovedPermanently,p.ResourceMoved,p.SeeOther,p.TemporaryRedirect,p.PermanentRedirect];const _=[p.BadGateway,p.ServiceUnavailable,p.GatewayTimeout];const A=["OPTIONS","GET","DELETE","HEAD"];const v=10;const E=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return o(this,void 0,void 0,(function*(){return new Promise((e=>o(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return o(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return o(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return o(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return o(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return o(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return o(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return o(this,void 0,void 0,(function*(){t[g.Accept]=this._getExistingOrDefaultHeader(t,g.Accept,y.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[g.Accept]=this._getExistingOrDefaultHeader(r,g.Accept,y.ApplicationJson);r[g.ContentType]=this._getExistingOrDefaultHeader(r,g.ContentType,y.ApplicationJson);const i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions)}))}putJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[g.Accept]=this._getExistingOrDefaultHeader(r,g.Accept,y.ApplicationJson);r[g.ContentType]=this._getExistingOrDefaultHeader(r,g.ContentType,y.ApplicationJson);const i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t,r={}){return o(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[g.Accept]=this._getExistingOrDefaultHeader(r,g.Accept,y.ApplicationJson);r[g.ContentType]=this._getExistingOrDefaultHeader(r,g.ContentType,y.ApplicationJson);const i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}))}request(e,t,r,n){return o(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let a=this._prepareRequest(e,i,n);const o=this._allowRetries&&A.includes(e)?this._maxRetries+1:1;let s=0;let c;do{c=yield this.requestRaw(a,r);if(c&&c.message&&c.message.statusCode===p.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(c)){e=t;break}}if(e){return e.handleAuthentication(this,a,r)}else{return c}}let t=this._maxRedirects;while(c.message.statusCode&&h.includes(c.message.statusCode)&&this._allowRedirects&&t>0){const o=c.message.headers["location"];if(!o){break}const s=new URL(o);if(i.protocol==="https:"&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield c.readBody();if(s.hostname!==i.hostname){for(const e in n){if(e.toLowerCase()==="authorization"){delete n[e]}}}a=this._prepareRequest(e,s,n);c=yield this.requestRaw(a,r);t--}if(!c.message.statusCode||!_.includes(c.message.statusCode)){return c}s+=1;if(s{function callbackForResult(e,t){if(e){n(e)}else if(!t){n(new Error("Unknown error"))}else{r(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,r){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let n=false;function handleResult(e,t){if(!n){n=true;r(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let a;i.on("socket",(e=>{a=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const r=l.getProxyUrl(t);const n=r&&r.hostname;if(!n){return}return this._getProxyAgentDispatcher(t,r)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const i=n.parsedUrl.protocol==="https:";n.httpModule=i?c:s;const a=i?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(n.options)}}return n}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;if(this.requestOptions&&this.requestOptions.headers){n=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||n||r}_getAgent(e){let t;const r=l.getProxyUrl(e);const n=r&&r.hostname;if(this._keepAlive&&n){t=this._proxyAgent}if(!n){t=this._agent}if(t){return t}const i=e.protocol==="https:";let a=100;if(this.requestOptions){a=this.requestOptions.maxSockets||s.globalAgent.maxSockets}if(r&&r.hostname){const e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const o=r.protocol==="https:";if(i){n=o?u.httpsOverHttps:u.httpsOverHttp}else{n=o?u.httpOverHttps:u.httpOverHttp}t=n(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new c.Agent(e):new s.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let r;if(this._keepAlive){r=this._proxyAgentDispatcher}if(r){return r}const n=e.protocol==="https:";r=new d.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=r;if(n&&this._ignoreSslError){r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:false})}return r}_performExponentialBackoff(e){return o(this,void 0,void 0,(function*(){e=Math.min(v,e);const t=E*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return o(this,void 0,void 0,(function*(){return new Promise(((r,n)=>o(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const a={statusCode:i,result:null,headers:{}};if(i===p.NotFound){r(a)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let o;let s;try{s=yield e.readBody();if(s&&s.length>0){if(t&&t.deserializeDates){o=JSON.parse(s,dateTimeDeserializer)}else{o=JSON.parse(s)}a.result=o}a.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(s&&s.length>0){e=s}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=a.result;n(t)}else{r(a)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})},54988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){try{return new DecodedURL(r)}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DecodedURL(`http://${r}`)}}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const r=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!r){return false}let n;if(e.port){n=Number(e.port)}else if(e.protocol==="http:"){n=80}else if(e.protocol==="https:"){n=443}const i=[e.hostname.toUpperCase()];if(typeof n==="number"){i.push(`${i[0]}:${n}`)}for(const e of r.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}t.checkBypass=checkBypass;function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},75207:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.READONLY=t.UV_FS_O_EXLOCK=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rm=t.rename=t.readlink=t.readdir=t.open=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=a(r(79896));const l=a(r(16928));s=c.promises,t.chmod=s.chmod,t.copyFile=s.copyFile,t.lstat=s.lstat,t.mkdir=s.mkdir,t.open=s.open,t.readdir=s.readdir,t.readlink=s.readlink,t.rename=s.rename,t.rm=s.rm,t.rmdir=s.rmdir,t.stat=s.stat,t.symlink=s.symlink,t.unlink=s.unlink;t.IS_WINDOWS=process.platform==="win32";t.UV_FS_O_EXLOCK=268435456;t.READONLY=c.constants.O_RDONLY;function exists(e){return o(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,r=false){return o(this,void 0,void 0,(function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return o(this,void 0,void 0,(function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=l.extname(e).toUpperCase();if(r.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of r){e=i+a;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=l.dirname(e);const n=l.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=l.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},94994:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const s=r(42613);const c=a(r(16928));const l=a(r(75207));function cp(e,t,r={}){return o(this,void 0,void 0,(function*(){const{force:n,recursive:i,copySourceDirectory:a}=readCopyOptions(r);const o=(yield l.exists(t))?yield l.stat(t):null;if(o&&o.isFile()&&!n){return}const s=o&&o.isDirectory()&&a?c.join(t,c.basename(e)):t;if(!(yield l.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield l.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,s,0,n)}}else{if(c.relative(e,s)===""){throw new Error(`'${s}' and '${e}' are the same file`)}yield copyFile(e,s,n)}}))}t.cp=cp;function mv(e,t,r={}){return o(this,void 0,void 0,(function*(){if(yield l.exists(t)){let n=true;if(yield l.isDirectory(t)){t=c.join(t,c.basename(e));n=yield l.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(c.dirname(t));yield l.rename(e,t)}))}t.mv=mv;function rmRF(e){return o(this,void 0,void 0,(function*(){if(l.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield l.rm(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}t.rmRF=rmRF;function mkdirP(e){return o(this,void 0,void 0,(function*(){s.ok(e,"a path argument must be provided");yield l.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(l.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const r=yield findInPath(e);if(r&&r.length>0){return r[0]}return""}))}t.which=which;function findInPath(e){return o(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(l.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(c.delimiter)){if(e){t.push(e)}}}if(l.isRooted(e)){const r=yield l.tryGetExecutablePath(e,t);if(r){return[r]}return[]}if(e.includes(c.sep)){return[]}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(c.delimiter)){if(e){r.push(e)}}}const n=[];for(const i of r){const r=yield l.tryGetExecutablePath(c.join(i,e),t);if(r){n.push(r)}}return n}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);const n=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:r,copySourceDirectory:n}}function cpDirRecursive(e,t,r,n){return o(this,void 0,void 0,(function*(){if(r>=255)return;r++;yield mkdirP(t);const i=yield l.readdir(e);for(const a of i){const i=`${e}/${a}`;const o=`${t}/${a}`;const s=yield l.lstat(i);if(s.isDirectory()){yield cpDirRecursive(i,o,r,n)}else{yield copyFile(i,o,n)}}yield l.chmod(t,(yield l.stat(e)).mode)}))}function copyFile(e,t,r){return o(this,void 0,void 0,(function*(){if((yield l.lstat(e)).isSymbolicLink()){try{yield l.lstat(t);yield l.unlink(t)}catch(e){if(e.code==="EPERM"){yield l.chmod(t,"0666");yield l.unlink(t)}}const r=yield l.readlink(e);yield l.symlink(r,t,l.IS_WINDOWS?"junction":null)}else if(!(yield l.exists(t))||r){yield l.copyFile(e,t)}}))}},26563:function(e,t,r){(function(t,n){true?e.exports=n(r(99535),r(36153)):0})(this,(function(e,t){"use strict";const r=SegmentObject("",-1,-1,"",null,false);const n=[];function SegmentObject(e,t,r,n,i,a){return{source:e,line:t,column:r,name:n,content:i,ignore:a}}function Source(e,t,r,n,i){return{map:e,sources:t,source:r,content:n,ignore:i}}function MapSource(e,t){return Source(e,t,"",null,false)}function OriginalSource(e,t,r){return Source(null,n,e,t,r)}function traceMappings(n){const i=new t.GenMapping({file:n.map.file});const{sources:a,map:o}=n;const s=o.names;const c=e.decodedMappings(o);for(let e=0;enew e.TraceMap(t,"")));const i=n.pop();for(let e=0;e1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let a=build(i,r,"",0);for(let e=n.length-1;e>=0;e--){a=MapSource(n[e],[a])}return a}function build(t,r,n,i){const{resolvedSources:a,sourcesContent:o,ignoreList:s}=t;const c=i+1;const l=a.map(((t,i)=>{const a={importer:n,depth:c,source:t||"",content:undefined,ignore:undefined};const l=r(a.source,a);const{source:u,content:d,ignore:p}=a;if(l)return build(new e.TraceMap(l,u),r,u,c);const g=d!==undefined?d:o?o[i]:null;const y=p!==undefined?p:s?s.includes(i):false;return OriginalSource(u,g,y)}));return MapSource(t,l)}class SourceMap{constructor(e,r){const n=r.decodedMappings?t.toDecodedMap(e):t.toEncodedMap(e);this.version=n.version;this.file=n.file;this.mappings=n.mappings;this.names=n.names;this.ignoreList=n.ignoreList;this.sourceRoot=n.sourceRoot;this.sources=n.sources;if(!r.excludeContent){this.sourcesContent=n.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,t,r){const n=typeof r==="object"?r:{excludeContent:!!r,decodedMappings:false};const i=buildSourceMapTree(e,t);return new SourceMap(traceMappings(i),n)}return remapping}))},36153:function(e,t,r){e=r.nmd(e);(function(t,n,i){true?n(e,r(69551),r(99535)):0})(this,(function(e,t,r){"use strict";var n=Object.create;var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var s=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __commonJS=(e,t)=>function __require(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports};var __export=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let s of o(t))if(!c.call(e,s)&&s!==r)i(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(s(e)):{},__copyProps(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var l=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}});var u=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}});var d={};__export(d,{GenMapping:()=>b,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap});e.exports=__toCommonJS(d);var p=class{constructor(){this._indexes={__proto__:null};this.array=[]}};function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(r!==void 0)return r;const{array:n,_indexes:i}=cast(e);const a=n.push(t);return i[t]=a-1}function remove(e,t){const r=get(e,t);if(r===void 0)return;const{array:n,_indexes:i}=cast(e);for(let e=r+1;eaddSegmentInternal(true,e,t,r,n,i,a,o,s);var maybeAddMapping=(e,t)=>addMappingInternal(true,e,t);function setSourceContent(e,t,r){const{_sources:n,_sourcesContent:i}=cast2(e);const a=put(n,t);i[a]=r}function setIgnore(e,t,r=true){const{_sources:n,_sourcesContent:i,_ignoreList:a}=cast2(e);const o=put(n,t);if(o===i.length)i[o]=null;if(r)put(a,o);else remove(a,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:i,_ignoreList:a}=cast2(e);removeEmptyFinalLines(t);return{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:a.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign({},t,{mappings:(0,g.encode)(t.mappings)})}function fromMap(e){const t=new y.TraceMap(e);const r=new b({file:t.file,sourceRoot:t.sourceRoot});putAll(cast2(r)._names,t.names);putAll(cast2(r)._sources,t.sources);cast2(r)._sourcesContent=t.sourcesContent||t.sources.map((()=>null));cast2(r)._mappings=(0,y.decodedMappings)(t);if(t.ignoreList)putAll(cast2(r)._ignoreList,t.ignoreList);return r}function allMappings(e){const t=[];const{_mappings:r,_sources:n,_names:i}=cast2(e);for(let e=0;e=0;r=n--){const r=e[n];if(t>=r[h])break}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0;r=t,t--){if(e[t].length>0)break}if(rn)n=i}normalizePath(r,n);const i=r.query+r.hash;switch(n){case 2:case 3:return i;case 4:{const n=r.path.slice(1);if(!n)return i||".";if(isRelative(t||e)&&!isRelative(n)){return"./"+n+i}return n+i}case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return resolve}))},69551:function(e,t,r){e=r.nmd(e);(function(t,r,n){true?r(e):0})(this,(function(e){"use strict";var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,a,o,s)=>{if(a&&typeof a==="object"||typeof a==="function"){for(let c of n(a))if(!i.call(e,c)&&c!==o)t(e,c,{get:()=>a[c],enumerable:!(s=r(a,c))||s.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var a={};__export(a,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes});e.exports=__toCommonJS(a);var o=",".charCodeAt(0);var s=";".charCodeAt(0);var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var l=new Uint8Array(64);var u=new Uint8Array(128);for(let e=0;e>>=1;if(a){r=-2147483648|-r}return t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=n&31;n>>>=5;if(n>0)t|=32;e.write(l[t])}while(n>0);return t}function hasMoreVlq(e,t){if(e.pos>=t)return false;return e.peek()!==o}var d=1024*16;var p=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let r=0;r0?t+p.decode(e.subarray(0,r)):t}};var y=class{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this;const n=t.indexOf(e,r);return n===-1?t.length:n}};var h=[];function decodeOriginalScopes(e){const{length:t}=e;const r=new y(e);const n=[];const i=[];let a=0;for(;r.pos0)r.write(o);n[0]=encodeInteger(r,a,n[0]);encodeInteger(r,s,0);encodeInteger(r,u,0);const p=i.length===6?1:0;encodeInteger(r,p,0);if(i.length===6)encodeInteger(r,i[5],0);for(const e of d){encodeInteger(r,e,0)}for(t++;tc||a===c&&o>=l){break}t=_encodeOriginalScopes(e,t,r,n)}r.write(o);n[0]=encodeInteger(r,c,n[0]);encodeInteger(r,l,0);return t}function decodeGeneratedRanges(e){const{length:t}=e;const r=new y(e);const n=[];const i=[];let a=0;let o=0;let s=0;let c=0;let l=0;let u=0;let d=0;let p=0;do{const e=r.indexOf(";");let t=0;for(;r.pose;t--){const e=d;d=decodeInteger(r,d);p=decodeInteger(r,d===e?p:0);const t=decodeInteger(r,0);n.push([t,d,p])}}else{n=[[e]]}E.push(n)}while(hasMoreVlq(r,e))}T.bindings=E;n.push(T);i.push(T)}a++;r.pos=e+1}while(r.pos0){r.write(o)}n[1]=encodeInteger(r,i[1],n[1]);const g=(i.length===6?1:0)|(d?2:0)|(u?4:0);encodeInteger(r,g,0);if(i.length===6){const{4:e,5:t}=i;if(e!==n[2]){n[3]=0}n[2]=encodeInteger(r,e,n[2]);n[3]=encodeInteger(r,t,n[3])}if(d){const{0:e,1:t,2:a}=i.callsite;if(e!==n[4]){n[5]=0;n[6]=0}else if(t!==n[5]){n[6]=0}n[4]=encodeInteger(r,e,n[4]);n[5]=encodeInteger(r,t,n[5]);n[6]=encodeInteger(r,a,n[6])}if(p){for(const e of p){if(e.length>1)encodeInteger(r,-e.length,0);const t=e[0][0];encodeInteger(r,t,0);let n=a;let i=s;for(let t=1;tc||a===c&&o>=l){break}t=_encodeGeneratedRanges(e,t,r,n)}if(n[0]0)t.write(s);if(l.length===0)continue;let u=0;for(let e=0;e0)t.write(o);u=encodeInteger(t,s[0],u);if(s.length===1)continue;r=encodeInteger(t,s[1],r);n=encodeInteger(t,s[2],n);i=encodeInteger(t,s[3],i);if(s.length===4)continue;a=encodeInteger(t,s[4],a)}}return t.flush()}}))},99535:function(e,t,r){e=r.nmd(e);(function(t,n,i){true?n(e,r(59445),r(69551)):0})(this,(function(e,t,r){"use strict";var n=Object.create;var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var s=Object.getPrototypeOf;var c=Object.prototype.hasOwnProperty;var __commonJS=(e,t)=>function __require(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports};var __export=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:true})};var __copyProps=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let s of o(t))if(!c.call(e,s)&&s!==r)i(e,s,{get:()=>t[s],enumerable:!(n=a(t,s))||n.enumerable})}return e};var __toESM=(e,t,r)=>(r=e!=null?n(s(e)):{},__copyProps(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:true}):r,e));var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var l=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,t){t.exports=r}});var u=__commonJS({"umd:@jridgewell/resolve-uri"(e,r){r.exports=t}});var d={};__export(d,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>D,LEAST_UPPER_BOUND:()=>x,TraceMap:()=>I,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment});e.exports=__toCommonJS(d);var p=__toESM(l());var g=__toESM(u());function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}function resolver(e,t){const r=stripFilename(e);const n=t?t+"/":"";return e=>(0,g.default)(n+(e||""),r)}var y=0;var h=1;var _=2;var A=3;var v=4;var E=1;var T=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;if(!t)e=e.slice();for(let n=r;n>1);const a=e[i][y]-t;if(a===0){b=true;return i}if(a<0){r=i+1}else{n=i-1}}b=false;return r-1}function upperBound(e,t,r){for(let n=r+1;n=0;r=n--){if(e[n][y]!==t)break}return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,n){const{lastKey:i,lastNeedle:a,lastIndex:o}=r;let s=0;let c=e.length-1;if(n===i){if(t===a){b=o!==-1&&e[o][y]===t;return o}if(t>=a){s=o===-1?0:o}else{c=o}}r.lastKey=n;r.lastNeedle=t;return r.lastIndex=binarySearch(e,t,s,c)}function buildBySources(e,t){const r=t.map(buildNullArray);for(let n=0;nt;r--){e[r]=e[r-1]}e[t]=r}function buildNullArray(){return{__proto__:null}}function parse(e){return typeof e==="string"?JSON.parse(e):e}var FlattenMap=function(e,t){const r=parse(e);if(!("sections"in r)){return new I(r,t)}const n=[];const i=[];const a=[];const o=[];const s=[];recurse(r,t,n,i,a,o,s,0,0,Infinity,Infinity);const c={version:3,file:r.file,names:o,sources:i,sourcesContent:a,mappings:n,ignoreList:s};return presortedDecodedMap(c)};function recurse(e,t,r,n,i,a,o,s,c,l,u){const{sections:d}=e;for(let e=0;el)return;const n=getLine(r,t);const i=e===0?c:0;const a=T[e];for(let e=0;e=u)return;if(r.length===1){n.push([o]);continue}const s=g+r[h];const c=r[_];const d=r[A];n.push(r.length===4?[o,s,c,d]:[o,s,c,d,E+r[v]])}}}function append(e,t){for(let r=0;r=n.length)return null;const i=n[t];const a=traceSegmentInternal(i,cast(e)._decodedMemo,t,r,D);return a===-1?null:i[a]}function originalPositionFor(e,t){let{line:r,column:n,bias:i}=t;r--;if(r<0)throw new Error(S);if(n<0)throw new Error(C);const a=decodedMappings(e);if(r>=a.length)return OMapping(null,null,null,null);const o=a[r];const s=traceSegmentInternal(o,cast(e)._decodedMemo,r,n,i||D);if(s===-1)return OMapping(null,null,null,null);const c=o[s];if(c.length===1)return OMapping(null,null,null,null);const{names:l,resolvedSources:u}=e;return OMapping(u[c[h]],c[_]+1,c[A],c.length===5?l[c[v]]:null)}function generatedPositionFor(e,t){const{source:r,line:n,column:i,bias:a}=t;return generatedPosition(e,r,n,i,a||D,false)}function allGeneratedPositionsFor(e,t){const{source:r,line:n,column:i,bias:a}=t;return generatedPosition(e,r,n,i,a||x,true)}function eachMapping(e,t){const r=decodedMappings(e);const{names:n,resolvedSources:i}=e;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(79896);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},52479:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");if(r[0]===undefined||r[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const n=Number.parseInt(r[0],10);const i=Number.parseInt(r[1],10);const a=10;const o=10;const s=n>a;const c=n===a&&i>=o;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=s||c},37198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const n=r(77299);const i=r(17200);const a=r(92501);t.Settings=a.default;function scandir(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return i.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},77299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(91470);const i=r(22743);const a=r(52479);const o=r(21144);const s=r(770);function read(e,t,r){if(!t.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(e,t,r);return}readdir(e,t,r)}t.read=read;function readdirWithFileTypes(e,t,r){t.fs.readdir(e,{withFileTypes:true},((n,a)=>{if(n!==null){callFailureCallback(r,n);return}const o=a.map((r=>({dirent:r,name:r.name,path:s.joinPathSegments(e,r.name,t.pathSegmentSeparator)})));if(!t.followSymbolicLinks){callSuccessCallback(r,o);return}const c=o.map((e=>makeRplTaskEntry(e,t)));i(c,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,((n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=o.fs.createDirentFromStats(e.name,i);r(null,e)}))}}function readdir(e,t,r){t.fs.readdir(e,((a,c)=>{if(a!==null){callFailureCallback(r,a);return}const l=c.map((r=>{const i=s.joinPathSegments(e,r,t.pathSegmentSeparator);return e=>{n.stat(i,t.fsStatSettings,((n,a)=>{if(n!==null){e(n);return}const s={name:r,path:i,dirent:o.fs.createDirentFromStats(r,a)};if(t.stats){s.stats=a}e(null,s)}))}}));i(l,((e,t)=>{if(e!==null){callFailureCallback(r,e);return}callSuccessCallback(r,t)}))}))}t.readdir=readdir;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=void 0;function joinPathSegments(e,t,r){if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},17200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readdir=t.readdirWithFileTypes=t.read=void 0;const n=r(91470);const i=r(52479);const a=r(21144);const o=r(770);function read(e,t){if(!t.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(e,t)}return readdir(e,t)}t.read=read;function readdirWithFileTypes(e,t){const r=t.fs.readdirSync(e,{withFileTypes:true});return r.map((r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&t.followSymbolicLinks){try{const e=t.fs.statSync(n.path);n.dirent=a.fs.createDirentFromStats(n.name,e)}catch(e){if(t.throwErrorOnBrokenSymbolicLink){throw e}}}return n}))}t.readdirWithFileTypes=readdirWithFileTypes;function readdir(e,t){const r=t.fs.readdirSync(e);return r.map((r=>{const i=o.joinPathSegments(e,r,t.pathSegmentSeparator);const s=n.statSync(i,t.fsStatSettings);const c={name:r,path:i,dirent:a.fs.createDirentFromStats(r,s)};if(t.stats){c.stats=s}return c}))}t.readdir=readdir},92501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(16928);const i=r(91470);const a=r(92400);class Settings{constructor(e={}){this._options=e;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=a.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new i.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},75497:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},21144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fs=void 0;const n=r(75497);t.fs=n},24368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;const n=r(79896);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(e){if(e===undefined){return t.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),e)}t.createFileSystemAdapter=createFileSystemAdapter},91470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const n=r(31539);const i=r(26544);const a=r(84853);t.Settings=a.default;function stat(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return i.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},31539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t,r){t.fs.lstat(e,((n,i)=>{if(n!==null){callFailureCallback(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){callSuccessCallback(r,i);return}t.fs.stat(e,((e,n)=>{if(e!==null){if(t.throwErrorOnBrokenSymbolicLink){callFailureCallback(r,e);return}callSuccessCallback(r,i);return}if(t.markSymbolicLink){n.isSymbolicLink=()=>true}callSuccessCallback(r,n)}))}))}t.read=read;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},26544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.read=void 0;function read(e,t){const r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink){return r}try{const r=t.fs.statSync(e);if(t.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(e){if(!t.throwErrorOnBrokenSymbolicLink){return r}throw e}}t.read=read},84853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(24368);class Settings{constructor(e={}){this._options=e;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},79337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.walkStream=t.walkSync=t.walk=void 0;const n=r(11936);const i=r(88986);const a=r(8769);const o=r(30244);t.Settings=o.default;function walk(e,t,r){if(typeof t==="function"){new n.default(e,getSettings()).read(t);return}new n.default(e,getSettings(t)).read(r)}t.walk=walk;function walkSync(e,t){const r=getSettings(t);const n=new a.default(e,r);return n.read()}t.walkSync=walkSync;function walkStream(e,t){const r=getSettings(t);const n=new i.default(e,r);return n.read()}t.walkStream=walkStream;function getSettings(e={}){if(e instanceof o.default){return e}return new o.default(e)}},11936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(21906);class AsyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings);this._storage=[]}read(e){this._reader.onError((t=>{callFailureCallback(e,t)}));this._reader.onEntry((e=>{this._storage.push(e)}));this._reader.onEnd((()=>{callSuccessCallback(e,this._storage)}));this._reader.read()}}t["default"]=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},88986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2203);const i=r(21906);class StreamProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new i.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((e=>{this._stream.emit("error",e)}));this._reader.onEntry((e=>{this._stream.push(e)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}t["default"]=StreamProvider},8769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(83431);class SyncProvider{constructor(e,t){this._root=e;this._settings=t;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}t["default"]=SyncProvider},21906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(24434);const i=r(37198);const a=r(48230);const o=r(94449);const s=r(35903);class AsyncReader extends s.default{constructor(e,t){super(e,t);this._settings=t;this._scandir=i.scandir;this._emitter=new n.EventEmitter;this._queue=a(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){const r={directory:e,base:t};this._queue.push(r,(e=>{if(e!==null){this._handleError(e)}}))}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,((r,n)=>{if(r!==null){t(r,undefined);return}for(const t of n){this._handleEntry(t,e.base)}t(null,undefined)}))}_handleError(e){if(this._isDestroyed||!o.isFatalError(this._settings,e)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError){return}const r=e.path;if(t!==undefined){e.path=o.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,e)){this._emitEntry(e)}if(e.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_emitEntry(e){this._emitter.emit("entry",e)}}t["default"]=AsyncReader},94449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function isFatalError(e,t){if(e.errorFilter===null){return true}return!e.errorFilter(t)}t.isFatalError=isFatalError;function isAppliedFilter(e,t){return e===null||e(t)}t.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(e,t){return e.split(/[/\\]/).join(t)}t.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(e,t,r){if(e===""){return t}if(e.endsWith(r)){return e+t}return e+r+t}t.joinPathSegments=joinPathSegments},35903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(94449);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=n.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t["default"]=Reader},83431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(37198);const i=r(94449);const a=r(35903);class SyncReader extends a.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(const e of this._queue.values()){this._handleDirectory(e.directory,e.base)}}_handleDirectory(e,t){try{const r=this._scandir(e,this._settings.fsScandirSettings);for(const e of r){this._handleEntry(e,t)}}catch(e){this._handleError(e)}}_handleError(e){if(!i.isFatalError(this._settings,e)){return}throw e}_handleEntry(e,t){const r=e.path;if(t!==undefined){e.path=i.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)}if(i.isAppliedFilter(this._settings.entryFilter,e)){this._pushToStorage(e)}if(e.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,e)){this._pushToQueue(r,t===undefined?undefined:e.path)}}_pushToStorage(e){this._storage.push(e)}}t["default"]=SyncReader},30244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(16928);const i=r(37198);class Settings{constructor(e={}){this._options=e;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.fsScandirSettings=new i.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}t["default"]=Settings},77864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=/^v1\./;const n=/^ghs_/;const i=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const a=r.test(e)||n.test(e);const o=i.test(e);const s=t?"app":a?"installation":o?"user-to-server":"oauth";return{type:"token",token:e,tokenType:s}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,r,n){const i=t.endpoint.merge(r,n);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const a=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=a},61897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(33843);var i=r(52732);var a=r(66255);var o=r(70007);var s=r(77864);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var i,a;for(a=0;a=0)continue;r[i]=e[i]}return r}function _objectWithoutProperties(e,t){if(e==null)return{};var r=_objectWithoutPropertiesLoose(e,t);var n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;r[n]=e[n]}}return r}const c="3.6.0";const l=["authStrategy"];class Octokit{constructor(e={}){const t=new i.Collection;const r={baseUrl:a.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};r.headers["user-agent"]=[e.userAgent,`octokit-core.js/${c} ${n.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){r.baseUrl=e.baseUrl}if(e.previews){r.mediaType.previews=e.previews}if(e.timeZone){r.headers["time-zone"]=e.timeZone}this.request=a.request.defaults(r);this.graphql=o.withCustomRequest(this.request).defaults(r);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const r=s.createTokenAuth(e.auth);t.wrap("request",r.hook);this.auth=r}}else{const{authStrategy:r}=e,n=_objectWithoutProperties(e,l);const i=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",i.hook);this.auth=i}const u=this.constructor;u.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const r=t[0]||{};if(typeof e==="function"){super(e(r));return}super(Object.assign({},e,r,r.userAgent&&e.userAgent?{userAgent:`${r.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const r=this.plugins;const n=(t=class extends(this){},t.plugins=r.concat(e.filter((e=>!r.includes(e)))),t);return n}}Octokit.VERSION=c;Octokit.plugins=[];t.Octokit=Octokit},54471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(93407);var i=r(33843);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,r)=>{t[r.toLowerCase()]=e[r];return t}),{})}function mergeDeep(e,t){const r=Object.assign({},e);Object.keys(t).forEach((i=>{if(n.isPlainObject(t[i])){if(!(i in e))Object.assign(r,{[i]:t[i]});else r[i]=mergeDeep(e[i],t[i])}else{Object.assign(r,{[i]:t[i]})}}));return r}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,r){if(typeof t==="string"){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else{r=Object.assign({},t)}r.headers=lowercaseKeys(r.headers);removeUndefinedProperties(r);removeUndefinedProperties(r.headers);const n=mergeDeep(e||{},r);if(e&&e.mediaType.previews.length){n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)}n.mediaType.previews=n.mediaType.previews.map((e=>e.replace(/-preview/,"")));return n}function addQueryParameters(e,t){const r=/\?/.test(e)?"&":"?";const n=Object.keys(t);if(n.length===0){return e}return e+r+n.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const a=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(a);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,r)=>{t[r]=e[r];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,r){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(r){return encodeUnreserved(r)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,r,n){var i=e[r],a=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="boolean"){i=i.toString();if(n&&n!=="*"){i=i.substring(0,parseInt(n,10))}a.push(encodeValue(t,i,isKeyOperator(t)?r:""))}else{if(n==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach((function(e){a.push(encodeValue(t,e,isKeyOperator(t)?r:""))}))}else{Object.keys(i).forEach((function(e){if(isDefined(i[e])){a.push(encodeValue(t,i[e],e))}}))}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach((function(r){e.push(encodeValue(t,r))}))}else{Object.keys(i).forEach((function(r){if(isDefined(i[r])){e.push(encodeUnreserved(r));e.push(encodeValue(t,i[r].toString()))}}))}if(isKeyOperator(t)){a.push(encodeUnreserved(r)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){a.push(encodeUnreserved(r))}}else if(i===""&&(t==="&"||t==="?")){a.push(encodeUnreserved(r)+"=")}else if(i===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var r=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,i){if(n){let e="";const i=[];if(r.indexOf(n.charAt(0))!==-1){e=n.charAt(0);n=n.substr(1)}n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);i.push(getValues(t,e,n[1],n[2]||n[3]))}));if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(i.length!==0?e:"")+i.join(a)}else{return i.join(",")}}else{return encodeReserved(i)}}))}function parse(e){let t=e.method.toUpperCase();let r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let n=Object.assign({},e.headers);let i;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const o=extractUrlVariableNames(r);r=parseUrl(r).expand(a);if(!/^http/.test(r)){r=e.baseUrl+r}const s=Object.keys(e).filter((e=>o.includes(e))).concat("baseUrl");const c=omit(a,s);const l=/application\/octet-stream/i.test(n.accept);if(!l){if(e.mediaType.format){n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${r}`})).join(",")}}if(["GET","HEAD"].includes(t)){r=addQueryParameters(r,c)}else{if("data"in c){i=c.data}else{if(Object.keys(c).length){i=c}else{n["content-length"]=0}}}if(!n["content-type"]&&typeof i!=="undefined"){n["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:r,headers:n},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,r){return parse(merge(e,t,r))}function withDefaults(e,t){const r=merge(e,t);const n=endpointWithDefaults.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:withDefaults.bind(null,r),merge:merge.bind(null,r),parse:parse})}const o="6.0.12";const s=`octokit-endpoint.js/${o} ${i.getUserAgent()}`;const c={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":s},mediaType:{format:"",previews:[]}};const l=withDefaults(null,c);t.endpoint=l},70007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(66255);var i=r(33843);const a="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const o=["method","baseUrl","url","headers","request","query","mediaType"];const s=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!s.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const i=Object.keys(n).reduce(((e,t)=>{if(o.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e}),{});const a=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(a)){i.url=a.replace(c,"/api/graphql")}return e(i).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlResponseError(i,t,e.data)}return e.data.data}))}function withDefaults(e,t){const r=e.defaults(t);const newApi=(e,t)=>graphql(r,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const l=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=l;t.withCustomRequest=withCustomRequest},38082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r="2.21.3";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t({async next(){if(!s)return{done:true};try{const e=await i({method:a,url:s,headers:o});const t=normalizePaginatedListResponse(e);s=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;s="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,r,n){if(typeof r==="function"){n=r;r=undefined}return gather(e,[],iterator(e,t,r)[Symbol.asyncIterator](),n)}function gather(e,t,r,n){return r.next().then((i=>{if(i.done){return t}let a=false;function done(){a=true}t=t.concat(n?n(i.value,done):i.value.data);if(a){return t}return gather(e,t,r,n)}))}const n=Object.assign(paginate,{iterator:iterator});const i=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return i.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=r;t.composePaginateRest=n;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=i},84935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(14150);var i=_interopDefault(r(55560));const a=i((e=>console.warn(e)));const o=i((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,r){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let i;if("headers"in r&&typeof r.headers!=="undefined"){i=r.headers}if("response"in r){this.response=r.response;i=r.response.headers}const s=Object.assign({},r.request);if(r.request.headers.authorization){s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=s;Object.defineProperty(this,"code",{get(){a(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){o(new n.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return i||{}}})}}t.RequestError=RequestError},66255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=r(54471);var i=r(33843);var a=r(93407);var o=_interopDefault(r(26705));var s=r(93708);const c="5.6.3";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(a.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let r={};let n;let i;const c=e.request&&e.request.fetch||o;return c(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async a=>{i=a.url;n=a.status;for(const e of a.headers){r[e[0]]=e[1]}if("deprecation"in r){const n=r.link&&r.link.match(/<([^>]+)>; rel="deprecation"/);const i=n&&n.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${r.sunset}${i?`. See ${i}`:""}`)}if(n===204||n===205){return}if(e.method==="HEAD"){if(n<400){return}throw new s.RequestError(a.statusText,n,{response:{url:i,status:n,headers:r,data:undefined},request:e})}if(n===304){throw new s.RequestError("Not modified",n,{response:{url:i,status:n,headers:r,data:await getResponseData(a)},request:e})}if(n>=400){const t=await getResponseData(a);const o=new s.RequestError(toErrorMessage(t),n,{response:{url:i,status:n,headers:r,data:t},request:e});throw o}return getResponseData(a)})).then((e=>({status:n,url:i,headers:r,data:e}))).catch((t=>{if(t instanceof s.RequestError)throw t;throw new s.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const r=e.defaults(t);const newApi=function(e,t){const n=r.merge(e,t);if(!n.request||!n.request.hook){return fetchWrapper(r.parse(n))}const request=(e,t)=>fetchWrapper(r.parse(r.merge(e,t)));Object.assign(request,{endpoint:r,defaults:withDefaults.bind(null,r)});return n.request.hook(request,n)};return Object.assign(newApi,{endpoint:r,defaults:withDefaults.bind(null,r)})}const l=withDefaults(n.endpoint,{headers:{"user-agent":`octokit-request.js/${c} ${i.getUserAgent()}`}});t.request=l},49230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0;var r;(function(e){e["AccessorProperty"]="AccessorProperty";e["ArrayExpression"]="ArrayExpression";e["ArrayPattern"]="ArrayPattern";e["ArrowFunctionExpression"]="ArrowFunctionExpression";e["AssignmentExpression"]="AssignmentExpression";e["AssignmentPattern"]="AssignmentPattern";e["AwaitExpression"]="AwaitExpression";e["BinaryExpression"]="BinaryExpression";e["BlockStatement"]="BlockStatement";e["BreakStatement"]="BreakStatement";e["CallExpression"]="CallExpression";e["CatchClause"]="CatchClause";e["ChainExpression"]="ChainExpression";e["ClassBody"]="ClassBody";e["ClassDeclaration"]="ClassDeclaration";e["ClassExpression"]="ClassExpression";e["ConditionalExpression"]="ConditionalExpression";e["ContinueStatement"]="ContinueStatement";e["DebuggerStatement"]="DebuggerStatement";e["Decorator"]="Decorator";e["DoWhileStatement"]="DoWhileStatement";e["EmptyStatement"]="EmptyStatement";e["ExportAllDeclaration"]="ExportAllDeclaration";e["ExportDefaultDeclaration"]="ExportDefaultDeclaration";e["ExportNamedDeclaration"]="ExportNamedDeclaration";e["ExportSpecifier"]="ExportSpecifier";e["ExpressionStatement"]="ExpressionStatement";e["ForInStatement"]="ForInStatement";e["ForOfStatement"]="ForOfStatement";e["ForStatement"]="ForStatement";e["FunctionDeclaration"]="FunctionDeclaration";e["FunctionExpression"]="FunctionExpression";e["Identifier"]="Identifier";e["IfStatement"]="IfStatement";e["ImportAttribute"]="ImportAttribute";e["ImportDeclaration"]="ImportDeclaration";e["ImportDefaultSpecifier"]="ImportDefaultSpecifier";e["ImportExpression"]="ImportExpression";e["ImportNamespaceSpecifier"]="ImportNamespaceSpecifier";e["ImportSpecifier"]="ImportSpecifier";e["JSXAttribute"]="JSXAttribute";e["JSXClosingElement"]="JSXClosingElement";e["JSXClosingFragment"]="JSXClosingFragment";e["JSXElement"]="JSXElement";e["JSXEmptyExpression"]="JSXEmptyExpression";e["JSXExpressionContainer"]="JSXExpressionContainer";e["JSXFragment"]="JSXFragment";e["JSXIdentifier"]="JSXIdentifier";e["JSXMemberExpression"]="JSXMemberExpression";e["JSXNamespacedName"]="JSXNamespacedName";e["JSXOpeningElement"]="JSXOpeningElement";e["JSXOpeningFragment"]="JSXOpeningFragment";e["JSXSpreadAttribute"]="JSXSpreadAttribute";e["JSXSpreadChild"]="JSXSpreadChild";e["JSXText"]="JSXText";e["LabeledStatement"]="LabeledStatement";e["Literal"]="Literal";e["LogicalExpression"]="LogicalExpression";e["MemberExpression"]="MemberExpression";e["MetaProperty"]="MetaProperty";e["MethodDefinition"]="MethodDefinition";e["NewExpression"]="NewExpression";e["ObjectExpression"]="ObjectExpression";e["ObjectPattern"]="ObjectPattern";e["PrivateIdentifier"]="PrivateIdentifier";e["Program"]="Program";e["Property"]="Property";e["PropertyDefinition"]="PropertyDefinition";e["RestElement"]="RestElement";e["ReturnStatement"]="ReturnStatement";e["SequenceExpression"]="SequenceExpression";e["SpreadElement"]="SpreadElement";e["StaticBlock"]="StaticBlock";e["Super"]="Super";e["SwitchCase"]="SwitchCase";e["SwitchStatement"]="SwitchStatement";e["TaggedTemplateExpression"]="TaggedTemplateExpression";e["TemplateElement"]="TemplateElement";e["TemplateLiteral"]="TemplateLiteral";e["ThisExpression"]="ThisExpression";e["ThrowStatement"]="ThrowStatement";e["TryStatement"]="TryStatement";e["UnaryExpression"]="UnaryExpression";e["UpdateExpression"]="UpdateExpression";e["VariableDeclaration"]="VariableDeclaration";e["VariableDeclarator"]="VariableDeclarator";e["WhileStatement"]="WhileStatement";e["WithStatement"]="WithStatement";e["YieldExpression"]="YieldExpression";e["TSAbstractAccessorProperty"]="TSAbstractAccessorProperty";e["TSAbstractKeyword"]="TSAbstractKeyword";e["TSAbstractMethodDefinition"]="TSAbstractMethodDefinition";e["TSAbstractPropertyDefinition"]="TSAbstractPropertyDefinition";e["TSAnyKeyword"]="TSAnyKeyword";e["TSArrayType"]="TSArrayType";e["TSAsExpression"]="TSAsExpression";e["TSAsyncKeyword"]="TSAsyncKeyword";e["TSBigIntKeyword"]="TSBigIntKeyword";e["TSBooleanKeyword"]="TSBooleanKeyword";e["TSCallSignatureDeclaration"]="TSCallSignatureDeclaration";e["TSClassImplements"]="TSClassImplements";e["TSConditionalType"]="TSConditionalType";e["TSConstructorType"]="TSConstructorType";e["TSConstructSignatureDeclaration"]="TSConstructSignatureDeclaration";e["TSDeclareFunction"]="TSDeclareFunction";e["TSDeclareKeyword"]="TSDeclareKeyword";e["TSEmptyBodyFunctionExpression"]="TSEmptyBodyFunctionExpression";e["TSEnumDeclaration"]="TSEnumDeclaration";e["TSEnumMember"]="TSEnumMember";e["TSExportAssignment"]="TSExportAssignment";e["TSExportKeyword"]="TSExportKeyword";e["TSExternalModuleReference"]="TSExternalModuleReference";e["TSFunctionType"]="TSFunctionType";e["TSInstantiationExpression"]="TSInstantiationExpression";e["TSImportEqualsDeclaration"]="TSImportEqualsDeclaration";e["TSImportType"]="TSImportType";e["TSIndexedAccessType"]="TSIndexedAccessType";e["TSIndexSignature"]="TSIndexSignature";e["TSInferType"]="TSInferType";e["TSInterfaceBody"]="TSInterfaceBody";e["TSInterfaceDeclaration"]="TSInterfaceDeclaration";e["TSInterfaceHeritage"]="TSInterfaceHeritage";e["TSIntersectionType"]="TSIntersectionType";e["TSIntrinsicKeyword"]="TSIntrinsicKeyword";e["TSLiteralType"]="TSLiteralType";e["TSMappedType"]="TSMappedType";e["TSMethodSignature"]="TSMethodSignature";e["TSModuleBlock"]="TSModuleBlock";e["TSModuleDeclaration"]="TSModuleDeclaration";e["TSNamedTupleMember"]="TSNamedTupleMember";e["TSNamespaceExportDeclaration"]="TSNamespaceExportDeclaration";e["TSNeverKeyword"]="TSNeverKeyword";e["TSNonNullExpression"]="TSNonNullExpression";e["TSNullKeyword"]="TSNullKeyword";e["TSNumberKeyword"]="TSNumberKeyword";e["TSObjectKeyword"]="TSObjectKeyword";e["TSOptionalType"]="TSOptionalType";e["TSParameterProperty"]="TSParameterProperty";e["TSPrivateKeyword"]="TSPrivateKeyword";e["TSPropertySignature"]="TSPropertySignature";e["TSProtectedKeyword"]="TSProtectedKeyword";e["TSPublicKeyword"]="TSPublicKeyword";e["TSQualifiedName"]="TSQualifiedName";e["TSReadonlyKeyword"]="TSReadonlyKeyword";e["TSRestType"]="TSRestType";e["TSSatisfiesExpression"]="TSSatisfiesExpression";e["TSStaticKeyword"]="TSStaticKeyword";e["TSStringKeyword"]="TSStringKeyword";e["TSSymbolKeyword"]="TSSymbolKeyword";e["TSTemplateLiteralType"]="TSTemplateLiteralType";e["TSThisType"]="TSThisType";e["TSTupleType"]="TSTupleType";e["TSTypeAliasDeclaration"]="TSTypeAliasDeclaration";e["TSTypeAnnotation"]="TSTypeAnnotation";e["TSTypeAssertion"]="TSTypeAssertion";e["TSTypeLiteral"]="TSTypeLiteral";e["TSTypeOperator"]="TSTypeOperator";e["TSTypeParameter"]="TSTypeParameter";e["TSTypeParameterDeclaration"]="TSTypeParameterDeclaration";e["TSTypeParameterInstantiation"]="TSTypeParameterInstantiation";e["TSTypePredicate"]="TSTypePredicate";e["TSTypeQuery"]="TSTypeQuery";e["TSTypeReference"]="TSTypeReference";e["TSUndefinedKeyword"]="TSUndefinedKeyword";e["TSUnionType"]="TSUnionType";e["TSUnknownKeyword"]="TSUnknownKeyword";e["TSVoidKeyword"]="TSVoidKeyword"})(r||(t.AST_NODE_TYPES=r={}));var n;(function(e){e["Boolean"]="Boolean";e["Identifier"]="Identifier";e["JSXIdentifier"]="JSXIdentifier";e["JSXText"]="JSXText";e["Keyword"]="Keyword";e["Null"]="Null";e["Numeric"]="Numeric";e["Punctuator"]="Punctuator";e["RegularExpression"]="RegularExpression";e["String"]="String";e["Template"]="Template";e["Block"]="Block";e["Line"]="Line"})(n||(t.AST_TOKEN_TYPES=n={}))},71941:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0;var a=r(49230);Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:true,get:function(){return a.AST_NODE_TYPES}});Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:true,get:function(){return a.AST_TOKEN_TYPES}});i(r(54461),t);i(r(66676),t);i(r(76954),t)},54461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},66676:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},76954:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.TSESTree=void 0;t.TSESTree=a(r(49230))},28526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.astConverter=void 0;const n=r(2616);const i=r(82467);const a=r(20223);const o=r(77372);function astConverter(e,t,r){const{parseDiagnostics:s}=e;if(s.length){throw(0,n.convertError)(s[0])}const c=new n.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||false,shouldPreserveNodeMaps:r});const l=c.convertProgram();if(!t.range||!t.loc){(0,o.simpleTraverse)(l,{enter:e=>{if(!t.range){delete e.range}if(!t.loc){delete e.loc}}})}if(t.tokens){l.tokens=(0,a.convertTokens)(e)}if(t.comment){l.comments=(0,i.convertComments)(e,t.code)}const u=c.getASTMaps();return{estree:l,astMaps:u}}t.astConverter=astConverter},11180:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clearProgramCache=t.clearCaches=void 0;const n=r(98854);const i=r(47440);const a=r(66352);const o=r(71037);function clearCaches(){(0,i.clearProgramCache)();(0,n.clearWatchCaches)();(0,a.clearTSConfigMatchCache)();(0,o.clearGlobCache)()}t.clearCaches=clearCaches;t.clearProgramCache=clearCaches},82467:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.convertComments=void 0;const o=r(57471);const s=a(r(35672));const c=r(20223);const l=r(8848);function convertComments(e,t){const r=[];(0,o.forEachComment)(e,((n,i)=>{const a=i.kind===s.SyntaxKind.SingleLineCommentTrivia?l.AST_TOKEN_TYPES.Line:l.AST_TOKEN_TYPES.Block;const o=[i.pos,i.end];const u=(0,c.getLocFor)(o[0],o[1],e);const d=o[0]+2;const p=i.kind===s.SyntaxKind.SingleLineCommentTrivia?o[1]-d:o[1]-d-2;r.push({type:a,value:t.slice(d,d+p),range:o,loc:u})}),e);return r}t.convertComments=convertComments},2616:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Converter=t.convertError=void 0;const o=a(r(35672));const s=r(54377);const c=r(20223);const l=r(8848);const u=r(1058);const d=o.SyntaxKind;function convertError(e){return(0,c.createError)(e.file,e.start,"message"in e&&e.message||e.messageText)}t.convertError=convertError;class Converter{constructor(e,t){this.esTreeNodeToTSNodeMap=new WeakMap;this.tsNodeToESTreeNodeMap=new WeakMap;this.allowPattern=false;this.inTypeMode=false;this.ast=e;this.options=Object.assign({},t)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(e,t,r,n){if(!e){return null}const i=this.inTypeMode;const a=this.allowPattern;if(r!==undefined){this.inTypeMode=r}if(n!==undefined){this.allowPattern=n}const o=this.convertNode(e,t!==null&&t!==void 0?t:e.parent);this.registerTSNodeInNodeMap(e,o);this.inTypeMode=i;this.allowPattern=a;return o}fixExports(e,t){const r=(0,s.getModifiers)(e);if((r===null||r===void 0?void 0:r[0].kind)===d.ExportKeyword){this.registerTSNodeInNodeMap(e,t);const n=r[0];const i=r[1];const a=i&&i.kind===d.DefaultKeyword;const o=a?(0,c.findNextToken)(i,this.ast,this.ast):(0,c.findNextToken)(n,this.ast,this.ast);t.range[0]=o.getStart(this.ast);t.loc=(0,c.getLocFor)(t.range[0],t.range[1],this.ast);if(a){return this.createNode(e,{type:l.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[n.getStart(this.ast),t.range[1]],exportKind:"value"})}else{const r=t.type===l.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===l.AST_NODE_TYPES.TSTypeAliasDeclaration;const i="declare"in t&&t.declare===true;return this.createNode(e,{type:l.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,exportKind:r||i?"type":"value",range:[n.getStart(this.ast),t.range[1]],assertions:[]})}}return t}registerTSNodeInNodeMap(e,t){if(t&&this.options.shouldPreserveNodeMaps){if(!this.tsNodeToESTreeNodeMap.has(e)){this.tsNodeToESTreeNodeMap.set(e,t)}}}convertPattern(e,t){return this.converter(e,t,this.inTypeMode,true)}convertChild(e,t){return this.converter(e,t,this.inTypeMode,false)}convertType(e,t){return this.converter(e,t,true,false)}createNode(e,t){const r=t;if(!r.range){r.range=(0,c.getRange)(e,this.ast)}if(!r.loc){r.loc=(0,c.getLocFor)(r.range[0],r.range[1],this.ast)}if(r&&this.options.shouldPreserveNodeMaps){this.esTreeNodeToTSNodeMap.set(r,e)}return r}convertBindingNameWithTypeAnnotation(e,t,r){const n=this.convertPattern(e);if(t){n.typeAnnotation=this.convertTypeAnnotation(t,r);this.fixParentLocation(n,n.typeAnnotation.range)}return n}convertTypeAnnotation(e,t){const r=(t===null||t===void 0?void 0:t.kind)===d.FunctionType||(t===null||t===void 0?void 0:t.kind)===d.ConstructorType?2:1;const n=e.getFullStart()-r;const i=(0,c.getLocFor)(n,e.end,this.ast);return{type:l.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}convertBodyExpressions(e,t){let r=(0,c.canContainDirective)(t);return e.map((e=>{const t=this.convertChild(e);if(r){if((t===null||t===void 0?void 0:t.expression)&&o.isExpressionStatement(e)&&o.isStringLiteral(e.expression)){const e=t.expression.raw;t.directive=e.slice(1,-1);return t}else{r=false}}return t})).filter((e=>e))}convertTypeArgumentsToTypeParameters(e,t){const r=(0,c.findNextToken)(e,this.ast,this.ast);return this.createNode(t,{type:l.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],params:e.map((e=>this.convertType(e)))})}convertTSTypeParametersToTypeParametersDeclaration(e){const t=(0,c.findNextToken)(e,this.ast,this.ast);return{type:l.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,t.end],loc:(0,c.getLocFor)(e.pos-1,t.end,this.ast),params:e.map((e=>this.convertType(e)))}}convertParameters(e){if(!(e===null||e===void 0?void 0:e.length)){return[]}return e.map((e=>{const t=this.convertChild(e);const r=(0,s.getDecorators)(e);if(r===null||r===void 0?void 0:r.length){t.decorators=r.map((e=>this.convertChild(e)))}return t}))}convertChainExpression(e,t){const{child:r,isOptional:n}=(()=>{if(e.type===l.AST_NODE_TYPES.MemberExpression){return{child:e.object,isOptional:e.optional}}if(e.type===l.AST_NODE_TYPES.CallExpression){return{child:e.callee,isOptional:e.optional}}return{child:e.expression,isOptional:false}})();const i=(0,c.isChildUnwrappableOptionalChain)(t,r);if(!i&&!n){return e}if(i&&(0,c.isChainExpression)(r)){const t=r.expression;if(e.type===l.AST_NODE_TYPES.MemberExpression){e.object=t}else if(e.type===l.AST_NODE_TYPES.CallExpression){e.callee=t}else{e.expression=t}}return this.createNode(t,{type:l.AST_NODE_TYPES.ChainExpression,expression:e})}deeplyCopy(e){if(e.kind===o.SyntaxKind.JSDocFunctionType){throw(0,c.createError)(this.ast,e.pos,"JSDoc types can only be used inside documentation comments.")}const t=`TS${d[e.kind]}`;if(this.options.errorOnUnknownASTType&&!l.AST_NODE_TYPES[t]){throw new Error(`Unknown AST_NODE_TYPE: "${t}"`)}const r=this.createNode(e,{type:t});if("type"in e){r.typeAnnotation=e.type&&"kind"in e.type&&o.isTypeNode(e.type)?this.convertTypeAnnotation(e.type,e):null}if("typeArguments"in e){r.typeParameters=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null}if("typeParameters"in e){r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null}const n=(0,s.getDecorators)(e);if(n===null||n===void 0?void 0:n.length){r.decorators=n.map((e=>this.convertChild(e)))}const i=new Set(["_children","decorators","end","flags","illegalDecorators","heritageClauses","locals","localSymbol","jsDoc","kind","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);Object.entries(e).filter((([e])=>!i.has(e))).forEach((([e,t])=>{if(Array.isArray(t)){r[e]=t.map((e=>this.convertChild(e)))}else if(t&&typeof t==="object"&&t.kind){r[e]=this.convertChild(t)}else{r[e]=t}}));return r}convertJSXIdentifier(e){const t=this.createNode(e,{type:l.AST_NODE_TYPES.JSXIdentifier,name:e.getText()});this.registerTSNodeInNodeMap(e,t);return t}convertJSXNamespaceOrIdentifier(e){if(e.kind===o.SyntaxKind.JsxNamespacedName){const t=this.createNode(e,{type:l.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(e.namespace,{type:l.AST_NODE_TYPES.JSXIdentifier,name:e.namespace.text}),name:this.createNode(e.name,{type:l.AST_NODE_TYPES.JSXIdentifier,name:e.name.text})});this.registerTSNodeInNodeMap(e,t);return t}const t=e.getText();const r=t.indexOf(":");if(r>0){const n=(0,c.getRange)(e,this.ast);const i=this.createNode(e,{type:l.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(e,{type:l.AST_NODE_TYPES.JSXIdentifier,name:t.slice(0,r),range:[n[0],n[0]+r]}),name:this.createNode(e,{type:l.AST_NODE_TYPES.JSXIdentifier,name:t.slice(r+1),range:[n[0]+r+1,n[1]]}),range:n});this.registerTSNodeInNodeMap(e,i);return i}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case d.PropertyAccessExpression:if(e.name.kind===d.PrivateIdentifier){throw new Error("Non-private identifier expected.")}r=this.createNode(e,{type:l.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case d.ThisKeyword:case d.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}this.registerTSNodeInNodeMap(e,r);return r}convertMethodSignature(e){const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSMethodSignature,computed:(0,c.isComputedProperty)(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters),kind:(()=>{switch(e.kind){case d.GetAccessor:return"get";case d.SetAccessor:return"set";case d.MethodSignature:return"method"}})()});if((0,c.isOptional)(e)){t.optional=true}if(e.type){t.returnType=this.convertTypeAnnotation(e.type,e)}if((0,c.hasModifier)(d.ReadonlyKeyword,e)){t.readonly=true}if(e.typeParameters){t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}const r=(0,c.getTSNodeAccessibility)(e);if(r){t.accessibility=r}if((0,c.hasModifier)(d.ExportKeyword,e)){t.export=true}if((0,c.hasModifier)(d.StaticKeyword,e)){t.static=true}return t}convertAssertClasue(e){return e===undefined?[]:e.elements.map((e=>this.convertChild(e)))}applyModifiersToResult(e,t){if(!t){return}const r=[];for(const n of t){switch(n.kind){case d.ExportKeyword:case d.DefaultKeyword:break;case d.ConstKeyword:e.const=true;break;case d.DeclareKeyword:e.declare=true;break;default:r.push(this.convertChild(n));break}}if(r.length>0){e.modifiers=r}}fixParentLocation(e,t){if(t[0]e.range[1]){e.range[1]=t[1];e.loc.end=(0,c.getLineAndCharacterFor)(e.range[1],this.ast)}}assertModuleSpecifier(e,t){var r;if(!t&&e.moduleSpecifier==null){throw(0,c.createError)(this.ast,e.pos,"Module specifier must be a string literal.")}if(e.moduleSpecifier&&((r=e.moduleSpecifier)===null||r===void 0?void 0:r.kind)!==d.StringLiteral){throw(0,c.createError)(this.ast,e.moduleSpecifier.pos,"Module specifier must be a string literal.")}}convertNode(e,t){var r,n,i,a,p,g,y,h,_,A;switch(e.kind){case d.SourceFile:{return this.createNode(e,{type:l.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]})}case d.Block:{return this.createNode(e,{type:l.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)})}case d.Identifier:{if((0,c.isThisInTypeQuery)(e)){return this.createNode(e,{type:l.AST_NODE_TYPES.ThisExpression})}return this.createNode(e,{type:l.AST_NODE_TYPES.Identifier,name:e.text})}case d.PrivateIdentifier:{return this.createNode(e,{type:l.AST_NODE_TYPES.PrivateIdentifier,name:e.text.slice(1)})}case d.WithStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case d.ReturnStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case d.LabeledStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case d.ContinueStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case d.BreakStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case d.IfStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case d.SwitchStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map((e=>this.convertChild(e)))});case d.CaseClause:case d.DefaultClause:return this.createNode(e,{type:l.AST_NODE_TYPES.SwitchCase,test:e.kind===d.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map((e=>this.convertChild(e)))});case d.ThrowStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case d.TryStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case d.CatchClause:return this.createNode(e,{type:l.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null,body:this.convertChild(e.block)});case d.WhileStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case d.DoStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case d.ForStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ForStatement,init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor),body:this.convertChild(e.statement)});case d.ForInStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case d.ForOfStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement),await:Boolean(e.awaitModifier&&e.awaitModifier.kind===d.AwaitKeyword)});case d.FunctionDeclaration:{const t=(0,c.hasModifier)(d.DeclareKeyword,e);const r=this.createNode(e,{type:t||!e.body?l.AST_NODE_TYPES.TSDeclareFunction:l.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:false,async:(0,c.hasModifier)(d.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||undefined});if(e.type){r.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}if(t){r.declare=true}return this.fixExports(e,r)}case d.VariableDeclaration:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(e.name,e.type,e),init:this.convertChild(e.initializer)});if(e.exclamationToken){t.definite=true}return t}case d.VariableStatement:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map((e=>this.convertChild(e))),kind:(0,c.getDeclarationKind)(e.declarationList)});if((0,c.hasModifier)(d.DeclareKeyword,e)){t.declare=true}return this.fixExports(e,t)}case d.VariableDeclarationList:return this.createNode(e,{type:l.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map((e=>this.convertChild(e))),kind:(0,c.getDeclarationKind)(e)});case d.ExpressionStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case d.ThisKeyword:return this.createNode(e,{type:l.AST_NODE_TYPES.ThisExpression});case d.ArrayLiteralExpression:{if(this.allowPattern){return this.createNode(e,{type:l.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map((e=>this.convertChild(e)))})}}case d.ObjectLiteralExpression:{if(this.allowPattern){return this.createNode(e,{type:l.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map((e=>this.convertPattern(e)))})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map((e=>this.convertChild(e)))})}}case d.PropertyAssignment:return this.createNode(e,{type:l.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:(0,c.isComputedProperty)(e.name),method:false,shorthand:false,kind:"init"});case d.ShorthandPropertyAssignment:{if(e.objectAssignmentInitializer){return this.createNode(e,{type:l.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:l.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.name),right:this.convertChild(e.objectAssignmentInitializer)}),computed:false,method:false,shorthand:true,kind:"init"})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:false,method:false,shorthand:true,kind:"init"})}}case d.ComputedPropertyName:return this.convertChild(e.expression);case d.PropertyDeclaration:{const t=(0,c.hasModifier)(d.AbstractKeyword,e);const r=(0,c.hasModifier)(d.AccessorKeyword,e);const n=(()=>{if(r){if(t){return l.AST_NODE_TYPES.TSAbstractAccessorProperty}return l.AST_NODE_TYPES.AccessorProperty}if(t){return l.AST_NODE_TYPES.TSAbstractPropertyDefinition}return l.AST_NODE_TYPES.PropertyDefinition})();const i=this.createNode(e,{type:n,key:this.convertChild(e.name),value:t?null:this.convertChild(e.initializer),computed:(0,c.isComputedProperty)(e.name),static:(0,c.hasModifier)(d.StaticKeyword,e),readonly:(0,c.hasModifier)(d.ReadonlyKeyword,e)||undefined,declare:(0,c.hasModifier)(d.DeclareKeyword,e),override:(0,c.hasModifier)(d.OverrideKeyword,e)});if(e.type){i.typeAnnotation=this.convertTypeAnnotation(e.type,e)}const a=(0,s.getDecorators)(e);if(a){i.decorators=a.map((e=>this.convertChild(e)))}const o=(0,c.getTSNodeAccessibility)(e);if(o){i.accessibility=o}if((e.name.kind===d.Identifier||e.name.kind===d.ComputedPropertyName||e.name.kind===d.PrivateIdentifier)&&e.questionToken){i.optional=true}if(e.exclamationToken){i.definite=true}if(i.key.type===l.AST_NODE_TYPES.Literal&&e.questionToken){i.optional=true}return i}case d.GetAccessor:case d.SetAccessor:{if(e.parent.kind===d.InterfaceDeclaration||e.parent.kind===d.TypeLiteral){return this.convertMethodSignature(e)}}case d.MethodDeclaration:{const r=this.createNode(e,{type:!e.body?l.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:l.AST_NODE_TYPES.FunctionExpression,id:null,generator:!!e.asteriskToken,expression:false,async:(0,c.hasModifier)(d.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});if(e.type){r.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters);this.fixParentLocation(r,r.typeParameters.range)}let n;if(t.kind===d.ObjectLiteralExpression){r.params=e.parameters.map((e=>this.convertChild(e)));n=this.createNode(e,{type:l.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:r,computed:(0,c.isComputedProperty)(e.name),method:e.kind===d.MethodDeclaration,shorthand:false,kind:"init"})}else{r.params=this.convertParameters(e.parameters);const t=(0,c.hasModifier)(d.AbstractKeyword,e)?l.AST_NODE_TYPES.TSAbstractMethodDefinition:l.AST_NODE_TYPES.MethodDefinition;n=this.createNode(e,{type:t,key:this.convertChild(e.name),value:r,computed:(0,c.isComputedProperty)(e.name),static:(0,c.hasModifier)(d.StaticKeyword,e),kind:"method",override:(0,c.hasModifier)(d.OverrideKeyword,e)});const i=(0,s.getDecorators)(e);if(i){n.decorators=i.map((e=>this.convertChild(e)))}const a=(0,c.getTSNodeAccessibility)(e);if(a){n.accessibility=a}}if(e.questionToken){n.optional=true}if(e.kind===d.GetAccessor){n.kind="get"}else if(e.kind===d.SetAccessor){n.kind="set"}else if(!n.static&&e.name.kind===d.StringLiteral&&e.name.text==="constructor"&&n.type!==l.AST_NODE_TYPES.Property){n.kind="constructor"}return n}case d.Constructor:{const t=(0,c.getLastModifier)(e);const r=t&&(0,c.findNextToken)(t,e,this.ast)||e.getFirstToken();const n=this.createNode(e,{type:!e.body?l.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:l.AST_NODE_TYPES.FunctionExpression,id:null,params:this.convertParameters(e.parameters),generator:false,expression:false,async:false,body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end]});if(e.typeParameters){n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters);this.fixParentLocation(n,n.typeParameters.range)}if(e.type){n.returnType=this.convertTypeAnnotation(e.type,e)}const i=this.createNode(e,{type:l.AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(this.ast),r.end]});const a=(0,c.hasModifier)(d.StaticKeyword,e);const o=this.createNode(e,{type:(0,c.hasModifier)(d.AbstractKeyword,e)?l.AST_NODE_TYPES.TSAbstractMethodDefinition:l.AST_NODE_TYPES.MethodDefinition,key:i,value:n,computed:false,static:a,kind:a?"method":"constructor",override:false});const s=(0,c.getTSNodeAccessibility)(e);if(s){o.accessibility=s}return o}case d.FunctionExpression:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,c.hasModifier)(d.AsyncKeyword,e),expression:false});if(e.type){t.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}return t}case d.SuperKeyword:return this.createNode(e,{type:l.AST_NODE_TYPES.Super});case d.ArrayBindingPattern:return this.createNode(e,{type:l.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))});case d.OmittedExpression:return null;case d.ObjectBindingPattern:return this.createNode(e,{type:l.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map((e=>this.convertPattern(e)))});case d.BindingElement:{if(t.kind===d.ArrayBindingPattern){const r=this.convertChild(e.name,t);if(e.initializer){return this.createNode(e,{type:l.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)})}else if(e.dotDotDotToken){return this.createNode(e,{type:l.AST_NODE_TYPES.RestElement,argument:r})}else{return r}}else{let t;if(e.dotDotDotToken){t=this.createNode(e,{type:l.AST_NODE_TYPES.RestElement,argument:this.convertChild((r=e.propertyName)!==null&&r!==void 0?r:e.name)})}else{t=this.createNode(e,{type:l.AST_NODE_TYPES.Property,key:this.convertChild((n=e.propertyName)!==null&&n!==void 0?n:e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===d.ComputedPropertyName),method:false,shorthand:!e.propertyName,kind:"init"})}if(e.initializer){t.value=this.createNode(e,{type:l.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})}return t}}case d.ArrowFunction:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.ArrowFunctionExpression,generator:false,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,c.hasModifier)(d.AsyncKeyword,e),expression:e.body.kind!==d.Block});if(e.type){t.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}return t}case d.YieldExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case d.AwaitExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case d.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:l.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:l.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1),cooked:e.text},tail:true})],expressions:[]});case d.TemplateExpression:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});e.templateSpans.forEach((e=>{t.expressions.push(this.convertChild(e.expression));t.quasis.push(this.convertChild(e.literal))}));return t}case d.TaggedTemplateExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):undefined,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case d.TemplateHead:case d.TemplateMiddle:case d.TemplateTail:{const t=e.kind===d.TemplateTail;return this.createNode(e,{type:l.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(t?1:2)),cooked:e.text},tail:t})}case d.SpreadAssignment:case d.SpreadElement:{if(this.allowPattern){return this.createNode(e,{type:l.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)})}}case d.Parameter:{let r;let n;if(e.dotDotDotToken){r=n=this.createNode(e,{type:l.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)})}else if(e.initializer){r=this.convertChild(e.name);n=this.createNode(e,{type:l.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)});const t=(0,s.getModifiers)(e);if(t){n.range[0]=r.range[0];n.loc=(0,c.getLocFor)(n.range[0],n.range[1],this.ast)}}else{r=n=this.convertChild(e.name,t)}if(e.type){r.typeAnnotation=this.convertTypeAnnotation(e.type,e);this.fixParentLocation(r,r.typeAnnotation.range)}if(e.questionToken){if(e.questionToken.end>r.range[1]){r.range[1]=e.questionToken.end;r.loc.end=(0,c.getLineAndCharacterFor)(r.range[1],this.ast)}r.optional=true}const a=(0,s.getModifiers)(e);if(a){return this.createNode(e,{type:l.AST_NODE_TYPES.TSParameterProperty,accessibility:(i=(0,c.getTSNodeAccessibility)(e))!==null&&i!==void 0?i:undefined,readonly:(0,c.hasModifier)(d.ReadonlyKeyword,e)||undefined,static:(0,c.hasModifier)(d.StaticKeyword,e)||undefined,export:(0,c.hasModifier)(d.ExportKeyword,e)||undefined,override:(0,c.hasModifier)(d.OverrideKeyword,e)||undefined,parameter:n})}return n}case d.ClassDeclaration:case d.ClassExpression:{const t=(a=e.heritageClauses)!==null&&a!==void 0?a:[];const r=e.kind===d.ClassDeclaration?l.AST_NODE_TYPES.ClassDeclaration:l.AST_NODE_TYPES.ClassExpression;const n=t.find((e=>e.token===d.ExtendsKeyword));const i=t.find((e=>e.token===d.ImplementsKeyword));const o=this.createNode(e,{type:r,id:this.convertChild(e.name),body:this.createNode(e,{type:l.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:(n===null||n===void 0?void 0:n.types[0])?this.convertChild(n.types[0].expression):null});if(n){if(n.types.length>1){throw(0,c.createError)(this.ast,n.types[1].pos,"Classes can only extend a single class.")}if((p=n.types[0])===null||p===void 0?void 0:p.typeArguments){o.superTypeParameters=this.convertTypeArgumentsToTypeParameters(n.types[0].typeArguments,n.types[0])}}if(e.typeParameters){o.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}if(i){o.implements=i.types.map((e=>this.convertChild(e)))}if((0,c.hasModifier)(d.AbstractKeyword,e)){o.abstract=true}if((0,c.hasModifier)(d.DeclareKeyword,e)){o.declare=true}const u=(0,s.getDecorators)(e);if(u){o.decorators=u.map((e=>this.convertChild(e)))}const g=e.members.filter(c.isESTreeClassMember);if(g.length){o.body.body=g.map((e=>this.convertChild(e)))}return this.fixExports(e,o)}case d.ModuleBlock:return this.createNode(e,{type:l.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case d.ImportDeclaration:{this.assertModuleSpecifier(e,false);const t=this.createNode(e,{type:l.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[],importKind:"value",assertions:this.convertAssertClasue(e.assertClause)});if(e.importClause){if(e.importClause.isTypeOnly){t.importKind="type"}if(e.importClause.name){t.specifiers.push(this.convertChild(e.importClause))}if(e.importClause.namedBindings){switch(e.importClause.namedBindings.kind){case d.NamespaceImport:t.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case d.NamedImports:t.specifiers=t.specifiers.concat(e.importClause.namedBindings.elements.map((e=>this.convertChild(e))));break}}}return t}case d.NamespaceImport:return this.createNode(e,{type:l.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case d.ImportSpecifier:return this.createNode(e,{type:l.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild((g=e.propertyName)!==null&&g!==void 0?g:e.name),importKind:e.isTypeOnly?"type":"value"});case d.ImportClause:{const t=this.convertChild(e.name);return this.createNode(e,{type:l.AST_NODE_TYPES.ImportDefaultSpecifier,local:t,range:t.range})}case d.ExportDeclaration:{if(((y=e.exportClause)===null||y===void 0?void 0:y.kind)===d.NamedExports){this.assertModuleSpecifier(e,true);return this.createNode(e,{type:l.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map((e=>this.convertChild(e))),exportKind:e.isTypeOnly?"type":"value",declaration:null,assertions:this.convertAssertClasue(e.assertClause)})}else{this.assertModuleSpecifier(e,false);return this.createNode(e,{type:l.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier),exportKind:e.isTypeOnly?"type":"value",exported:e.exportClause&&e.exportClause.kind===d.NamespaceExport?this.convertChild(e.exportClause.name):null,assertions:this.convertAssertClasue(e.assertClause)})}}case d.ExportSpecifier:return this.createNode(e,{type:l.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild((h=e.propertyName)!==null&&h!==void 0?h:e.name),exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value"});case d.ExportAssignment:if(e.isExportEquals){return this.createNode(e,{type:l.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"})}case d.PrefixUnaryExpression:case d.PostfixUnaryExpression:{const t=(0,c.getTextForTokenKind)(e.operator);if(t==="++"||t==="--"){return this.createNode(e,{type:l.AST_NODE_TYPES.UpdateExpression,operator:t,prefix:e.kind===d.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.UnaryExpression,operator:t,prefix:e.kind===d.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}}case d.DeleteExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:true,argument:this.convertChild(e.expression)});case d.VoidExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:true,argument:this.convertChild(e.expression)});case d.TypeOfExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:true,argument:this.convertChild(e.expression)});case d.TypeOperator:return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeOperator,operator:(0,c.getTextForTokenKind)(e.operator),typeAnnotation:this.convertChild(e.type)});case d.BinaryExpression:{if((0,c.isComma)(e.operatorToken)){const t=this.createNode(e,{type:l.AST_NODE_TYPES.SequenceExpression,expressions:[]});const r=this.convertChild(e.left);if(r.type===l.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==d.ParenthesizedExpression){t.expressions=t.expressions.concat(r.expressions)}else{t.expressions.push(r)}t.expressions.push(this.convertChild(e.right));return t}else{const t=(0,c.getBinaryExpressionType)(e.operatorToken);if(this.allowPattern&&t===l.AST_NODE_TYPES.AssignmentExpression){return this.createNode(e,{type:l.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)})}return this.createNode(e,{type:t,operator:(0,c.getTextForTokenKind)(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,t===l.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)})}}case d.PropertyAccessExpression:{const t=this.convertChild(e.expression);const r=this.convertChild(e.name);const n=false;const i=this.createNode(e,{type:l.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:e.questionDotToken!==undefined});return this.convertChainExpression(i,e)}case d.ElementAccessExpression:{const t=this.convertChild(e.expression);const r=this.convertChild(e.argumentExpression);const n=true;const i=this.createNode(e,{type:l.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:e.questionDotToken!==undefined});return this.convertChainExpression(i,e)}case d.CallExpression:{if(e.expression.kind===d.ImportKeyword){if(e.arguments.length!==1&&e.arguments.length!==2){throw(0,c.createError)(this.ast,e.arguments.pos,"Dynamic import requires exactly one or two arguments.")}return this.createNode(e,{type:l.AST_NODE_TYPES.ImportExpression,source:this.convertChild(e.arguments[0]),attributes:e.arguments[1]?this.convertChild(e.arguments[1]):null})}const t=this.convertChild(e.expression);const r=e.arguments.map((e=>this.convertChild(e)));const n=this.createNode(e,{type:l.AST_NODE_TYPES.CallExpression,callee:t,arguments:r,optional:e.questionDotToken!==undefined});if(e.typeArguments){n.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)}return this.convertChainExpression(n,e)}case d.NewExpression:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map((e=>this.convertChild(e))):[]});if(e.typeArguments){t.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)}return t}case d.ConditionalExpression:return this.createNode(e,{type:l.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case d.MetaProperty:{return this.createNode(e,{type:l.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:l.AST_NODE_TYPES.Identifier,name:(0,c.getTextForTokenKind)(e.keywordToken)}),property:this.convertChild(e.name)})}case d.Decorator:{return this.createNode(e,{type:l.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)})}case d.StringLiteral:{return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:t.kind===d.JsxAttribute?(0,c.unescapeStringLiteralText)(e.text):e.text,raw:e.getText()})}case d.NumericLiteral:{return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()})}case d.BigIntLiteral:{const t=(0,c.getRange)(e,this.ast);const r=this.ast.text.slice(t[0],t[1]);const n=r.slice(0,-1).replace(/_/g,"");const i=typeof BigInt!=="undefined"?BigInt(n):null;return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,raw:r,value:i,bigint:i==null?n:String(i),range:t})}case d.RegularExpressionLiteral:{const t=e.text.slice(1,e.text.lastIndexOf("/"));const r=e.text.slice(e.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(t,r)}catch(e){n=null}return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:n,raw:e.text,regex:{pattern:t,flags:r}})}case d.TrueKeyword:return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:true,raw:"true"});case d.FalseKeyword:return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:false,raw:"false"});case d.NullKeyword:{if(!u.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode){return this.createNode(e,{type:l.AST_NODE_TYPES.TSNullKeyword})}return this.createNode(e,{type:l.AST_NODE_TYPES.Literal,value:null,raw:"null"})}case d.EmptyStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.EmptyStatement});case d.DebuggerStatement:return this.createNode(e,{type:l.AST_NODE_TYPES.DebuggerStatement});case d.JsxElement:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map((e=>this.convertChild(e)))});case d.JsxFragment:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map((e=>this.convertChild(e)))});case d.JsxSelfClosingElement:{return this.createNode(e,{type:l.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:l.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):undefined,selfClosing:true,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e))),range:(0,c.getRange)(e,this.ast)}),closingElement:null,children:[]})}case d.JsxOpeningElement:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):undefined,selfClosing:false,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e)))});case d.JsxClosingElement:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case d.JsxOpeningFragment:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXOpeningFragment});case d.JsxClosingFragment:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXClosingFragment});case d.JsxExpression:{const t=e.expression?this.convertChild(e.expression):this.createNode(e,{type:l.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});if(e.dotDotDotToken){return this.createNode(e,{type:l.AST_NODE_TYPES.JSXSpreadChild,expression:t})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.JSXExpressionContainer,expression:t})}}case d.JsxAttribute:{return this.createNode(e,{type:l.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)})}case d.JsxText:{const t=e.getFullStart();const r=e.getEnd();const n=this.ast.text.slice(t,r);return this.createNode(e,{type:l.AST_NODE_TYPES.JSXText,value:(0,c.unescapeStringLiteralText)(n),raw:n,range:[t,r]})}case d.JsxSpreadAttribute:return this.createNode(e,{type:l.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case d.QualifiedName:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)})}case d.TypeReference:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):undefined})}case d.TypeParameter:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(e.name),constraint:e.constraint?this.convertType(e.constraint):undefined,default:e.default?this.convertType(e.default):undefined,in:(0,c.hasModifier)(d.InKeyword,e),out:(0,c.hasModifier)(d.OutKeyword,e),const:(0,c.hasModifier)(d.ConstKeyword,e)})}case d.ThisType:return this.createNode(e,{type:l.AST_NODE_TYPES.TSThisType});case d.AnyKeyword:case d.BigIntKeyword:case d.BooleanKeyword:case d.NeverKeyword:case d.NumberKeyword:case d.ObjectKeyword:case d.StringKeyword:case d.SymbolKeyword:case d.UnknownKeyword:case d.VoidKeyword:case d.UndefinedKeyword:case d.IntrinsicKeyword:{return this.createNode(e,{type:l.AST_NODE_TYPES[`TS${d[e.kind]}`]})}case d.NonNullExpression:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(t,e)}case d.TypeLiteral:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map((e=>this.convertChild(e)))})}case d.ArrayType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)})}case d.IndexedAccessType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)})}case d.ConditionalType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(e.checkType),extendsType:this.convertType(e.extendsType),trueType:this.convertType(e.trueType),falseType:this.convertType(e.falseType)})}case d.TypeQuery:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName),typeParameters:e.typeArguments&&this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)})}case d.MappedType:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter),nameType:(_=this.convertType(e.nameType))!==null&&_!==void 0?_:null});if(e.readonlyToken){if(e.readonlyToken.kind===d.ReadonlyKeyword){t.readonly=true}else{t.readonly=(0,c.getTextForTokenKind)(e.readonlyToken.kind)}}if(e.questionToken){if(e.questionToken.kind===d.QuestionToken){t.optional=true}else{t.optional=(0,c.getTextForTokenKind)(e.questionToken.kind)}}if(e.type){t.typeAnnotation=this.convertType(e.type)}return t}case d.ParenthesizedExpression:return this.convertChild(e.expression,t);case d.TypeAliasDeclaration:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});if((0,c.hasModifier)(d.DeclareKeyword,e)){t.declare=true}if(e.typeParameters){t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}return this.fixExports(e,t)}case d.MethodSignature:{return this.convertMethodSignature(e)}case d.PropertySignature:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSPropertySignature,optional:(0,c.isOptional)(e)||undefined,computed:(0,c.isComputedProperty)(e.name),key:this.convertChild(e.name),typeAnnotation:e.type?this.convertTypeAnnotation(e.type,e):undefined,initializer:this.convertChild(e.initializer)||undefined,readonly:(0,c.hasModifier)(d.ReadonlyKeyword,e)||undefined,static:(0,c.hasModifier)(d.StaticKeyword,e)||undefined,export:(0,c.hasModifier)(d.ExportKeyword,e)||undefined});const r=(0,c.getTSNodeAccessibility)(e);if(r){t.accessibility=r}return t}case d.IndexSignature:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map((e=>this.convertChild(e)))});if(e.type){t.typeAnnotation=this.convertTypeAnnotation(e.type,e)}if((0,c.hasModifier)(d.ReadonlyKeyword,e)){t.readonly=true}const r=(0,c.getTSNodeAccessibility)(e);if(r){t.accessibility=r}if((0,c.hasModifier)(d.ExportKeyword,e)){t.export=true}if((0,c.hasModifier)(d.StaticKeyword,e)){t.static=true}return t}case d.ConstructorType:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(e.parameters),abstract:(0,c.hasModifier)(d.AbstractKeyword,e)});if(e.type){t.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}return t}case d.FunctionType:case d.ConstructSignature:case d.CallSignature:{const t=e.kind===d.ConstructSignature?l.AST_NODE_TYPES.TSConstructSignatureDeclaration:e.kind===d.CallSignature?l.AST_NODE_TYPES.TSCallSignatureDeclaration:l.AST_NODE_TYPES.TSFunctionType;const r=this.createNode(e,{type:t,params:this.convertParameters(e.parameters)});if(e.type){r.returnType=this.convertTypeAnnotation(e.type,e)}if(e.typeParameters){r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}return r}case d.ExpressionWithTypeArguments:{const r=t.kind;const n=r===d.InterfaceDeclaration?l.AST_NODE_TYPES.TSInterfaceHeritage:r===d.HeritageClause?l.AST_NODE_TYPES.TSClassImplements:l.AST_NODE_TYPES.TSInstantiationExpression;const i=this.createNode(e,{type:n,expression:this.convertChild(e.expression)});if(e.typeArguments){i.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)}return i}case d.InterfaceDeclaration:{const t=(A=e.heritageClauses)!==null&&A!==void 0?A:[];const r=this.createNode(e,{type:l.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:l.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map((e=>this.convertChild(e))),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters){r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)}if(t.length>0){const n=[];const i=[];for(const r of t){if(r.token===d.ExtendsKeyword){for(const t of r.types){n.push(this.convertChild(t,e))}}else{for(const t of r.types){i.push(this.convertChild(t,e))}}}if(n.length){r.extends=n}if(i.length){r.implements=i}}if((0,c.hasModifier)(d.AbstractKeyword,e)){r.abstract=true}if((0,c.hasModifier)(d.DeclareKeyword,e)){r.declare=true}return this.fixExports(e,r)}case d.TypePredicate:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSTypePredicate,asserts:e.assertsModifier!==undefined,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});if(e.type){t.typeAnnotation=this.convertTypeAnnotation(e.type,e);t.typeAnnotation.loc=t.typeAnnotation.typeAnnotation.loc;t.typeAnnotation.range=t.typeAnnotation.typeAnnotation.range}return t}case d.ImportType:return this.createNode(e,{type:l.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null});case d.EnumDeclaration:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map((e=>this.convertChild(e)))});this.applyModifiersToResult(t,(0,s.getModifiers)(e));return this.fixExports(e,t)}case d.EnumMember:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});if(e.initializer){t.initializer=this.convertChild(e.initializer)}if(e.name.kind===o.SyntaxKind.ComputedPropertyName){t.computed=true}return t}case d.ModuleDeclaration:{const t=this.createNode(e,Object.assign({type:l.AST_NODE_TYPES.TSModuleDeclaration},(()=>{const t=this.convertChild(e.name);const r=this.convertChild(e.body);if(e.flags&o.NodeFlags.GlobalAugmentation){if(r==null||r.type===l.AST_NODE_TYPES.TSModuleDeclaration){throw new Error("Expected a valid module body")}if(t.type!==l.AST_NODE_TYPES.Identifier){throw new Error("global module augmentation must have an Identifier id")}return{kind:"global",id:t,body:r,global:true}}else if(e.flags&o.NodeFlags.Namespace){if(r==null){throw new Error("Expected a module body")}if(t.type!==l.AST_NODE_TYPES.Identifier){throw new Error("`namespace`s must have an Identifier id")}return{kind:"namespace",id:t,body:r}}else{return Object.assign({kind:"module",id:t},r!=null?{body:r}:{})}})()));this.applyModifiersToResult(t,(0,s.getModifiers)(e));return this.fixExports(e,t)}case d.ParenthesizedType:{return this.convertType(e.type)}case d.UnionType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSUnionType,types:e.types.map((e=>this.convertType(e)))})}case d.IntersectionType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSIntersectionType,types:e.types.map((e=>this.convertType(e)))})}case d.AsExpression:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)})}case d.InferType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)})}case d.LiteralType:{if(u.typescriptVersionIsAtLeast["4.0"]&&e.literal.kind===d.NullKeyword){return this.createNode(e.literal,{type:l.AST_NODE_TYPES.TSNullKeyword})}else{return this.createNode(e,{type:l.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)})}}case d.TypeAssertionExpression:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)})}case d.ImportEqualsDeclaration:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),importKind:e.isTypeOnly?"type":"value",isExport:(0,c.hasModifier)(d.ExportKeyword,e)})}case d.ExternalModuleReference:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)})}case d.NamespaceExportDeclaration:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)})}case d.AbstractKeyword:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSAbstractKeyword})}case d.TupleType:{const t="elementTypes"in e?e.elementTypes.map((e=>this.convertType(e))):e.elements.map((e=>this.convertType(e)));return this.createNode(e,{type:l.AST_NODE_TYPES.TSTupleType,elementTypes:t})}case d.NamedTupleMember:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});if(e.dotDotDotToken){t.range[0]=t.label.range[0];t.loc.start=t.label.loc.start;return this.createNode(e,{type:l.AST_NODE_TYPES.TSRestType,typeAnnotation:t})}return t}case d.OptionalType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)})}case d.RestType:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)})}case d.TemplateLiteralType:{const t=this.createNode(e,{type:l.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});e.templateSpans.forEach((e=>{t.types.push(this.convertChild(e.type));t.quasis.push(this.convertChild(e.literal))}));return t}case d.ClassStaticBlockDeclaration:{return this.createNode(e,{type:l.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)})}case d.AssertEntry:{return this.createNode(e,{type:l.AST_NODE_TYPES.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)})}case d.SatisfiesExpression:{return this.createNode(e,{type:l.AST_NODE_TYPES.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)})}default:return this.deeplyCopy(e)}}}t.Converter=Converter},93926:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createDefaultProgram=void 0;const s=o(r(2830));const c=o(r(16928));const l=a(r(35672));const u=r(16108);const d=(0,s.default)("typescript-eslint:typescript-estree:createDefaultProgram");function createDefaultProgram(e){var t;d("Getting default program for: %s",e.filePath||"unnamed file");if(((t=e.projects)===null||t===void 0?void 0:t.length)!==1){return undefined}const r=e.projects[0];const n=l.getParsedCommandLineOfConfigFile(r,(0,u.createDefaultCompilerOptionsFromExtra)(e),Object.assign(Object.assign({},l.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!n){return undefined}const i=l.createCompilerHost(n.options,true);if(e.moduleResolver){i.resolveModuleNames=(0,u.getModuleResolver)(e.moduleResolver).resolveModuleNames}const a=i.readFile;i.readFile=t=>c.default.normalize(t)===c.default.normalize(e.filePath)?e.code:a(t);const o=l.createProgram([e.filePath],n.options,i);const s=o.getSourceFile(e.filePath);return s&&{ast:s,program:o}}t.createDefaultProgram=createDefaultProgram},55912:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createIsolatedProgram=void 0;const s=o(r(2830));const c=a(r(35672));const l=r(51347);const u=r(16108);const d=(0,s.default)("typescript-eslint:typescript-estree:createIsolatedProgram");function createIsolatedProgram(e){d("Getting isolated program in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);const t={fileExists(){return true},getCanonicalFileName(){return e.filePath},getCurrentDirectory(){return""},getDirectories(){return[]},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return c.createSourceFile(t,e.code,c.ScriptTarget.Latest,true,(0,l.getScriptKind)(e.filePath,e.jsx))},readFile(){return undefined},useCaseSensitiveFileNames(){return true},writeFile(){return null}};const r=c.createProgram([e.filePath],Object.assign({noResolve:true,target:c.ScriptTarget.Latest,jsx:e.jsx?c.JsxEmit.Preserve:undefined},(0,u.createDefaultCompilerOptionsFromExtra)(e)),t);const n=r.getSourceFile(e.filePath);if(!n){throw new Error("Expected an ast to be returned for the single-file isolated program.")}return{ast:n,program:r}}t.createIsolatedProgram=createIsolatedProgram},47074:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createProjectProgram=void 0;const s=o(r(2830));const c=o(r(16928));const l=a(r(35672));const u=r(20223);const d=r(5865);const p=r(98854);const g=r(16108);const y=(0,s.default)("typescript-eslint:typescript-estree:createProjectProgram");const h=[l.Extension.Ts,l.Extension.Tsx,l.Extension.Js,l.Extension.Jsx,l.Extension.Mjs,l.Extension.Mts,l.Extension.Cjs,l.Extension.Cts];function createProjectProgram(e){y("Creating project program for: %s",e.filePath);const t=(0,p.getWatchProgramsForProjects)(e);const r=(0,u.firstDefined)(t,(t=>(0,g.getAstFromProgram)(t,e)));if(r||e.createDefaultProgram){return r}const describeProjectFilePath=t=>(0,d.describeFilePath)(t,e.tsconfigRootDir);const n=(0,d.describeFilePath)(e.filePath,e.tsconfigRootDir);const i=e.projects.map(describeProjectFilePath);const a=i.length===1?i[0]:`\n${i.map((e=>`- ${e}`)).join("\n")}`;const o=[`ESLint was configured to run on \`${n}\` using \`parserOptions.project\`: ${a}`];let s=false;const l=e.extraFileExtensions||[];l.forEach((e=>{if(!e.startsWith(".")){o.push(`Found unexpected extension \`${e}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${e}\`?`)}if(h.includes(e)){o.push(`You unnecessarily included the extension \`${e}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`)}}));const _=c.default.extname(e.filePath);if(!h.includes(_)){const e=`The extension for the file (\`${_}\`) is non-standard`;if(l.length>0){if(!l.includes(_)){o.push(`${e}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`);s=true}}else{o.push(`${e}. You should add \`parserOptions.extraFileExtensions\` to your config.`);s=true}}if(!s){const[t,r]=e.projects.length===1?["that TSConfig does not","that TSConfig"]:["none of those TSConfigs","one of those TSConfigs"];o.push(`However, ${t} include this file. Either:`,`- Change ESLint's list of included files to not include this file`,`- Change ${r} to include this file`,`- Create a new TSConfig that includes this file and include it in your parserOptions.project`,`See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`)}throw new Error(o.join("\n"))}t.createProjectProgram=createProjectProgram},35414:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createSourceFile=void 0;const s=o(r(2830));const c=a(r(35672));const l=r(51347);const u=(0,s.default)("typescript-eslint:typescript-estree:createSourceFile");function createSourceFile(e){u("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath);return c.createSourceFile(e.filePath,e.code,c.ScriptTarget.Latest,true,(0,l.getScriptKind)(e.filePath,e.jsx))}t.createSourceFile=createSourceFile},5865:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.describeFilePath=void 0;const i=n(r(16928));function describeFilePath(e,t){const r=i.default.relative(t,e);if(r&&!r.startsWith("..")&&!i.default.isAbsolute(r)){return`/${r}`}if(/^[(\w+:)\\/~]/.test(e)){return e}if(/\.\.[/\\]\.\./.test(r)){return e}return`/${r}`}t.describeFilePath=describeFilePath},51347:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getLanguageVariant=t.getScriptKind=void 0;const s=o(r(16928));const c=a(r(35672));function getScriptKind(e,t){const r=s.default.extname(e).toLowerCase();switch(r){case c.Extension.Js:case c.Extension.Cjs:case c.Extension.Mjs:return c.ScriptKind.JS;case c.Extension.Jsx:return c.ScriptKind.JSX;case c.Extension.Ts:case c.Extension.Cts:case c.Extension.Mts:return c.ScriptKind.TS;case c.Extension.Tsx:return c.ScriptKind.TSX;case c.Extension.Json:return c.ScriptKind.JSON;default:return t?c.ScriptKind.TSX:c.ScriptKind.TS}}t.getScriptKind=getScriptKind;function getLanguageVariant(e){switch(e){case c.ScriptKind.TSX:case c.ScriptKind.JSX:case c.ScriptKind.JS:case c.ScriptKind.JSON:return c.LanguageVariant.JSX;default:return c.LanguageVariant.Standard}}t.getLanguageVariant=getLanguageVariant},98854:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getWatchProgramsForProjects=t.clearWatchCaches=void 0;const s=o(r(2830));const c=o(r(79896));const l=o(r(19562));const u=a(r(35672));const d=r(16108);const p=(0,s.default)("typescript-eslint:typescript-estree:createWatchProgram");const g=new Map;const y=new Map;const h=new Map;const _=new Map;const A=new Map;const v=new Map;function clearWatchCaches(){g.clear();y.clear();h.clear();v.clear();_.clear();A.clear()}t.clearWatchCaches=clearWatchCaches;function saveWatchCallback(e){return(t,r)=>{const n=(0,d.getCanonicalFileName)(t);const i=(()=>{let t=e.get(n);if(!t){t=new Set;e.set(n,t)}return t})();i.add(r);return{close:()=>{i.delete(r)}}}}const E={code:"",filePath:""};function diagnosticReporter(e){throw new Error(u.flattenDiagnosticMessageText(e.messageText,u.sys.newLine))}function updateCachedFileList(e,t,r){const n=r.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(t.getSourceFiles().map((e=>(0,d.getCanonicalFileName)(e.fileName)))):new Set(t.getRootFileNames().map((e=>(0,d.getCanonicalFileName)(e))));_.set(e,n);return n}function getWatchProgramsForProjects(e){const t=(0,d.getCanonicalFileName)(e.filePath);const r=[];E.code=e.code;E.filePath=t;const n=y.get(t);const i=(0,d.createHash)(e.code);if(v.get(t)!==i&&n&&n.size>0){n.forEach((e=>e(t,u.FileWatcherEventKind.Changed)))}const a=new Set(e.projects);for(const[r,n]of g.entries()){if(!a.has(r)){continue}let i=_.get(r);let o=null;if(!i){o=n.getProgram().getProgram();i=updateCachedFileList(r,o,e)}if(i.has(t)){p("Found existing program for file. %s",t);o=o!==null&&o!==void 0?o:n.getProgram().getProgram();o.getTypeChecker();return[o]}}p("File did not belong to any existing programs, moving to create/update. %s",t);for(const n of e.projects){const i=g.get(n);if(i){const a=maybeInvalidateProgram(i,t,n);if(!a){continue}a.getTypeChecker();const o=updateCachedFileList(n,a,e);if(o.has(t)){p("Found updated program for file. %s",t);return[a]}r.push(a);continue}const a=createWatchProgram(n,e);g.set(n,a);const o=a.getProgram().getProgram();o.getTypeChecker();const s=updateCachedFileList(n,o,e);if(s.has(t)){p("Found program for file. %s",t);return[o]}r.push(o)}return r}t.getWatchProgramsForProjects=getWatchProgramsForProjects;const T=l.default.satisfies(u.version,">=3.9.0-beta",{includePrerelease:true});function createWatchProgram(e,t){p("Creating watch program for %s.",e);const r=u.createWatchCompilerHost(e,(0,d.createDefaultCompilerOptionsFromExtra)(t),u.sys,u.createAbstractBuilder,diagnosticReporter,(()=>{}));if(t.moduleResolver){r.resolveModuleNames=(0,d.getModuleResolver)(t.moduleResolver).resolveModuleNames}const n=r.readFile;r.readFile=(e,t)=>{const r=(0,d.getCanonicalFileName)(e);const i=r===E.filePath?E.code:n(r,t);if(i!==undefined){v.set(r,(0,d.createHash)(i))}return i};r.onUnRecoverableConfigFileDiagnostic=diagnosticReporter;r.afterProgramCreate=e=>{const t=e.getConfigFileParsingDiagnostics().filter((e=>e.category===u.DiagnosticCategory.Error&&e.code!==18003));if(t.length>0){diagnosticReporter(t[0])}};r.watchFile=saveWatchCallback(y);r.watchDirectory=saveWatchCallback(h);const i=r.onCachedDirectoryStructureHostCreate;r.onCachedDirectoryStructureHostCreate=e=>{const r=e.readDirectory;e.readDirectory=(e,n,i,a,o)=>r(e,!n?undefined:n.concat(t.extraFileExtensions),i,a,o);i(e)};r.extraFileExtensions=t.extraFileExtensions.map((e=>({extension:e,isMixedContent:true,scriptKind:u.ScriptKind.Deferred})));r.trace=p;r.useSourceOfProjectReferenceRedirect=()=>t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect;let a;if(T){r.setTimeout=undefined;r.clearTimeout=undefined}else{p("Running without timeout fix");r.setTimeout=(e,t,...r)=>{a=e.bind(undefined,...r);return a};r.clearTimeout=()=>{a=undefined}}const o=u.createWatchProgram(r);if(!T){const e=o.getProgram;o.getProgram=()=>{if(a){a()}a=undefined;return e.call(o)}}return o}function hasTSConfigChanged(e){const t=c.default.statSync(e);const r=t.mtimeMs;const n=A.get(e);A.set(e,r);if(n===undefined){return false}return Math.abs(n-r)>Number.EPSILON}function maybeInvalidateProgram(e,t,r){let n=e.getProgram().getProgram();if(process.env.TSESTREE_NO_INVALIDATION==="true"){return n}if(hasTSConfigChanged(r)){p("tsconfig has changed - triggering program update. %s",r);y.get(r).forEach((e=>e(r,u.FileWatcherEventKind.Changed)));_.delete(r)}let i=n.getSourceFile(t);if(i){return n}p("File was not found in program - triggering folder update. %s",t);const a=(0,d.canonicalDirname)(t);let o=null;let s=a;let l=false;while(o!==s){o=s;const e=h.get(o);if(e){e.forEach((e=>{if(a!==o){e(a,u.FileWatcherEventKind.Changed)}e(o,u.FileWatcherEventKind.Changed)}));l=true}s=(0,d.canonicalDirname)(o)}if(!l){p("No callback found for file, not part of this program. %s",t);return null}_.delete(r);n=e.getProgram().getProgram();i=n.getSourceFile(t);if(i){return n}p("File was still not found in program after directory update - checking file deletions. %s",t);const g=n.getRootFileNames();const A=g.find((e=>!c.default.existsSync(e)));if(!A){return null}const v=y.get((0,d.getCanonicalFileName)(A));if(!v){p("Could not find watch callbacks for root file. %s",A);return n}p("Marking file as deleted. %s",A);v.forEach((e=>e(A,u.FileWatcherEventKind.Deleted)));_.delete(r);n=e.getProgram().getProgram();i=n.getSourceFile(t);if(i){return n}p("File was still not found in program after deletion check, assuming it is not part of this program. %s",t);return null}},16108:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getModuleResolver=t.getAstFromProgram=t.getCanonicalFileName=t.ensureAbsolutePath=t.createHash=t.createDefaultCompilerOptionsFromExtra=t.canonicalDirname=t.CORE_COMPILER_OPTIONS=void 0;const s=o(r(16928));const c=a(r(35672));const l={noEmit:true,noUnusedLocals:true,noUnusedParameters:true};t.CORE_COMPILER_OPTIONS=l;const u=Object.assign(Object.assign({},l),{allowNonTsExtensions:true,allowJs:true,checkJs:true});function createDefaultCompilerOptionsFromExtra(e){if(e.debugLevel.has("typescript")){return Object.assign(Object.assign({},u),{extendedDiagnostics:true})}return u}t.createDefaultCompilerOptionsFromExtra=createDefaultCompilerOptionsFromExtra;const d=c.sys!==undefined?c.sys.useCaseSensitiveFileNames:true;const p=d?e=>e:e=>e.toLowerCase();function getCanonicalFileName(e){let t=s.default.normalize(e);if(t.endsWith(s.default.sep)){t=t.slice(0,-1)}return p(t)}t.getCanonicalFileName=getCanonicalFileName;function ensureAbsolutePath(e,t){return s.default.isAbsolute(e)?e:s.default.join(t||process.cwd(),e)}t.ensureAbsolutePath=ensureAbsolutePath;function canonicalDirname(e){return s.default.dirname(e)}t.canonicalDirname=canonicalDirname;const g=[c.Extension.Dts,c.Extension.Dcts,c.Extension.Dmts];function getExtension(e){var t;if(!e){return null}return(t=g.find((t=>e.endsWith(t))))!==null&&t!==void 0?t:s.default.extname(e)}function getAstFromProgram(e,t){const r=e.getSourceFile(t.filePath);const n=getExtension(t.filePath);const i=getExtension(r===null||r===void 0?void 0:r.fileName);if(n!==i){return undefined}return r&&{ast:r,program:e}}t.getAstFromProgram=getAstFromProgram;function getModuleResolver(e){let t;try{t=require(e)}catch(e){const t=["Could not find the provided parserOptions.moduleResolver.","Hint: use an absolute path if you are not in control over where the ESLint instance runs."];throw new Error(t.join("\n"))}return t}t.getModuleResolver=getModuleResolver;function createHash(e){var t;if((t=c.sys)===null||t===void 0?void 0:t.createHash){return c.sys.createHash(e)}return e}t.createHash=createHash},28636:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.createProgramFromConfigFile=t.useProvidedPrograms=void 0;const s=o(r(2830));const c=a(r(79896));const l=a(r(16928));const u=a(r(35672));const d=r(16108);const p=(0,s.default)("typescript-eslint:typescript-estree:useProvidedProgram");function useProvidedPrograms(e,t){p("Retrieving ast for %s from provided program instance(s)",t.filePath);let r;for(const n of e){r=(0,d.getAstFromProgram)(n,t);if(r){break}}if(!r){const e=l.relative(t.tsconfigRootDir||process.cwd(),t.filePath);const r=['"parserOptions.programs" has been provided for @typescript-eslint/parser.',`The file was not found in any of the provided program instance(s): ${e}`];throw new Error(r.join("\n"))}r.program.getTypeChecker();return r}t.useProvidedPrograms=useProvidedPrograms;function createProgramFromConfigFile(e,t){if(u.sys===undefined){throw new Error("`createProgramFromConfigFile` is only supported in a Node-like environment.")}const r=u.getParsedCommandLineOfConfigFile(e,d.CORE_COMPILER_OPTIONS,{onUnRecoverableConfigFileDiagnostic:e=>{throw new Error(formatDiagnostics([e]))},fileExists:c.existsSync,getCurrentDirectory:()=>t&&l.resolve(t)||process.cwd(),readDirectory:u.sys.readDirectory,readFile:e=>c.readFileSync(e,"utf-8"),useCaseSensitiveFileNames:u.sys.useCaseSensitiveFileNames});const n=r;if(n.errors.length){throw new Error(formatDiagnostics(n.errors))}const i=u.createCompilerHost(n.options,true);return u.createProgram(n.fileNames,n.options,i)}t.createProgramFromConfigFile=createProgramFromConfigFile;function formatDiagnostics(e){return u.formatDiagnostics(e,{getCanonicalFileName:e=>e,getCurrentDirectory:process.cwd,getNewLine:()=>"\n"})}},54377:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getDecorators=t.getModifiers=void 0;const o=a(r(35672));const s=r(1058);const c=s.typescriptVersionIsAtLeast["4.8"];function getModifiers(e){var t;if(e==null){return undefined}if(c){if(o.canHaveModifiers(e)){const t=o.getModifiers(e);return t?Array.from(t):undefined}return undefined}return(t=e.modifiers)===null||t===void 0?void 0:t.filter((e=>!o.isDecorator(e)))}t.getModifiers=getModifiers;function getDecorators(e){var t;if(e==null){return undefined}if(c){if(o.canHaveDecorators(e)){const t=o.getDecorators(e);return t?Array.from(t):undefined}return undefined}return(t=e.decorators)===null||t===void 0?void 0:t.filter(o.isDecorator)}t.getDecorators=getDecorators},75439:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.version=t.visitorKeys=t.typescriptVersionIsAtLeast=t.createProgram=t.simpleTraverse=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0;var a=r(47440);Object.defineProperty(t,"parse",{enumerable:true,get:function(){return a.parse}});Object.defineProperty(t,"parseAndGenerateServices",{enumerable:true,get:function(){return a.parseAndGenerateServices}});Object.defineProperty(t,"parseWithNodeMaps",{enumerable:true,get:function(){return a.parseWithNodeMaps}});var o=r(77372);Object.defineProperty(t,"simpleTraverse",{enumerable:true,get:function(){return o.simpleTraverse}});i(r(8848),t);var s=r(28636);Object.defineProperty(t,"createProgram",{enumerable:true,get:function(){return s.createProgramFromConfigFile}});i(r(51347),t);var c=r(1058);Object.defineProperty(t,"typescriptVersionIsAtLeast",{enumerable:true,get:function(){return c.typescriptVersionIsAtLeast}});i(r(54377),t);i(r(11180),t);var l=r(22502);Object.defineProperty(t,"visitorKeys",{enumerable:true,get:function(){return l.visitorKeys}});t.version=r(20340).version},15974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.xhtmlEntities=void 0;t.xhtmlEntities={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:"♦"}},20223:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.isThisInTypeQuery=t.isThisIdentifier=t.identifierIsThisKeyword=t.firstDefined=t.nodeHasTokens=t.createError=t.TSError=t.convertTokens=t.convertToken=t.getTokenType=t.isChildUnwrappableOptionalChain=t.isChainExpression=t.isOptional=t.isComputedProperty=t.unescapeStringLiteralText=t.hasJSXAncestor=t.findFirstMatchingAncestor=t.findNextToken=t.getTSNodeAccessibility=t.getDeclarationKind=t.isJSXToken=t.isToken=t.getRange=t.canContainDirective=t.getLocFor=t.getLineAndCharacterFor=t.getBinaryExpressionType=t.isJSDocComment=t.isComment=t.isComma=t.getLastModifier=t.hasModifier=t.isESTreeClassMember=t.getTextForTokenKind=t.isLogicalOperator=t.isAssignmentOperator=void 0;const o=a(r(35672));const s=r(54377);const c=r(15974);const l=r(8848);const u=r(1058);const d=u.typescriptVersionIsAtLeast["5.0"];const p=o.SyntaxKind;const g=[p.BarBarToken,p.AmpersandAmpersandToken,p.QuestionQuestionToken];function isAssignmentOperator(e){return e.kind>=p.FirstAssignment&&e.kind<=p.LastAssignment}t.isAssignmentOperator=isAssignmentOperator;function isLogicalOperator(e){return g.includes(e.kind)}t.isLogicalOperator=isLogicalOperator;function getTextForTokenKind(e){return o.tokenToString(e)}t.getTextForTokenKind=getTextForTokenKind;function isESTreeClassMember(e){return e.kind!==p.SemicolonClassElement}t.isESTreeClassMember=isESTreeClassMember;function hasModifier(e,t){const r=(0,s.getModifiers)(t);return(r===null||r===void 0?void 0:r.some((t=>t.kind===e)))===true}t.hasModifier=hasModifier;function getLastModifier(e){var t;const r=(0,s.getModifiers)(e);if(r==null){return null}return(t=r[r.length-1])!==null&&t!==void 0?t:null}t.getLastModifier=getLastModifier;function isComma(e){return e.kind===p.CommaToken}t.isComma=isComma;function isComment(e){return e.kind===p.SingleLineCommentTrivia||e.kind===p.MultiLineCommentTrivia}t.isComment=isComment;function isJSDocComment(e){return e.kind===p.JSDocComment}t.isJSDocComment=isJSDocComment;function getBinaryExpressionType(e){if(isAssignmentOperator(e)){return l.AST_NODE_TYPES.AssignmentExpression}else if(isLogicalOperator(e)){return l.AST_NODE_TYPES.LogicalExpression}return l.AST_NODE_TYPES.BinaryExpression}t.getBinaryExpressionType=getBinaryExpressionType;function getLineAndCharacterFor(e,t){const r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}t.getLineAndCharacterFor=getLineAndCharacterFor;function getLocFor(e,t,r){return{start:getLineAndCharacterFor(e,r),end:getLineAndCharacterFor(t,r)}}t.getLocFor=getLocFor;function canContainDirective(e){if(e.kind===o.SyntaxKind.Block){switch(e.parent.kind){case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.MethodDeclaration:return true;default:return false}}return true}t.canContainDirective=canContainDirective;function getRange(e,t){return[e.getStart(t),e.getEnd()]}t.getRange=getRange;function isToken(e){return e.kind>=p.FirstToken&&e.kind<=p.LastToken}t.isToken=isToken;function isJSXToken(e){return e.kind>=p.JsxElement&&e.kind<=p.JsxAttribute}t.isJSXToken=isJSXToken;function getDeclarationKind(e){if(e.flags&o.NodeFlags.Let){return"let"}if(e.flags&o.NodeFlags.Const){return"const"}return"var"}t.getDeclarationKind=getDeclarationKind;function getTSNodeAccessibility(e){const t=(0,s.getModifiers)(e);if(t==null){return null}for(const e of t){switch(e.kind){case p.PublicKeyword:return"public";case p.ProtectedKeyword:return"protected";case p.PrivateKeyword:return"private";default:break}}return null}t.getTSNodeAccessibility=getTSNodeAccessibility;function findNextToken(e,t,r){return find(t);function find(t){if(o.isToken(t)&&t.pos===e.end){return t}return firstDefined(t.getChildren(r),(t=>{const n=t.pos<=e.pos&&t.end>e.end||t.pos===e.end;return n&&nodeHasTokens(t,r)?find(t):undefined}))}}t.findNextToken=findNextToken;function findFirstMatchingAncestor(e,t){while(e){if(t(e)){return e}e=e.parent}return undefined}t.findFirstMatchingAncestor=findFirstMatchingAncestor;function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}t.hasJSXAncestor=hasJSXAncestor;function unescapeStringLiteralText(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,(e=>{const t=e.slice(1,-1);if(t[0]==="#"){const r=t[1]==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>1114111?e:String.fromCodePoint(r)}return c.xhtmlEntities[t]||e}))}t.unescapeStringLiteralText=unescapeStringLiteralText;function isComputedProperty(e){return e.kind===p.ComputedPropertyName}t.isComputedProperty=isComputedProperty;function isOptional(e){return e.questionToken?e.questionToken.kind===p.QuestionToken:false}t.isOptional=isOptional;function isChainExpression(e){return e.type===l.AST_NODE_TYPES.ChainExpression}t.isChainExpression=isChainExpression;function isChildUnwrappableOptionalChain(e,t){return isChainExpression(t)&&e.expression.kind!==o.SyntaxKind.ParenthesizedExpression}t.isChildUnwrappableOptionalChain=isChildUnwrappableOptionalChain;function getTokenType(e){let t;if(d&&e.kind===p.Identifier){t=o.identifierToKeywordKind(e)}else if("originalKeywordKind"in e){t=e.originalKeywordKind}if(t){if(t===p.NullKeyword){return l.AST_TOKEN_TYPES.Null}else if(t>=p.FirstFutureReservedWord&&t<=p.LastKeyword){return l.AST_TOKEN_TYPES.Identifier}return l.AST_TOKEN_TYPES.Keyword}if(e.kind>=p.FirstKeyword&&e.kind<=p.LastFutureReservedWord){if(e.kind===p.FalseKeyword||e.kind===p.TrueKeyword){return l.AST_TOKEN_TYPES.Boolean}return l.AST_TOKEN_TYPES.Keyword}if(e.kind>=p.FirstPunctuation&&e.kind<=p.LastPunctuation){return l.AST_TOKEN_TYPES.Punctuator}if(e.kind>=p.NoSubstitutionTemplateLiteral&&e.kind<=p.TemplateTail){return l.AST_TOKEN_TYPES.Template}switch(e.kind){case p.NumericLiteral:return l.AST_TOKEN_TYPES.Numeric;case p.JsxText:return l.AST_TOKEN_TYPES.JSXText;case p.StringLiteral:if(e.parent&&(e.parent.kind===p.JsxAttribute||e.parent.kind===p.JsxElement)){return l.AST_TOKEN_TYPES.JSXText}return l.AST_TOKEN_TYPES.String;case p.RegularExpressionLiteral:return l.AST_TOKEN_TYPES.RegularExpression;case p.Identifier:case p.ConstructorKeyword:case p.GetKeyword:case p.SetKeyword:default:}if(e.parent&&e.kind===p.Identifier){if(isJSXToken(e.parent)){return l.AST_TOKEN_TYPES.JSXIdentifier}if(e.parent.kind===p.PropertyAccessExpression&&hasJSXAncestor(e)){return l.AST_TOKEN_TYPES.JSXIdentifier}}return l.AST_TOKEN_TYPES.Identifier}t.getTokenType=getTokenType;function convertToken(e,t){const r=e.kind===p.JsxText?e.getFullStart():e.getStart(t);const n=e.getEnd();const i=t.text.slice(r,n);const a=getTokenType(e);if(a===l.AST_TOKEN_TYPES.RegularExpression){return{type:a,value:i,range:[r,n],loc:getLocFor(r,n,t),regex:{pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}}}else{return{type:a,value:i,range:[r,n],loc:getLocFor(r,n,t)}}}t.convertToken=convertToken;function convertTokens(e){const t=[];function walk(r){if(isComment(r)||isJSDocComment(r)){return}if(isToken(r)&&r.kind!==p.EndOfFileToken){const n=convertToken(r,e);if(n){t.push(n)}}else{r.getChildren(e).forEach(walk)}}walk(e);return t}t.convertTokens=convertTokens;class TSError extends Error{constructor(e,t,r,n,i){super(e);this.fileName=t;this.index=r;this.lineNumber=n;this.column=i;Object.defineProperty(this,"name",{value:new.target.name,enumerable:false,configurable:true})}}t.TSError=TSError;function createError(e,t,r){const n=e.getLineAndCharacterOfPosition(t);return new TSError(r,e.fileName,t,n.line+1,n.character)}t.createError=createError;function nodeHasTokens(e,t){return e.kind===p.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}t.nodeHasTokens=nodeHasTokens;function firstDefined(e,t){if(e===undefined){return undefined}for(let r=0;rtypeof e==="string"))?t.extraFileExtensions:[],filePath:(0,a.ensureAbsolutePath)(typeof t.filePath==="string"&&t.filePath!==""?t.filePath:getFileName(t.jsx),h),jsx:t.jsx===true,loc:t.loc===true,log:typeof t.loggerFn==="function"?t.loggerFn:t.loggerFn===false?()=>{}:console.log,moduleResolver:(r=t.moduleResolver)!==null&&r!==void 0?r:"",preserveNodeMaps:t.preserveNodeMaps!==false,programs:Array.isArray(t.programs)?t.programs:null,projects:[],range:t.range===true,singleRun:y,tokens:t.tokens===true?[]:null,tsconfigMatchCache:p!==null&&p!==void 0?p:p=new o.ExpiringCache(y?"Infinity":(g=(n=t.cacheLifetime)===null||n===void 0?void 0:n.glob)!==null&&g!==void 0?g:o.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS),tsconfigRootDir:h};if(_.debugLevel.size>0){const e=[];if(_.debugLevel.has("typescript-eslint")){e.push("typescript-eslint:*")}if(_.debugLevel.has("eslint")||i.default.enabled("eslint:*,-eslint:code-path")){e.push("eslint:*,-eslint:code-path")}i.default.enable(e.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length){throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`)}d("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!_.programs){_.projects=(0,l.resolveProjectList)({cacheLifetime:t.cacheLifetime,project:(0,s.getProjectConfigFiles)(_,t.project),projectFolderIgnoreList:t.projectFolderIgnoreList,singleRun:_.singleRun,tsconfigRootDir:h})}(0,u.warnAboutTSVersion)(_);return _}t.createParseSettings=createParseSettings;function clearTSConfigMatchCache(){p===null||p===void 0?void 0:p.clear()}t.clearTSConfigMatchCache=clearTSConfigMatchCache;function enforceString(e){if(typeof e!=="string"){return String(e)}return e}function getFileName(e){return e?"estree.tsx":"estree.ts"}},47892:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getProjectConfigFiles=void 0;const s=o(r(2830));const c=a(r(79896));const l=a(r(16928));const u=(0,s.default)("typescript-eslint:typescript-estree:getProjectConfigFiles");function getProjectConfigFiles(e,t){var r;if(t!==true){return t===undefined||Array.isArray(t)?t:[t]}u("Looking for tsconfig.json at or above file: %s",e.filePath);let n=l.dirname(e.filePath);const i=[n];do{u("Checking tsconfig.json path: %s",n);const t=l.join(n,"tsconfig.json");const a=(r=e.tsconfigMatchCache.get(n))!==null&&r!==void 0?r:c.existsSync(t)&&t;if(a){for(const t of i){e.tsconfigMatchCache.set(t,a)}return[a]}n=l.dirname(n);i.push(n)}while(n.length>1&&n.length>=e.tsconfigRootDir.length);throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${e.filePath}' within '${e.tsconfigRootDir}'.`)}t.getProjectConfigFiles=getProjectConfigFiles},77921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.inferSingleRun=void 0;const n=r(16928);function inferSingleRun(e){if((e===null||e===void 0?void 0:e.project)==null||(e===null||e===void 0?void 0:e.programs)!=null){return false}if(process.env.TSESTREE_SINGLE_RUN==="false"){return false}if(process.env.TSESTREE_SINGLE_RUN==="true"){return true}if(e===null||e===void 0?void 0:e.allowAutomaticSingleRunInference){if(process.env.CI==="true"||process.argv[1].endsWith((0,n.normalize)("node_modules/.bin/eslint"))){return true}}return false}t.inferSingleRun=inferSingleRun},71037:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.clearGlobResolutionCache=t.resolveProjectList=t.clearGlobCache=void 0;const i=n(r(2830));const a=r(57899);const o=n(r(91925));const s=r(16108);const c=r(90440);const l=(0,i.default)("typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList");let u=null;function clearGlobCache(){u===null||u===void 0?void 0:u.clear()}t.clearGlobCache=clearGlobCache;function resolveProjectList(e){var t,r,n;const i=[];if(typeof e.project==="string"){i.push(e.project)}else if(Array.isArray(e.project)){for(const t of e.project){if(typeof t==="string"){i.push(t)}}}if(i.length===0){return[]}const d=((t=e.projectFolderIgnoreList)!==null&&t!==void 0?t:["**/node_modules/**"]).reduce(((e,t)=>{if(typeof t==="string"){e.push(t)}return e}),[]).map((e=>e.startsWith("!")?e:`!${e}`));const p=getHash({project:i,projectFolderIgnoreList:d,tsconfigRootDir:e.tsconfigRootDir});if(u==null){u=new c.ExpiringCache(e.singleRun?"Infinity":(n=(r=e.cacheLifetime)===null||r===void 0?void 0:r.glob)!==null&&n!==void 0?n:c.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS)}else{const e=u.get(p);if(e){return e}}const g=i.filter((e=>!(0,o.default)(e)));const y=i.filter((e=>(0,o.default)(e)));const h=new Set(g.concat(y.length===0?[]:(0,a.sync)([...y,...d],{cwd:e.tsconfigRootDir})).map((t=>(0,s.getCanonicalFileName)((0,s.ensureAbsolutePath)(t,e.tsconfigRootDir)))));l("parserOptions.project (excluding ignored) matched projects: %s",h);const _=Array.from(h);u.set(p,_);return _}t.resolveProjectList=resolveProjectList;function getHash({project:e,projectFolderIgnoreList:t,tsconfigRootDir:r}){const n={tsconfigRootDir:r,project:e,projectFolderIgnoreList:[...t].sort()};return(0,s.createHash)(JSON.stringify(n))}function clearGlobResolutionCache(){u===null||u===void 0?void 0:u.clear();u=null}t.clearGlobResolutionCache=clearGlobResolutionCache},68788:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.warnAboutTSVersion=void 0;const s=o(r(19562));const c=a(r(35672));const l=">=3.3.1 <5.2.0";const u=[];const d=c.version;const p=s.default.satisfies(d,[l].concat(u).join(" || "));let g=false;function warnAboutTSVersion(e){var t;if(!p&&!g){const r=typeof process==="undefined"?false:(t=process.stdout)===null||t===void 0?void 0:t.isTTY;if(r){const t="=============";const r=[t,"WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${l}`,`YOUR TYPESCRIPT VERSION: ${d}`,"Please only submit bug reports when using the officially supported version.",t];e.log(r.join("\n\n"))}g=true}}t.warnAboutTSVersion=warnAboutTSVersion},47440:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.clearParseAndGenerateServicesCalls=t.clearProgramCache=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0;const i=n(r(2830));const a=r(28526);const o=r(2616);const s=r(93926);const c=r(55912);const l=r(47074);const u=r(35414);const d=r(28636);const p=r(66352);const g=r(55452);const y=(0,i.default)("typescript-eslint:typescript-estree:parser");const h=new Map;function clearProgramCache(){h.clear()}t.clearProgramCache=clearProgramCache;function getProgramAndAST(e,t){return e.programs&&(0,d.useProvidedPrograms)(e.programs,e)||t&&(0,l.createProjectProgram)(e)||t&&e.createDefaultProgram&&(0,s.createDefaultProgram)(e)||(0,c.createIsolatedProgram)(e)}function parse(e,t){const{ast:r}=parseWithNodeMapsInternal(e,t,false);return r}t.parse=parse;function parseWithNodeMapsInternal(e,t,r){const n=(0,p.createParseSettings)(e,t);if(t===null||t===void 0?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues){throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`)}const i=(0,u.createSourceFile)(n);const{estree:o,astMaps:s}=(0,a.astConverter)(i,n,r);return{ast:o,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}function parseWithNodeMaps(e,t){return parseWithNodeMapsInternal(e,t,true)}t.parseWithNodeMaps=parseWithNodeMaps;let _={};function clearParseAndGenerateServicesCalls(){_={}}t.clearParseAndGenerateServicesCalls=clearParseAndGenerateServicesCalls;function parseAndGenerateServices(e,t){var r,n;const i=(0,p.createParseSettings)(e,t);if(t!==undefined){if(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues==="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues){i.errorOnTypeScriptSyntacticAndSemanticIssues=true}}if(i.singleRun&&!i.programs&&((r=i.projects)===null||r===void 0?void 0:r.length)>0){i.programs={*[Symbol.iterator](){for(const e of i.projects){const t=h.get(e);if(t){yield t}else{y("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);const t=(0,d.createProgramFromConfigFile)(e);h.set(e,t);yield t}}}}}const s=i.programs!=null||((n=i.projects)===null||n===void 0?void 0:n.length)>0;if(i.singleRun&&t.filePath){_[t.filePath]=(_[t.filePath]||0)+1}const{ast:l,program:u}=i.singleRun&&t.filePath&&_[t.filePath]>1?(0,c.createIsolatedProgram)(i):getProgramAndAST(i,s);const A=typeof i.preserveNodeMaps==="boolean"?i.preserveNodeMaps:true;const{estree:v,astMaps:E}=(0,a.astConverter)(l,i,A);if(u&&i.errorOnTypeScriptSyntacticAndSemanticIssues){const e=(0,g.getFirstSemanticOrSyntacticError)(u,l);if(e){throw(0,o.convertError)(e)}}return{ast:v,services:{hasFullTypeInformation:s,program:u,esTreeNodeToTSNodeMap:E.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:E.tsNodeToESTreeNodeMap}}}t.parseAndGenerateServices=parseAndGenerateServices},55452:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFirstSemanticOrSyntacticError=void 0;const n=r(35672);function getFirstSemanticOrSyntacticError(e,t){try{const r=whitelistSupportedDiagnostics(e.getSyntacticDiagnostics(t));if(r.length){return convertDiagnosticToSemanticOrSyntacticError(r[0])}const n=whitelistSupportedDiagnostics(e.getSemanticDiagnostics(t));if(n.length){return convertDiagnosticToSemanticOrSyntacticError(n[0])}return undefined}catch(e){console.warn(`Warning From TSC: "${e.message}`);return undefined}}t.getFirstSemanticOrSyntacticError=getFirstSemanticOrSyntacticError;function whitelistSupportedDiagnostics(e){return e.filter((e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return true}return false}))}function convertDiagnosticToSemanticOrSyntacticError(e){return Object.assign(Object.assign({},e),{message:(0,n.flattenDiagnosticMessageText)(e.messageText,n.sys.newLine)})}},77372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.simpleTraverse=void 0;const n=r(22502);function isValidNode(e){return e!=null&&typeof e==="object"&&typeof e.type==="string"}function getVisitorKeysForNode(e,t){const r=e[t.type];return r!==null&&r!==void 0?r:[]}class SimpleTraverser{constructor(e,t=false){this.allVisitorKeys=n.visitorKeys;this.selectors=e;this.setParentPointers=t}traverse(e,t){if(!isValidNode(e)){return}if(this.setParentPointers){e.parent=t}if("enter"in this.selectors){this.selectors.enter(e,t)}else if(e.type in this.selectors){this.selectors[e.type](e,t)}const r=getVisitorKeysForNode(this.allVisitorKeys,e);if(r.length<1){return}for(const t of r){const r=e[t];if(Array.isArray(r)){for(const t of r){this.traverse(t,e)}}else{this.traverse(r,e)}}}}function simpleTraverse(e,t,r=false){new SimpleTraverser(t,r).traverse(e,undefined)}t.simpleTraverse=simpleTraverse},14983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8848:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.TSESTree=t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0;var a=r(71941);Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:true,get:function(){return a.AST_NODE_TYPES}});Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:true,get:function(){return a.AST_TOKEN_TYPES}});Object.defineProperty(t,"TSESTree",{enumerable:true,get:function(){return a.TSESTree}});i(r(98611),t);i(r(14983),t)},98611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1058:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.typescriptVersionIsAtLeast=void 0;const o=a(r(19562));const s=a(r(35672));function semverCheck(e){return o.satisfies(s.version,`>= ${e}.0 || >= ${e}.1-rc || >= ${e}.0-beta`,{includePrerelease:true})}const c=["3.7","3.8","3.9","4.0","4.1","4.2","4.3","4.4","4.5","4.6","4.7","4.8","4.9","5.0"];const l={};t.typescriptVersionIsAtLeast=l;for(const e of c){l[e]=semverCheck(e)}},43909:(e,t,r)=>{"use strict";const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new l(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new u(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new u(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(s(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(s(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=r(56942);const{safeRe:a,t:o}=r(92433);const s=r(84748);const c=r(16841);const l=r(35837);const u=r(16972)},16972:(e,t,r)=>{"use strict";const n=/\s+/g;class Range{constructor(e,t){t=o(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof s){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&h)|(this.options.loose&&_);const r=t+":"+e;const n=a.get(r);if(n){return n}const i=this.options.loose;const o=i?u[d.HYPHENRANGELOOSE]:u[d.HYPHENRANGE];e=e.replace(o,hyphenReplace(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(u[d.COMPARATORTRIM],p);c("comparator trim",e);e=e.replace(u[d.TILDETRIM],g);c("tilde trim",e);e=e.replace(u[d.CARETTRIM],y);c("caret trim",e);let l=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){l=l.filter((e=>{c("loose invalid filter",e,this.options);return!!e.match(u[d.COMPARATORLOOSE])}))}c("range list",l);const A=new Map;const v=l.map((e=>new s(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}A.set(e.value,e)}if(A.size>1&&A.has("")){A.delete("")}const E=[...A.values()];a.set(r,E);return E}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let i=n.pop();while(r&&n.length){r=n.every((e=>i.intersects(e,t)));i=n.pop()}return r};const parseComparator=(e,t)=>{c("comp",e,t);e=replaceCarets(e,t);c("caret",e);e=replaceTildes(e,t);c("tildes",e);e=replaceXRanges(e,t);c("xrange",e);e=replaceStars(e,t);c("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?u[d.TILDELOOSE]:u[d.TILDE];return e.replace(r,((t,r,n,i,a)=>{c("tilde",e,t,r,n,i,a);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(i)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(a){c("replaceTilde pr",a);o=`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`}c("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{c("caret",e,t);const r=t.loose?u[d.CARETLOOSE]:u[d.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,a,o)=>{c("caret",e,t,r,i,a,o);let s;if(isX(r)){s=""}else if(isX(i)){s=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(a)){if(r==="0"){s=`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`}else{s=`>=${r}.${i}.0${n} <${+r+1}.0.0-0`}}else if(o){c("replaceCaret pr",o);if(r==="0"){if(i==="0"){s=`>=${r}.${i}.${a}-${o} <${r}.${i}.${+a+1}-0`}else{s=`>=${r}.${i}.${a}-${o} <${r}.${+i+1}.0-0`}}else{s=`>=${r}.${i}.${a}-${o} <${+r+1}.0.0-0`}}else{c("no pr");if(r==="0"){if(i==="0"){s=`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`}else{s=`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`}}else{s=`>=${r}.${i}.${a} <${+r+1}.0.0-0`}}c("caret return",s);return s}))};const replaceXRanges=(e,t)=>{c("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?u[d.XRANGELOOSE]:u[d.XRANGE];return e.replace(r,((r,n,i,a,o,s)=>{c("xRange",e,r,n,i,a,o,s);const l=isX(i);const u=l||isX(a);const d=u||isX(o);const p=d;if(n==="="&&p){n=""}s=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&p){if(u){a=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;a=0;o=0}else{a=+a+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{a=+a+1}}if(n==="<"){s="-0"}r=`${n+i}.${a}.${o}${s}`}else if(u){r=`>=${i}.0.0${s} <${+i+1}.0.0-0`}else if(d){r=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`}c("xRange return",r);return r}))};const replaceStars=(e,t)=>{c("replaceStars",e,t);return e.trim().replace(u[d.STAR],"")};const replaceGTE0=(e,t)=>{c("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?d.GTE0PRE:d.GTE0],"")};const hyphenReplace=e=>(t,r,n,i,a,o,s,c,l,u,d,p)=>{if(isX(n)){r=""}else if(isX(i)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(a)){r=`>=${n}.${i}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(l)){c=""}else if(isX(u)){c=`<${+l+1}.0.0-0`}else if(isX(d)){c=`<${l}.${+u+1}.0-0`}else if(p){c=`<=${l}.${u}.${d}-${p}`}else if(e){c=`<${l}.${u}.${+d+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},35837:(e,t,r)=>{"use strict";const n=r(16841);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=r(96575);const{safeRe:o,t:s}=r(92433);const c=r(56942);const{compareIdentifiers:l}=r(62246);class SemVer{constructor(e,t){t=c(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(l(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},95649:(e,t,r)=>{"use strict";const n=r(19851);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},84748:(e,t,r)=>{"use strict";const n=r(91112);const i=r(22452);const a=r(4761);const o=r(51146);const s=r(65990);const c=r(62879);const cmp=(e,t,r,l)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return i(e,r,l);case">":return a(e,r,l);case">=":return o(e,r,l);case"<":return s(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},60951:(e,t,r)=>{"use strict";const n=r(35837);const i=r(19851);const{safeRe:a,t:o}=r(92433);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?a[o.COERCEFULL]:a[o.COERCE])}else{const n=t.includePrerelease?a[o.COERCERTLFULL]:a[o.COERCERTL];let i;while((i=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||i.index+i[0].length!==r.index+r[0].length){r=i}n.lastIndex=i.index+i[1].length+i[2].length}n.lastIndex=-1}if(r===null){return null}const s=r[2];const c=r[3]||"0";const l=r[4]||"0";const u=t.includePrerelease&&r[5]?`-${r[5]}`:"";const d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${s}.${c}.${l}${u}${d}`,t)};e.exports=coerce},3314:(e,t,r)=>{"use strict";const n=r(35837);const compareBuild=(e,t,r)=>{const i=new n(e,r);const a=new n(t,r);return i.compare(a)||i.compareBuild(a)};e.exports=compareBuild},8140:(e,t,r)=>{"use strict";const n=r(57235);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},57235:(e,t,r)=>{"use strict";const n=r(35837);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},81085:(e,t,r)=>{"use strict";const n=r(19851);const diff=(e,t)=>{const r=n(e,null,true);const i=n(t,null,true);const a=r.compare(i);if(a===0){return null}const o=a>0;const s=o?r:i;const c=o?i:r;const l=!!s.prerelease.length;const u=!!c.prerelease.length;if(u&&!l){if(!c.patch&&!c.minor){return"major"}if(c.compareMain(s)===0){if(c.minor&&!c.patch){return"minor"}return"patch"}}const d=l?"pre":"";if(r.major!==i.major){return d+"major"}if(r.minor!==i.minor){return d+"minor"}if(r.patch!==i.patch){return d+"patch"}return"prerelease"};e.exports=diff},91112:(e,t,r)=>{"use strict";const n=r(57235);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},4761:(e,t,r)=>{"use strict";const n=r(57235);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},51146:(e,t,r)=>{"use strict";const n=r(57235);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},8060:(e,t,r)=>{"use strict";const n=r(35837);const inc=(e,t,r,i,a)=>{if(typeof r==="string"){a=i;i=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch(e){return null}};e.exports=inc},65990:(e,t,r)=>{"use strict";const n=r(57235);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},62879:(e,t,r)=>{"use strict";const n=r(57235);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},80837:(e,t,r)=>{"use strict";const n=r(35837);const major=(e,t)=>new n(e,t).major;e.exports=major},76129:(e,t,r)=>{"use strict";const n=r(35837);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},22452:(e,t,r)=>{"use strict";const n=r(57235);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},19851:(e,t,r)=>{"use strict";const n=r(35837);const parse=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},88490:(e,t,r)=>{"use strict";const n=r(35837);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},87004:(e,t,r)=>{"use strict";const n=r(19851);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},8475:(e,t,r)=>{"use strict";const n=r(57235);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},24138:(e,t,r)=>{"use strict";const n=r(3314);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},98629:(e,t,r)=>{"use strict";const n=r(16972);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},76226:(e,t,r)=>{"use strict";const n=r(3314);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},26466:(e,t,r)=>{"use strict";const n=r(19851);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},19562:(e,t,r)=>{"use strict";const n=r(92433);const i=r(96575);const a=r(35837);const o=r(62246);const s=r(19851);const c=r(26466);const l=r(95649);const u=r(8060);const d=r(81085);const p=r(80837);const g=r(76129);const y=r(88490);const h=r(87004);const _=r(57235);const A=r(8475);const v=r(8140);const E=r(3314);const T=r(76226);const b=r(24138);const S=r(4761);const C=r(65990);const x=r(91112);const D=r(22452);const I=r(51146);const k=r(62879);const N=r(84748);const P=r(60951);const w=r(43909);const F=r(16972);const O=r(98629);const B=r(5892);const M=r(75847);const L=r(77781);const R=r(71112);const Q=r(60963);const j=r(20366);const U=r(15298);const J=r(29143);const V=r(42199);const W=r(4526);const G=r(30975);e.exports={parse:s,valid:c,clean:l,inc:u,diff:d,major:p,minor:g,patch:y,prerelease:h,compare:_,rcompare:A,compareLoose:v,compareBuild:E,sort:T,rsort:b,gt:S,lt:C,eq:x,neq:D,gte:I,lte:k,cmp:N,coerce:P,Comparator:w,Range:F,satisfies:O,toComparators:B,maxSatisfying:M,minSatisfying:L,minVersion:R,validRange:Q,outside:j,gtr:U,ltr:J,intersects:V,simplifyRange:W,subset:G,SemVer:a,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},96575:e=>{"use strict";const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const a=r-6;const o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:n,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},16841:e=>{"use strict";const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},62246:e=>{"use strict";const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const n=t.test(e);const i=t.test(r);if(n&&i){e=+e;r=+r}return e===r?0:n&&!i?-1:i&&!n?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},72753:e=>{"use strict";class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},56942:e=>{"use strict";const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},92433:(e,t,r)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=r(96575);const o=r(16841);t=e.exports={};const s=t.re=[];const c=t.safeRe=[];const l=t.src=[];const u=t.safeSrc=[];const d=t.t={};let p=0;const g="[a-zA-Z0-9-]";const y=[["\\s",1],["\\d",a],[g,i]];const makeSafeRegex=e=>{for(const[t,r]of y){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const n=makeSafeRegex(t);const i=p++;o(e,i,t);d[e]=i;l[i]=t;u[i]=n;s[i]=new RegExp(t,r?"g":undefined);c[i]=new RegExp(n,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`);createToken("MAINVERSION",`(${l[d.NUMERICIDENTIFIER]})\\.`+`(${l[d.NUMERICIDENTIFIER]})\\.`+`(${l[d.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[d.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[d.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${l[d.NONNUMERICIDENTIFIER]}|${l[d.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${l[d.NONNUMERICIDENTIFIER]}|${l[d.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${l[d.PRERELEASEIDENTIFIER]}(?:\\.${l[d.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${l[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[d.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${g}+`);createToken("BUILD",`(?:\\+(${l[d.BUILDIDENTIFIER]}(?:\\.${l[d.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${l[d.MAINVERSION]}${l[d.PRERELEASE]}?${l[d.BUILD]}?`);createToken("FULL",`^${l[d.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${l[d.MAINVERSIONLOOSE]}${l[d.PRERELEASELOOSE]}?${l[d.BUILD]}?`);createToken("LOOSE",`^${l[d.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${l[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${l[d.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${l[d.XRANGEIDENTIFIER]})`+`(?:\\.(${l[d.XRANGEIDENTIFIER]})`+`(?:\\.(${l[d.XRANGEIDENTIFIER]})`+`(?:${l[d.PRERELEASE]})?${l[d.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${l[d.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[d.XRANGEIDENTIFIERLOOSE]})`+`(?:${l[d.PRERELEASELOOSE]})?${l[d.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${l[d.GTLT]}\\s*${l[d.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);createToken("COERCE",`${l[d.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",l[d.COERCEPLAIN]+`(?:${l[d.PRERELEASE]})?`+`(?:${l[d.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",l[d.COERCE],true);createToken("COERCERTLFULL",l[d.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${l[d.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${l[d.LONETILDE]}${l[d.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${l[d.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${l[d.LONECARET]}${l[d.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${l[d.LONECARET]}${l[d.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${l[d.GTLT]}\\s*(${l[d.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${l[d.GTLT]}\\s*(${l[d.LOOSEPLAIN]}|${l[d.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${l[d.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${l[d.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${l[d.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${l[d.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},15298:(e,t,r)=>{"use strict";const n=r(20366);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},42199:(e,t,r)=>{"use strict";const n=r(16972);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=intersects},29143:(e,t,r)=>{"use strict";const n=r(20366);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},75847:(e,t,r)=>{"use strict";const n=r(35837);const i=r(16972);const maxSatisfying=(e,t,r)=>{let a=null;let o=null;let s=null;try{s=new i(t,r)}catch(e){return null}e.forEach((e=>{if(s.test(e)){if(!a||o.compare(e)===-1){a=e;o=new n(a,r)}}}));return a};e.exports=maxSatisfying},77781:(e,t,r)=>{"use strict";const n=r(35837);const i=r(16972);const minSatisfying=(e,t,r)=>{let a=null;let o=null;let s=null;try{s=new i(t,r)}catch(e){return null}e.forEach((e=>{if(s.test(e)){if(!a||o.compare(e)===1){a=e;o=new n(a,r)}}}));return a};e.exports=minSatisfying},71112:(e,t,r)=>{"use strict";const n=r(35837);const i=r(16972);const a=r(4761);const minVersion=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||a(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||a(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},20366:(e,t,r)=>{"use strict";const n=r(35837);const i=r(43909);const{ANY:a}=i;const o=r(16972);const s=r(98629);const c=r(4761);const l=r(65990);const u=r(62879);const d=r(51146);const outside=(e,t,r,p)=>{e=new n(e,p);t=new o(t,p);let g,y,h,_,A;switch(r){case">":g=c;y=u;h=l;_=">";A=">=";break;case"<":g=l;y=d;h=c;_="<";A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p)){return false}for(let r=0;r{if(e.semver===a){e=new i(">=0.0.0")}o=o||e;s=s||e;if(g(e.semver,o.semver,p)){o=e}else if(h(e.semver,s.semver,p)){s=e}}));if(o.operator===_||o.operator===A){return false}if((!s.operator||s.operator===_)&&y(e,s.semver)){return false}else if(s.operator===A&&h(e,s.semver)){return false}}return true};e.exports=outside},4526:(e,t,r)=>{"use strict";const n=r(98629);const i=r(57235);e.exports=(e,t,r)=>{const a=[];let o=null;let s=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const e of c){const i=n(e,t,r);if(i){s=e;if(!o){o=e}}else{if(s){a.push([o,s])}s=null;o=null}}if(o){a.push([o,null])}const l=[];for(const[e,t]of a){if(e===t){l.push(e)}else if(!t&&e===c[0]){l.push("*")}else if(!t){l.push(`>=${e}`)}else if(e===c[0]){l.push(`<=${t}`)}else{l.push(`${e} - ${t}`)}}const u=l.join(" || ");const d=typeof t.raw==="string"?t.raw:String(t);return u.length{"use strict";const n=r(16972);const i=r(43909);const{ANY:a}=i;const o=r(98629);const s=r(57235);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let i=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const c=[new i(">=0.0.0-0")];const l=[new i(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(r.includePrerelease){e=c}else{e=l}}if(t.length===1&&t[0].semver===a){if(r.includePrerelease){return true}else{t=l}}const n=new Set;let i,u;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,r)}else if(t.operator==="<"||t.operator==="<="){u=lowerLT(u,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let d;if(i&&u){d=s(i.semver,u.semver,r);if(d>0){return null}else if(d===0&&(i.operator!==">="||u.operator!=="<=")){return null}}for(const e of n){if(i&&!o(e,String(i),r)){return null}if(u&&!o(e,String(u),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let p,g;let y,h;let _=u&&!r.includePrerelease&&u.semver.prerelease.length?u.semver:false;let A=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(_&&_.prerelease.length===1&&u.operator==="<"&&_.prerelease[0]===0){_=false}for(const e of t){h=h||e.operator===">"||e.operator===">=";y=y||e.operator==="<"||e.operator==="<=";if(i){if(A){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===A.major&&e.semver.minor===A.minor&&e.semver.patch===A.patch){A=false}}if(e.operator===">"||e.operator===">="){p=higherGT(i,e,r);if(p===e&&p!==i){return false}}else if(i.operator===">="&&!o(i.semver,String(e),r)){return false}}if(u){if(_){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===_.major&&e.semver.minor===_.minor&&e.semver.patch===_.patch){_=false}}if(e.operator==="<"||e.operator==="<="){g=lowerLT(u,e,r);if(g===e&&g!==u){return false}}else if(u.operator==="<="&&!o(u.semver,String(e),r)){return false}}if(!e.operator&&(u||i)&&d!==0){return false}}if(i&&y&&!u&&d!==0){return false}if(u&&h&&!i&&d!==0){return false}if(A||_){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=s(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=s(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},5892:(e,t,r)=>{"use strict";const n=r(16972);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},60963:(e,t,r)=>{"use strict";const n=r(16972);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},81327:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getKeys=void 0;const n=r(17781);const i=n.getKeys;t.getKeys=i},22502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.visitorKeys=t.getKeys=void 0;var n=r(81327);Object.defineProperty(t,"getKeys",{enumerable:true,get:function(){return n.getKeys}});var i=r(60005);Object.defineProperty(t,"visitorKeys",{enumerable:true,get:function(){return i.visitorKeys}})},60005:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.visitorKeys=void 0;const o=a(r(17781));const s=(()=>{const e=["typeParameters","params","returnType"];const t=[...e,"body"];const r=["decorators","key","typeAnnotation"];return{AnonymousFunction:t,Function:["id",...t],FunctionType:e,ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],AbstractPropertyDefinition:["decorators","key","typeAnnotation"],PropertyDefinition:[...r,"value"],TypeAssertion:["expression","typeAnnotation"]}})();const c={AccessorProperty:s.PropertyDefinition,ArrayPattern:["decorators","elements","typeAnnotation"],ArrowFunctionExpression:s.AnonymousFunction,AssignmentPattern:["decorators","left","right","typeAnnotation"],CallExpression:["callee","typeParameters","arguments"],ClassDeclaration:s.ClassDeclaration,ClassExpression:s.ClassDeclaration,Decorator:["expression"],ExportAllDeclaration:["exported","source","assertions"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],FunctionDeclaration:s.Function,FunctionExpression:s.Function,Identifier:["decorators","typeAnnotation"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","assertions"],ImportExpression:["source","attributes"],JSXClosingFragment:[],JSXOpeningElement:["name","typeParameters","attributes"],JSXOpeningFragment:[],JSXSpreadChild:["expression"],MethodDefinition:["decorators","key","value","typeParameters"],NewExpression:["callee","typeParameters","arguments"],ObjectPattern:["decorators","properties","typeAnnotation"],PropertyDefinition:s.PropertyDefinition,RestElement:["decorators","argument","typeAnnotation"],StaticBlock:["body"],TaggedTemplateExpression:["tag","typeParameters","quasi"],TSAbstractAccessorProperty:s.AbstractPropertyDefinition,TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:s.AbstractPropertyDefinition,TSAnyKeyword:[],TSArrayType:["elementType"],TSAsExpression:s.TypeAssertion,TSAsyncKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSCallSignatureDeclaration:s.FunctionType,TSClassImplements:["expression","typeParameters"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSConstructorType:s.FunctionType,TSConstructSignatureDeclaration:s.FunctionType,TSDeclareFunction:s.Function,TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id",...s.FunctionType],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSExportAssignment:["expression"],TSExportKeyword:[],TSExternalModuleReference:["expression"],TSFunctionType:s.FunctionType,TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["parameter","qualifier","typeParameters"],TSIndexedAccessType:["indexType","objectType"],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:["typeParameter"],TSInstantiationExpression:["expression","typeParameters"],TSInterfaceBody:["body"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceHeritage:["expression","typeParameters"],TSIntersectionType:["types"],TSIntrinsicKeyword:[],TSLiteralType:["literal"],TSMappedType:["nameType","typeParameter","typeAnnotation"],TSMethodSignature:["typeParameters","key","params","returnType"],TSModuleBlock:["body"],TSModuleDeclaration:["id","body"],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:["id"],TSNeverKeyword:[],TSNonNullExpression:["expression"],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSOptionalType:["typeAnnotation"],TSParameterProperty:["decorators","parameter"],TSPrivateKeyword:[],TSPropertySignature:["typeAnnotation","key","initializer"],TSProtectedKeyword:[],TSPublicKeyword:[],TSQualifiedName:["left","right"],TSReadonlyKeyword:[],TSRestType:["typeAnnotation"],TSSatisfiesExpression:["typeAnnotation","expression"],TSStaticKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSTemplateLiteralType:["quasis","types"],TSThisType:[],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:["typeAnnotation"],TSTypeAssertion:s.TypeAssertion,TSTypeLiteral:["members"],TSTypeOperator:["typeAnnotation"],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypePredicate:["typeAnnotation","parameterName"],TSTypeQuery:["exprName","typeParameters"],TSTypeReference:["typeName","typeParameters"],TSUndefinedKeyword:[],TSUnionType:["types"],TSUnknownKeyword:[],TSVoidKeyword:[]};const l=o.unionWith(c);t.visitorKeys=l},37079:e=>{"use strict";e.exports=(...e)=>[...new Set([].concat(...e))]},59380:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,a,o,s;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var u=c;if(c>=0&&l>0){if(e===t){return[c,l]}n=[];a=r.length;while(u>=0&&!s){if(u==c){n.push(u);c=r.indexOf(e,u+1)}else if(n.length==1){s=[n.pop(),l]}else{i=n.pop();if(i=0?c:l}if(n.length){s=[a,o]}}return s}},52732:(e,t,r)=>{var n=r(11063);var i=r(22027);var a=r(59934);var o=Function.bind;var s=o.bind(o);function bindApi(e,t,r){var n=s(a,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach((function(n){var a=r?[t,n,r]:[t,n];e[n]=e.api[n]=s(i,null).apply(null,a)}))}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},22027:e=>{e.exports=addHook;function addHook(e,t,r,n){var i=n;if(!e.registry[r]){e.registry[r]=[]}if(t==="before"){n=function(e,t){return Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){r=e;return i(r,t)})).then((function(){return r}))}}if(t==="error"){n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return i(e,t)}))}}e.registry[r].push({hook:n,orig:i})}},11063:e=>{e.exports=register;function register(e,t,r,n){if(typeof r!=="function"){throw new Error("method for before hook must be a function")}if(!n){n={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,r){return register.bind(null,e,r,t,n)}),r)()}return Promise.resolve().then((function(){if(!e.registry[t]){return r(n)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,n)}),r)()}))}},59934:e=>{e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},94691:(e,t,r)=>{var n=r(59380);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var s="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(o).split("\\,").join(s).split("\\.").join(c)}function unescapeBraces(e){return e.split(i).join("\\").split(a).join("{").split(o).join("}").split(s).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var a=r.body;var o=r.post;var s=i.split(",");s[s.length-1]+="{"+a+"}";var c=parseCommaParts(o);if(o.length){s[s.length-1]+=c.shift();s.push.apply(s,c)}t.push.apply(t,s);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=n("{","}",e);if(!i)return[e];var a=i.pre;var s=i.post.length?expand(i.post,false):[""];if(/\$$/.test(i.pre)){for(var c=0;c=0;if(!p&&!g){if(i.post.match(/,(?!,).*\}/)){e=i.pre+"{"+i.body+o+i.post;return expand(e)}return[e]}var y;if(p){y=i.body.split(/\.\./)}else{y=parseCommaParts(i.body);if(y.length===1){y=expand(y[0],false).map(embrace);if(y.length===1){return s.map((function(e){return i.pre+y[0]+e}))}}}var h;if(p){var _=numeric(y[0]);var A=numeric(y[1]);var v=Math.max(y[0].length,y[1].length);var E=y.length==3?Math.abs(numeric(y[2])):1;var T=lte;var b=A<_;if(b){E*=-1;T=gte}var S=y.some(isPadded);h=[];for(var C=_;T(C,A);C+=E){var x;if(d){x=String.fromCharCode(C);if(x==="\\")x=""}else{x=String(C);if(S){var D=v-x.length;if(D>0){var I=new Array(D+1).join("0");if(C<0)x="-"+I+x.slice(1);else x=I+x}}}h.push(x)}}else{h=[];for(var k=0;k{"use strict";const n=r(3317);const i=r(31113);const a=r(65290);const o=r(30507);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(const n of e){const e=braces.create(n,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return i(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=a(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},31113:(e,t,r)=>{"use strict";const n=r(70877);const i=r(52257);const compile=(e,t={})=>{const walk=(e,r={})=>{const a=i.isInvalidBrace(r);const o=e.invalid===true&&t.escapeInvalid===true;const s=a===true||o===true;const c=t.escapeInvalid===true?"\\":"";let l="";if(e.isOpen===true){return c+e.value}if(e.isClose===true){console.log("node.isClose",c,e.value);return c+e.value}if(e.type==="open"){return s?c+e.value:"("}if(e.type==="close"){return s?c+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":s?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){const r=i.reduce(e.nodes);const a=n(...r,{...t,wrap:false,toRegex:true,strictZeros:true});if(a.length!==0){return r.length>1&&a.length>1?`(${a})`:a}}if(e.nodes){for(const t of e.nodes){l+=walk(t,e)}}return l};return walk(e)};e.exports=compile},62477:e=>{"use strict";e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},65290:(e,t,r)=>{"use strict";const n=r(70877);const i=r(3317);const a=r(52257);const append=(e="",t="",r=false)=>{const n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?a.flatten(t).map((e=>`{${e}}`)):t}for(const i of e){if(Array.isArray(i)){for(const e of i){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(i,e,r):i+e)}}}return a.flatten(n)};const expand=(e,t={})=>{const r=t.rangeLimit===undefined?1e3:t.rangeLimit;const walk=(e,o={})=>{e.queue=[];let s=o;let c=o.queue;while(s.type!=="brace"&&s.type!=="root"&&s.parent){s=s.parent;c=s.queue}if(e.invalid||e.dollar){c.push(append(c.pop(),i(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){c.push(append(c.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){const o=a.reduce(e.nodes);if(a.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let s=n(...o,t);if(s.length===0){s=i(e,t)}c.push(append(c.pop(),s));e.nodes=[];return}const l=a.encloseBrace(e);let u=e.queue;let d=e;while(d.type!=="brace"&&d.type!=="root"&&d.parent){d=d.parent;u=d.queue}for(let t=0;t{"use strict";const n=r(3317);const{MAX_LENGTH:i,CHAR_BACKSLASH:a,CHAR_BACKTICK:o,CHAR_COMMA:s,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:g,CHAR_RIGHT_SQUARE_BRACKET:y,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:_,CHAR_NO_BREAK_SPACE:A,CHAR_ZERO_WIDTH_NOBREAK_SPACE:v}=r(62477);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const r=t||{};const E=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;if(e.length>E){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${E})`)}const T={type:"root",input:e,nodes:[]};const b=[T];let S=T;let C=T;let x=0;const D=e.length;let I=0;let k=0;let N;const advance=()=>e[I++];const push=e=>{if(e.type==="text"&&C.type==="dot"){C.type="text"}if(C&&C.type==="text"&&e.type==="text"){C.value+=e.value;return}S.nodes.push(e);e.parent=S;e.prev=C;C=e;return e};push({type:"bos"});while(I0){if(S.ranges>0){S.ranges=0;const e=S.nodes.shift();S.nodes=[e,{type:"text",value:n(S)}]}push({type:"comma",value:N});S.commas++;continue}if(N===c&&k>0&&S.commas===0){const e=S.nodes;if(k===0||e.length===0){push({type:"text",value:N});continue}if(C.type==="dot"){S.range=[];C.value+=N;C.type="range";if(S.nodes.length!==3&&S.nodes.length!==5){S.invalid=true;S.ranges=0;C.type="text";continue}S.ranges++;S.args=[];continue}if(C.type==="range"){e.pop();const t=e[e.length-1];t.value+=C.value+N;C=t;S.ranges--;continue}push({type:"dot",value:N});continue}push({type:"text",value:N})}do{S=b.pop();if(S.type!=="root"){S.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));const e=b[b.length-1];const t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}}while(b.length>0);push({type:"eos"});return T};e.exports=parse},3317:(e,t,r)=>{"use strict";const n=r(52257);e.exports=(e,t={})=>{const stringify=(e,r={})=>{const i=t.escapeInvalid&&n.isInvalidBrace(r);const a=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((i||a)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},52257:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,n=1,i)=>{if(i===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=i};t.escapeNode=(e,t=0,r)=>{const n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r{function BrowserslistError(e){this.name="BrowserslistError";this.message=e;this.browserslist=true;if(Error.captureStackTrace){Error.captureStackTrace(this,BrowserslistError)}}BrowserslistError.prototype=Error.prototype;e.exports=BrowserslistError},77913:(e,t,r)=>{var n=r(73909);var i=r(25588).X;var a=r(69666);var o=r(93147);var s=r(16928);var c=r(76747);var l=r(11393);var u=r(49694);var d=365.259641*24*60*60*1e3;var p="37";var g=14;function isVersionsMatch(e,t){return(e+".").indexOf(t+".")===0}function isEolReleased(e){var t=e.slice(1);return browserslist.nodeVersions.some((function(e){return isVersionsMatch(e,t)}))}function normalize(e){return e.filter((function(e){return typeof e==="string"}))}function normalizeElectron(e){var t=e;if(e.split(".").length===3){t=e.split(".").slice(0,-1).join(".")}return t}function nameMapper(e){return function mapName(t){return e+" "+t}}function getMajor(e){return parseInt(e.split(".")[0])}function getMajorVersions(e,t){if(e.length===0)return[];var r=uniq(e.map(getMajor));var n=r[r.length-t];if(!n){return e}var i=[];for(var a=e.length-1;a>=0;a--){if(n>getMajor(e[a]))break;i.unshift(e[a])}return i}function uniq(e){var t=[];for(var r=0;r"){return function(e){return parseLatestFloat(e)>t}}else if(e===">="){return function(e){return parseLatestFloat(e)>=t}}else if(e==="<"){return function(e){return parseFloat(e)"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>0}}else if(e===">="){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,t)>=0}}else if(e==="<"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>0}}else{return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(t,e)>=0}}}function parseSimpleInt(e){return parseInt(e)}function compare(e,t){if(et)return+1;return 0}function compareSemver(e,t){return compare(parseInt(e[0]),parseInt(t[0]))||compare(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||compare(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function semverFilterLoose(e,t){t=t.split(".").map(parseSimpleInt);if(typeof t[1]==="undefined"){t[1]="x"}switch(e){case"<=":return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)<=0};case">=":default:return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,t)>=0}}}function compareSemverLoose(e,t){if(e[0]!==t[0]){return e[0]=e}));return r.concat(a.map(nameMapper(i.name)))}),[])}function cloneData(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function byName(e,t){e=e.toLowerCase();e=browserslist.aliases[e]||e;if(t.mobileToDesktop&&browserslist.desktopNames[e]){var r=browserslist.data[browserslist.desktopNames[e]];if(e==="android"){return normalizeAndroidData(cloneData(browserslist.data[e]),r)}else{var n=cloneData(r);n.name=e;return n}}return browserslist.data[e]}function normalizeAndroidVersions(e,t){var r=t.indexOf(p);return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(t.slice(r))}function copyObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function normalizeAndroidData(e,t){e.released=normalizeAndroidVersions(e.released,t.released);e.versions=normalizeAndroidVersions(e.versions,t.versions);e.releaseDate=copyObject(e.releaseDate);e.released.forEach((function(r){if(e.releaseDate[r]===undefined){e.releaseDate[r]=t.releaseDate[r]}}));return e}function checkName(e,t){var r=byName(e,t);if(!r)throw new c("Unknown browser "+e);return r}function unknownQuery(e){return new c("Unknown browser query `"+e+"`. "+"Maybe you are using old Browserslist or made typo in query.")}function filterJumps(e,t,r,n){var i=1;switch(t){case"android":if(n.mobileToDesktop)return e;var a=browserslist.data.chrome.released;i=a.length-a.indexOf(p);break;case"op_mob":var o=browserslist.data.op_mob.released.slice(-1)[0];i=getMajor(o)-g+1;break;default:return e}if(r<=i){return e.slice(-1)}return e.slice(i-1-r)}function isSupported(e,t){return typeof e==="string"&&(e.indexOf("y")>=0||t&&e.indexOf("a")>=0)}function resolve(e,t){return parseQueries(e).reduce((function(e,r,n){if(r.not&&n===0){throw new c("Write any browsers query (for instance, `defaults`) "+"before `"+r.query+"`")}var i=_[r.type];var a=i.select.call(browserslist,t,r).map((function(e){var r=e.split(" ");if(r[1]==="0"){return r[0]+" "+byName(r[0],t).versions[0]}else{return e}}));if(r.compose==="and"){if(r.not){return e.filter((function(e){return a.indexOf(e)===-1}))}else{return e.filter((function(e){return a.indexOf(e)!==-1}))}}else{if(r.not){var o={};a.forEach((function(e){o[e]=true}));return e.filter((function(e){return!o[e]}))}return e.concat(a)}}),[])}function prepareOpts(e){if(typeof e==="undefined")e={};if(typeof e.path==="undefined"){e.path=s.resolve?s.resolve("."):"."}return e}function prepareQueries(e,t){if(typeof e==="undefined"||e===null){var r=browserslist.loadConfig(t);if(r){e=r}else{e=browserslist.defaults}}return e}function checkQueries(e){if(!(typeof e==="string"||Array.isArray(e))){throw new c("Browser queries must be an array or string. Got "+typeof e+".")}}var y={};var h={};function browserslist(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);var r=parseQueries(e).some((function(e){return _[e.type].needsPath}));var n={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,env:t.env};if(r){n.path=t.path}l.oldDataWarning(browserslist.data);var i=l.getStat(t,browserslist.data);if(i){n.customUsage={};for(var a in i){fillUsage(n.customUsage,a,i[a])}}var o=JSON.stringify([e,n]);if(y[o])return y[o];var s=uniq(resolve(e,n)).sort((function(e,t){e=e.split(" ");t=t.split(" ");if(e[0]===t[0]){var r=e[1].split("-")[0];var n=t[1].split("-")[0];return compareSemver(n.split("."),r.split("."))}else{return compare(e[0],t[0])}}));if(!l.env.BROWSERSLIST_DISABLE_CACHE){y[o]=s}return s}function parseQueries(e){var t=JSON.stringify(e);if(t in h)return h[t];var r=u(_,e);if(!l.env.BROWSERSLIST_DISABLE_CACHE){h[t]=r}return r}function loadCustomUsage(e,t){var r=l.loadStat(e,t,browserslist.data);if(r){e.customUsage={};for(var n in r){fillUsage(e.customUsage,n,r[n])}}if(!e.customUsage){throw new c("Custom usage statistics was not provided")}return e.customUsage}browserslist.parse=function(e,t){t=prepareOpts(t);e=prepareQueries(e,t);checkQueries(e);return parseQueries(e)};browserslist.cache={};browserslist.data={};browserslist.usage={global:{},custom:null};browserslist.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];browserslist.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};browserslist.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",android:"chrome"};browserslist.versionAliases={};browserslist.clearCaches=l.clearCaches;browserslist.parseConfig=l.parseConfig;browserslist.readConfig=l.readConfig;browserslist.findConfigFile=l.findConfigFile;browserslist.findConfig=l.findConfig;browserslist.loadConfig=l.loadConfig;browserslist.coverage=function(e,t){var r;if(typeof t==="undefined"){r=browserslist.usage.global}else if(t==="my stats"){var n={};n.path=s.resolve?s.resolve("."):".";var i=l.getStat(n);if(!i){throw new c("Custom usage statistics was not provided")}r={};for(var a in i){fillUsage(r,a,i[a])}}else if(typeof t==="string"){if(t.length>2){t=t.toLowerCase()}else{t=t.toUpperCase()}l.loadCountry(browserslist.usage,t,browserslist.data);r=browserslist.usage[t]}else{if("dataByBrowser"in t){t=t.dataByBrowser}r={};for(var o in t){for(var u in t[o]){r[o+" "+u]=t[o][u]}}}return e.reduce((function(e,t){var n=r[t];if(n===undefined){n=r[t.replace(/ \S+$/," 0")]}return e+(n||0)}),0)};function nodeQuery(e,t){var r=browserslist.nodeVersions.filter((function(e){return isVersionsMatch(e,t.version)}));if(r.length===0){if(e.ignoreUnknownVersions){return[]}else{throw new c("Unknown version "+t.version+" of Node.js")}}return["node "+r[r.length-1]]}function sinceQuery(e,t){var r=parseInt(t.year);var n=parseInt(t.month||"01")-1;var i=parseInt(t.day||"01");return filterByYear(Date.UTC(r,n,i,0,0,0),e)}function coverQuery(e,t){var r=parseFloat(t.coverage);var n=browserslist.usage.global;if(t.place){if(t.place.match(/^my\s+stats$/i)){if(!e.customUsage){throw new c("Custom usage statistics was not provided")}n=e.customUsage}else{var i;if(t.place.length===2){i=t.place.toUpperCase()}else{i=t.place.toLowerCase()}l.loadCountry(browserslist.usage,i,browserslist.data);n=browserslist.usage[i]}}else if(t.config){n=loadCustomUsage(e,t.config)}var a=Object.keys(n).sort((function(e,t){return n[t]-n[e]}));var o=0;var s=[];var u;for(var d=0;d=r)break}return s}var _={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,t){return Object.keys(i).reduce((function(r,n){var i=byName(n,e);if(!i)return r;var a=getMajorVersions(i.released,t.versions);a=a.map(nameMapper(i.name));a=filterJumps(a,i.name,t.versions,e);return r.concat(a)}),[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,t){return Object.keys(i).reduce((function(r,n){var i=byName(n,e);if(!i)return r;var a=i.released.slice(-t.versions);a=a.map(nameMapper(i.name));a=filterJumps(a,i.name,t.versions,e);return r.concat(a)}),[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,t){var r=getMajorVersions(Object.keys(a),t.versions);return r.map((function(e){return"chrome "+a[e]}))}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,t){return getMajorVersions(browserslist.nodeVersions,t.versions).map((function(e){return"node "+e}))}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,t){var r=checkName(t.browser,e);var n=getMajorVersions(r.released,t.versions);var i=n.map(nameMapper(r.name));i=filterJumps(i,r.name,t.versions,e);return i}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,t){return Object.keys(a).slice(-t.versions).map((function(e){return"chrome "+a[e]}))}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,t){return browserslist.nodeVersions.slice(-t.versions).map((function(e){return"node "+e}))}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,t){var r=checkName(t.browser,e);var n=r.released.slice(-t.versions).map(nameMapper(r.name));n=filterJumps(n,r.name,t.versions,e);return n}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(i).reduce((function(t,r){var n=byName(r,e);if(!n)return t;var i=n.versions.filter((function(e){return n.released.indexOf(e)===-1}));i=i.map(nameMapper(n.name));return t.concat(i)}),[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,t){var r=checkName(t.browser,e);return r.versions.filter((function(e){return r.released.indexOf(e)===-1})).map(nameMapper(r.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,t){return filterByYear(Date.now()-d*t.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:sinceQuery},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:sinceQuery},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:sinceQuery},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,t){var r=parseFloat(t.popularity);var n=browserslist.usage.global;return Object.keys(n).reduce((function(e,i){if(t.sign===">"){if(n[i]>r){e.push(i)}}else if(t.sign==="<"){if(n[i]=r){e.push(i)}return e}),[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,t){var r=parseFloat(t.popularity);if(!e.customUsage){throw new c("Custom usage statistics was not provided")}var n=e.customUsage;return Object.keys(n).reduce((function(e,i){var a=n[i];if(a==null){return e}if(t.sign===">"){if(a>r){e.push(i)}}else if(t.sign==="<"){if(a=r){e.push(i)}return e}),[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,t){var r=parseFloat(t.popularity);var n=loadCustomUsage(e,t.config);return Object.keys(n).reduce((function(e,i){var a=n[i];if(a==null){return e}if(t.sign===">"){if(a>r){e.push(i)}}else if(t.sign==="<"){if(a=r){e.push(i)}return e}),[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,t){var r=parseFloat(t.popularity);var n=t.place;if(n.length===2){n=n.toUpperCase()}else{n=n.toLowerCase()}l.loadCountry(browserslist.usage,n,browserslist.data);var i=browserslist.usage[n];return Object.keys(i).reduce((function(e,n){var a=i[n];if(a==null){return e}if(t.sign===">"){if(a>r){e.push(n)}}else if(t.sign==="<"){if(a=r){e.push(n)}return e}),[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:coverQuery},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:coverQuery},cover_config:{matches:["coverage","config"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/i,select:coverQuery},supports:{matches:["supportType","feature"],regexp:/^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/,select:function(e,t){l.loadFeature(browserslist.cache,t.feature);var r=t.supportType!=="fully";var n=browserslist.cache[t.feature];var i=[];for(var a in n){var o=byName(a,e);var s=o.released.length-1;while(s>=0){if(o.released[s]in n[a])break;s--}var c=e.mobileToDesktop&&a in browserslist.desktopNames&&isSupported(n[a][o.released[s]],r);o.versions.forEach((function(e){var t=n[a][e];if(t===undefined&&c){t=n[browserslist.desktopNames[a]][e]}if(isSupported(t,r)){i.push(a+" "+e)}}))}return i}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var r=normalizeElectron(t.from);var n=normalizeElectron(t.to);var i=parseFloat(t.from);var o=parseFloat(t.to);if(!a[r]){throw new c("Unknown version "+i+" of electron")}if(!a[n]){throw new c("Unknown version "+o+" of electron")}return Object.keys(a).filter((function(e){var t=parseFloat(e);return t>=i&&t<=o})).map((function(e){return"chrome "+a[e]}))}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(semverFilterLoose(">=",t.from)).filter(semverFilterLoose("<=",t.to)).map((function(e){return"node "+e}))}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var r=checkName(t.browser,e);var n=parseFloat(normalizeVersion(r,t.from)||t.from);var i=parseFloat(normalizeVersion(r,t.to)||t.to);function filter(e){var t=parseFloat(e);return t>=n&&t<=i}return r.released.filter(filter).map(nameMapper(r.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){var r=normalizeElectron(t.version);return Object.keys(a).filter(generateFilter(t.sign,r)).map((function(e){return"chrome "+a[e]}))}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){return browserslist.nodeVersions.filter(generateSemverFilter(t.sign,t.version)).map((function(e){return"node "+e}))}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,t){var r=t.version;var n=checkName(t.browser,e);var i=browserslist.versionAliases[n.name][r];if(i)r=i;return n.released.filter(generateFilter(t.sign,r)).map((function(e){return n.name+" "+e}))}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 128","firefox 140"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,t){var r=normalizeElectron(t.version);var n=a[r];if(!n){throw new c("Unknown version "+t.version+" of electron")}return["chrome "+n]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:nodeQuery},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:nodeQuery},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:nodeQuery},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[l.currentNode(resolve,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var t=Date.now();var r=Object.keys(o).filter((function(e){return tDate.parse(o[e].start)&&isEolReleased(e)})).map((function(e){return"node "+e.slice(1)}));return resolve(r,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,t){var r=t.version;if(/^tp$/i.test(r))r="TP";var n=checkName(t.browser,e);var i=normalizeVersion(n,r);if(i){r=i}else{if(r.indexOf(".")===-1){i=r+".0"}else{i=r.replace(/\.0$/,"")}i=normalizeVersion(n,i);if(i){r=i}else if(e.ignoreUnknownVersions){return[]}else{throw new c("Unknown version "+r+" of "+t.browser)}}return[n.name+" "+r]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,needsPath:true,select:function(e){return browserslist(undefined,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,needsPath:true,select:function(e,t){return resolve(l.loadQueries(e,t.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return resolve(browserslist.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var t=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return resolve(t,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,t){if(byName(t.query,e)){throw new c("Specify versions in Browserslist query for browser "+t.query)}else{throw unknownQuery(t.query)}}}};(function(){for(var e in i){var t=i[e];browserslist.data[e]={name:e,versions:normalize(i[e].versions),released:normalize(i[e].versions.slice(0,-3)),releaseDate:i[e].release_date};fillUsage(browserslist.usage.global,e,t.usage_global);browserslist.versionAliases[e]={};for(var r=0;r{var n=r(13702)["default"];var i=r(84358)["default"];var a=r(79896);var o=r(16928);var s=r(76747);var c=/^\s*\[(.+)]\s*$/;var l=/^browserslist-config-/;var u=/@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/;var d="Browserslist config should be a string or an array "+"of strings with browser queries";var p=false;var g={};var y={};var h={};function checkExtend(e){var t=" Use `dangerousExtend` option to disable.";if(!l.test(e)&&!u.test(e)){throw new s("Browserslist config needs `browserslist-config-` prefix. "+t)}if(e.replace(/^@[^/]+\//,"").indexOf(".")!==-1){throw new s("`.` not allowed in Browserslist config name. "+t)}if(e.indexOf("node_modules")!==-1){throw new s("`node_modules` not allowed in Browserslist config."+t)}}function isFile(e){return a.existsSync(e)&&a.statSync(e).isFile()}function isDirectory(e){return a.existsSync(e)&&a.statSync(e).isDirectory()}function eachParent(e,t,r){var n=o.resolve(e);var i=[];var a;do{if(!pathInRoot(n)){break}if(r&&n in r){a=r[n];break}i.push(n);if(!isDirectory(n)){continue}var s=t(n);if(typeof s!=="undefined"){a=s;break}}while(n!==(n=o.dirname(n)));if(r&&!process.env.BROWSERSLIST_DISABLE_CACHE){i.forEach((function(e){r[e]=a}))}return a}function pathInRoot(e){if(!process.env.BROWSERSLIST_ROOT_PATH)return true;var t=o.resolve(process.env.BROWSERSLIST_ROOT_PATH);if(o.relative(t,e).substring(0,2)===".."){return false}return true}function check(e){if(Array.isArray(e)){for(var t=0;t=0){r=JSON.parse(t).browserslist}else if(t.indexOf('"browserlist"')>=0){var n=JSON.parse(t);if(n.browserlist&&!n.browserslist){throw new s("`browserlist` key instead of `browserslist` in "+e)}}if(Array.isArray(r)||typeof r==="string"){r={defaults:r}}for(var i in r){check(r[i])}return r}function parsePackageOrReadConfig(t){if(t in h){return h[t]}var r=o.basename(t)==="package.json";var n=r?parsePackage(t):e.exports.readConfig(t);if(!process.env.BROWSERSLIST_DISABLE_CACHE){h[t]=n}return n}function latestReleaseTime(e){var t=0;for(var r in e){var n=e[r].releaseDate||{};for(var i in n){if(t=6){var n=r+" "+(r>1?"months":"month");console.warn("Browserslist: browsers data (caniuse-lite) is "+n+" old. Please run:\n"+" npx update-browserslist-db@latest\n"+" Why you should do it regularly: "+"https://github.com/browserslist/update-db#readme")}},currentNode:function currentNode(){return"node "+process.versions.node},env:process.env}},49694:e=>{var t=/^\s+and\s+(.*)/i;var r=/^(?:,\s*|\s+or\s+)(.*)/i;function flatten(e){if(!Array.isArray(e))return[e];return e.reduce((function(e,t){return e.concat(flatten(t))}),[])}function find(e,t){for(var r=e.length,n=1;n<=r;n++){var i=e.substr(-n,n);if(t(i,n,r)){return e.slice(0,-n)}}return""}function matchQuery(e,t){var r={query:t};if(t.indexOf("not ")===0){r.not=true;t=t.slice(4)}for(var n in e){var i=e[n];var a=t.match(i.regexp);if(a){r.type=n;for(var o=0;o{e.exports={A:{A:{K:0,D:0,E:.0495078,F:.0330052,A:0,B:.396062,rC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","rC","K","D","E","F","A","B","","",""],E:"IE",F:{rC:962323200,K:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968e3}},B:{A:{0:.003545,C:0,L:0,M:0,G:0,N:.003545,O:0,P:.088625,Q:0,H:0,R:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:.010635,c:0,d:0,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:.003545,r:.003545,s:.046085,t:.003545,u:.003545,v:.00709,w:.00709,x:.010635,y:.003545,z:.003545,AB:.003545,BB:.003545,CB:.03545,DB:.010635,EB:.010635,FB:.00709,GB:.00709,HB:.00709,IB:.017725,JB:.017725,KB:.010635,LB:.01418,MB:.017725,NB:.038995,OB:.02127,PB:.031905,QB:.088625,RB:.63101,SB:3.64071,I:.04963},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","L","M","G","N","O","P","Q","H","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","I","","",""],E:"Edge",F:{0:1694649600,C:1438128e3,L:1447286400,M:1470096e3,G:1491868800,N:1508198400,O:1525046400,P:1542067200,Q:1579046400,H:1581033600,R:1586736e3,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:161136e4,Y:1614816e3,Z:1618358400,a:1622073600,b:1626912e3,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,o:1661990400,p:1664755200,q:1666915200,r:1670198400,s:1673481600,t:1675900800,u:1678665600,v:1680825600,w:1683158400,x:1685664e3,y:1689897600,z:1692576e3,AB:1697155200,BB:1698969600,CB:1701993600,DB:1706227200,EB:1708732800,FB:1711152e3,GB:1713398400,HB:1715990400,IB:1718841600,JB:1721865600,KB:1724371200,LB:1726704e3,MB:1729123200,NB:1731542400,OB:1737417600,PB:1740614400,QB:1741219200,RB:1743984e3,SB:1746316800,I:1748476800},D:{C:"ms",L:"ms",M:"ms",G:"ms",N:"ms",O:"ms",P:"ms"}},C:{A:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,sC:0,OC:0,J:0,TB:0,K:0,D:0,E:0,F:0,A:0,B:.067355,C:0,L:0,M:0,G:0,N:0,O:0,P:0,UB:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:.031905,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,PC:.00709,zB:0,QC:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:.003545,BC:0,CC:0,DC:0,EC:0,FC:0,GC:.010635,Q:0,H:0,R:0,RC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:.003545,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0,s:.003545,t:0,u:0,v:0,w:0,x:0,y:.19852,z:0,AB:.095715,BB:0,CB:.003545,DB:0,EB:0,FB:0,GB:0,HB:.01418,IB:0,JB:.003545,KB:.08508,LB:0,MB:0,NB:0,OB:.00709,PB:.010635,QB:.00709,RB:.01418,SB:.031905,I:.13471,SC:1.15213,HC:.095715,TC:0,UC:0,tC:0,uC:0,vC:0,wC:0},B:"moz",C:["sC","OC","vC","wC","J","TB","K","D","E","F","A","B","C","L","M","G","N","O","P","UB","1","2","3","4","5","6","7","8","9","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","PC","zB","QC","0B","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","Q","H","R","RC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","I","SC","HC","TC","UC","tC","uC"],E:"Firefox",F:{0:1693267200,1:1361232e3,2:1364860800,3:1368489600,4:1372118400,5:1375747200,6:1379376e3,7:1386633600,8:1391472e3,9:1395100800,sC:1161648e3,OC:1213660800,vC:124632e4,wC:1264032e3,J:1300752e3,TB:1308614400,K:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968e3,C:1331596800,L:1335225600,M:1338854400,G:1342483200,N:1346112e3,O:1349740800,P:1353628800,UB:1357603200,VB:1398729600,WB:1402358400,XB:1405987200,YB:1409616e3,ZB:1413244800,aB:1417392e3,bB:1421107200,cB:1424736e3,dB:1428278400,eB:1431475200,fB:1435881600,gB:1439251200,hB:144288e4,iB:1446508800,jB:1450137600,kB:1453852800,lB:1457395200,mB:1461628800,nB:1465257600,oB:1470096e3,pB:1474329600,qB:1479168e3,rB:1485216e3,sB:1488844800,tB:149256e4,uB:1497312e3,vB:1502150400,wB:1506556800,xB:1510617600,yB:1516665600,PC:1520985600,zB:1525824e3,QC:1529971200,"0B":1536105600,"1B":1540252800,"2B":1544486400,"3B":154872e4,"4B":1552953600,"5B":1558396800,"6B":1562630400,"7B":1567468800,"8B":1571788800,"9B":1575331200,AC:1578355200,BC:1581379200,CC:1583798400,DC:1586304e3,EC:1588636800,FC:1591056e3,GC:1593475200,Q:1595894400,H:1598313600,R:1600732800,RC:1603152e3,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392e3,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536e3,k:1653955200,l:1656374400,m:1658793600,n:1661212800,o:1663632e3,p:1666051200,q:1668470400,r:1670889600,s:1673913600,t:1676332800,u:1678752e3,v:1681171200,w:1683590400,x:1686009600,y:1688428800,z:1690848e3,AB:1695686400,BB:1698105600,CB:1700524800,DB:1702944e3,EB:1705968e3,FB:1708387200,GB:1710806400,HB:1713225600,IB:1715644800,JB:1718064e3,KB:1720483200,LB:1722902400,MB:1725321600,NB:1727740800,OB:173016e4,PB:1732579200,QB:1736208e3,RB:1738627200,SB:1741046400,I:1743465600,SC:1745884800,HC:1748304e3,TC:1750723200,UC:null,tC:null,uC:null}},D:{A:{0:.07799,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,J:0,TB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:0,G:0,N:0,O:0,P:0,UB:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:.003545,fB:.010635,gB:.010635,hB:.010635,iB:.010635,jB:.010635,kB:.010635,lB:.010635,mB:.010635,nB:.01418,oB:.02127,pB:.02127,qB:.01418,rB:.010635,sB:.01418,tB:.01418,uB:.010635,vB:.010635,wB:.02127,xB:.010635,yB:.01418,PC:.010635,zB:.010635,QC:.003545,"0B":0,"1B":0,"2B":0,"3B":0,"4B":.02127,"5B":0,"6B":.003545,"7B":.01418,"8B":.00709,"9B":0,AC:0,BC:.00709,CC:.00709,DC:.00709,EC:.003545,FC:.010635,GC:.01418,Q:.08508,H:.010635,R:.02127,S:.053175,T:.003545,U:.00709,V:.017725,W:.04254,X:.010635,Y:.00709,Z:.00709,a:.03545,b:.010635,c:.01418,d:.01418,e:.003545,f:.010635,g:.01418,h:.031905,i:.02127,j:.01418,k:.017725,l:.01418,m:.07799,n:.060265,o:.010635,p:.017725,q:.02127,r:.038995,s:.840165,t:.02127,u:.03545,v:.04963,w:.095715,x:.04963,y:.02127,z:.07799,AB:.06381,BB:.04254,CB:.074445,DB:.10635,EB:.07799,FB:.159525,GB:.095715,HB:.116985,IB:.1418,JB:.046085,KB:.102805,LB:.07799,MB:.124075,NB:.825985,OB:.400585,PB:.421855,QB:.52466,RB:3.94204,SB:10.5287,I:.379315,SC:.01418,HC:0,TC:0,UC:0},B:"webkit",C:["","","","","","","","J","TB","K","D","E","F","A","B","C","L","M","G","N","O","P","UB","1","2","3","4","5","6","7","8","9","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","PC","zB","QC","0B","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","Q","H","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","I","SC","HC","TC","UC"],E:"Chrome",F:{0:1694476800,1:133704e4,2:1340668800,3:1343692800,4:1348531200,5:1352246400,6:1357862400,7:1361404800,8:1364428800,9:1369094400,J:1264377600,TB:1274745600,K:1283385600,D:1287619200,E:1291248e3,F:1296777600,A:1299542400,B:1303862400,C:1307404800,L:1312243200,M:1316131200,G:1316131200,N:1319500800,O:1323734400,P:1328659200,UB:1332892800,VB:1374105600,WB:1376956800,XB:1384214400,YB:1389657600,ZB:1392940800,aB:1397001600,bB:1400544e3,cB:1405468800,dB:1409011200,eB:141264e4,fB:1416268800,gB:1421798400,hB:1425513600,iB:1429401600,jB:143208e4,kB:1437523200,lB:1441152e3,mB:1444780800,nB:1449014400,oB:1453248e3,pB:1456963200,qB:1460592e3,rB:1464134400,sB:1469059200,tB:1472601600,uB:1476230400,vB:1480550400,wB:1485302400,xB:1489017600,yB:149256e4,PC:1496707200,zB:1500940800,QC:1504569600,"0B":1508198400,"1B":1512518400,"2B":1516752e3,"3B":1520294400,"4B":1523923200,"5B":1527552e3,"6B":1532390400,"7B":1536019200,"8B":1539648e3,"9B":1543968e3,AC:154872e4,BC:1552348800,CC:1555977600,DC:1559606400,EC:1564444800,FC:1568073600,GC:1571702400,Q:1575936e3,H:1580860800,R:1586304e3,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272e3,a:1621987200,b:1626739200,c:1630368e3,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512e3,k:1650931200,l:1653350400,m:1655769600,n:1659398400,o:1661817600,p:1664236800,q:1666656e3,r:166968e4,s:1673308800,t:1675728e3,u:1678147200,v:1680566400,w:1682985600,x:1685404800,y:1689724800,z:1692057600,AB:1696896e3,BB:1698710400,CB:1701993600,DB:1705968e3,EB:1708387200,FB:1710806400,GB:1713225600,HB:1715644800,IB:1718064e3,JB:1721174400,KB:1724112e3,LB:1726531200,MB:1728950400,NB:1731369600,OB:1736812800,PB:1738627200,QB:1741046400,RB:1743465600,SB:1745884800,I:1748304e3,SC:1750723200,HC:null,TC:null,UC:null}},E:{A:{J:0,TB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:.01418,G:0,xC:0,VC:0,yC:0,zC:0,"0C":0,"1C":0,WC:0,IC:.00709,JC:.00709,"2C":.02836,"3C":.03545,"4C":.017725,XC:.003545,YC:.010635,KC:.010635,"5C":.12762,LC:.024815,ZC:.017725,aC:.01418,bC:.031905,cC:.010635,dC:.02127,"6C":.18434,MC:.010635,eC:.11344,fC:.017725,gC:.017725,hC:.038995,iC:.067355,"7C":.209155,NC:.024815,jC:.060265,kC:.031905,lC:.23397,mC:.97133,nC:.33323,oC:0,"8C":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","xC","VC","J","TB","yC","K","zC","D","0C","E","F","1C","A","WC","B","IC","C","JC","L","2C","M","3C","G","4C","XC","YC","KC","5C","LC","ZC","aC","bC","cC","dC","6C","MC","eC","fC","gC","hC","iC","7C","NC","jC","kC","lC","mC","nC","oC","8C",""],E:"Safari",F:{xC:1205798400,VC:1226534400,J:1244419200,TB:1275868800,yC:131112e4,K:1343174400,zC:13824e5,D:13824e5,"0C":1410998400,E:1413417600,F:1443657600,"1C":1458518400,A:1474329600,WC:1490572800,B:1505779200,IC:1522281600,C:1537142400,JC:1553472e3,L:1568851200,"2C":1585008e3,M:1600214400,"3C":1619395200,G:1632096e3,"4C":1635292800,XC:1639353600,YC:1647216e3,KC:1652745600,"5C":1658275200,LC:1662940800,ZC:1666569600,aC:1670889600,bC:1674432e3,cC:1679875200,dC:1684368e3,"6C":1690156800,MC:1695686400,eC:1698192e3,fC:1702252800,gC:1705881600,hC:1709596800,iC:1715558400,"7C":1722211200,NC:1726444800,jC:1730073600,kC:1733875200,lC:1737936e3,mC:1743379200,nC:1747008e3,oC:null,"8C":null}},F:{A:{0:.02127,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,F:0,B:0,C:0,G:0,N:0,O:0,P:0,UB:0,VB:0,WB:0,XB:0,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:.003545,hB:0,iB:0,jB:0,kB:0,lB:0,mB:.00709,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:0,BC:0,CC:0,DC:0,EC:0,FC:0,GC:0,Q:0,H:0,R:0,RC:0,S:0,T:0,U:0,V:0,W:0,X:.003545,Y:.038995,Z:0,a:0,b:0,c:0,d:0,e:.031905,f:0,g:0,h:0,i:0,j:0,k:0,l:.010635,m:0,n:0,o:0,p:0,q:0,r:0,s:0,t:0,u:0,v:0,w:0,x:0,y:0,z:0,"9C":0,AD:0,BD:0,CD:0,IC:0,pC:0,DD:0,JC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","F","9C","AD","BD","CD","B","IC","pC","DD","C","JC","G","N","O","P","UB","1","2","3","4","5","6","7","8","9","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","Q","H","R","RC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","","",""],E:"Opera",F:{0:1739404800,1:1393891200,2:1399334400,3:1401753600,4:1405987200,5:1409616e3,6:1413331200,7:1417132800,8:1422316800,9:1425945600,F:1150761600,"9C":1223424e3,AD:1251763200,BD:1267488e3,CD:1277942400,B:1292457600,IC:1302566400,pC:1309219200,DD:1323129600,C:1323129600,JC:1352073600,G:1372723200,N:1377561600,O:1381104e3,P:1386288e3,UB:1390867200,VB:1430179200,WB:1433808e3,XB:1438646400,YB:1442448e3,ZB:1445904e3,aB:1449100800,bB:1454371200,cB:1457308800,dB:146232e4,eB:1465344e3,fB:1470096e3,gB:1474329600,hB:1477267200,iB:1481587200,jB:1486425600,kB:1490054400,lB:1494374400,mB:1498003200,nB:1502236800,oB:1506470400,pB:1510099200,qB:1515024e3,rB:1517961600,sB:1521676800,tB:1525910400,uB:1530144e3,vB:1534982400,wB:1537833600,xB:1543363200,yB:1548201600,zB:1554768e3,"0B":1561593600,"1B":1566259200,"2B":1570406400,"3B":1573689600,"4B":1578441600,"5B":1583971200,"6B":1587513600,"7B":1592956800,"8B":1595894400,"9B":1600128e3,AC:1603238400,BC:161352e4,CC:1612224e3,DC:1616544e3,EC:1619568e3,FC:1623715200,GC:1627948800,Q:1631577600,H:1633392e3,R:1635984e3,RC:1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152e3,Z:1660780800,a:1663113600,b:1668816e3,c:1668643200,d:1671062400,e:1675209600,f:1677024e3,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:169992e4,o:169992e4,p:1702944e3,q:1707264e3,r:1710115200,s:1711497600,t:1716336e3,u:1719273600,v:1721088e3,w:1724284800,x:1727222400,y:1732665600,z:1736294400},D:{F:"o",B:"o",C:"o","9C":"o",AD:"o",BD:"o",CD:"o",IC:"o",pC:"o",DD:"o",JC:"o"}},G:{A:{E:0,VC:0,ED:0,qC:.00284924,FD:0,GD:.00569847,HD:.00569847,ID:0,JD:.00284924,KD:.0170954,LD:.00142462,MD:.0270678,ND:.239336,OD:.00997233,PD:.00284924,QD:.102573,RD:.00142462,SD:.00427386,TD:.00427386,UD:.0170954,VD:.108271,WD:.0427386,XD:.0270678,XC:.0270678,YC:.0313416,KC:.0370401,YD:.444481,LC:.0612586,ZC:.131065,aC:.0669571,bC:.116819,cC:.0270678,dC:.0470124,ZD:.557026,MC:.0341908,eC:.0569847,fC:.0427386,gC:.0641078,hC:.131065,iC:.245034,aD:.678118,NC:.173803,jC:.423112,kC:.212268,lC:1.56138,mC:6.62448,nC:1.82351,oC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","VC","ED","qC","FD","GD","HD","E","ID","JD","KD","LD","MD","ND","OD","PD","QD","RD","SD","TD","UD","VD","WD","XD","XC","YC","KC","YD","LC","ZC","aC","bC","cC","dC","ZD","MC","eC","fC","gC","hC","iC","aD","NC","jC","kC","lC","mC","nC","oC","",""],E:"Safari on iOS",F:{VC:1270252800,ED:1283904e3,qC:1299628800,FD:1331078400,GD:1359331200,HD:1394409600,E:1410912e3,ID:1413763200,JD:1442361600,KD:1458518400,LD:1473724800,MD:1490572800,ND:1505779200,OD:1522281600,PD:1537142400,QD:1553472e3,RD:1568851200,SD:1572220800,TD:1580169600,UD:1585008e3,VD:1600214400,WD:1619395200,XD:1632096e3,XC:1639353600,YC:1647216e3,KC:1652659200,YD:1658275200,LC:1662940800,ZC:1666569600,aC:1670889600,bC:1674432e3,cC:1679875200,dC:1684368e3,ZD:1690156800,MC:1694995200,eC:1698192e3,fC:1702252800,gC:1705881600,hC:1709596800,iC:1715558400,aD:1722211200,NC:1726444800,jC:1730073600,kC:1733875200,lC:1737936e3,mC:1743379200,nC:1747008e3,oC:null}},H:{A:{bD:.05},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bD","","",""],E:"Opera Mini",F:{bD:1426464e3}},I:{A:{OC:0,J:0,I:.799139,cD:0,dD:0,eD:0,fD:0,qC:160084e-9,gD:0,hD:640336e-9},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cD","dD","eD","OC","J","fD","qC","gD","hD","I","","",""],E:"Android Browser",F:{cD:1256515200,dD:1274313600,eD:1291593600,OC:1298332800,J:1318896e3,fD:1341792e3,qC:1374624e3,gD:1386547200,hD:1401667200,I:1748304e3}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,H:.89243,IC:0,pC:0,JC:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","IC","pC","C","JC","H","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,IC:1314835200,pC:1318291200,C:1330300800,JC:1349740800,H:1709769600},D:{H:"webkit"}},L:{A:{I:46.4714},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","","",""],E:"Chrome for Android",F:{I:1748304e3}},M:{A:{HC:.316295},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","HC","","",""],E:"Firefox for Android",F:{HC:1748304e3}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{KC:.80042},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","KC","","",""],E:"UC Browser for Android",F:{KC:1710115200},D:{KC:"webkit"}},P:{A:{1:0,2:.0219536,3:.0219536,4:.0329303,5:.0329303,6:.0439071,7:.0658607,8:.406141,9:1.5148,J:0,iD:0,jD:0,kD:.0109768,lD:0,mD:0,WC:0,nD:0,oD:0,pD:0,qD:0,rD:0,LC:0,MC:.0109768,NC:0,sD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","J","iD","jD","kD","lD","mD","WC","nD","oD","pD","qD","rD","LC","MC","NC","sD","1","2","3","4","5","6","7","8","9","","",""],E:"Samsung Internet",F:{1:1677369600,2:1684454400,3:1689292800,4:1697587200,5:1711497600,6:1715126400,7:1717718400,8:1725667200,9:1746057600,J:1461024e3,iD:1481846400,jD:1509408e3,kD:1528329600,lD:1546128e3,mD:1554163200,WC:1567900800,nD:1582588800,oD:1593475200,pD:1605657600,qD:1618531200,rD:1629072e3,LC:1640736e3,MC:1651708800,NC:1659657600,sD:1667260800}},Q:{A:{tD:.20656},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","tD","","",""],E:"QQ Browser",F:{tD:1710288e3}},R:{A:{uD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","uD","","",""],E:"Baidu Browser",F:{uD:1710201600}},S:{A:{vD:.01291,wD:0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","vD","wD","","",""],E:"KaiOS Browser",F:{vD:1527811200,wD:1631664e3}}}},63473:e=>{e.exports={0:"117",1:"20",2:"21",3:"22",4:"23",5:"24",6:"25",7:"26",8:"27",9:"28",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"80",I:"137",J:"4",K:"6",L:"13",M:"14",N:"16",O:"17",P:"18",Q:"79",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"105",p:"106",q:"107",r:"108",s:"109",t:"110",u:"111",v:"112",w:"113",x:"114",y:"115",z:"116",AB:"118",BB:"119",CB:"120",DB:"121",EB:"122",FB:"123",GB:"124",HB:"125",IB:"126",JB:"127",KB:"128",LB:"129",MB:"130",NB:"131",OB:"132",PB:"133",QB:"134",RB:"135",SB:"136",TB:"5",UB:"19",VB:"29",WB:"30",XB:"31",YB:"32",ZB:"33",aB:"34",bB:"35",cB:"36",dB:"37",eB:"38",fB:"39",gB:"40",hB:"41",iB:"42",jB:"43",kB:"44",lB:"45",mB:"46",nB:"47",oB:"48",pB:"49",qB:"50",rB:"51",sB:"52",tB:"53",uB:"54",vB:"55",wB:"56",xB:"57",yB:"58",zB:"60","0B":"62","1B":"63","2B":"64","3B":"65","4B":"66","5B":"67","6B":"68","7B":"69","8B":"70","9B":"71",AC:"72",BC:"73",CC:"74",DC:"75",EC:"76",FC:"77",GC:"78",HC:"139",IC:"11.1",JC:"12.1",KC:"15.5",LC:"16.0",MC:"17.0",NC:"18.0",OC:"3",PC:"59",QC:"61",RC:"82",SC:"138",TC:"140",UC:"141",VC:"3.2",WC:"10.1",XC:"15.2-15.3",YC:"15.4",ZC:"16.1",aC:"16.2",bC:"16.3",cC:"16.4",dC:"16.5",eC:"17.1",fC:"17.2",gC:"17.3",hC:"17.4",iC:"17.5",jC:"18.1",kC:"18.2",lC:"18.3",mC:"18.4",nC:"18.5",oC:"26.0",pC:"11.5",qC:"4.2-4.3",rC:"5.5",sC:"2",tC:"142",uC:"143",vC:"3.5",wC:"3.6",xC:"3.1",yC:"5.1",zC:"6.1","0C":"7.1","1C":"9.1","2C":"13.1","3C":"14.1","4C":"15.1","5C":"15.6","6C":"16.6","7C":"17.6","8C":"TP","9C":"9.5-9.6",AD:"10.0-10.1",BD:"10.5",CD:"10.6",DD:"11.6",ED:"4.0-4.1",FD:"5.0-5.1",GD:"6.0-6.1",HD:"7.0-7.1",ID:"8.1-8.4",JD:"9.0-9.2",KD:"9.3",LD:"10.0-10.2",MD:"10.3",ND:"11.0-11.2",OD:"11.3-11.4",PD:"12.0-12.1",QD:"12.2-12.5",RD:"13.0-13.1",SD:"13.2",TD:"13.3",UD:"13.4-13.7",VD:"14.0-14.4",WD:"14.5-14.8",XD:"15.0-15.1",YD:"15.6-15.8",ZD:"16.6-16.7",aD:"17.6-17.7",bD:"all",cD:"2.1",dD:"2.2",eD:"2.3",fD:"4.1",gD:"4.4",hD:"4.4.3-4.4.4",iD:"5.0-5.4",jD:"6.2-6.4",kD:"7.2-7.4",lD:"8.2",mD:"9.2",nD:"11.1-11.2",oD:"12.0",pD:"13.0",qD:"14.0",rD:"15.0",sD:"19.0",tD:"14.9",uD:"13.52",vD:"2.5",wD:"3.0-3.1"}},61507:e=>{e.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}},88984:e=>{e.exports={1:"ls",2:"rec",3:"pr",4:"cr",5:"wd",6:"other",7:"unoff"}},47910:e=>{e.exports={y:1<<0,n:1<<1,a:1<<2,p:1<<3,u:1<<4,x:1<<5,d:1<<6}},25588:(e,t,r)=>{"use strict";const n=r(52891).browsers;const i=r(8681).browserVersions;const a=r(48540);function unpackBrowserVersions(e){return Object.keys(e).reduce(((t,r)=>{t[i[r]]=e[r];return t}),{})}e.exports.X=Object.keys(a).reduce(((e,t)=>{let r=a[t];e[n[t]]=Object.keys(r).reduce(((e,t)=>{if(t==="A"){e.usage_global=unpackBrowserVersions(r[t])}else if(t==="C"){e.versions=r[t].reduce(((e,t)=>{if(t===""){e.push(null)}else{e.push(i[t])}return e}),[])}else if(t==="D"){e.prefix_exceptions=unpackBrowserVersions(r[t])}else if(t==="E"){e.browser=r[t]}else if(t==="F"){e.release_date=Object.keys(r[t]).reduce(((e,n)=>{e[i[n]]=r[t][n];return e}),{})}else{e.prefix=r[t]}return e}),{});return e}),{})},8681:(e,t,r)=>{e.exports.browserVersions=r(63473)},52891:(e,t,r)=>{e.exports.browsers=r(61507)},13702:(e,t,r)=>{"use strict";const n=r(88984);const i=r(47910);const a=r(52891).browsers;const o=r(8681).browserVersions;const s=Math.log(2);function unpackSupport(e){let t=Object.keys(i).reduce(((t,r)=>{if(e&i[r])t.push(r);return t}),[]);let r=e>>7;let n=[];while(r){let e=Math.floor(Math.log(r)/s)+1;n.unshift(`#${e}`);r-=Math.pow(2,e-1)}return t.concat(n).join(" ")}function unpackFeature(e){let t={status:n[e.B],title:e.C,shown:e.D};t.stats=Object.keys(e.A).reduce(((t,r)=>{let n=e.A[r];t[a[r]]=Object.keys(n).reduce(((e,t)=>{let r=n[t].split(" ");let i=unpackSupport(t);r.forEach((t=>e[o[t]]=i));return e}),{});return t}),{});return t}e.exports=unpackFeature;e.exports["default"]=unpackFeature},84358:(e,t,r)=>{"use strict";const n=r(52891).browsers;function unpackRegion(e){return Object.keys(e).reduce(((t,r)=>{let i=e[r];t[n[r]]=Object.keys(i).reduce(((e,t)=>{let r=i[t];if(t==="_"){r.split(" ").forEach((t=>e[t]=null))}else{e[t]=r}return e}),{});return t}),{})}e.exports=unpackRegion;e.exports["default"]=unpackRegion},25288:(e,t)=>{"use strict";Object.defineProperty(t,"commentRegex",{get:function getCommentRegex(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}});Object.defineProperty(t,"mapFileCommentRegex",{get:function getMapFileCommentRegex(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}});var r;if(typeof Buffer!=="undefined"){if(typeof Buffer.from==="function"){r=decodeBase64WithBufferFrom}else{r=decodeBase64WithNewBuffer}}else{r=decodeBase64WithAtob}function decodeBase64WithBufferFrom(e){return Buffer.from(e,"base64").toString()}function decodeBase64WithNewBuffer(e){if(typeof value==="number"){throw new TypeError("The value to decode must not be of type number.")}return new Buffer(e,"base64").toString()}function decodeBase64WithAtob(e){return decodeURIComponent(escape(atob(e)))}function stripComment(e){return e.split(",").pop()}function readFromFileMap(e,r){var n=t.mapFileCommentRegex.exec(e);var i=n[1]||n[2];try{var e=r(i);if(e!=null&&typeof e.catch==="function"){return e.catch(throwError)}else{return e}}catch(e){throwError(e)}function throwError(e){throw new Error("An error occurred while trying to read the map file at "+i+"\n"+e.stack)}}function Converter(e,t){t=t||{};if(t.hasComment){e=stripComment(e)}if(t.encoding==="base64"){e=r(e)}else if(t.encoding==="uri"){e=decodeURIComponent(e)}if(t.isJSON||t.encoding){e=JSON.parse(e)}this.sourcemap=e}Converter.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};if(typeof Buffer!=="undefined"){if(typeof Buffer.from==="function"){Converter.prototype.toBase64=encodeBase64WithBufferFrom}else{Converter.prototype.toBase64=encodeBase64WithNewBuffer}}else{Converter.prototype.toBase64=encodeBase64WithBtoa}function encodeBase64WithBufferFrom(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function encodeBase64WithNewBuffer(){var e=this.toJSON();if(typeof e==="number"){throw new TypeError("The json to encode must not be of type number.")}return new Buffer(e,"utf8").toString("base64")}function encodeBase64WithBtoa(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}Converter.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};Converter.prototype.toComment=function(e){var t,r,n;if(e!=null&&e.encoding==="uri"){t="";r=this.toURI()}else{t=";base64";r=this.toBase64()}n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r;return e!=null&&e.multiline?"/*# "+n+" */":"//# "+n};Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())};Converter.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};Converter.prototype.setProperty=function(e,t){this.sourcemap[e]=t;return this};Converter.prototype.getProperty=function(e){return this.sourcemap[e]};t.fromObject=function(e){return new Converter(e)};t.fromJSON=function(e){return new Converter(e,{isJSON:true})};t.fromURI=function(e){return new Converter(e,{encoding:"uri"})};t.fromBase64=function(e){return new Converter(e,{encoding:"base64"})};t.fromComment=function(e){var r,n;e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,"");r=t.commentRegex.exec(e);n=r&&r[4]||"uri";return new Converter(e,{encoding:n,hasComment:true})};function makeConverter(e){return new Converter(e,{isJSON:true})}t.fromMapFileComment=function(e,t){if(typeof t==="string"){throw new Error("String directory paths are no longer supported with `fromMapFileComment`\n"+"Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading")}var r=readFromFileMap(e,t);if(r!=null&&typeof r.then==="function"){return r.then(makeConverter)}else{return makeConverter(r)}};t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null};t.fromMapFileSource=function(e,r){if(typeof r==="string"){throw new Error("String directory paths are no longer supported with `fromMapFileSource`\n"+"Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading")}var n=e.match(t.mapFileCommentRegex);return n?t.fromMapFileComment(n.pop(),r):null};t.removeComments=function(e){return e.replace(t.commentRegex,"")};t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")};t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},66867:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s){return}var c=parseFloat(s[1]);var l=(s[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=i){return Math.round(e/i)+"d"}if(a>=n){return Math.round(e/n)+"h"}if(a>=r){return Math.round(e/r)+"m"}if(a>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=i){return plural(e,a,i,"day")}if(a>=n){return plural(e,a,n,"hour")}if(a>=r){return plural(e,a,r,"minute")}if(a>=t){return plural(e,a,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},6110:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(40897)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},40897:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(66867);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r{if(t==="%%"){return"%"}a++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[a];t=i.call(r,n);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(6110)}else{e.exports=r(95108)}},95108:(e,t,r)=>{const n=r(52018);const i=r(39023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(21450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const a=` ${i};1m${r} `;t[0]=a+t[0].split("\n").join("\n"+a);t.push(i+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;ne.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},14150:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},56896:(e,t,r)=>{"use strict";const n=r(16928);const i=r(90430);const getExtensions=e=>e.length>1?`{${e.join(",")}}`:e[0];const getPath=(e,t)=>{const r=e[0]==="!"?e.slice(1):e;return n.isAbsolute(r)?r:n.join(t,r)};const addExtensions=(e,t)=>{if(n.extname(e)){return`**/${e}`}return`**/${e}.${getExtensions(t)}`};const getGlob=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map((r=>n.posix.join(e,addExtensions(r,t.extensions))))}if(t.files){return t.files.map((t=>n.posix.join(e,`**/${t}`)))}if(t.extensions){return[n.posix.join(e,`**/*.${getExtensions(t.extensions)}`)]}return[n.posix.join(e,"**")]};e.exports=async(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=await Promise.all([].concat(e).map((async e=>{const r=await i.isDirectory(getPath(e,t.cwd));return r?getGlob(e,t):e})));return[].concat.apply([],r)};e.exports.sync=(e,t)=>{t={cwd:process.cwd(),...t};if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=[].concat(e).map((e=>i.isDirectorySync(getPath(e,t.cwd))?getGlob(e,t):e));return[].concat.apply([],r)}},69666:e=>{e.exports={"0.20":"39",.21:"41",.22:"41",.23:"41",.24:"41",.25:"42",.26:"42",.27:"43",.28:"43",.29:"43","0.30":"44",.31:"45",.32:"45",.33:"45",.34:"45",.35:"45",.36:"47",.37:"49","1.0":"49",1.1:"50",1.2:"51",1.3:"52",1.4:"53",1.5:"54",1.6:"56",1.7:"58",1.8:"59","2.0":"61",2.1:"61","3.0":"66",3.1:"66","4.0":"69",4.1:"69",4.2:"69","5.0":"73","6.0":"76",6.1:"76","7.0":"78",7.1:"78",7.2:"78",7.3:"78","8.0":"80",8.1:"80",8.2:"80",8.3:"80",8.4:"80",8.5:"80","9.0":"83",9.1:"83",9.2:"83",9.3:"83",9.4:"83","10.0":"85",10.1:"85",10.2:"85",10.3:"85",10.4:"85","11.0":"87",11.1:"87",11.2:"87",11.3:"87",11.4:"87",11.5:"87","12.0":"89",12.1:"89",12.2:"89","13.0":"91",13.1:"91",13.2:"91",13.3:"91",13.4:"91",13.5:"91",13.6:"91","14.0":"93",14.1:"93",14.2:"93","15.0":"94",15.1:"94",15.2:"94",15.3:"94",15.4:"94",15.5:"94","16.0":"96",16.1:"96",16.2:"96","17.0":"98",17.1:"98",17.2:"98",17.3:"98",17.4:"98","18.0":"100",18.1:"100",18.2:"100",18.3:"100","19.0":"102",19.1:"102","20.0":"104",20.1:"104",20.2:"104",20.3:"104","21.0":"106",21.1:"106",21.2:"106",21.3:"106",21.4:"106","22.0":"108",22.1:"108",22.2:"108",22.3:"108","23.0":"110",23.1:"110",23.2:"110",23.3:"110","24.0":"112",24.1:"112",24.2:"112",24.3:"112",24.4:"112",24.5:"112",24.6:"112",24.7:"112",24.8:"112","25.0":"114",25.1:"114",25.2:"114",25.3:"114",25.4:"114",25.5:"114",25.6:"114",25.7:"114",25.8:"114",25.9:"114","26.0":"116",26.1:"116",26.2:"116",26.3:"116",26.4:"116",26.5:"116",26.6:"116","27.0":"118",27.1:"118",27.2:"118",27.3:"118","28.0":"120",28.1:"120",28.2:"120",28.3:"120","29.0":"122",29.1:"122",29.2:"122",29.3:"122",29.4:"122","30.0":"124",30.1:"124",30.2:"124",30.3:"124",30.4:"124",30.5:"124","31.0":"126",31.1:"126",31.2:"126",31.3:"126",31.4:"126",31.5:"126",31.6:"126",31.7:"126","32.0":"128",32.1:"128",32.2:"128",32.3:"128","33.0":"130",33.1:"130",33.2:"130",33.3:"130",33.4:"130","34.0":"132",34.1:"132",34.2:"132",34.3:"132",34.4:"132",34.5:"132","35.0":"134",35.1:"134",35.2:"134",35.3:"134",35.4:"134",35.5:"134",35.6:"134","36.0":"136",36.1:"136",36.2:"136",36.3:"136",36.4:"136",36.5:"136",36.6:"136","37.0":"138",37.1:"138","38.0":"139"}},25648:(e,t,r)=>{"use strict";const n=r(56599);const i=r(90645);const a=r(61969);const o=r(95894);const s=r(879);const c=r(36002);async function FastGlob(e,t){assertPatternsInput(e);const r=getWorks(e,i.default,t);const n=await Promise.all(r);return c.array.flatten(n)}(function(e){e.glob=e;e.globSync=sync;e.globStream=stream;e.async=e;function sync(e,t){assertPatternsInput(e);const r=getWorks(e,o.default,t);return c.array.flatten(r)}e.sync=sync;function stream(e,t){assertPatternsInput(e);const r=getWorks(e,a.default,t);return c.stream.merge(r)}e.stream=stream;function generateTasks(e,t){assertPatternsInput(e);const r=[].concat(e);const i=new s.default(t);return n.generate(r,i)}e.generateTasks=generateTasks;function isDynamicPattern(e,t){assertPatternsInput(e);const r=new s.default(t);return c.pattern.isDynamicPattern(e,r)}e.isDynamicPattern=isDynamicPattern;function escapePath(e){assertPatternsInput(e);return c.path.escape(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return c.path.convertPathToPattern(e)}e.convertPathToPattern=convertPathToPattern;let t;(function(e){function escapePath(e){assertPatternsInput(e);return c.path.escapePosixPath(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return c.path.convertPosixPathToPattern(e)}e.convertPathToPattern=convertPathToPattern})(t=e.posix||(e.posix={}));let r;(function(e){function escapePath(e){assertPatternsInput(e);return c.path.escapeWindowsPath(e)}e.escapePath=escapePath;function convertPathToPattern(e){assertPatternsInput(e);return c.path.convertWindowsPathToPattern(e)}e.convertPathToPattern=convertPathToPattern})(r=e.win32||(e.win32={}))})(FastGlob||(FastGlob={}));function getWorks(e,t,r){const i=[].concat(e);const a=new s.default(r);const o=n.generate(i,a);const c=new t(a);return o.map(c.read,c)}function assertPatternsInput(e){const t=[].concat(e);const r=t.every((e=>c.string.isString(e)&&!c.string.isEmpty(e)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}e.exports=FastGlob},56599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;const n=r(36002);function generate(e,t){const r=processPatterns(e,t);const i=processPatterns(t.ignore,t);const a=getPositivePatterns(r);const o=getNegativePatternsAsPositive(r,i);const s=a.filter((e=>n.pattern.isStaticPattern(e,t)));const c=a.filter((e=>n.pattern.isDynamicPattern(e,t)));const l=convertPatternsToTasks(s,o,false);const u=convertPatternsToTasks(c,o,true);return l.concat(u)}t.generate=generate;function processPatterns(e,t){let r=e;if(t.braceExpansion){r=n.pattern.expandPatternsWithBraceExpansion(r)}if(t.baseNameMatch){r=r.map((e=>e.includes("/")?e:`**/${e}`))}return r.map((e=>n.pattern.removeDuplicateSlashes(e)))}function convertPatternsToTasks(e,t,r){const i=[];const a=n.pattern.getPatternsOutsideCurrentDirectory(e);const o=n.pattern.getPatternsInsideCurrentDirectory(e);const s=groupPatternsByBaseDirectory(a);const c=groupPatternsByBaseDirectory(o);i.push(...convertPatternGroupsToTasks(s,t,r));if("."in c){i.push(convertPatternGroupToTask(".",o,t,r))}else{i.push(...convertPatternGroupsToTasks(c,t,r))}return i}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.pattern.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){const r=n.pattern.getNegativePatterns(e).concat(t);const i=r.map(n.pattern.convertToPositivePattern);return i}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){const t={};return e.reduce(((e,t)=>{const r=n.pattern.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e}),t)}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map((n=>convertPatternGroupToTask(n,e[n],t,r)))}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,i){return{dynamic:i,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(n.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},90645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(82907);const i=r(77792);class ProviderAsync extends i.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}async read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=await this.api(t,e,r);return n.map((e=>r.transform(e)))}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderAsync},73591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(36002);const i=r(5740);class DeepFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t}getFilter(e,t,r){const n=this._getMatcher(t);const i=this._getNegativePatternsRe(r);return t=>this._filter(e,t,n,i)}_getMatcher(e){return new i.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){const t=e.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,i){if(this._isSkippedByDeep(e,t.path)){return false}if(this._isSkippedSymbolicLink(t)){return false}const a=n.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(a,r)){return false}return this._isSkippedByNegativePatterns(a,i)}_isSkippedByDeep(e,t){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){const r=t.split("/").length;if(e===""){return r}const n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!n.pattern.matchAny(e,t)}}t["default"]=DeepFilter},44285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(36002);class EntryFilter{constructor(e,t){this._settings=e;this._micromatchOptions=t;this.index=new Map}getFilter(e,t){const[r,i]=n.pattern.partitionAbsoluteAndRelative(t);const a={positive:{all:n.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:n.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:true})),relative:n.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:true}))}};return e=>this._filter(e,a)}_filter(e,t){const r=n.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(r)){return false}if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)){return false}const i=this._isMatchToPatternsSet(r,t,e.dirent.isDirectory());if(this._settings.unique&&i){this._createIndexRecord(r)}return i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,undefined)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,t,r){const n=this._isMatchToPatterns(e,t.positive.all,r);if(!n){return false}const i=this._isMatchToPatterns(e,t.negative.relative,r);if(i){return false}const a=this._isMatchToAbsoluteNegative(e,t.negative.absolute,r);if(a){return false}return true}_isMatchToAbsoluteNegative(e,t,r){if(t.length===0){return false}const i=n.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,t,r)}_isMatchToPatterns(e,t,r){if(t.length===0){return false}const i=n.pattern.matchAny(e,t);if(!i&&r){return n.pattern.matchAny(e+"/",t)}return i}}t["default"]=EntryFilter},31587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(36002);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return n.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t["default"]=ErrorFilter},47827:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(36002);class Matcher{constructor(e,t,r){this._patterns=e;this._settings=t;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){for(const e of this._patterns){const t=this._getPatternSegments(e);const r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(e){const t=n.pattern.getPatternParts(e,this._micromatchOptions);return t.map((e=>{const t=n.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:n.pattern.makeRe(e,this._micromatchOptions)}}))}_splitSegmentsIntoSections(e){return n.array.splitWhen(e,(e=>e.dynamic&&n.pattern.hasGlobStar(e.pattern)))}}t["default"]=Matcher},5740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(47827);class PartialMatcher extends n.default{match(e){const t=e.split("/");const r=t.length;const n=this._storage.filter((e=>!e.complete||e.segments.length>r));for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length){return true}const i=t.every(((t,r)=>{const n=e.segments[r];if(n.dynamic&&n.patternRe.test(t)){return true}if(!n.dynamic&&n.pattern===t){return true}return false}));if(i){return true}}return false}}t["default"]=PartialMatcher},77792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(16928);const i=r(73591);const a=r(44285);const o=r(31587);const s=r(57094);class Provider{constructor(e){this._settings=e;this.errorFilter=new o.default(this._settings);this.entryFilter=new a.default(this._settings,this._getMicromatchOptions());this.deepFilter=new i.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new s.default(this._settings)}_getRootDirectory(e){return n.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){const t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}t["default"]=Provider},61969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2203);const i=r(87);const a=r(77792);class ProviderStream extends a.default{constructor(){super(...arguments);this._reader=new i.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const i=this.api(t,e,r);const a=new n.Readable({objectMode:true,read:()=>{}});i.once("error",(e=>a.emit("error",e))).on("data",(e=>a.emit("data",r.transform(e)))).once("end",(()=>a.emit("end")));a.once("close",(()=>i.destroy()));return a}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderStream},95894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(20264);const i=r(77792);class ProviderSync extends i.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(e){const t=this._getRootDirectory(e);const r=this._getReaderOptions(e);const n=this.api(t,e,r);return n.map(r.transform)}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t["default"]=ProviderSync},57094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(36002);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=n.path.makeAbsolute(this._settings.cwd,t);t=n.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t["default"]=EntryTransformer},82907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(79337);const i=r(91824);const a=r(87);class ReaderAsync extends i.default{constructor(){super(...arguments);this._walkAsync=n.walk;this._readerStream=new a.default(this._settings)}dynamic(e,t){return new Promise(((r,n)=>{this._walkAsync(e,t,((e,t)=>{if(e===null){r(t)}else{n(e)}}))}))}async static(e,t){const r=[];const n=this._readerStream.static(e,t);return new Promise(((e,t)=>{n.once("error",t);n.on("data",(e=>r.push(e)));n.once("end",(()=>e(r)))}))}}t["default"]=ReaderAsync},91824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(16928);const i=r(91470);const a=r(36002);class Reader{constructor(e){this._settings=e;this._fsStatSettings=new i.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return n.resolve(this._settings.cwd,e)}_makeEntry(e,t){const r={name:t,path:t,dirent:a.fs.createDirentFromStats(t,e)};if(this._settings.stats){r.stats=e}return r}_isFatalError(e){return!a.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}t["default"]=Reader},87:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2203);const i=r(91470);const a=r(79337);const o=r(91824);class ReaderStream extends o.default{constructor(){super(...arguments);this._walkStream=a.walkStream;this._stat=i.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){const r=e.map(this._getFullEntryPath,this);const i=new n.PassThrough({objectMode:true});i._write=(n,a,o)=>this._getEntry(r[n],e[n],t).then((e=>{if(e!==null&&t.entryFilter(e)){i.push(e)}if(n===r.length-1){i.end()}o()})).catch(o);for(let e=0;ethis._makeEntry(e,t))).catch((e=>{if(r.errorFilter(e)){return null}throw e}))}_getStat(e){return new Promise(((t,r)=>{this._stat(e,this._fsStatSettings,((e,n)=>e===null?t(n):r(e)))}))}}t["default"]=ReaderStream},20264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(91470);const i=r(79337);const a=r(91824);class ReaderSync extends a.default{constructor(){super(...arguments);this._walkSync=i.walkSync;this._statSync=n.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){const r=[];for(const n of e){const e=this._getFullEntryPath(n);const i=this._getEntry(e,n,t);if(i===null||!t.entryFilter(i)){continue}r.push(i)}return r}_getEntry(e,t,r){try{const r=this._getStat(e);return this._makeEntry(r,t)}catch(e){if(r.errorFilter(e)){return null}throw e}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}t["default"]=ReaderSync},879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(79896);const i=r(70857);const a=Math.max(i.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(e={}){this._options=e;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,a);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===undefined?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}t["default"]=Settings},55711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.splitWhen=t.flatten=void 0;function flatten(e){return e.reduce(((e,t)=>[].concat(e,t)),[])}t.flatten=flatten;function splitWhen(e,t){const r=[[]];let n=0;for(const i of e){if(t(i)){n++;r[n]=[]}else{r[n].push(i)}}return r}t.splitWhen=splitWhen},9718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEnoentCodeError=void 0;function isEnoentCodeError(e){return e.code==="ENOENT"}t.isEnoentCodeError=isEnoentCodeError},66979:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},36002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;const n=r(55711);t.array=n;const i=r(9718);t.errno=i;const a=r(66979);t.fs=a;const o=r(9283);t.path=o;const s=r(61304);t.pattern=s;const c=r(20536);t.stream=c;const l=r(57641);t.string=l},9283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertPosixPathToPattern=t.convertWindowsPathToPattern=t.convertPathToPattern=t.escapePosixPath=t.escapeWindowsPath=t.escape=t.removeLeadingDotSegment=t.makeAbsolute=t.unixify=void 0;const n=r(70857);const i=r(16928);const a=n.platform()==="win32";const o=2;const s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;const c=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g;const l=/^\\\\([.?])/;const u=/\\(?![!()+@[\]{}])/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return i.resolve(e,t)}t.makeAbsolute=makeAbsolute;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(o)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment;t.escape=a?escapeWindowsPath:escapePosixPath;function escapeWindowsPath(e){return e.replace(c,"\\$2")}t.escapeWindowsPath=escapeWindowsPath;function escapePosixPath(e){return e.replace(s,"\\$2")}t.escapePosixPath=escapePosixPath;t.convertPathToPattern=a?convertWindowsPathToPattern:convertPosixPathToPattern;function convertWindowsPathToPattern(e){return escapeWindowsPath(e).replace(l,"//$1").replace(u,"/")}t.convertWindowsPathToPattern=convertWindowsPathToPattern;function convertPosixPathToPattern(e){return escapePosixPath(e)}t.convertPosixPathToPattern=convertPosixPathToPattern},61304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAbsolute=t.partitionAbsoluteAndRelative=t.removeDuplicateSlashes=t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const n=r(16928);const i=r(98505);const a=r(98785);const o="**";const s="\\";const c=/[*?]|^!/;const l=/\[[^[]*]/;const u=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const d=/[!*+?@]\([^(]*\)/;const p=/,|\.\./;const g=/(?!^)\/{2,}/g;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(s)){return true}if(c.test(e)||l.test(e)||u.test(e)){return true}if(t.extglob!==false&&d.test(e)){return true}if(t.braceExpansion!==false&&hasBraceExpansion(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(e){const t=e.indexOf("{");if(t===-1){return false}const r=e.indexOf("}",t+1);if(r===-1){return false}const n=e.slice(t,r);return p.test(n)}function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(e){return e.filter((e=>!isPatternRelatedToParentDirectory(e)))}t.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(e){return e.filter(isPatternRelatedToParentDirectory)}t.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(e){return e.startsWith("..")||e.startsWith("./..")}t.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(e){return i(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(o)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+o)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce(((e,t)=>e.concat(expandBraceExpansion(t))),[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){const t=a.braces(e,{expand:true,nodupes:true,keepEscaping:true});t.sort(((e,t)=>e.length-t.length));return t.filter((e=>e!==""))}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=a.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return a.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map((e=>makeRe(e,t)))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some((t=>t.test(e)))}t.matchAny=matchAny;function removeDuplicateSlashes(e){return e.replace(g,"/")}t.removeDuplicateSlashes=removeDuplicateSlashes;function partitionAbsoluteAndRelative(e){const t=[];const r=[];for(const n of e){if(isAbsolute(n)){t.push(n)}else{r.push(n)}}return[t,r]}t.partitionAbsoluteAndRelative=partitionAbsoluteAndRelative;function isAbsolute(e){return n.isAbsolute(e)}t.isAbsolute=isAbsolute},20536:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;const n=r(60754);function merge(e){const t=n(e);e.forEach((e=>{e.once("error",(e=>t.emit("error",e)))}));t.once("close",(()=>propagateCloseEventToSources(e)));t.once("end",(()=>propagateCloseEventToSources(e)));return t}t.merge=merge;function propagateCloseEventToSources(e){e.forEach((e=>e.emit("close")))}},57641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=t.isString=void 0;function isString(e){return typeof e==="string"}t.isString=isString;function isEmpty(e){return e===""}t.isEmpty=isEmpty},48230:(e,t,r)=>{"use strict";var n=r(60844);function fastqueue(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}if(!(r>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}var i=n(Task);var a=null;var o=null;var s=0;var c=null;var l={push:push,drain:noop,saturated:noop,pause:pause,paused:false,get concurrency(){return r},set concurrency(e){if(!(e>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}r=e;if(l.paused)return;for(;a&&s=r||l.paused){if(o){o.next=d;o=d}else{a=d;o=d;l.saturated()}}else{s++;t.call(e,d.value,d.worked)}}function unshift(n,u){var d=i.get();d.context=e;d.release=release;d.value=n;d.callback=u||noop;d.errorHandler=c;if(s>=r||l.paused){if(a){d.next=a;a=d}else{a=d;o=d;l.saturated()}}else{s++;t.call(e,d.value,d.worked)}}function release(n){if(n){i.release(n)}var c=a;if(c&&s<=r){if(!l.paused){if(o===a){o=null}a=c.next;c.next=null;t.call(e,c.value,c.worked);if(o===null){l.empty()}}else{s--}}else if(--s===0){l.drain()}}function kill(){a=null;o=null;l.drain=noop}function killAndDrain(){a=null;o=null;l.drain();l.drain=noop}function error(e){c=e}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var e=this;this.worked=function worked(t,r){var n=e.callback;var i=e.errorHandler;var a=e.value;e.value=null;e.callback=noop;if(e.errorHandler){i(t,a)}n.call(e.context,t,r);e.release(e)}}function queueAsPromised(e,t,r){if(typeof e==="function"){r=t;t=e;e=null}function asyncWrapper(e,r){t.call(this,e).then((function(e){r(null,e)}),r)}var n=fastqueue(e,asyncWrapper,r);var i=n.push;var a=n.unshift;n.push=push;n.unshift=unshift;n.drained=drained;return n;function push(e){var t=new Promise((function(t,r){i(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function unshift(e){var t=new Promise((function(t,r){a(e,(function(e,n){if(e){r(e);return}t(n)}))}));t.catch(noop);return t}function drained(){var e=new Promise((function(e){process.nextTick((function(){if(n.idle()){e()}else{var t=n.drain;n.drain=function(){if(typeof t==="function")t();e();n.drain=t}}}))}));return e}}e.exports=fastqueue;e.exports.promise=queueAsPromised},70877:(e,t,r)=>{"use strict"; +/*! + * fill-range + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Licensed under the MIT License. + */const n=r(39023);const i=r(17551);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length{e.negatives.sort(((e,t)=>et?1:0));e.positives.sort(((e,t)=>et?1:0));let n=t.capture?"":"?:";let i="";let a="";let o;if(e.positives.length){i=e.positives.map((e=>toMaxLen(String(e),r))).join("|")}if(e.negatives.length){a=`-(${n}${e.negatives.map((e=>toMaxLen(String(e),r))).join("|")})`}if(i&&a){o=`${i}|${a}`}else{o=i||a}if(t.wrap){return`(${n}${o})`}return o};const toRange=(e,t,r,n)=>{if(r){return i(e,t,{wrap:false,...n})}let a=String.fromCharCode(e);if(e===t)return a;let o=String.fromCharCode(t);return`[${a}-${o}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return i(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,n={})=>{let i=Number(e);let a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(i===0)i=0;if(a===0)a=0;let o=i>a;let s=String(e);let c=String(t);let l=String(r);r=Math.max(Math.abs(r),1);let u=zeros(s)||zeros(c)||zeros(l);let d=u?Math.max(s.length,c.length,l.length):0;let p=u===false&&stringify(e,t,n)===false;let g=n.transform||transform(p);if(n.toRegex&&r===1){return toRange(toMaxLen(e,d),toMaxLen(t,d),true,n)}let y={negatives:[],positives:[]};let push=e=>y[e<0?"negatives":"positives"].push(Math.abs(e));let h=[];let _=0;while(o?i>=a:i<=a){if(n.toRegex===true&&r>1){push(i)}else{h.push(pad(g(i,_),d,p))}i=o?i-r:i+r;_++}if(n.toRegex===true){return r>1?toSequence(y,n,d):toRegex(h,null,{wrap:false,...n})}return h};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let i=n.transform||(e=>String.fromCharCode(e));let a=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let s=a>o;let c=Math.min(a,o);let l=Math.max(a,o);if(n.toRegex&&r===1){return toRange(c,l,false,n)}let u=[];let d=0;while(s?a>=o:a<=o){u.push(i(a,d));a=s?a-r:a+r;d++}if(n.toRegex===true){return toRegex(u,null,{wrap:false,options:n})}return u};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let i={...n};if(i.capture===true)i.wrap=true;r=r||i.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,i);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,i)}return fillLetters(e,t,Math.max(Math.abs(r),1),i)};e.exports=fill},9621:e=>{"use strict";const t=Symbol.for("gensync:v1:start");const r=Symbol.for("gensync:v1:suspend");const n="GENSYNC_EXPECTED_START";const i="GENSYNC_EXPECTED_SUSPEND";const a="GENSYNC_OPTIONS_ERROR";const o="GENSYNC_RACE_NONEMPTY";const s="GENSYNC_ERRBACK_NO_CALLBACK";e.exports=Object.assign((function gensync(e){let t=e;if(typeof e!=="function"){t=newGenerator(e)}else{t=wrapGenerator(e)}return Object.assign(t,makeFunctionAPI(t))}),{all:buildOperation({name:"all",arity:1,sync:function(e){const t=Array.from(e[0]);return t.map((e=>evaluateSync(e)))},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){Promise.resolve().then((()=>t([])));return}let i=0;const a=n.map((()=>undefined));n.forEach(((e,n)=>{evaluateAsync(e,(e=>{a[n]=e;i+=1;if(i===a.length)t(a)}),r)}))}}),race:buildOperation({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(t.length===0){throw makeError("Must race at least 1 item",o)}return evaluateSync(t[0])},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){throw makeError("Must race at least 1 item",o)}for(const e of n){evaluateAsync(e,t,r)}}})});function makeFunctionAPI(e){const t={sync:function(...t){return evaluateSync(e.apply(this,t))},async:function(...t){return new Promise(((r,n)=>{evaluateAsync(e.apply(this,t),r,n)}))},errback:function(...t){const r=t.pop();if(typeof r!=="function"){throw makeError("Asynchronous function called without callback",s)}let n;try{n=e.apply(this,t)}catch(e){r(e);return}evaluateAsync(n,(e=>r(undefined,e)),(e=>r(e)))}};return t}function assertTypeof(e,t,r,n){if(typeof r===e||n&&typeof r==="undefined"){return}let i;if(n){i=`Expected opts.${t} to be either a ${e}, or undefined.`}else{i=`Expected opts.${t} to be a ${e}.`}throw makeError(i,a)}function makeError(e,t){return Object.assign(new Error(e),{code:t})}function newGenerator({name:e,arity:t,sync:r,async:n,errback:i}){assertTypeof("string","name",e,true);assertTypeof("number","arity",t,true);assertTypeof("function","sync",r);assertTypeof("function","async",n,true);assertTypeof("function","errback",i,true);if(n&&i){throw makeError("Expected one of either opts.async or opts.errback, but got _both_.",a)}if(typeof e!=="string"){let t;if(i&&i.name&&i.name!=="errback"){t=i.name}if(n&&n.name&&n.name!=="async"){t=n.name.replace(/Async$/,"")}if(r&&r.name&&r.name!=="sync"){t=r.name.replace(/Sync$/,"")}if(typeof t==="string"){e=t}}if(typeof t!=="number"){t=r.length}return buildOperation({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,a){if(n){n.apply(this,e).then(t,a)}else if(i){i.call(this,...e,((e,r)=>{if(e==null)t(r);else a(e)}))}else{t(r.apply(this,e))}}})}function wrapGenerator(e){return setFunctionMetadata(e.name,e.length,(function(...t){return e.apply(this,t)}))}function buildOperation({name:e,arity:n,sync:i,async:a}){return setFunctionMetadata(e,n,(function*(...e){const n=yield t;if(!n){const t=i.call(this,e);return t}let o;try{a.call(this,e,(e=>{if(o)return;o={value:e};n()}),(e=>{if(o)return;o={err:e};n()}))}catch(e){o={err:e};n()}yield r;if(o.hasOwnProperty("err")){throw o.err}return o.value}))}function evaluateSync(e){let t;while(!({value:t}=e.next()).done){assertStart(t,e)}return t}function evaluateAsync(e,t,r){(function step(){try{let r;while(!({value:r}=e.next()).done){assertStart(r,e);let t=true;let n=false;const i=e.next((()=>{if(t){n=true}else{step()}}));t=false;assertSuspend(i,e);if(!n){return}}return t(r)}catch(e){return r(e)}})()}function assertStart(e,r){if(e===t)return;throwError(r,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,n))}function assertSuspend({value:e,done:t},n){if(!t&&e===r)return;throwError(n,makeError(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,i))}function throwError(e,t){if(e.throw)e.throw(t);throw t}function isIterable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!e[Symbol.iterator]}function setFunctionMetadata(e,t,r){if(typeof e==="string"){const t=Object.getOwnPropertyDescriptor(r,"name");if(!t||t.configurable){Object.defineProperty(r,"name",Object.assign(t||{},{configurable:true,value:e}))}}if(typeof t==="number"){const e=Object.getOwnPropertyDescriptor(r,"length");if(!e||e.configurable){Object.defineProperty(r,"length",Object.assign(e||{},{configurable:true,value:t}))}}return r}},98505:(e,t,r)=>{"use strict";var n=r(91925);var i=r(16928).posix.dirname;var a=r(70857).platform()==="win32";var o="/";var s=/\\/g;var c=/[\{\[].*[\}\]]$/;var l=/(^|[^\\])([\{\[]|\([^\)]+$)/;var u=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(o)<0){e=e.replace(s,o)}if(c.test(e)){e+=o}e+="a";do{e=i(e)}while(n(e)||l.test(e));return e.replace(u,"$1")}},46373:(e,t,r)=>{"use strict";const{promisify:n}=r(39023);const i=r(79896);const a=r(16928);const o=r(25648);const s=r(23417);const c=r(57709);const l=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=n(i.readFile);const mapGitIgnorePatternTo=e=>t=>{if(t.startsWith("!")){return"!"+a.posix.join(e,t.slice(1))}return a.posix.join(e,t)};const parseGitIgnore=(e,t)=>{const r=c(a.relative(t.cwd,a.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter((e=>!e.startsWith("#"))).map(mapGitIgnorePatternTo(r))};const reduceIgnore=e=>{const t=s();for(const r of e){t.add(parseGitIgnore(r.content,{cwd:r.cwd,fileName:r.filePath}))}return t};const ensureAbsolutePathForCwd=(e,t)=>{e=c(e);if(a.isAbsolute(t)){if(c(t).startsWith(e)){return t}throw new Error(`Path ${t} is not in cwd ${e}`)}return a.join(e,t)};const getIsIgnoredPredecate=(e,t)=>r=>e.ignores(c(a.relative(t,ensureAbsolutePathForCwd(t,r.path||r))));const getFile=async(e,t)=>{const r=a.join(t,e);const n=await u(r,"utf8");return{cwd:t,filePath:r,content:n}};const getFileSync=(e,t)=>{const r=a.join(t,e);const n=i.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}};const normalizeOptions=({ignore:e=[],cwd:t=c(process.cwd())}={})=>({ignore:e,cwd:t});e.exports=async e=>{e=normalizeOptions(e);const t=await o("**/.gitignore",{ignore:l.concat(e.ignore),cwd:e.cwd});const r=await Promise.all(t.map((t=>getFile(t,e.cwd))));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)};e.exports.sync=e=>{e=normalizeOptions(e);const t=o.sync("**/.gitignore",{ignore:l.concat(e.ignore),cwd:e.cwd});const r=t.map((t=>getFileSync(t,e.cwd)));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,e.cwd)}},57899:(e,t,r)=>{"use strict";const n=r(79896);const i=r(37079);const a=r(60754);const o=r(25648);const s=r(56896);const c=r(46373);const{FilterStream:l,UniqueStream:u}=r(20799);const DEFAULT_FILTER=()=>false;const isNegative=e=>e[0]==="!";const assertPatternsInput=e=>{if(!e.every((e=>typeof e==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=(e={})=>{if(!e.cwd){return}let t;try{t=n.statSync(e.cwd)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const getPathString=e=>e.stats instanceof n.Stats?e.path:e;const generateGlobTasks=(e,t)=>{e=i([].concat(e));assertPatternsInput(e);checkCwdOption(t);const r=[];t={ignore:[],expandDirectories:true,...t};for(const[n,i]of e.entries()){if(isNegative(i)){continue}const a=e.slice(n).filter((e=>isNegative(e))).map((e=>e.slice(1)));const o={...t,ignore:t.ignore.concat(a)};r.push({pattern:i,options:o})}return r};const globDirs=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r={...r,files:e.options.expandDirectories}}else if(typeof e.options.expandDirectories==="object"){r={...r,...e.options.expandDirectories}}return t(e.pattern,r)};const getPattern=(e,t)=>e.options.expandDirectories?globDirs(e,t):[e.pattern];const getFilterSync=e=>e&&e.gitignore?c.sync({cwd:e.cwd,ignore:e.ignore}):DEFAULT_FILTER;const globToTask=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=s.sync(r.ignore)}return{pattern:t,options:r}};e.exports=async(e,t)=>{const r=generateGlobTasks(e,t);const getFilter=async()=>t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const getTasks=async()=>{const e=await Promise.all(r.map((async e=>{const t=await getPattern(e,s);return Promise.all(t.map(globToTask(e)))})));return i(...e)};const[n,a]=await Promise.all([getFilter(),getTasks()]);const l=await Promise.all(a.map((e=>o(e.pattern,e.options))));return i(...l).filter((e=>!n(getPathString(e))))};e.exports.sync=(e,t)=>{const r=generateGlobTasks(e,t);const n=[];for(const e of r){const t=getPattern(e,s.sync).map(globToTask(e));n.push(...t)}const a=getFilterSync(t);let c=[];for(const e of n){c=i(c,o.sync(e.pattern,e.options))}return c.filter((e=>!a(e)))};e.exports.stream=(e,t)=>{const r=generateGlobTasks(e,t);const n=[];for(const e of r){const t=getPattern(e,s.sync).map(globToTask(e));n.push(...t)}const i=getFilterSync(t);const c=new l((e=>!i(e)));const d=new u;return a(n.map((e=>o.stream(e.pattern,e.options)))).pipe(c).pipe(d)};e.exports.generateGlobTasks=generateGlobTasks;e.exports.hasMagic=(e,t)=>[].concat(e).some((e=>o.isDynamicPattern(e,t)));e.exports.gitignore=c},23417:e=>{function makeArray(e){return Array.isArray(e)?e:[e]}const t="";const r=" ";const n="\\";const i=/^\s+$/;const a=/(?:[^\\]|^)\\$/;const o=/^\\!/;const s=/^\\#/;const c=/\r?\n/g;const l=/^\.*\/|^\.+$/;const u="/";let d="node-ignore";if(typeof Symbol!=="undefined"){d=Symbol.for("node-ignore")}const p=d;const define=(e,t,r)=>Object.defineProperty(e,t,{value:r});const g=/([0-z])-([0-z])/g;const RETURN_FALSE=()=>false;const sanitizeRange=e=>e.replace(g,((e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:t));const cleanRangeBackSlash=e=>{const{length:t}=e;return e.slice(0,t-t%2)};const y=[[/^\uFEFF/,()=>t],[/((?:\\\\)*?)(\\?\s+)$/,(e,n,i)=>n+(i.indexOf("\\")===0?r:t)],[/(\\+?)\s/g,(e,t)=>{const{length:n}=t;return t.slice(0,n-n%2)+r}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6{const n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,i,a)=>t===n?`\\[${r}${cleanRangeBackSlash(i)}${a}`:a==="]"?i.length%2===0?`[${sanitizeRange(r)}${i}]`:"[]":"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const h=Object.create(null);const makeRegex=(e,t)=>{let r=h[e];if(!r){r=y.reduce(((t,[r,n])=>t.replace(r,n.bind(e))),e);h[e]=r}return t?new RegExp(r,"i"):new RegExp(r)};const isString=e=>typeof e==="string";const checkPattern=e=>e&&isString(e)&&!i.test(e)&&!a.test(e)&&e.indexOf("#")!==0;const splitPattern=e=>e.split(c);class IgnoreRule{constructor(e,t,r,n){this.origin=e;this.pattern=t;this.negative=r;this.regex=n}}const createRule=(e,t)=>{const r=e;let n=false;if(e.indexOf("!")===0){n=true;e=e.substr(1)}e=e.replace(o,"!").replace(s,"#");const i=makeRegex(e,t);return new IgnoreRule(r,e,n,i)};const throwError=(e,t)=>{throw new t(e)};const checkPath=(e,t,r)=>{if(!isString(e)){return r(`path must be a string, but got \`${t}\``,TypeError)}if(!e){return r(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(e)){const e="`path.relative()`d";return r(`path should be a ${e} string, but got "${t}"`,RangeError)}return true};const isNotRelative=e=>l.test(e);checkPath.isNotRelative=isNotRelative;checkPath.convert=e=>e;class Ignore{constructor({ignorecase:e=true,ignoreCase:t=e,allowRelativePaths:r=false}={}){define(this,p,true);this._rules=[];this._ignoreCase=t;this._allowRelativePaths=r;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(e){if(e&&e[p]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(checkPattern(e)){const t=createRule(e,this._ignoreCase);this._added=true;this._rules.push(t)}}add(e){this._added=false;makeArray(isString(e)?splitPattern(e):e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_testOne(e,t){let r=false;let n=false;this._rules.forEach((i=>{const{negative:a}=i;if(n===a&&r!==n||a&&!r&&!n&&!t){return}const o=i.regex.test(e);if(o){r=!a;n=a}}));return{ignored:r,unignored:n}}_test(e,t,r,n){const i=e&&checkPath.convert(e);checkPath(i,e,this._allowRelativePaths?RETURN_FALSE:throwError);return this._t(i,t,r,n)}_t(e,t,r,n){if(e in t){return t[e]}if(!n){n=e.split(u)}n.pop();if(!n.length){return t[e]=this._testOne(e,r)}const i=this._t(n.join(u)+u,t,r,n);return t[e]=i.ignored?i:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,false).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return makeArray(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,true)}}const factory=e=>new Ignore(e);const isPathValid=e=>checkPath(e&&checkPath.convert(e),e,RETURN_FALSE);factory.isPathValid=isPathValid;factory.default=factory;e.exports=factory;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const makePosix=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");checkPath.convert=makePosix;const e=/^[a-z]:\//i;checkPath.isNotRelative=t=>e.test(t)||isNotRelative(t)}},20799:(e,t,r)=>{"use strict";const{Transform:n}=r(2203);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(e){super();this._filter=e}_transform(e,t,r){if(this._filter(e)){this.push(e)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(e,t,r){if(!this._pushed.has(e)){this.push(e);this._pushed.add(e)}r()}}e.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},75540:e=>{ +/*! + * is-extglob + * + * Copyright (c) 2014-2016, Jon Schlinkert. + * Licensed under the MIT License. + */ +e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},91925:(e,t,r)=>{ +/*! + * is-glob + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ +var n=r(75540);var i={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var a=-2;var o=-2;var s=-2;while(tt){if(s===-1||s>n){return true}s=e.indexOf("\\",t);if(s===-1||s>n){return true}}}if(a!==-1&&e[t]==="{"&&e[t+1]!=="}"){a=e.indexOf("}",t);if(a>t){s=e.indexOf("\\",t);if(s===-1||s>a){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){s=e.indexOf("\\",t);if(s===-1||s>o){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(rr){s=e.indexOf("\\",r);if(s===-1||s>o){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var l=i[c];if(l){var u=e.indexOf(l,t);if(u!==-1){t=u+1}}if(e[t]==="!"){return true}}else{t++}}return false};var relaxedCheck=function(e){if(e[0]==="!"){return true}var t=0;while(t{"use strict"; +/*! + * is-number + * + * Copyright (c) 2014-present, Jon Schlinkert. + * Released under the MIT License. + */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},93407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},85756:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},59376:e=>{"use strict";const t={};const r=t.hasOwnProperty;const forOwn=(e,t)=>{for(const n in e){if(r.call(e,n)){t(n,e[n])}}};const extend=(e,t)=>{if(!t){return e}forOwn(t,((t,r)=>{e[t]=r}));return e};const forEach=(e,t)=>{const r=e.length;let n=-1;while(++n"\\u"+("0000"+e).slice(-4);const hexadecimal=(e,t)=>{let r=e.toString(16);if(t)return r;return r.toUpperCase()};const n=t.toString;const i=Array.isArray;const isBuffer=e=>typeof Buffer==="function"&&Buffer.isBuffer(e);const isObject=e=>n.call(e)=="[object Object]";const isString=e=>typeof e=="string"||n.call(e)=="[object String]";const isNumber=e=>typeof e=="number"||n.call(e)=="[object Number]";const isBigInt=e=>typeof e=="bigint";const isFunction=e=>typeof e=="function";const isMap=e=>n.call(e)=="[object Map]";const isSet=e=>n.call(e)=="[object Set]";const a={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const o=/[\\\b\f\n\r\t]/;const s=/[0-9]/;const c=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;const l=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g;const jsesc=(e,t)=>{const increaseIndentation=()=>{h=y;++t.indentLevel;y=t.indent.repeat(t.indentLevel)};const r={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const n=t&&t.json;if(n){r.quotes="double";r.wrap=true}t=extend(r,t);if(t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"){t.quotes="single"}const d=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'";const p=t.compact;const g=t.lowercaseHex;let y=t.indent.repeat(t.indentLevel);let h="";const _=t.__inline1__;const A=t.__inline2__;const v=p?"":"\n";let E;let T=true;const b=t.numbers=="binary";const S=t.numbers=="octal";const C=t.numbers=="decimal";const x=t.numbers=="hexadecimal";if(n&&e&&isFunction(e.toJSON)){e=e.toJSON()}if(!isString(e)){if(isMap(e)){if(e.size==0){return"new Map()"}if(!p){t.__inline1__=true;t.__inline2__=false}return"new Map("+jsesc(Array.from(e),t)+")"}if(isSet(e)){if(e.size==0){return"new Set()"}return"new Set("+jsesc(Array.from(e),t)+")"}if(isBuffer(e)){if(e.length==0){return"Buffer.from([])"}return"Buffer.from("+jsesc(Array.from(e),t)+")"}if(i(e)){E=[];t.wrap=true;if(_){t.__inline1__=false;t.__inline2__=true}if(!A){increaseIndentation()}forEach(e,(e=>{T=false;if(A){t.__inline2__=false}E.push((p||A?"":y)+jsesc(e,t))}));if(T){return"[]"}if(A){return"["+E.join(", ")+"]"}return"["+v+E.join(","+v)+v+(p?"":h)+"]"}else if(isNumber(e)||isBigInt(e)){if(n){return JSON.stringify(Number(e))}let t;if(C){t=String(e)}else if(x){let r=e.toString(16);if(!g){r=r.toUpperCase()}t="0x"+r}else if(b){t="0b"+e.toString(2)}else if(S){t="0o"+e.toString(8)}if(isBigInt(e)){return t+"n"}return t}else if(isBigInt(e)){if(n){return JSON.stringify(Number(e))}return e+"n"}else if(!isObject(e)){if(n){return JSON.stringify(e)||"null"}return String(e)}else{E=[];t.wrap=true;increaseIndentation();forOwn(e,((e,r)=>{T=false;E.push((p?"":y)+jsesc(e,t)+":"+(p?"":" ")+jsesc(r,t))}));if(T){return"{}"}return"{"+v+E.join(","+v)+v+(p?"":h)+"}"}}const D=t.escapeEverything?l:u;E=e.replace(D,((e,r,i,l,u,p)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0);const n=r.charCodeAt(1);if(t.es6){const t=(e-55296)*1024+n-56320+65536;const r=hexadecimal(t,g);return"\\u{"+r+"}"}return fourHexEscape(hexadecimal(e,g))+fourHexEscape(hexadecimal(n,g))}if(i){return fourHexEscape(hexadecimal(i.charCodeAt(0),g))}if(e=="\0"&&!n&&!s.test(p.charAt(u+1))){return"\\0"}if(l){if(l==d||t.escapeEverything){return"\\"+l}return l}if(o.test(e)){return a[e]}if(t.minimal&&!c.test(e)){return e}const y=hexadecimal(e.charCodeAt(0),g);if(n||y.length>2){return fourHexEscape(y)}return"\\x"+("00"+y).slice(-2)}));if(d=="`"){E=E.replace(/\$\{/g,"\\${")}if(t.isScriptContext){E=E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/)/s);const n=e.match(/(?<=-->\s*)((.|\n)*)(?=\s*[📎|📝|✔️])/);if(r&&n){t[r]=n[0].replace("*","").replace(/\n/g,"")}}}return t}function replaceAtPoint(e,t,r){if(!t)return e;const n=e.split("\n");const i=n[t.line-1];if(i.includes("|")){n[t.line-1]=i.replace(" |",`${r} |`)}else{n[t.line-1]=i.substring(0,t.column)+r+i.substring(t.column)}return n.join("\n")}function cleanAtPoint(e,t,r){if(!t)return e;const n=e.split("\n");n[t.line-1]=n[t.line-1].replace(` ${r}`,"");return n.join("\n")}const t={getTestProps:e=>{const t={annotations:[],tags:[]};let r=[];if(e.node&&e.node.arguments){r=e.node.arguments}else if(e.parent&&e.parent.expression&&e.parent.expression.arguments){r=e.parent.expression.arguments}if(!r?.length)return t;const n=r.filter((e=>e.type==="ObjectExpression"));if(!n.length)return t;const i=n.map((e=>e.properties));if(!i.length)return t;const a=i.flat().filter((e=>e.key?.name==="tag"));const o=i.flat().filter((e=>e.key?.name==="annotation"));const s=a.map((e=>{if(e.value.type==="ArrayExpression"){return e.value.elements.map((e=>e.value))}return e.value.value})).flat().filter(Boolean);o.forEach((e=>{if(e.value.type==="ArrayExpression"){const r=e.value.elements.map((e=>e.properties));r.forEach((e=>{const r={};e.forEach((e=>{r[e.key.name]=e.value.value}));t.annotations.push(r)}))}else if(e.value.type==="ObjectExpression"){const r={};e.value.properties.forEach((e=>{r[e.key.name]=e.value.value}));t.annotations.push(r)}}));t.tags=s.map((e=>e.startsWith("@")?e.substring(1):e));return t}};const arrayCompare=function(e,t,r){const n=[];const i=[];let a=[];if(typeof e==="object"&&!Array.isArray(e)){({a:e,b:t,id:r}=e)}const o=[...t];e.forEach((e=>{let t=-1;if(r){t=o.findIndex((t=>t[r]===e[r]))}else{t=o.indexOf(e)}if(t!==-1){i.push({a:e,b:o[t]});o.splice(t,1)}else{n.push({a:e})}}));a=o.map((e=>({b:e})));return{found:i,missing:n,added:a}};const r={isConcurrentTest:e=>e.property?.name==="concurrent"};function getAllSuiteTags(e){const t=[];e.forEach((e=>{if(e.tags?.length){t.push(...e.tags)}}));return t}e.exports={hasStringArgument:hasStringArgument,hasTemplateQuasi:hasTemplateQuasi,getLineNumber:getLineNumber,getEndLineNumber:getEndLineNumber,getCode:getCode,jest:r,hasTemplateArgument:hasTemplateArgument,getQuasiArgument:getQuasiArgument,parseComments:parseComments,getStringValue:getStringValue,hasStringOrTemplateArgument:hasStringOrTemplateArgument,getUpdatePoint:getUpdatePoint,replaceAtPoint:replaceAtPoint,cleanAtPoint:cleanAtPoint,playwright:t,arrayCompare:arrayCompare,getAllSuiteTags:getAllSuiteTags}},67513:(e,t,r)=>{const n=r(93228);const i=process.env.GITHUB_REPOSITORY;const[a,o]=i.split("/");let s;class PullRequest{constructor(e){this.octokit=new n.GitHub(e)}async fetch(){if(s)return s;const{data:e}=await this.octokit.pulls.list({owner:a,repo:o,state:"open"});return s=e.filter((e=>e.merge_commit_sha===process.env.GITHUB_SHA))[0]}async addComment(e){const t=await this.fetch();const{number:r}=t;const{data:n}=await this.octokit.issues.listComments({owner:a,repo:o,issue_number:r});await Promise.all(n.filter((t=>t.user.login==="github-actions[bot]"&&t.body.indexOf(e.attribution)===0)).map((e=>this.octokit.issues.deleteComment({owner:a,repo:o,comment_id:e.id}))));return this.octokit.issues.createComment({owner:a,repo:o,issue_number:r,body:e.body})}async addLabel(e){const t=await this.fetch();const{number:r}=t;await this.octokit.issues.addLabels({owner:a,repo:o,issue_number:r,labels:[e]})}async removeLabel(e){const t=await this.fetch();const{number:r}=t;try{await this.octokit.issues.removeLabel({owner:a,repo:o,issue_number:r,name:e})}catch(t){console.log(`Label ${e} not found, can't remove`)}}async close(){const e=await this.fetch();const{number:t}=e;try{await this.octokit.issues.update({owner:a,repo:o,issue_number:t,state:"closed"})}catch(e){console.log(`Can't close issue, ${e}`)}}}e.exports=PullRequest},13884:(e,t,r)=>{const n=process.env.TESTOMATIO_URL||"https://app.testomat.io";const i=n.startsWith("https");const a=r(2830)("testomatio:ids");const{request:o}=i?r(65692):r(58611);const s=r(16928);const c=r(79896);class Reporter{constructor(e,t,r){if(!t){console.error("Framework cannot be empty")}if(!e){console.error("Cant send report, api key not set")}this.apiKey=e;this.framework=t;this.workDir=r||process.cwd();this.tests=[];this.files={};this.maxChunkBytes=1*1024*1024;this.maxChunkFiles=100;this.maxChunkTests=500}addTests(e){this.tests=this.tests.concat(e)}attachFiles(){this.files={};const e=[...new Set(this.tests.map((e=>e.file)).filter((e=>!!e)))];for(const t of e){try{this.files[t]=c.readFileSync(s.resolve(this.workDir,t),"utf8")}catch(e){a(`Error reading file ${t}: ${e.message}`)}}}getFilesFromServer(e){return new Promise(((t,r)=>{a("Getting files from Testomat.io...");const i=o(`${n.trim()}/api/test_data?with_files=true&api_key=${this.apiKey}&export_automated=${e}`,{method:"GET"},(e=>{let n="";e.on("end",(()=>{a("Files fetched from Testomat.io",n);if(e.statusCode!==200){a("Files fetch failed",e.statusCode,e.statusMessage,n);r(n)}else{t(JSON.parse(n))}}));e.on("data",(e=>{n+=e.toString()}));e.on("aborted",(()=>{console.log(" ✖️ Files were not fetched from Testomat.io")}))}));i.on("error",(e=>{console.log(`Error: ${e.message}`);r(e)}));i.end()}))}parseLabels(e){if(!e)return[];return e.split(",").map((e=>e.trim())).filter((e=>e.length>0))}getIds(){return new Promise(((e,t)=>{a("Getting ids from Testomat.io...");const r=o(`${n.trim()}/api/test_data?api_key=${this.apiKey}`,{method:"GET"},(r=>{let n="";r.on("end",(()=>{a("Data fetched from Testomat.io",n);if(r.statusCode!==200){a("Data fetch failed",r.statusCode,r.statusMessage,n);t(n)}else{e(JSON.parse(n))}}));r.on("data",(e=>{n+=e.toString()}));r.on("aborted",(()=>{console.log(" ✖️ Data was not sent to Testomat.io")}))}));r.on("error",(e=>{console.log(`Error: ${e.message}`);t(e)}));r.end()}))}async send(e={}){console.log("\n 🚀 Sending data to testomat.io\n");this.tests=this.prepareTests();const t=this.buildUploadOptions(e);this.attachFiles();const r=this.createUploadChunks(t);if(r.length>1){await this.sendInChunks(t,r);return}const n=this.buildPayload(t,this.tests,this.files);await this.sendRequest(n)}prepareTests(){const e=this.parseLabels(process.env.TESTOMATIO_LABELS||process.env.TESTOMATIO_SYNC_LABELS);return this.tests.map((t=>{const r={...t};if(process.env.TESTOMATIO_WORKDIR&&r.file){const e=s.resolve(process.env.TESTOMATIO_WORKDIR);const t=s.resolve(r.file);r.file=s.relative(e,t)}r.file=r.file?.replace(/\\/g,"/");if(e.length>0){r.labels=e}return r}))}buildUploadOptions(e={}){const t={...e};if(process.env.TESTOMATIO_PREPEND_DIR)t.dir=process.env.TESTOMATIO_PREPEND_DIR;if(process.env.TESTOMATIO_SUITE)t.suite=process.env.TESTOMATIO_SUITE;return t}buildPayload(e={},t=this.tests,r=this.files,n={}){return JSON.stringify({...e,...n,tests:t,framework:this.framework,files:r})}createUploadChunks(e={}){if(this.tests.length===0){return[{tests:this.tests,files:this.files}]}const t=this.groupTestsByFile();const r=[];let n={tests:[],files:{}};for(const i of t){const t=this.splitOversizedGroup(i,e);for(const i of t){const t={tests:n.tests.concat(i.tests),files:{...n.files,...i.files}};const a=Object.keys(t.files).length;const o=t.tests.length;if(n.tests.length>0&&(this.getPayloadSize(e,t.tests,t.files)>this.maxChunkBytes||a>this.maxChunkFiles||o>this.maxChunkTests)){r.push(n);n=i;continue}n=t}}if(n.tests.length>0||Object.keys(n.files).length>0||r.length===0){r.push(n)}return r}groupTestsByFile(){const e=[];const t=new Map;this.tests.forEach(((r,n)=>{const i=r.file||`__no_file__${n}`;if(!t.has(i)){const n={tests:[],files:r.file&&this.files[r.file]!==undefined?{[r.file]:this.files[r.file]}:{}};t.set(i,n);e.push(n)}t.get(i).tests.push(r)}));return e}splitOversizedGroup(e,t={}){if(this.getPayloadSize(t,e.tests,e.files)<=this.maxChunkBytes&&e.tests.length<=this.maxChunkTests||e.tests.length<=1){return[e]}const r=[];let n={tests:[],files:e.files};for(const i of e.tests){const a={tests:n.tests.concat(i),files:e.files};if(n.tests.length>0&&(this.getPayloadSize(t,a.tests,a.files)>this.maxChunkBytes||a.tests.length>this.maxChunkTests)){r.push(n);n={tests:[i],files:e.files};continue}n=a}if(n.tests.length>0){r.push(n)}return r}getPayloadSize(e={},t=this.tests,r=this.files,n={}){return Buffer.byteLength(this.buildPayload(e,t,r,n))}async sendInChunks(e,t){let r;for(let n=0;n=400){throw new Error(o.body||`Chunk upload failed (${o.statusCode}: ${o.statusMessage})`)}if(n===0){r=this.extractImportId(o.body);if(!r&&t.length>1){throw new Error("Chunk upload failed: import_id was not returned after the first chunk")}}}}extractImportId(e){if(!e)return null;try{const t=JSON.parse(e);return t.import_id||null}catch(e){return null}}sendRequest(e){a("Sending test data to Testomat.io",e);return new Promise(((t,r)=>{const i=o(`${n.trim()}/api/load?api_key=${this.apiKey}`,{method:"POST",headers:{"Content-Type":"application/json","Content-Length":Buffer.byteLength(e)}},(e=>{let n="";e.on("end",(()=>{if(e.statusCode>=400){console.log(" ✖️ ",n,`(${e.statusCode}: ${e.statusMessage})`)}else{console.log(" 🎉 Data received at Testomat.io")}t({statusCode:e.statusCode,statusMessage:e.statusMessage,body:n})}));e.on("data",(e=>{n+=e.toString()}));e.on("aborted",(()=>{console.log(" ✖️ Data was not sent to Testomat.io");r("aborted")}))}));i.on("error",(e=>{console.log(`Error: ${e.message}`);r(e)}));i.write(e);i.end()}))}}e.exports=Reporter},62119:module=>{module.exports=eval("require")("@babel/preset-typescript")},44926:module=>{module.exports=eval("require")("@babel/preset-typescript/package.json")},42078:module=>{module.exports=eval("require")("encoding")},5549:module=>{module.exports=eval("require")("source-map-support")},64973:e=>{function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}webpackEmptyContext.keys=()=>[];webpackEmptyContext.resolve=webpackEmptyContext;webpackEmptyContext.id=64973;e.exports=webpackEmptyContext},42613:e=>{"use strict";e.exports=require("assert")},90290:e=>{"use strict";e.exports=require("async_hooks")},20181:e=>{"use strict";e.exports=require("buffer")},35317:e=>{"use strict";e.exports=require("child_process")},64236:e=>{"use strict";e.exports=require("console")},76982:e=>{"use strict";e.exports=require("crypto")},31637:e=>{"use strict";e.exports=require("diagnostics_channel")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},85675:e=>{"use strict";e.exports=require("http2")},65692:e=>{"use strict";e.exports=require("https")},50264:e=>{"use strict";e.exports=require("inspector")},73339:e=>{"use strict";e.exports=require("module")},69278:e=>{"use strict";e.exports=require("net")},77598:e=>{"use strict";e.exports=require("node:crypto")},78474:e=>{"use strict";e.exports=require("node:events")},73024:e=>{"use strict";e.exports=require("node:fs")},51455:e=>{"use strict";e.exports=require("node:fs/promises")},76760:e=>{"use strict";e.exports=require("node:path")},57075:e=>{"use strict";e.exports=require("node:stream")},46193:e=>{"use strict";e.exports=require("node:string_decoder")},73136:e=>{"use strict";e.exports=require("node:url")},57975:e=>{"use strict";e.exports=require("node:util")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},82987:e=>{"use strict";e.exports=require("perf_hooks")},932:e=>{"use strict";e.exports=require("process")},24876:e=>{"use strict";e.exports=require("punycode")},83480:e=>{"use strict";e.exports=require("querystring")},2203:e=>{"use strict";e.exports=require("stream")},63774:e=>{"use strict";e.exports=require("stream/web")},13193:e=>{"use strict";e.exports=require("string_decoder")},53557:e=>{"use strict";e.exports=require("timers")},64756:e=>{"use strict";e.exports=require("tls")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},98253:e=>{"use strict";e.exports=require("util/types")},11493:e=>{"use strict";e.exports=require("v8")},28167:e=>{"use strict";e.exports=require("worker_threads")},43106:e=>{"use strict";e.exports=require("zlib")},90147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(57336);var i=r(85756);var a=r(76599);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:n.isColorSupported}const compose=(e,t)=>r=>e(t(r));function buildDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold),gutter:e.gray,marker:compose(e.red,e.bold),message:compose(e.red,e.bold),reset:e.reset}}const o=buildDefs(n.createColors(true));const s=buildDefs(n.createColors(false));function getDefs(e){return e?o:s}const c=new Set(["as","async","from","get","of","set"]);const l=/\r\n|[\n\r\u2028\u2029]/;const u=/^[()[\]{}]$/;let d;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(t,r,n){if(t.type==="name"){if(a.isKeyword(t.value)||a.isStrictReservedWord(t.value,true)||c.has(t.value)){return"keyword"}if(e.test(t.value)&&(n[r-1]==="<"||n.slice(r-2,r)==="t[n](e))).join("\n")}else{r+=i}}return r}let p=false;const g=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const i=Object.assign({},n,e.end);const{linesAbove:a=2,linesBelow:o=3}=r||{};const s=n.line;const c=n.column;const l=i.line;const u=i.column;let d=Math.max(s-(a+1),0);let p=Math.min(t.length,l+o);if(s===-1){d=0}if(l===-1){p=t.length}const g=l-s;const y={};if(g){for(let e=0;e<=g;e++){const r=e+s;if(!c){y[r]=true}else if(e===0){const e=t[r-1].length;y[r]=[c,e-c+1]}else if(e===g){y[r]=[0,u]}else{const n=t[r-e].length;y[r]=[0,n]}}}else{if(c===u){if(c){y[s]=[c,0]}else{y[s]=true}}else{y[s]=[c,u-c]}}return{start:d,end:p,markerLines:y}}function codeFrameColumns(e,t,r={}){const n=r.forceColor||isColorSupported()&&r.highlightCode;const i=getDefs(n);const a=e.split(g);const{start:o,end:s,markerLines:c}=getMarkerLines(t,a,r);const l=t.start&&typeof t.start.column==="number";const u=String(s).length;const d=n?highlight(e):e;let p=d.split(g,s).slice(o,s).map(((e,t)=>{const n=o+1+t;const a=` ${n}`.slice(-u);const s=` ${a} |`;const l=c[n];const d=!c[n+1];if(l){let t="";if(Array.isArray(l)){const n=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;t=["\n ",i.gutter(s.replace(/\d/g," "))," ",n,i.marker("^").repeat(a)].join("");if(d&&r.message){t+=" "+i.message(r.message)}}return[i.marker(">"),i.gutter(s),e.length>0?` ${e}`:"",t].join("")}else{return` ${i.gutter(s)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!l){p=`${" ".repeat(u+1)}${r.message}\n${p}`}if(n){return i.reset(p)}else{return p}}function index(e,t,r,n={}){if(!p){p=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const i={start:{column:r,line:t}};return codeFrameColumns(e,i,n)}t.codeFrameColumns=codeFrameColumns;t["default"]=index;t.highlight=highlight},63888:(e,t,r)=>{e.exports=r(22378)},26699:(e,t,r)=>{e.exports=r(10439)},82009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertSimpleType=assertSimpleType;t.makeStrongCache=makeStrongCache;t.makeStrongCacheSync=makeStrongCacheSync;t.makeWeakCache=makeWeakCache;t.makeWeakCacheSync=makeWeakCacheSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(97588);var i=r(99570);const synchronize=e=>_gensync()(e).sync;function*genTrue(){return true}function makeWeakCache(e){return makeCachedFunction(WeakMap,e)}function makeWeakCacheSync(e){return synchronize(makeWeakCache(e))}function makeStrongCache(e){return makeCachedFunction(Map,e)}function makeStrongCacheSync(e){return synchronize(makeStrongCache(e))}function makeCachedFunction(e,t){const r=new e;const a=new e;const o=new e;return function*cachedFunction(e,s){const c=yield*(0,n.isAsync)();const l=c?a:r;const u=yield*getCachedValueOrWait(c,l,o,e,s);if(u.valid)return u.value;const d=new CacheConfigurator(s);const p=t(e,d);let g;let y;if((0,i.isIterableIterator)(p)){y=yield*(0,n.onFirstPause)(p,(()=>{g=setupAsyncLocks(d,o,e)}))}else{y=p}updateFunctionCache(l,d,e,y);if(g){o.delete(e);g.release(y)}return y}}function*getCachedValue(e,t,r){const n=e.get(t);if(n){for(const{value:e,valid:t}of n){if(yield*t(r))return{valid:true,value:e}}}return{valid:false,value:null}}function*getCachedValueOrWait(e,t,r,i,a){const o=yield*getCachedValue(t,i,a);if(o.valid){return o}if(e){const e=yield*getCachedValue(r,i,a);if(e.valid){const t=yield*(0,n.waitFor)(e.value.promise);return{valid:true,value:t}}}return{valid:false,value:null}}function setupAsyncLocks(e,t,r){const n=new Lock;updateFunctionCache(t,e,r,n);return n}function updateFunctionCache(e,t,r,n){if(!t.configured())t.forever();let i=e.get(r);t.deactivate();switch(t.mode()){case"forever":i=[{value:n,valid:genTrue}];e.set(r,i);break;case"invalidate":i=[{value:n,valid:t.validator()}];e.set(r,i);break;case"valid":if(i){i.push({value:n,valid:t.validator()})}else{i=[{value:n,valid:t.validator()}];e.set(r,i)}}}class CacheConfigurator{constructor(e){this._active=true;this._never=false;this._forever=false;this._invalidate=false;this._configured=false;this._pairs=[];this._data=void 0;this._data=e}simple(){return makeSimpleConfigurator(this)}mode(){if(this._never)return"never";if(this._forever)return"forever";if(this._invalidate)return"invalidate";return"valid"}forever(){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._never){throw new Error("Caching has already been configured with .never()")}this._forever=true;this._configured=true}never(){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._forever){throw new Error("Caching has already been configured with .forever()")}this._never=true;this._configured=true}using(e){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._never||this._forever){throw new Error("Caching has already been configured with .never or .forever()")}this._configured=true;const t=e(this._data);const r=(0,n.maybeAsync)(e,`You appear to be using an async cache handler, but Babel has been called synchronously`);if((0,n.isThenable)(t)){return t.then((e=>{this._pairs.push([e,r]);return e}))}this._pairs.push([t,r]);return t}invalidate(e){this._invalidate=true;return this.using(e)}validator(){const e=this._pairs;return function*(t){for(const[r,n]of e){if(r!==(yield*n(t)))return false}return true}}deactivate(){this._active=false}configured(){return this._configured}}function makeSimpleConfigurator(e){function cacheFn(t){if(typeof t==="boolean"){if(t)e.forever();else e.never();return}return e.using((()=>assertSimpleType(t())))}cacheFn.forever=()=>e.forever();cacheFn.never=()=>e.never();cacheFn.using=t=>e.using((()=>assertSimpleType(t())));cacheFn.invalidate=t=>e.invalidate((()=>assertSimpleType(t())));return cacheFn}function assertSimpleType(e){if((0,n.isThenable)(e)){throw new Error(`You appear to be using an async cache handler, `+`which your current version of Babel does not support. `+`We may add support for this in the future, `+`but if you're on the most recent version of @babel/core and still `+`seeing this error, then you'll need to synchronously handle your caching logic.`)}if(e!=null&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"){throw new Error("Cache keys must be either string, boolean, number, null, or undefined.")}return e}class Lock{constructor(){this.released=false;this.promise=void 0;this._resolve=void 0;this.promise=new Promise((e=>{this._resolve=e}))}release(e){this.released=true;this._resolve(e)}}0&&0},71784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildPresetChain=buildPresetChain;t.buildPresetChainWalker=void 0;t.buildRootChain=buildRootChain;function _path(){const e=r(16928);_path=function(){return e};return e}function _debug(){const e=r(2830);_debug=function(){return e};return e}var n=r(89136);var i=r(90932);var a=r(76212);var o=r(80824);var s=r(16664);var c=r(57312);var l=r(82009);var u=r(90575);const d=_debug()("babel:config:config-chain");function*buildPresetChain(e,t){const r=yield*p(e,t);if(!r)return null;return{plugins:dedupDescriptors(r.plugins),presets:dedupDescriptors(r.presets),options:r.options.map((e=>normalizeOptions(e))),files:new Set}}const p=t.buildPresetChainWalker=makeChainWalker({root:e=>g(e),env:(e,t)=>y(e)(t),overrides:(e,t)=>h(e)(t),overridesEnv:(e,t,r)=>_(e)(t)(r),createLogger:()=>()=>{}});const g=(0,l.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.alias,u.createUncachedDescriptors)));const y=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.alias,u.createUncachedDescriptors,t)))));const h=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.alias,u.createUncachedDescriptors,t)))));const _=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>(0,l.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.alias,u.createUncachedDescriptors,t,r)))))));function*buildRootChain(e,t){let r,n;const i=new a.ConfigPrinter;const o=yield*T({options:e,dirname:t.cwd},t,undefined,i);if(!o)return null;const s=yield*i.output();let l;if(typeof e.configFile==="string"){l=yield*(0,c.loadConfig)(e.configFile,t.cwd,t.envName,t.caller)}else if(e.configFile!==false){l=yield*(0,c.findRootConfig)(t.root,t.envName,t.caller)}let{babelrc:u,babelrcRoots:d}=e;let p=t.cwd;const g=emptyChain();const y=new a.ConfigPrinter;if(l){const e=A(l);const n=yield*loadFileChain(e,t,undefined,y);if(!n)return null;r=yield*y.output();if(u===undefined){u=e.options.babelrc}if(d===undefined){p=e.dirname;d=e.options.babelrcRoots}mergeChain(g,n)}let h,_;let E=false;const b=emptyChain();if((u===true||u===undefined)&&typeof t.filename==="string"){const e=yield*(0,c.findPackageData)(t.filename);if(e&&babelrcLoadEnabled(t,e,d,p)){({ignore:h,config:_}=yield*(0,c.findRelativeConfig)(e,t.envName,t.caller));if(h){b.files.add(h.filepath)}if(h&&shouldIgnore(t,h.ignore,null,h.dirname)){E=true}if(_&&!E){const e=v(_);const r=new a.ConfigPrinter;const i=yield*loadFileChain(e,t,undefined,r);if(!i){E=true}else{n=yield*r.output();mergeChain(b,i)}}if(_&&E){b.files.add(_.filepath)}}}if(t.showConfig){console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,n,s].filter((e=>!!e)).join("\n\n")+"\n-----End Babel configs-----")}const S=mergeChain(mergeChain(mergeChain(emptyChain(),g),b),o);return{plugins:E?[]:dedupDescriptors(S.plugins),presets:E?[]:dedupDescriptors(S.presets),options:E?[]:S.options.map((e=>normalizeOptions(e))),fileHandling:E?"ignored":"transpile",ignore:h||undefined,babelrc:_||undefined,config:l||undefined,files:S.files}}function babelrcLoadEnabled(e,t,r,n){if(typeof r==="boolean")return r;const a=e.root;if(r===undefined){return t.directories.includes(a)}let o=r;if(!Array.isArray(o)){o=[o]}o=o.map((e=>typeof e==="string"?_path().resolve(n,e):e));if(o.length===1&&o[0]===a){return t.directories.includes(a)}return o.some((r=>{if(typeof r==="string"){r=(0,i.default)(r,n)}return t.directories.some((t=>matchPattern(r,n,t,e)))}))}const A=(0,l.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("configfile",e.options,e.filepath)})));const v=(0,l.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("babelrcfile",e.options,e.filepath)})));const E=(0,l.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("extendsfile",e.options,e.filepath)})));const T=makeChainWalker({root:e=>buildRootDescriptors(e,"base",u.createCachedDescriptors),env:(e,t)=>buildEnvDescriptors(e,"base",u.createCachedDescriptors,t),overrides:(e,t)=>buildOverrideDescriptors(e,"base",u.createCachedDescriptors,t),overridesEnv:(e,t,r)=>buildOverrideEnvDescriptors(e,"base",u.createCachedDescriptors,t,r),createLogger:(e,t,r)=>buildProgrammaticLogger(e,t,r)});const b=makeChainWalker({root:e=>S(e),env:(e,t)=>C(e)(t),overrides:(e,t)=>x(e)(t),overridesEnv:(e,t,r)=>D(e)(t)(r),createLogger:(e,t,r)=>buildFileLogger(e.filepath,t,r)});function*loadFileChain(e,t,r,n){const i=yield*b(e,t,r,n);i==null||i.files.add(e.filepath);return i}const S=(0,l.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.filepath,u.createUncachedDescriptors)));const C=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.filepath,u.createUncachedDescriptors,t)))));const x=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.filepath,u.createUncachedDescriptors,t)))));const D=(0,l.makeWeakCacheSync)((e=>(0,l.makeStrongCacheSync)((t=>(0,l.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.filepath,u.createUncachedDescriptors,t,r)))))));function buildFileLogger(e,t,r){if(!r){return()=>{}}return r.configure(t.showConfig,a.ChainFormatter.Config,{filepath:e})}function buildRootDescriptors({dirname:e,options:t},r,n){return n(e,t,r)}function buildProgrammaticLogger(e,t,r){var n;if(!r){return()=>{}}return r.configure(t.showConfig,a.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name})}function buildEnvDescriptors({dirname:e,options:t},r,n,i){var a;const o=(a=t.env)==null?void 0:a[i];return o?n(e,o,`${r}.env["${i}"]`):null}function buildOverrideDescriptors({dirname:e,options:t},r,n,i){var a;const o=(a=t.overrides)==null?void 0:a[i];if(!o)throw new Error("Assertion failure - missing override");return n(e,o,`${r}.overrides[${i}]`)}function buildOverrideEnvDescriptors({dirname:e,options:t},r,n,i,a){var o,s;const c=(o=t.overrides)==null?void 0:o[i];if(!c)throw new Error("Assertion failure - missing override");const l=(s=c.env)==null?void 0:s[a];return l?n(e,l,`${r}.overrides[${i}].env["${a}"]`):null}function makeChainWalker({root:e,env:t,overrides:r,overridesEnv:n,createLogger:i}){return function*chainWalker(a,o,s=new Set,c){const{dirname:l}=a;const u=[];const d=e(a);if(configIsApplicable(d,l,o,a.filepath)){u.push({config:d,envName:undefined,index:undefined});const e=t(a,o.envName);if(e&&configIsApplicable(e,l,o,a.filepath)){u.push({config:e,envName:o.envName,index:undefined})}(d.options.overrides||[]).forEach(((e,t)=>{const i=r(a,t);if(configIsApplicable(i,l,o,a.filepath)){u.push({config:i,index:t,envName:undefined});const e=n(a,t,o.envName);if(e&&configIsApplicable(e,l,o,a.filepath)){u.push({config:e,index:t,envName:o.envName})}}}))}if(u.some((({config:{options:{ignore:e,only:t}}})=>shouldIgnore(o,e,t,l)))){return null}const p=emptyChain();const g=i(a,o,c);for(const{config:e,index:t,envName:r}of u){if(!(yield*mergeExtendsChain(p,e.options,l,o,s,c))){return null}g(e,t,r);yield*mergeChainOpts(p,e)}return p}}function*mergeExtendsChain(e,t,r,n,i,a){if(t.extends===undefined)return true;const o=yield*(0,c.loadConfig)(t.extends,r,n.envName,n.caller);if(i.has(o)){throw new Error(`Configuration cycle detected loading ${o.filepath}.\n`+`File already loaded following the config chain:\n`+Array.from(i,(e=>` - ${e.filepath}`)).join("\n"))}i.add(o);const s=yield*loadFileChain(E(o),n,i,a);i.delete(o);if(!s)return false;mergeChain(e,s);return true}function mergeChain(e,t){e.options.push(...t.options);e.plugins.push(...t.plugins);e.presets.push(...t.presets);for(const r of t.files){e.files.add(r)}return e}function*mergeChainOpts(e,{options:t,plugins:r,presets:n}){e.options.push(t);e.plugins.push(...yield*r());e.presets.push(...yield*n());return e}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(e){const t=Object.assign({},e);delete t.extends;delete t.env;delete t.overrides;delete t.plugins;delete t.presets;delete t.passPerPreset;delete t.ignore;delete t.only;delete t.test;delete t.include;delete t.exclude;if(hasOwnProperty.call(t,"sourceMap")){t.sourceMaps=t.sourceMap;delete t.sourceMap}return t}function dedupDescriptors(e){const t=new Map;const r=[];for(const n of e){if(typeof n.value==="function"){const e=n.value;let i=t.get(e);if(!i){i=new Map;t.set(e,i)}let a=i.get(n.name);if(!a){a={value:n};r.push(a);if(!n.ownPass)i.set(n.name,a)}else{a.value=n}}else{r.push({value:n})}}return r.reduce(((e,t)=>{e.push(t.value);return e}),[])}function configIsApplicable({options:e},t,r,n){return(e.test===undefined||configFieldIsApplicable(r,e.test,t,n))&&(e.include===undefined||configFieldIsApplicable(r,e.include,t,n))&&(e.exclude===undefined||!configFieldIsApplicable(r,e.exclude,t,n))}function configFieldIsApplicable(e,t,r,n){const i=Array.isArray(t)?t:[t];return matchesPatterns(e,i,r,n)}function ignoreListReplacer(e,t){if(t instanceof RegExp){return String(t)}return t}function shouldIgnore(e,t,r,n){if(t&&matchesPatterns(e,t,n)){var i;const r=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,ignoreListReplacer)}\` from "${n}"`;d(r);if(e.showConfig){console.log(r)}return true}if(r&&!matchesPatterns(e,r,n)){var a;const t=`No config is applied to "${(a=e.filename)!=null?a:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,ignoreListReplacer)}\` from "${n}"`;d(t);if(e.showConfig){console.log(t)}return true}return false}function matchesPatterns(e,t,r,n){return t.some((t=>matchPattern(t,r,e.filename,e,n)))}function matchPattern(e,t,r,n,a){if(typeof e==="function"){return!!(0,o.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller})}if(typeof r!=="string"){throw new s.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`,a)}if(typeof e==="string"){e=(0,i.default)(e,t)}return e.test(r)}0&&0},90575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCachedDescriptors=createCachedDescriptors;t.createDescriptor=createDescriptor;t.createUncachedDescriptors=createUncachedDescriptors;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(45986);var i=r(57312);var a=r(26097);var o=r(82009);var s=r(39943);function isEqualDescriptor(e,t){var r,n,i,a;return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&((r=e.file)==null?void 0:r.request)===((n=t.file)==null?void 0:n.request)&&((i=e.file)==null?void 0:i.resolved)===((a=t.file)==null?void 0:a.resolved)}function*handlerOf(e){return e}function optionsWithResolvedBrowserslistConfigFile(e,t){if(typeof e.browserslistConfigFile==="string"){e.browserslistConfigFile=(0,s.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)}return e}function createCachedDescriptors(e,t,r){const{plugins:n,presets:i,passPerPreset:a}=t;return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:n?()=>d(n,e)(r):()=>handlerOf([]),presets:i?()=>l(i,e)(r)(!!a):()=>handlerOf([])}}function createUncachedDescriptors(e,t,r){return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:(0,n.once)((()=>createPluginDescriptors(t.plugins||[],e,r))),presets:(0,n.once)((()=>createPresetDescriptors(t.presets||[],e,r,!!t.passPerPreset)))}}const c=new WeakMap;const l=(0,o.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,o.makeStrongCacheSync)((t=>(0,o.makeStrongCache)((function*(n){const i=yield*createPresetDescriptors(e,r,t,n);return i.map((e=>loadCachedDescriptor(c,e)))}))))}));const u=new WeakMap;const d=(0,o.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,o.makeStrongCache)((function*(t){const n=yield*createPluginDescriptors(e,r,t);return n.map((e=>loadCachedDescriptor(u,e)))}))}));const p={};function loadCachedDescriptor(e,t){const{value:r,options:n=p}=t;if(n===false)return t;let i=e.get(r);if(!i){i=new WeakMap;e.set(r,i)}let a=i.get(n);if(!a){a=[];i.set(n,a)}if(!a.includes(t)){const e=a.filter((e=>isEqualDescriptor(e,t)));if(e.length>0){return e[0]}a.push(t)}return t}function*createPresetDescriptors(e,t,r,n){return yield*createDescriptors("preset",e,t,r,n)}function*createPluginDescriptors(e,t,r){return yield*createDescriptors("plugin",e,t,r)}function*createDescriptors(e,t,r,n,i){const a=yield*_gensync().all(t.map(((t,a)=>createDescriptor(t,r,{type:e,alias:`${n}$${a}`,ownPass:!!i}))));assertNoDuplicates(a);return a}function*createDescriptor(e,t,{type:r,alias:n,ownPass:o}){const s=(0,a.getItemDescriptor)(e);if(s){return s}let c;let l;let u=e;if(Array.isArray(u)){if(u.length===3){[u,l,c]=u}else{[u,l]=u}}let d=undefined;let p=null;if(typeof u==="string"){if(typeof r!=="string"){throw new Error("To resolve a string-based item, the type of item must be given")}const e=r==="plugin"?i.loadPlugin:i.loadPreset;const n=u;({filepath:p,value:u}=yield*e(u,t));d={request:n,resolved:p}}if(!u){throw new Error(`Unexpected falsy value: ${String(u)}`)}if(typeof u==="object"&&u.__esModule){if(u.default){u=u.default}else{throw new Error("Must export a default export when using ES6 modules.")}}if(typeof u!=="object"&&typeof u!=="function"){throw new Error(`Unsupported format: ${typeof u}. Expected an object or a function.`)}if(p!==null&&typeof u==="object"&&u){throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${p}`)}return{name:c,alias:p||n,value:u,options:l,dirname:t,ownPass:o,file:d}}function assertNoDuplicates(e){const t=new Map;for(const r of e){if(typeof r.value!=="function")continue;let n=t.get(r.value);if(!n){n=new Set;t.set(r.value,n)}if(n.has(r.name)){const t=e.filter((e=>e.value===r.value));throw new Error([`Duplicate plugin/preset detected.`,`If you'd like to use two separate instances of a plugin,`,`they need separate names, e.g.`,``,` plugins: [`,` ['some-plugin', {}],`,` ['some-plugin', {}, 'some unique name'],`,` ]`,``,`Duplicates detected are:`,`${JSON.stringify(t,null,2)}`].join("\n"))}n.add(r.name)}}0&&0},2346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ROOT_CONFIG_FILENAMES=void 0;t.findConfigUpwards=findConfigUpwards;t.findRelativeConfig=findRelativeConfig;t.findRootConfig=findRootConfig;t.loadConfig=loadConfig;t.resolveShowConfigPath=resolveShowConfigPath;function _debug(){const e=r(2830);_debug=function(){return e};return e}function _fs(){const e=r(79896);_fs=function(){return e};return e}function _path(){const e=r(16928);_path=function(){return e};return e}function _json(){const e=r(84841);_json=function(){return e};return e}function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(82009);var i=r(21551);var a=r(70329);var o=r(4850);var s=r(90932);var c=r(16664);var l=r(74244);r(73339);var u=r(80824);var d=r(97588);const p=_debug()("babel:config:loading:files:configuration");const g=t.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts","babel.config.ts","babel.config.mts"];const y=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"];const h=".babelignore";const _=(0,n.makeWeakCache)((function*runConfig(e,t){yield*[];return{options:(0,u.endHiddenCallStack)(e)((0,i.makeConfigAPI)(t)),cacheNeedsConfiguration:!t.configured()}}));function*readConfigCode(e,t){if(!_fs().existsSync(e))return null;let r=yield*(0,o.default)(e,(yield*(0,d.isAsync)())?"auto":"require","You appear to be using a native ECMAScript module configuration "+"file, which is only supported when running Babel asynchronously "+"or when using the Node.js `--experimental-require-module` flag.","You appear to be using a configuration file that contains top-level "+"await, which is only supported when running Babel asynchronously.");let n=false;if(typeof r==="function"){({options:r,cacheNeedsConfiguration:n}=yield*_(r,t))}if(!r||typeof r!=="object"||Array.isArray(r)){throw new c.default(`Configuration should be an exported JavaScript object.`,e)}if(typeof r.then==="function"){r.catch==null||r.catch((()=>{}));throw new c.default(`You appear to be using an async configuration, `+`which your current version of Babel does not support. `+`We may add support for this in the future, `+`but if you're on the most recent version of @babel/core and still `+`seeing this error, then you'll need to synchronously return your config.`,e)}if(n)throwConfigError(e);return buildConfigFileObject(r,e)}const A=new WeakMap;function buildConfigFileObject(e,t){let r=A.get(e);if(!r){A.set(e,r=new Map)}let n=r.get(t);if(!n){n={filepath:t,dirname:_path().dirname(t),options:e};r.set(t,n)}return n}const v=(0,n.makeWeakCacheSync)((e=>{const t=e.options.babel;if(t===undefined)return null;if(typeof t!=="object"||Array.isArray(t)||t===null){throw new c.default(`.babel property must be an object`,e.filepath)}return{filepath:e.filepath,dirname:e.dirname,options:t}}));const E=(0,a.makeStaticFileCache)(((e,t)=>{let r;try{r=_json().parse(t)}catch(t){throw new c.default(`Error while parsing config - ${t.message}`,e)}if(!r)throw new c.default(`No config detected`,e);if(typeof r!=="object"){throw new c.default(`Config returned typeof ${typeof r}`,e)}if(Array.isArray(r)){throw new c.default(`Expected config object but found array`,e)}delete r.$schema;return{filepath:e,dirname:_path().dirname(e),options:r}}));const T=(0,a.makeStaticFileCache)(((e,t)=>{const r=_path().dirname(e);const n=t.split("\n").map((e=>e.replace(/#.*$/,"").trim())).filter(Boolean);for(const t of n){if(t[0]==="!"){throw new c.default(`Negation of file paths is not supported.`,e)}}return{filepath:e,dirname:_path().dirname(e),ignore:n.map((e=>(0,s.default)(e,r)))}}));function findConfigUpwards(e){let t=e;for(;;){for(const e of g){if(_fs().existsSync(_path().join(t,e))){return t}}const e=_path().dirname(t);if(t===e)break;t=e}return null}function*findRelativeConfig(e,t,r){let n=null;let i=null;const a=_path().dirname(e.filepath);for(const s of e.directories){if(!n){var o;n=yield*loadOneConfig(y,s,t,r,((o=e.pkg)==null?void 0:o.dirname)===s?v(e.pkg):null)}if(!i){const e=_path().join(s,h);i=yield*T(e);if(i){p("Found ignore %o from %o.",i.filepath,a)}}}return{config:n,ignore:i}}function findRootConfig(e,t,r){return loadOneConfig(g,e,t,r)}function*loadOneConfig(e,t,r,n,i=null){const a=yield*_gensync().all(e.map((e=>readConfig(_path().join(t,e),r,n))));const o=a.reduce(((e,r)=>{if(r&&e){throw new c.default(`Multiple configuration files found. Please remove one:\n`+` - ${_path().basename(e.filepath)}\n`+` - ${r.filepath}\n`+`from ${t}`)}return r||e}),i);if(o){p("Found configuration %o from %o.",o.filepath,t)}return o}function*loadConfig(e,t,n,i){const a=(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(73339))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;i=new Error(`Cannot resolve module '${e}'`);i.code="MODULE_NOT_FOUND";throw i})(e,{paths:[t]});const o=yield*readConfig(a,n,i);if(!o){throw new c.default(`Config file contains no configuration data`,a)}p("Loaded config %o from %o.",e,t);return o}function readConfig(e,t,r){const n=_path().extname(e);switch(n){case".js":case".cjs":case".mjs":case".ts":case".cts":case".mts":return readConfigCode(e,{envName:t,caller:r});default:return E(e)}}function*resolveShowConfigPath(e){const t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){const r=_path().resolve(e,t);const n=yield*l.stat(r);if(!n.isFile()){throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`)}return r}return null}function throwConfigError(e){throw new c.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don't call this function again.\n api.cache(true);\n\n // Don't cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};`,e)}0&&0},57312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:true,get:function(){return i.ROOT_CONFIG_FILENAMES}});Object.defineProperty(t,"findConfigUpwards",{enumerable:true,get:function(){return i.findConfigUpwards}});Object.defineProperty(t,"findPackageData",{enumerable:true,get:function(){return n.findPackageData}});Object.defineProperty(t,"findRelativeConfig",{enumerable:true,get:function(){return i.findRelativeConfig}});Object.defineProperty(t,"findRootConfig",{enumerable:true,get:function(){return i.findRootConfig}});Object.defineProperty(t,"loadConfig",{enumerable:true,get:function(){return i.loadConfig}});Object.defineProperty(t,"loadPlugin",{enumerable:true,get:function(){return a.loadPlugin}});Object.defineProperty(t,"loadPreset",{enumerable:true,get:function(){return a.loadPreset}});Object.defineProperty(t,"resolvePlugin",{enumerable:true,get:function(){return a.resolvePlugin}});Object.defineProperty(t,"resolvePreset",{enumerable:true,get:function(){return a.resolvePreset}});Object.defineProperty(t,"resolveShowConfigPath",{enumerable:true,get:function(){return i.resolveShowConfigPath}});var n=r(68936);var i=r(2346);var a=r(57944);({});0&&0},4850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadCodeDefault;t.supportsESM=void 0;var n=r(97588);function _path(){const e=r(16928);_path=function(){return e};return e}function _url(){const e=r(87016);_url=function(){return e};return e}r(73339);function _semver(){const e=r(39318);_semver=function(){return e};return e}function _debug(){const e=r(2830);_debug=function(){return e};return e}var i=r(80824);var a=r(16664);var o=r(98676);function asyncGeneratorStep(e,t,r,n,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(void 0)}))}}const s=_debug()("babel:config:loading:files:module-types");{try{var c=r(96607)}catch(e){}}const l=t.supportsESM=_semver().satisfies(process.versions.node,"^12.17 || >=13.2");const u=new Set;function loadCjsDefault(e){if(u.has(e)){s("Auto-ignoring usage of config %o.",e);return{}}let t;try{u.add(e);t=(0,i.endHiddenCallStack)(require)(e)}finally{u.delete(e)}{return t!=null&&(t.__esModule||t[Symbol.toStringTag]==="Module")?t.default||(arguments[1]?t:undefined):t}}const d=(0,i.endHiddenCallStack)(function(){var e=_asyncToGenerator((function*(e){const t=(0,_url().pathToFileURL)(e).toString()+"?import";{if(!c){throw new a.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n",e)}return yield c(t)}}));function loadMjsFromPath(t){return e.apply(this,arguments)}return loadMjsFromPath}());const tsNotSupportedError=e=>`You are using a ${e} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install tsx to transpile ${e} files on the fly`;const p={".js":"unknown",".mjs":"esm",".cjs":"cjs",".ts":"unknown",".mts":"esm",".cts":"cjs"};const g=new Set;function*loadCodeDefault(e,t,r,i){let o;const s=_path().extname(e);const c=s===".ts"||s===".cts"||s===".mts";const l=p[hasOwnProperty.call(p,s)?s:".js"];const u=`${t} ${l}`;switch(u){case"require cjs":case"auto cjs":if(c){return ensureTsSupport(e,s,(()=>loadCjsDefault(e)))}else{return loadCjsDefault(e,arguments[2])}case"auto unknown":case"require unknown":case"require esm":try{if(c){return ensureTsSupport(e,s,(()=>loadCjsDefault(e)))}else{return loadCjsDefault(e,arguments[2])}}catch(t){if(t.code==="ERR_REQUIRE_ASYNC_MODULE"||t.code==="ERR_REQUIRE_CYCLE_MODULE"&&g.has(e)){g.add(e);if(!(o!=null?o:o=yield*(0,n.isAsync)())){throw new a.default(i,e)}}else if(t.code==="ERR_REQUIRE_ESM"||l==="esm"){}else{throw t}}case"auto esm":if(o!=null?o:o=yield*(0,n.isAsync)()){const t=c?ensureTsSupport(e,s,(()=>d(e))):d(e);return(yield*(0,n.waitFor)(t)).default}if(c){throw new a.default(tsNotSupportedError(s),e)}else{throw new a.default(r,e)}default:throw new Error("Internal Babel error: unreachable code.")}}function ensureTsSupport(e,t,n){if(process.features.typescript||require.extensions[".ts"]||require.extensions[".cts"]||require.extensions[".mts"]){return n()}if(t!==".cts"){throw new a.default(tsNotSupportedError(t),e)}const i={babelrc:false,configFile:false,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:_path().basename(e),presets:[[getTSPreset(e),Object.assign({onlyRemoveTypeImports:true,optimizeConstEnums:true},{allowDeclareFields:true})]]};let handler=function(e,t){if(handler&&t.endsWith(".cts")){try{return e._compile((0,o.transformFileSync)(t,Object.assign({},i,{filename:t})).code,t)}catch(e){const t=r(44926);if(_semver().lt(t.version,"7.21.4")){console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.")}throw e}}return require.extensions[".js"](e,t)};require.extensions[t]=handler;try{return n()}finally{if(require.extensions[t]===handler)delete require.extensions[t];handler=undefined}}function getTSPreset(e){try{return r(62119)}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";{if(process.versions.pnp){r+=`\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\t"@babel/core@*":\n\t\tpeerDependencies:\n\t\t\t"@babel/preset-typescript": "*"\n`}}throw new a.default(r,e)}}0&&0},68936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPackageData=findPackageData;function _path(){const e=r(16928);_path=function(){return e};return e}var n=r(70329);var i=r(16664);const a="package.json";const o=(0,n.makeStaticFileCache)(((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){throw new i.default(`Error while parsing JSON - ${t.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!=="object"){throw new i.default(`Config returned typeof ${typeof r}`,e)}if(Array.isArray(r)){throw new i.default(`Expected config object but found array`,e)}return{filepath:e,dirname:_path().dirname(e),options:r}}));function*findPackageData(e){let t=null;const r=[];let n=true;let i=_path().dirname(e);while(!t&&_path().basename(i)!=="node_modules"){r.push(i);t=yield*o(_path().join(i,a));const e=_path().dirname(i);if(i===e){n=false;break}i=e}return{filepath:e,directories:r,pkg:t,isPackage:n}}0&&0},57944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadPlugin=loadPlugin;t.loadPreset=loadPreset;t.resolvePreset=t.resolvePlugin=void 0;function _debug(){const e=r(2830);_debug=function(){return e};return e}function _path(){const e=r(16928);_path=function(){return e};return e}var n=r(97588);var i=r(4850);function _url(){const e=r(87016);_url=function(){return e};return e}var a=r(3432);r(73339);function _fs(){const e=r(79896);_fs=function(){return e};return e}const o=_debug()("babel:config:loading:files:plugins");const s=/^module:/;const c=/^(?!@|module:|[^/]+\/|babel-plugin-)/;const l=/^(?!@|module:|[^/]+\/|babel-preset-)/;const u=/^(@babel\/)(?!plugin-|[^/]+\/)/;const d=/^(@babel\/)(?!preset-|[^/]+\/)/;const p=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;const g=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;const y=/^(@(?!babel$)[^/]+)$/;const h=t.resolvePlugin=resolveStandardizedName.bind(null,"plugin");const _=t.resolvePreset=resolveStandardizedName.bind(null,"preset");function*loadPlugin(e,t){const{filepath:r,loader:i}=h(e,t,yield*(0,n.isAsync)());const a=yield*requireModule("plugin",i,r);o("Loaded plugin %o from %o.",e,t);return{filepath:r,value:a}}function*loadPreset(e,t){const{filepath:r,loader:i}=_(e,t,yield*(0,n.isAsync)());const a=yield*requireModule("preset",i,r);o("Loaded preset %o from %o.",e,t);return{filepath:r,value:a}}function standardizeName(e,t){if(_path().isAbsolute(t))return t;const r=e==="preset";return t.replace(r?l:c,`babel-${e}-`).replace(r?d:u,`$1${e}-`).replace(r?g:p,`$1babel-${e}-`).replace(y,`$1/babel-${e}`).replace(s,"")}function*resolveAlternativesHelper(e,t){const r=standardizeName(e,t);const{error:n,value:i}=yield r;if(!n)return i;if(n.code!=="MODULE_NOT_FOUND")throw n;if(r!==t&&!(yield t).error){n.message+=`\n- If you want to resolve "${t}", use "module:${t}"`}if(!(yield standardizeName(e,"@babel/"+t)).error){n.message+=`\n- Did you mean "@babel/${t}"?`}const a=e==="preset"?"plugin":"preset";if(!(yield standardizeName(a,t)).error){n.message+=`\n- Did you accidentally pass a ${a} as a ${e}?`}if(e==="plugin"){const e=r.replace("-proposal-","-transform-");if(e!==r&&!(yield e).error){n.message+=`\n- Did you mean "${e}"?`}}n.message+=`\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;throw n}function tryRequireResolve(e,t){try{if(t){return{error:null,value:(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(73339))=>{let i=n._findPath(e,n._nodeModulePaths(t).concat(t));if(i)return i;i=new Error(`Cannot resolve module '${e}'`);i.code="MODULE_NOT_FOUND";throw i})(e,{paths:[t]})}}else{return{error:null,value:require.resolve(e)}}}catch(e){return{error:e,value:null}}}function tryImportMetaResolve(e,t){try{return{error:null,value:(0,a.resolve)(e,t)}}catch(e){return{error:e,value:null}}}function resolveStandardizedNameForRequire(e,t,r){const n=resolveAlternativesHelper(e,t);let i=n.next();while(!i.done){i=n.next(tryRequireResolve(i.value,r))}return{loader:"require",filepath:i.value}}function resolveStandardizedNameForImport(e,t,r){const n=(0,_url().pathToFileURL)(_path().join(r,"./babel-virtual-resolve-base.js")).href;const i=resolveAlternativesHelper(e,t);let a=i.next();while(!a.done){a=i.next(tryImportMetaResolve(a.value,n))}return{loader:"auto",filepath:(0,_url().fileURLToPath)(a.value)}}function resolveStandardizedName(e,t,r,n){if(!i.supportsESM||!n){return resolveStandardizedNameForRequire(e,t,r)}try{const n=resolveStandardizedNameForImport(e,t,r);if(!(0,_fs().existsSync)(n.filepath)){throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"})}return n}catch(n){try{return resolveStandardizedNameForRequire(e,t,r)}catch(e){if(n.type==="MODULE_NOT_FOUND")throw n;if(e.type==="MODULE_NOT_FOUND")throw e;throw n}}}{var A=new Set}function*requireModule(e,t,r){{if(!(yield*(0,n.isAsync)())&&A.has(r)){throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored `+"and is trying to load itself while compiling itself, leading to a dependency cycle. "+'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.')}}try{{A.add(r)}{return yield*(0,i.default)(r,t,`You appear to be using a native ECMAScript module ${e}, `+"which is only supported when running Babel asynchronously "+"or when using the Node.js `--experimental-require-module` flag.",`You appear to be using a ${e} that contains top-level await, `+"which is only supported when running Babel asynchronously.",true)}}catch(e){e.message=`[BABEL]: ${e.message} (While processing: ${r})`;throw e}finally{{A.delete(r)}}}0&&0},70329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeStaticFileCache=makeStaticFileCache;var n=r(82009);var i=r(74244);function _fs2(){const e=r(79896);_fs2=function(){return e};return e}function makeStaticFileCache(e){return(0,n.makeStrongCache)((function*(t,r){const n=r.invalidate((()=>fileMtime(t)));if(n===null){return null}return e(t,yield*i.readFile(t,"utf8"))}))}function fileMtime(e){if(!_fs2().existsSync(e))return null;try{return+_fs2().statSync(e).mtime}catch(e){if(e.code!=="ENOENT"&&e.code!=="ENOTDIR")throw e}return null}0&&0},92363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(97588);var i=r(99570);var a=r(54301);var o=r(81685);var s=r(26097);var c=r(71784);var l=r(95642);function _traverse(){const e=r(50148);_traverse=function(){return e};return e}var u=r(82009);var d=r(89136);var p=r(92406);var g=r(21551);var y=r(21485);var h=r(16664);var _=t["default"]=_gensync()((function*loadFullConfig(e){var t;const r=yield*(0,y.default)(e);if(!r){return null}const{options:n,context:a,fileHandling:o}=r;if(o==="ignored"){return null}const c={};const{plugins:u,presets:p}=n;if(!u||!p){throw new Error("Assertion failure - plugins and presets exist")}const g=Object.assign({},a,{targets:n.targets});const toDescriptor=e=>{const t=(0,s.getItemDescriptor)(e);if(!t){throw new Error("Assertion failure - must be config item")}return t};const h=p.map(toDescriptor);const _=u.map(toDescriptor);const A=[[]];const v=[];const E=[];const T=yield*enhanceError(a,(function*recursePresetDescriptors(e,t){const r=[];for(let i=0;i0){A.splice(1,0,...r.map((e=>e.pass)).filter((e=>e!==t)));for(const{preset:e,pass:t}of r){if(!e)return true;t.push(...e.plugins);const r=yield*recursePresetDescriptors(e.presets,t);if(r)return true;e.options.forEach((e=>{(0,i.mergeOptions)(c,e)}))}}}))(h,A[0]);if(T)return null;const b=c;(0,i.mergeOptions)(b,n);const S=Object.assign({},g,{assumptions:(t=b.assumptions)!=null?t:{}});yield*enhanceError(a,(function*loadPluginDescriptors(){A[0].unshift(..._);for(const t of A){const r=[];v.push(r);for(let n=0;ne.length>0)).map((e=>({plugins:e})));b.passPerPreset=b.presets.length>0;return{options:b,passes:v,externalDependencies:(0,l.finalize)(E)}}));function enhanceError(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){if(!/^\[BABEL\]/.test(t.message)){var i;t.message=`[BABEL] ${(i=e.filename)!=null?i:"unknown file"}: ${t.message}`}throw t}}}const makeDescriptorLoader=e=>(0,u.makeWeakCache)((function*({value:t,options:r,dirname:i,alias:o},s){if(r===false)throw new Error("Assertion failure");r=r||{};const c=[];let u=t;if(typeof t==="function"){const l=(0,n.maybeAsync)(t,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);const d=Object.assign({},a,e(s,c));try{u=yield*l(d,r,i)}catch(e){if(o){e.message+=` (While processing: ${JSON.stringify(o)})`}throw e}}if(!u||typeof u!=="object"){throw new Error("Plugin/Preset did not return an object.")}if((0,n.isThenable)(u)){yield*[];throw new Error(`You appear to be using a promise as a plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version. `+`As an alternative, you can prefix the promise with "await". `+`(While processing: ${JSON.stringify(o)})`)}if(c.length>0&&(!s.configured()||s.mode()==="forever")){let e=`A plugin/preset has external untracked dependencies `+`(${c[0]}), but the cache `;if(!s.configured()){e+=`has not been configured to be invalidated when the external dependencies change. `}else{e+=` has been configured to never be invalidated. `}e+=`Plugins/presets should configure their cache to be invalidated when the external `+`dependencies change, for example using \`api.cache.invalidate(() => `+`statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n`+`(While processing: ${JSON.stringify(o)})`;throw new Error(e)}return{value:u,options:r,dirname:i,alias:o,externalDependencies:(0,l.finalize)(c)}}));const A=makeDescriptorLoader(g.makePluginAPI);const v=makeDescriptorLoader(g.makePresetAPI);const E=(0,u.makeWeakCache)((function*({value:e,options:t,dirname:r,alias:i,externalDependencies:a},s){const c=(0,p.validatePluginObject)(e);const u=Object.assign({},c);if(u.visitor){u.visitor=_traverse().default.explode(Object.assign({},u.visitor))}if(u.inherits){const e={name:undefined,alias:`${i}$inherits`,value:u.inherits,options:t,dirname:r};const o=yield*(0,n.forwardAsync)(loadPluginDescriptor,(t=>s.invalidate((r=>t(e,r)))));u.pre=chainMaybeAsync(o.pre,u.pre);u.post=chainMaybeAsync(o.post,u.post);u.manipulateOptions=chainMaybeAsync(o.manipulateOptions,u.manipulateOptions);u.visitor=_traverse().default.visitors.merge([o.visitor||{},u.visitor||{}]);if(o.externalDependencies.length>0){if(a.length===0){a=o.externalDependencies}else{a=(0,l.finalize)([a,o.externalDependencies])}}}return new o.default(u,t,i,a)}));function*loadPluginDescriptor(e,t){if(e.value instanceof o.default){if(e.options){throw new Error("Passed options to an existing Plugin instance will not work.")}return e.value}return yield*E(yield*A(e,t),t)}const needsFilename=e=>e&&typeof e!=="function";const validateIfOptionNeedsFilename=(e,t)=>{if(needsFilename(e.test)||needsFilename(e.include)||needsFilename(e.exclude)){const e=t.name?`"${t.name}"`:"/* your preset */";throw new h.default([`Preset ${e} requires a filename to be set when babel is called directly,`,`\`\`\``,`babel.transformSync(code, { filename: 'file.ts', presets: [${e}] });`,`\`\`\``,`See https://babeljs.io/docs/en/options#filename for more information.`].join("\n"))}};const validatePreset=(e,t,r)=>{if(!t.filename){var n;const{options:t}=e;validateIfOptionNeedsFilename(t,r);(n=t.overrides)==null||n.forEach((e=>validateIfOptionNeedsFilename(e,r)))}};const T=(0,u.makeWeakCacheSync)((({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,d.validate)("preset",e),alias:r,dirname:t,externalDependencies:n})));function*loadPresetDescriptor(e,t){const r=T(yield*v(e,t));validatePreset(r,t,e);return{chain:yield*(0,c.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function chainMaybeAsync(e,t){if(!e)return t;if(!t)return e;return function(...r){const n=e.apply(this,r);if(n&&typeof n.then==="function"){return n.then((()=>t.apply(this,r)))}return t.apply(this,r)}}0&&0},21551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeConfigAPI=makeConfigAPI;t.makePluginAPI=makePluginAPI;t.makePresetAPI=makePresetAPI;function _semver(){const e=r(39318);_semver=function(){return e};return e}var n=r(54301);var i=r(82009);function makeConfigAPI(e){const env=t=>e.using((e=>{if(t===undefined)return e.envName;if(typeof t==="function"){return(0,i.assertSimpleType)(t(e.envName))}return(Array.isArray(t)?t:[t]).some((t=>{if(typeof t!=="string"){throw new Error("Unexpected non-string value")}return t===e.envName}))}));const caller=t=>e.using((e=>(0,i.assertSimpleType)(t(e.caller))));return{version:n.version,cache:e.simple(),env:env,async:()=>false,caller:caller,assertVersion:assertVersion}}function makePresetAPI(e,t){const targets=()=>JSON.parse(e.using((e=>JSON.stringify(e.targets))));const addExternalDependency=e=>{t.push(e)};return Object.assign({},makeConfigAPI(e),{targets:targets,addExternalDependency:addExternalDependency})}function makePluginAPI(e,t){const assumption=t=>e.using((e=>e.assumptions[t]));return Object.assign({},makePresetAPI(e,t),{assumption:assumption})}function assertVersion(e){if(typeof e==="number"){if(!Number.isInteger(e)){throw new Error("Expected string or integer value.")}e=`^${e}.0.0-0`}if(typeof e!=="string"){throw new Error("Expected string or integer value.")}if(e==="*"||_semver().satisfies(n.version,e))return;const t=Error.stackTraceLimit;if(typeof t==="number"&&t<25){Error.stackTraceLimit=25}const r=new Error(`Requires Babel "${e}", but was loaded with "${n.version}". `+`If you are sure you have a compatible version of @babel/core, `+`it is likely that something in your build process is loading the `+`wrong version. Inspect the stack trace of this error to look for `+`the first entry that doesn't mention "@babel/core" or "babel-core" `+`to see what is calling Babel.`);if(typeof t==="number"){Error.stackTraceLimit=t}throw Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:n.version,range:e})}0&&0},95642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.finalize=finalize;t.flattenToSet=flattenToSet;function finalize(e){return Object.freeze(e)}function flattenToSet(e){const t=new Set;const r=[e];while(r.length>0){for(const e of r.pop()){if(Array.isArray(e))r.push(e);else t.add(e)}}return t}0&&0},77519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEnv=getEnv;function getEnv(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}0&&0},42600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigItem=createConfigItem;t.createConfigItemAsync=createConfigItemAsync;t.createConfigItemSync=createConfigItemSync;Object.defineProperty(t,"default",{enumerable:true,get:function(){return n.default}});t.loadOptions=loadOptions;t.loadOptionsAsync=loadOptionsAsync;t.loadOptionsSync=loadOptionsSync;t.loadPartialConfig=loadPartialConfig;t.loadPartialConfigAsync=loadPartialConfigAsync;t.loadPartialConfigSync=loadPartialConfigSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(92363);var i=r(21485);var a=r(26097);var o=r(80824);const s=_gensync()(i.loadPartialConfig);function loadPartialConfigAsync(...e){return(0,o.beginHiddenCallStack)(s.async)(...e)}function loadPartialConfigSync(...e){return(0,o.beginHiddenCallStack)(s.sync)(...e)}function loadPartialConfig(e,t){if(t!==undefined){(0,o.beginHiddenCallStack)(s.errback)(e,t)}else if(typeof e==="function"){(0,o.beginHiddenCallStack)(s.errback)(undefined,e)}else{{return loadPartialConfigSync(e)}}}function*loadOptionsImpl(e){var t;const r=yield*(0,n.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}const c=_gensync()(loadOptionsImpl);function loadOptionsAsync(...e){return(0,o.beginHiddenCallStack)(c.async)(...e)}function loadOptionsSync(...e){return(0,o.beginHiddenCallStack)(c.sync)(...e)}function loadOptions(e,t){if(t!==undefined){(0,o.beginHiddenCallStack)(c.errback)(e,t)}else if(typeof e==="function"){(0,o.beginHiddenCallStack)(c.errback)(undefined,e)}else{{return loadOptionsSync(e)}}}const l=_gensync()(a.createConfigItem);function createConfigItemAsync(...e){return(0,o.beginHiddenCallStack)(l.async)(...e)}function createConfigItemSync(...e){return(0,o.beginHiddenCallStack)(l.sync)(...e)}function createConfigItem(e,t,r){if(r!==undefined){(0,o.beginHiddenCallStack)(l.errback)(e,t,r)}else if(typeof t==="function"){(0,o.beginHiddenCallStack)(l.errback)(e,undefined,r)}else{{return createConfigItemSync(e,t)}}}0&&0},26097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigItem=createConfigItem;t.createItemFromDescriptor=createItemFromDescriptor;t.getItemDescriptor=getItemDescriptor;function _path(){const e=r(16928);_path=function(){return e};return e}var n=r(90575);function createItemFromDescriptor(e){return new ConfigItem(e)}function*createConfigItem(e,{dirname:t=".",type:r}={}){const i=yield*(0,n.createDescriptor)(e,_path().resolve(t),{type:r,alias:"programmatic item"});return createItemFromDescriptor(i)}const i=Symbol.for("@babel/core@7 - ConfigItem");function getItemDescriptor(e){if(e!=null&&e[i]){return e._descriptor}return undefined}class ConfigItem{constructor(e){this._descriptor=void 0;this[i]=true;this.value=void 0;this.options=void 0;this.dirname=void 0;this.name=void 0;this.file=void 0;this._descriptor=e;Object.defineProperty(this,"_descriptor",{enumerable:false});Object.defineProperty(this,i,{enumerable:false});this.value=this._descriptor.value;this.options=this._descriptor.options;this.dirname=this._descriptor.dirname;this.name=this._descriptor.name;this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:undefined;Object.freeze(this)}}Object.freeze(ConfigItem.prototype);0&&0},21485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadPrivatePartialConfig;t.loadPartialConfig=loadPartialConfig;function _path(){const e=r(16928);_path=function(){return e};return e}var n=r(81685);var i=r(99570);var a=r(26097);var o=r(71784);var s=r(77519);var c=r(89136);var l=r(57312);var u=r(39943);const d=["showIgnoredFiles"];function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function resolveRootMode(e,t){switch(t){case"root":return e;case"upward-optional":{const t=(0,l.findConfigUpwards)(e);return t===null?e:t}case"upward":{const t=(0,l.findConfigUpwards)(e);if(t!==null)return t;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not `+`be found when searching upward from "${e}".\n`+`One of the following config files must be in the directory tree: `+`"${l.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error(`Assertion failure - unknown rootMode value.`)}}function*loadPrivatePartialConfig(e){if(e!=null&&(typeof e!=="object"||Array.isArray(e))){throw new Error("Babel options must be an object, null, or undefined")}const t=e?(0,c.validate)("arguments",e):{};const{envName:r=(0,s.getEnv)(),cwd:n=".",root:d=".",rootMode:p="root",caller:g,cloneInputAst:y=true}=t;const h=_path().resolve(n);const _=resolveRootMode(_path().resolve(h,d),p);const A=typeof t.filename==="string"?_path().resolve(n,t.filename):undefined;const v=yield*(0,l.resolveShowConfigPath)(h);const E={filename:A,cwd:h,root:_,envName:r,caller:g,showConfig:v===A};const T=yield*(0,o.buildRootChain)(t,E);if(!T)return null;const b={assumptions:{}};T.options.forEach((e=>{(0,i.mergeOptions)(b,e)}));const S=Object.assign({},b,{targets:(0,u.resolveTargets)(b,_),cloneInputAst:y,babelrc:false,configFile:false,browserslistConfigFile:false,passPerPreset:false,envName:E.envName,cwd:E.cwd,root:E.root,rootMode:"root",filename:typeof E.filename==="string"?E.filename:undefined,plugins:T.plugins.map((e=>(0,a.createItemFromDescriptor)(e))),presets:T.presets.map((e=>(0,a.createItemFromDescriptor)(e)))});return{options:S,context:E,fileHandling:T.fileHandling,ignore:T.ignore,babelrc:T.babelrc,config:T.config,files:T.files}}function*loadPartialConfig(e){let t=false;if(typeof e==="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r);e=_objectWithoutPropertiesLoose(r,d);r}const i=yield*loadPrivatePartialConfig(e);if(!i)return null;const{options:a,babelrc:o,ignore:s,config:c,fileHandling:l,files:u}=i;if(l==="ignored"&&!t){return null}(a.plugins||[]).forEach((e=>{if(e.value instanceof n.default){throw new Error("Passing cached plugin instances is not supported in "+"babel.loadPartialConfig()")}}));return new PartialConfig(a,o?o.filepath:undefined,s?s.filepath:undefined,c?c.filepath:undefined,l,u)}class PartialConfig{constructor(e,t,r,n,i,a){this.options=void 0;this.babelrc=void 0;this.babelignore=void 0;this.config=void 0;this.fileHandling=void 0;this.files=void 0;this.options=e;this.babelignore=r;this.babelrc=t;this.config=n;this.fileHandling=i;this.files=a;Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==undefined||this.config!==undefined}}Object.freeze(PartialConfig.prototype);0&&0},90932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=pathToPattern;function _path(){const e=r(16928);_path=function(){return e};return e}const n=`\\${_path().sep}`;const i=`(?:${n}|$)`;const a=`[^${n}]+`;const o=`(?:${a}${n})`;const s=`(?:${a}${i})`;const c=`${o}*?`;const l=`${o}*?${s}?`;function escapeRegExp(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function pathToPattern(e,t){const r=_path().resolve(t,e).split(_path().sep);return new RegExp(["^",...r.map(((e,t)=>{const u=t===r.length-1;if(e==="**")return u?l:c;if(e==="*")return u?s:o;if(e.indexOf("*.")===0){return a+escapeRegExp(e.slice(1))+(u?i:n)}return escapeRegExp(e)+(u?i:n)}))].join(""))}0&&0},81685:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(95642);class Plugin{constructor(e,t,r,i=(0,n.finalize)([])){this.key=void 0;this.manipulateOptions=void 0;this.post=void 0;this.pre=void 0;this.visitor=void 0;this.parserOverride=void 0;this.generatorOverride=void 0;this.options=void 0;this.externalDependencies=void 0;this.key=e.name||r;this.manipulateOptions=e.manipulateOptions;this.post=e.post;this.pre=e.pre;this.visitor=e.visitor||{};this.parserOverride=e.parserOverride;this.generatorOverride=e.generatorOverride;this.options=t;this.externalDependencies=i}}t["default"]=Plugin;0&&0},76212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigPrinter=t.ChainFormatter=void 0;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}const n=t.ChainFormatter={Programmatic:0,Config:1};const i={title(e,t,r){let i="";if(e===n.Programmatic){i="programmatic options";if(t){i+=" from "+t}}else{i="config "+r}return i},loc(e,t){let r="";if(e!=null){r+=`.overrides[${e}]`}if(t!=null){r+=`.env["${t}"]`}return r},*optionsAndDescriptors(e){const t=Object.assign({},e.options);delete t.overrides;delete t.env;const r=[...yield*e.plugins()];if(r.length){t.plugins=r.map((e=>descriptorToConfig(e)))}const n=[...yield*e.presets()];if(n.length){t.presets=[...n].map((e=>descriptorToConfig(e)))}return JSON.stringify(t,undefined,2)}};function descriptorToConfig(e){var t;let r=(t=e.file)==null?void 0:t.request;if(r==null){if(typeof e.value==="object"){r=e.value}else if(typeof e.value==="function"){r=`[Function: ${e.value.toString().slice(0,50)} ... ]`}}if(r==null){r="[Unknown]"}if(e.options===undefined){return r}else if(e.name==null){return[r,e.options]}else{return[r,e.options,e.name]}}class ConfigPrinter{constructor(){this._stack=[]}configure(e,t,{callerName:r,filepath:n}){if(!e)return()=>{};return(e,i,a)=>{this._stack.push({type:t,callerName:r,filepath:n,content:e,index:i,envName:a})}}static*format(e){let t=i.title(e.type,e.callerName,e.filepath);const r=i.loc(e.index,e.envName);if(r)t+=` ${r}`;const n=yield*i.optionsAndDescriptors(e.content);return`${t}\n${n}`}*output(){if(this._stack.length===0)return"";const e=yield*_gensync().all(this._stack.map((e=>ConfigPrinter.format(e))));return e.join("\n\n")}}t.ConfigPrinter=ConfigPrinter;0&&0},39943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveBrowserslistConfigFile=resolveBrowserslistConfigFile;t.resolveTargets=resolveTargets;function _path(){const e=r(16928);_path=function(){return e};return e}function _helperCompilationTargets(){const e=r(56519);_helperCompilationTargets=function(){return e};return e}({});function resolveBrowserslistConfigFile(e,t){return _path().resolve(t,e)}function resolveTargets(e,t){const r=e.targets;let n;if(typeof r==="string"||Array.isArray(r)){n={browsers:r}}else if(r){if("esmodules"in r){n=Object.assign({},r,{esmodules:"intersect"})}else{n=r}}const{browserslistConfigFile:i}=e;let a;let o=false;if(typeof i==="string"){a=i}else{o=i===false}return(0,_helperCompilationTargets().default)(n,{ignoreBrowserslistConfig:o,configFile:a,configPath:t,browserslistEnv:e.browserslistEnv})}0&&0},99570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterableIterator=isIterableIterator;t.mergeOptions=mergeOptions;function mergeOptions(e,t){for(const r of Object.keys(t)){if((r==="parserOpts"||r==="generatorOpts"||r==="assumptions")&&t[r]){const n=t[r];const i=e[r]||(e[r]={});mergeDefaultFields(i,n)}else{const n=t[r];if(n!==undefined)e[r]=n}}}function mergeDefaultFields(e,t){for(const r of Object.keys(t)){const n=t[r];if(n!==undefined)e[r]=n}}function isIterableIterator(e){return!!e&&typeof e.next==="function"&&typeof e[Symbol.iterator]==="function"}0&&0},37923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.access=access;t.assertArray=assertArray;t.assertAssumptions=assertAssumptions;t.assertBabelrcSearch=assertBabelrcSearch;t.assertBoolean=assertBoolean;t.assertCallerMetadata=assertCallerMetadata;t.assertCompact=assertCompact;t.assertConfigApplicableTest=assertConfigApplicableTest;t.assertConfigFileSearch=assertConfigFileSearch;t.assertFunction=assertFunction;t.assertIgnoreList=assertIgnoreList;t.assertInputSourceMap=assertInputSourceMap;t.assertObject=assertObject;t.assertPluginList=assertPluginList;t.assertRootMode=assertRootMode;t.assertSourceMaps=assertSourceMaps;t.assertSourceType=assertSourceType;t.assertString=assertString;t.assertTargets=assertTargets;t.msg=msg;function _helperCompilationTargets(){const e=r(56519);_helperCompilationTargets=function(){return e};return e}var n=r(89136);function msg(e){switch(e.type){case"root":return``;case"env":return`${msg(e.parent)}.env["${e.name}"]`;case"overrides":return`${msg(e.parent)}.overrides[${e.index}]`;case"option":return`${msg(e.parent)}.${e.name}`;case"access":return`${msg(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function access(e,t){return{type:"access",name:t,parent:e}}function assertRootMode(e,t){if(t!==undefined&&t!=="root"&&t!=="upward"&&t!=="upward-optional"){throw new Error(`${msg(e)} must be a "root", "upward", "upward-optional" or undefined`)}return t}function assertSourceMaps(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="inline"&&t!=="both"){throw new Error(`${msg(e)} must be a boolean, "inline", "both", or undefined`)}return t}function assertCompact(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="auto"){throw new Error(`${msg(e)} must be a boolean, "auto", or undefined`)}return t}function assertSourceType(e,t){if(t!==undefined&&t!=="module"&&t!=="commonjs"&&t!=="script"&&t!=="unambiguous"){throw new Error(`${msg(e)} must be "module", "commonjs", "script", "unambiguous", or undefined`)}return t}function assertCallerMetadata(e,t){const r=assertObject(e,t);if(r){if(typeof r.name!=="string"){throw new Error(`${msg(e)} set but does not contain "name" property string`)}for(const t of Object.keys(r)){const n=access(e,t);const i=r[t];if(i!=null&&typeof i!=="boolean"&&typeof i!=="string"&&typeof i!=="number"){throw new Error(`${msg(n)} must be null, undefined, a boolean, a string, or a number.`)}}}return t}function assertInputSourceMap(e,t){if(t!==undefined&&typeof t!=="boolean"&&(typeof t!=="object"||!t)){throw new Error(`${msg(e)} must be a boolean, object, or undefined`)}return t}function assertString(e,t){if(t!==undefined&&typeof t!=="string"){throw new Error(`${msg(e)} must be a string, or undefined`)}return t}function assertFunction(e,t){if(t!==undefined&&typeof t!=="function"){throw new Error(`${msg(e)} must be a function, or undefined`)}return t}function assertBoolean(e,t){if(t!==undefined&&typeof t!=="boolean"){throw new Error(`${msg(e)} must be a boolean, or undefined`)}return t}function assertObject(e,t){if(t!==undefined&&(typeof t!=="object"||Array.isArray(t)||!t)){throw new Error(`${msg(e)} must be an object, or undefined`)}return t}function assertArray(e,t){if(t!=null&&!Array.isArray(t)){throw new Error(`${msg(e)} must be an array, or undefined`)}return t}function assertIgnoreList(e,t){const r=assertArray(e,t);r==null||r.forEach(((t,r)=>assertIgnoreItem(access(e,r),t)));return r}function assertIgnoreItem(e,t){if(typeof t!=="string"&&typeof t!=="function"&&!(t instanceof RegExp)){throw new Error(`${msg(e)} must be an array of string/Function/RegExp values, or undefined`)}return t}function assertConfigApplicableTest(e,t){if(t===undefined){return t}if(Array.isArray(t)){t.forEach(((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}}))}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a string/Function/RegExp, or an array of those`)}return t}function checkValidTest(e){return typeof e==="string"||typeof e==="function"||e instanceof RegExp}function assertConfigFileSearch(e,t){if(t!==undefined&&typeof t!=="boolean"&&typeof t!=="string"){throw new Error(`${msg(e)} must be a undefined, a boolean, a string, `+`got ${JSON.stringify(t)}`)}return t}function assertBabelrcSearch(e,t){if(t===undefined||typeof t==="boolean"){return t}if(Array.isArray(t)){t.forEach(((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}}))}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a undefined, a boolean, a string/Function/RegExp `+`or an array of those, got ${JSON.stringify(t)}`)}return t}function assertPluginList(e,t){const r=assertArray(e,t);if(r){r.forEach(((t,r)=>assertPluginItem(access(e,r),t)))}return r}function assertPluginItem(e,t){if(Array.isArray(t)){if(t.length===0){throw new Error(`${msg(e)} must include an object`)}if(t.length>3){throw new Error(`${msg(e)} may only be a two-tuple or three-tuple`)}assertPluginTarget(access(e,0),t[0]);if(t.length>1){const r=t[1];if(r!==undefined&&r!==false&&(typeof r!=="object"||Array.isArray(r)||r===null)){throw new Error(`${msg(access(e,1))} must be an object, false, or undefined`)}}if(t.length===3){const r=t[2];if(r!==undefined&&typeof r!=="string"){throw new Error(`${msg(access(e,2))} must be a string, or undefined`)}}}else{assertPluginTarget(e,t)}return t}function assertPluginTarget(e,t){if((typeof t!=="object"||!t)&&typeof t!=="string"&&typeof t!=="function"){throw new Error(`${msg(e)} must be a string, object, function`)}return t}function assertTargets(e,t){if((0,_helperCompilationTargets().isBrowsersQueryValid)(t))return t;if(typeof t!=="object"||!t||Array.isArray(t)){throw new Error(`${msg(e)} must be a string, an array of strings or an object`)}const r=access(e,"browsers");const n=access(e,"esmodules");assertBrowsersList(r,t.browsers);assertBoolean(n,t.esmodules);for(const r of Object.keys(t)){const n=t[r];const i=access(e,r);if(r==="esmodules")assertBoolean(i,n);else if(r==="browsers")assertBrowsersList(i,n);else if(!hasOwnProperty.call(_helperCompilationTargets().TargetNames,r)){const e=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(i)} is not a valid target. Supported targets are ${e}`)}else assertBrowserVersion(i,n)}return t}function assertBrowsersList(e,t){if(t!==undefined&&!(0,_helperCompilationTargets().isBrowsersQueryValid)(t)){throw new Error(`${msg(e)} must be undefined, a string or an array of strings`)}}function assertBrowserVersion(e,t){if(typeof t==="number"&&Math.round(t)===t)return;if(typeof t==="string")return;throw new Error(`${msg(e)} must be a string or an integer number`)}function assertAssumptions(e,t){if(t===undefined)return;if(typeof t!=="object"||t===null){throw new Error(`${msg(e)} must be an object or undefined.`)}let r=e;do{r=r.parent}while(r.type!=="root");const i=r.source==="preset";for(const r of Object.keys(t)){const a=access(e,r);if(!n.assumptionsNames.has(r)){throw new Error(`${msg(a)} is not a supported assumption.`)}if(typeof t[r]!=="boolean"){throw new Error(`${msg(a)} must be a boolean.`)}if(i&&t[r]===false){throw new Error(`${msg(a)} cannot be set to 'false' inside presets.`)}}return t}0&&0},89136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assumptionsNames=void 0;t.checkNoUnwrappedItemOptionPairs=checkNoUnwrappedItemOptionPairs;t.validate=validate;var n=r(31622);var i=r(37923);var a=r(16664);const o={cwd:i.assertString,root:i.assertString,rootMode:i.assertRootMode,configFile:i.assertConfigFileSearch,caller:i.assertCallerMetadata,filename:i.assertString,filenameRelative:i.assertString,code:i.assertBoolean,ast:i.assertBoolean,cloneInputAst:i.assertBoolean,envName:i.assertString};const s={babelrc:i.assertBoolean,babelrcRoots:i.assertBabelrcSearch};const c={extends:i.assertString,ignore:i.assertIgnoreList,only:i.assertIgnoreList,targets:i.assertTargets,browserslistConfigFile:i.assertConfigFileSearch,browserslistEnv:i.assertString};const l={inputSourceMap:i.assertInputSourceMap,presets:i.assertPluginList,plugins:i.assertPluginList,passPerPreset:i.assertBoolean,assumptions:i.assertAssumptions,env:assertEnvSet,overrides:assertOverridesList,test:i.assertConfigApplicableTest,include:i.assertConfigApplicableTest,exclude:i.assertConfigApplicableTest,retainLines:i.assertBoolean,comments:i.assertBoolean,shouldPrintComment:i.assertFunction,compact:i.assertCompact,minified:i.assertBoolean,auxiliaryCommentBefore:i.assertString,auxiliaryCommentAfter:i.assertString,sourceType:i.assertSourceType,wrapPluginVisitorMethod:i.assertFunction,highlightCode:i.assertBoolean,sourceMaps:i.assertSourceMaps,sourceMap:i.assertSourceMaps,sourceFileName:i.assertString,sourceRoot:i.assertString,parserOpts:i.assertObject,generatorOpts:i.assertObject};{Object.assign(l,{getModuleId:i.assertFunction,moduleRoot:i.assertString,moduleIds:i.assertBoolean,moduleId:i.assertString})}const u=["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","noUninitializedPrivateFieldAccess","objectRestNoSymbols","privateFieldsAsSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"];const d=t.assumptionsNames=new Set(u);function getSource(e){return e.type==="root"?e.source:getSource(e.parent)}function validate(e,t,r){try{return validateNested({type:"root",source:e},t)}catch(e){const t=new a.default(e.message,r);if(e.code)t.code=e.code;throw t}}function validateNested(e,t){const r=getSource(e);assertNoDuplicateSourcemap(t);Object.keys(t).forEach((n=>{const a={type:"option",name:n,parent:e};if(r==="preset"&&c[n]){throw new Error(`${(0,i.msg)(a)} is not allowed in preset options`)}if(r!=="arguments"&&o[n]){throw new Error(`${(0,i.msg)(a)} is only allowed in root programmatic options`)}if(r!=="arguments"&&r!=="configfile"&&s[n]){if(r==="babelrcfile"||r==="extendsfile"){throw new Error(`${(0,i.msg)(a)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, `+`or babel.config.js/config file options`)}throw new Error(`${(0,i.msg)(a)} is only allowed in root programmatic options, or babel.config.js/config file options`)}const u=l[n]||c[n]||s[n]||o[n]||throwUnknownError;u(a,t[n])}));return t}function throwUnknownError(e){const t=e.name;if(n.default[t]){const{message:r,version:a=5}=n.default[t];throw new Error(`Using removed Babel ${a} option: ${(0,i.msg)(e)} - ${r}`)}else{const t=new Error(`Unknown option: ${(0,i.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);t.code="BABEL_UNKNOWN_OPTION";throw t}}function assertNoDuplicateSourcemap(e){if(hasOwnProperty.call(e,"sourceMap")&&hasOwnProperty.call(e,"sourceMaps")){throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}}function assertEnvSet(e,t){if(e.parent.type==="env"){throw new Error(`${(0,i.msg)(e)} is not allowed inside of another .env block`)}const r=e.parent;const n=(0,i.assertObject)(e,t);if(n){for(const t of Object.keys(n)){const a=(0,i.assertObject)((0,i.access)(e,t),n[t]);if(!a)continue;const o={type:"env",name:t,parent:r};validateNested(o,a)}}return n}function assertOverridesList(e,t){if(e.parent.type==="env"){throw new Error(`${(0,i.msg)(e)} is not allowed inside an .env block`)}if(e.parent.type==="overrides"){throw new Error(`${(0,i.msg)(e)} is not allowed inside an .overrides block`)}const r=e.parent;const n=(0,i.assertArray)(e,t);if(n){for(const[t,a]of n.entries()){const n=(0,i.access)(e,t);const o=(0,i.assertObject)(n,a);if(!o)throw new Error(`${(0,i.msg)(n)} must be an object`);const s={type:"overrides",index:t,parent:r};validateNested(s,o)}}return n}function checkNoUnwrappedItemOptionPairs(e,t,r,n){if(t===0)return;const i=e[t-1];const a=e[t];if(i.file&&i.options===undefined&&typeof a.value==="object"){n.message+=`\n- Maybe you meant to use\n`+`"${r}s": [\n ["${i.file.request}", ${JSON.stringify(a.value,undefined,2)}]\n]\n`+`To be a valid ${r}, its name and options should be wrapped in a pair of brackets`}}0&&0},92406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePluginObject=validatePluginObject;var n=r(37923);const i={name:n.assertString,manipulateOptions:n.assertFunction,pre:n.assertFunction,post:n.assertFunction,inherits:n.assertFunction,visitor:assertVisitorMap,parserOverride:n.assertFunction,generatorOverride:n.assertFunction};function assertVisitorMap(e,t){const r=(0,n.assertObject)(e,t);if(r){Object.keys(r).forEach((e=>{if(e!=="_exploded"&&e!=="_verified"){assertVisitorHandler(e,r[e])}}));if(r.enter||r.exit){throw new Error(`${(0,n.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`)}}return r}function assertVisitorHandler(e,t){if(t&&typeof t==="object"){Object.keys(t).forEach((t=>{if(t!=="enter"&&t!=="exit"){throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)}}))}else if(typeof t!=="function"){throw new Error(`.visitor["${e}"] must be a function`)}}function validatePluginObject(e){const t={type:"root",source:"plugin"};Object.keys(e).forEach((r=>{const n=i[r];if(n){const i={type:"option",name:r,parent:t};n(i,e[r])}else{const e=new Error(`.${r} is not a valid Plugin property`);e.code="BABEL_UNKNOWN_PLUGIN_PROPERTY";throw e}}));return e}0&&0},31622:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=t["default"]={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. "+"Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. "+"Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using "+"or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. "+"Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. "+"Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the "+"tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling "+"that calls Babel to assign `map.file` themselves."}};0&&0},16664:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(80824);class ConfigError extends Error{constructor(e,t){super(e);(0,n.expectedError)(this);if(t)(0,n.injectVirtualStackFrame)(this,t)}}t["default"]=ConfigError;0&&0},80824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.beginHiddenCallStack=beginHiddenCallStack;t.endHiddenCallStack=endHiddenCallStack;t.expectedError=expectedError;t.injectVirtualStackFrame=injectVirtualStackFrame;var r;const n=Function.call.bind(Error.prototype.toString);const i=!!Error.captureStackTrace&&((r=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))==null?void 0:r.writable)===true;const a="startHiding - secret - don't use this - v1";const o="stopHiding - secret - don't use this - v1";const s=new WeakSet;const c=new WeakMap;function CallSite(e){return Object.create({isNative:()=>false,isConstructor:()=>false,isToplevel:()=>true,getFileName:()=>e,getLineNumber:()=>undefined,getColumnNumber:()=>undefined,getFunctionName:()=>undefined,getMethodName:()=>undefined,getTypeName:()=>undefined,toString:()=>e})}function injectVirtualStackFrame(e,t){if(!i)return;let r=c.get(e);if(!r)c.set(e,r=[]);r.push(CallSite(t));return e}function expectedError(e){if(!i)return;s.add(e);return e}function beginHiddenCallStack(e){if(!i)return e;return Object.defineProperty((function(...t){setupPrepareStackTrace();return e(...t)}),"name",{value:o})}function endHiddenCallStack(e){if(!i)return e;return Object.defineProperty((function(...t){return e(...t)}),"name",{value:a})}function setupPrepareStackTrace(){setupPrepareStackTrace=()=>{};const{prepareStackTrace:e=defaultPrepareStackTrace}=Error;const t=50;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,t));Error.prepareStackTrace=function stackTraceRewriter(t,r){let n=[];const i=s.has(t);let l=i?"hiding":"unknown";for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forwardAsync=forwardAsync;t.isAsync=void 0;t.isThenable=isThenable;t.maybeAsync=maybeAsync;t.waitFor=t.onFirstPause=void 0;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}function asyncGeneratorStep(e,t,r,n,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function _next(e){asyncGeneratorStep(a,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,n,i,_next,_throw,"throw",e)}_next(void 0)}))}}const n=_gensync()((function*(e){return yield*e}));const i=t.isAsync=_gensync()({sync:()=>false,errback:e=>e(null,true)});function maybeAsync(e,t){return _gensync()({sync(...r){const n=e.apply(this,r);if(isThenable(n))throw new Error(t);return n},async(...t){return Promise.resolve(e.apply(this,t))}})}const a=_gensync()({sync:e=>e("sync"),async:function(){var e=_asyncToGenerator((function*(e){return e("async")}));return function async(t){return e.apply(this,arguments)}}()});function forwardAsync(e,t){const r=_gensync()(e);return a((e=>{const n=r[e];return t(n)}))}const o=t.onFirstPause=_gensync()({name:"onFirstPause",arity:2,sync:function(e){return n.sync(e)},errback:function(e,t,r){let i=false;n.errback(e,((e,t)=>{i=true;r(e,t)}));if(!i){t()}}});const s=t.waitFor=_gensync()({sync:e=>e,async:function(){var e=_asyncToGenerator((function*(e){return e}));return function async(t){return e.apply(this,arguments)}}()});function isThenable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!!e.then&&typeof e.then==="function"}0&&0},74244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stat=t.readFile=void 0;function _fs(){const e=r(79896);_fs=function(){return e};return e}function _gensync(){const e=r(9621);_gensync=function(){return e};return e}const n=t.readFile=_gensync()({sync:_fs().readFileSync,errback:_fs().readFile});const i=t.stat=_gensync()({sync:_fs().statSync,errback:_fs().stat});0&&0},45986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.once=once;var n=r(97588);function once(e){let t;let r;let i=false;return function*(){if(!t){if(r){i=true;return yield*(0,n.waitFor)(r)}if(!(yield*(0,n.isAsync)())){try{t={ok:true,value:yield*e()}}catch(e){t={ok:false,value:e}}}else{let n,a;r=new Promise(((e,t)=>{n=e;a=t}));try{t={ok:true,value:yield*e()};r=null;if(i)n(t.value)}catch(e){t={ok:false,value:e};r=null;if(i)a(e)}}}if(t.ok)return t.value;else throw t.value}}0&&0},54301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_EXTENSIONS=void 0;Object.defineProperty(t,"File",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"buildExternalHelpers",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"createConfigItem",{enumerable:true,get:function(){return s.createConfigItem}});Object.defineProperty(t,"createConfigItemAsync",{enumerable:true,get:function(){return s.createConfigItemAsync}});Object.defineProperty(t,"createConfigItemSync",{enumerable:true,get:function(){return s.createConfigItemSync}});Object.defineProperty(t,"getEnv",{enumerable:true,get:function(){return o.getEnv}});Object.defineProperty(t,"loadOptions",{enumerable:true,get:function(){return s.loadOptions}});Object.defineProperty(t,"loadOptionsAsync",{enumerable:true,get:function(){return s.loadOptionsAsync}});Object.defineProperty(t,"loadOptionsSync",{enumerable:true,get:function(){return s.loadOptionsSync}});Object.defineProperty(t,"loadPartialConfig",{enumerable:true,get:function(){return s.loadPartialConfig}});Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:true,get:function(){return s.loadPartialConfigAsync}});Object.defineProperty(t,"loadPartialConfigSync",{enumerable:true,get:function(){return s.loadPartialConfigSync}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return d.parse}});Object.defineProperty(t,"parseAsync",{enumerable:true,get:function(){return d.parseAsync}});Object.defineProperty(t,"parseSync",{enumerable:true,get:function(){return d.parseSync}});t.resolvePreset=t.resolvePlugin=void 0;Object.defineProperty((0,t),"template",{enumerable:true,get:function(){return _template().default}});Object.defineProperty((0,t),"tokTypes",{enumerable:true,get:function(){return _parser().tokTypes}});Object.defineProperty(t,"transform",{enumerable:true,get:function(){return c.transform}});Object.defineProperty(t,"transformAsync",{enumerable:true,get:function(){return c.transformAsync}});Object.defineProperty(t,"transformFile",{enumerable:true,get:function(){return l.transformFile}});Object.defineProperty(t,"transformFileAsync",{enumerable:true,get:function(){return l.transformFileAsync}});Object.defineProperty(t,"transformFileSync",{enumerable:true,get:function(){return l.transformFileSync}});Object.defineProperty(t,"transformFromAst",{enumerable:true,get:function(){return u.transformFromAst}});Object.defineProperty(t,"transformFromAstAsync",{enumerable:true,get:function(){return u.transformFromAstAsync}});Object.defineProperty(t,"transformFromAstSync",{enumerable:true,get:function(){return u.transformFromAstSync}});Object.defineProperty(t,"transformSync",{enumerable:true,get:function(){return c.transformSync}});Object.defineProperty((0,t),"traverse",{enumerable:true,get:function(){return _traverse().default}});t.version=t.types=void 0;var n=r(95430);var i=r(33405);var a=r(57312);var o=r(77519);function _types(){const e=r(16535);_types=function(){return e};return e}Object.defineProperty((0,t),"types",{enumerable:true,get:function(){return _types()}});function _parser(){const e=r(5429);_parser=function(){return e};return e}function _traverse(){const e=r(50148);_traverse=function(){return e};return e}function _template(){const e=r(19648);_template=function(){return e};return e}var s=r(42600);var c=r(17129);var l=r(98676);var u=r(11468);var d=r(74146);const p=t.version="7.28.0";const resolvePlugin=(e,t)=>a.resolvePlugin(e,t,false).filepath;t.resolvePlugin=resolvePlugin;const resolvePreset=(e,t)=>a.resolvePreset(e,t,false).filepath;t.resolvePreset=resolvePreset;const g=t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);{t.OptionManager=class OptionManager{init(e){return(0,s.loadOptionsSync)(e)}};t.Plugin=function Plugin(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}}0&&0},74146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parse=void 0;t.parseAsync=parseAsync;t.parseSync=parseSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(42600);var i=r(90321);var a=r(87471);var o=r(80824);const s=_gensync()((function*parse(e,t){const r=yield*(0,n.default)(t);if(r===null){return null}return yield*(0,i.default)(r.passes,(0,a.default)(r),e)}));const c=t.parse=function parse(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(r===undefined){{return(0,o.beginHiddenCallStack)(s.sync)(e,t)}}(0,o.beginHiddenCallStack)(s.errback)(e,t,r)};function parseSync(...e){return(0,o.beginHiddenCallStack)(s.sync)(...e)}function parseAsync(...e){return(0,o.beginHiddenCallStack)(s.async)(...e)}0&&0},90321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=parser;function _parser(){const e=r(5429);_parser=function(){return e};return e}function _codeFrame(){const e=r(90147);_codeFrame=function(){return e};return e}var n=r(37349);function*parser(e,{parserOpts:t,highlightCode:r=true,filename:i="unknown"},a){try{const r=[];for(const n of e){for(const e of n){const{parserOverride:n}=e;if(n){const e=n(a,t,_parser().parse);if(e!==undefined)r.push(e)}}}if(r.length===0){return(0,_parser().parse)(a,t)}else if(r.length===1){yield*[];if(typeof r[0].then==="function"){throw new Error(`You appear to be using an async parser plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}return r[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(e){if(e.code==="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"){e.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module "+"or sourceType:unambiguous in your Babel config for this file."}const{loc:t,missingPlugin:o}=e;if(t){const s=(0,_codeFrame().codeFrameColumns)(a,{start:{line:t.line,column:t.column+1}},{highlightCode:r});if(o){e.message=`${i}: `+(0,n.default)(o[0],t,s,i)}else{e.message=`${i}: ${e.message}\n\n`+s}e.code="BABEL_PARSE_ERROR"}throw e}}0&&0},37349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateMissingPluginMessage;const r={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}}};{Object.assign(r,{asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-transform-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-private-methods",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"},transform:{name:"@babel/plugin-transform-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"},transform:{name:"@babel/plugin-transform-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"}},importAttributes:{syntax:{name:"@babel/plugin-syntax-import-attributes",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"},transform:{name:"@babel/plugin-transform-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"},transform:{name:"@babel/plugin-transform-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"},transform:{name:"@babel/plugin-transform-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"},transform:{name:"@babel/plugin-transform-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"},transform:{name:"@babel/plugin-transform-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"},transform:{name:"@babel/plugin-transform-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"},transform:{name:"@babel/plugin-transform-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object"}},regexpUnicodeSets:{syntax:{name:"@babel/plugin-syntax-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"},transform:{name:"@babel/plugin-transform-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"}}})}const getNameURLCombination=({name:e,url:t})=>`${e} (${t})`;function generateMissingPluginMessage(e,t,n,i){let a=`Support for the experimental syntax '${e}' isn't currently enabled `+`(${t.line}:${t.column+1}):\n\n`+n;const o=r[e];if(o){const{syntax:e,transform:t}=o;if(e){const r=getNameURLCombination(e);if(t){const e=getNameURLCombination(t);const n=t.name.startsWith("@babel/plugin")?"plugins":"presets";a+=`\n\nAdd ${e} to the '${n}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${r} to the 'plugins' section to enable parsing.`}else{a+=`\n\nAdd ${r} to the 'plugins' section of your Babel config `+`to enable parsing.`}}}const s=i==="unknown"?"":i;a+=`\n\nIf you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:\n\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${s} \nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.\n`;return a}0&&0},33405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;function helpers(){const e=r(71475);helpers=function(){return e};return e}function _generator(){const e=r(12123);_generator=function(){return e};return e}function _template(){const e=r(19648);_template=function(){return e};return e}function _t(){const e=r(16535);_t=function(){return e};return e}const{arrayExpression:n,assignmentExpression:i,binaryExpression:a,blockStatement:o,callExpression:s,cloneNode:c,conditionalExpression:l,exportNamedDeclaration:u,exportSpecifier:d,expressionStatement:p,functionExpression:g,identifier:y,memberExpression:h,objectExpression:_,program:A,stringLiteral:v,unaryExpression:E,variableDeclaration:T,variableDeclarator:b}=_t();const buildUmdWrapper=e=>_template().default.statement` (function (root, factory) { if (typeof define === "function" && define.amd) { define(AMD_ARGUMENTS, factory); @@ -14,27 +83,44 @@ module.exports=function(e,t){"use strict";var r={};function __webpack_require__( })(UMD_ROOT, function (FACTORY_PARAMETERS) { FACTORY_BODY }); - `(e);function buildGlobal(e){const t=g("babelHelpers");const r=[];const n=m(null,[g("global")],o(r));const i=y([f(c(n,[l(s("===",T("typeof",g("global")),v("undefined")),g("self"),g("global"))]))]);r.push(S("var",[b(t,a("=",_(g("global"),t),h([])))]));buildHelpers(r,t,e);return i}function buildModule(e){const t=[];const r=buildHelpers(t,null,e);t.unshift(p(null,Object.keys(r).map(e=>{return d(u(r[e]),g(e))})));return y(t,[],"module")}function buildUmd(e){const t=g("babelHelpers");const r=[];r.push(S("var",[b(t,g("global"))]));buildHelpers(r,t,e);return y([E({FACTORY_PARAMETERS:g("global"),BROWSER_ARGUMENTS:a("=",_(g("root"),t),h([])),COMMON_ARGUMENTS:g("exports"),AMD_ARGUMENTS:i([v("exports")]),FACTORY_BODY:r,UMD_ROOT:g("this")})])}function buildVar(e){const t=g("babelHelpers");const r=[];r.push(S("var",[b(t,h([]))]));const n=y(r);buildHelpers(r,t,e);r.push(f(t));return n}function buildHelpers(e,t,r){const i=e=>{return t?_(t,g(e)):g(`_${e}`)};const a={};helpers().list.forEach(function(t){if(r&&r.indexOf(t)<0)return;const s=a[t]=i(t);helpers().ensure(t,n.default);const{nodes:o}=helpers().get(t,i,s);e.push(...o)});return a}function _default(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(n){r=n(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}},3226:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Bearer "+this.token}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){e.headers["Authorization"]="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return false}handleAuthentication(e,t,r){return null}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},3231:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statSync=t.stat=t.Settings=void 0;const n=r(2728);const i=r(2593);const a=r(6872);t.Settings=a.default;function stat(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.stat=stat;function statSync(e,t){const r=getSettings(t);return i.read(e,r)}t.statSync=statSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},3237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=removeComments;var n=r(9068);function removeComments(e){n.COMMENT_KEYS.forEach(t=>{e[t]=null});return e}},3240:function(e,t,r){r(4245);e.exports=r(5496).Object.getOwnPropertySymbols},3242:function(e,t,r){var n=r(7864);function isObject(e){return n(e,"Object")}e.exports=isObject},3248:function(e,t,r){r(680)("WeakMap")},3261:function(e,t,r){var n=r(3878);var i="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=n&&t===undefined?i:t;return this}e.exports=hashSet},3269:function(e){var t=/\w*$/;function cloneRegExp(e){var r=new e.constructor(e.source,t.exec(e));r.lastIndex=e.lastIndex;return r}e.exports=cloneRegExp},3287:function(e){function prop(e){return function(t){return t[e]}}e.exports=prop},3292:function(e,t,r){var n=r(6817),i=r(5382),a=r(3083);var s=!i?a:function(e,t){return i(e,"toString",{configurable:true,enumerable:false,value:n(t),writable:true})};e.exports=s},3303:function(e,t,r){r(252)("WeakMap")},3304:function(e,t,r){var n=r(7864);var i=Array.isArray||function(e){return n(e,"Array")};e.exports=i},3317:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2444);class EntryTransformer{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute){t=n.path.makeAbsolute(this._settings.cwd,t);t=n.path.unixify(t)}if(this._settings.markDirectories&&e.dirent.isDirectory()){t+="/"}if(!this._settings.objectMode){return t}return Object.assign(Object.assign({},e),{path:t})}}t.default=EntryTransformer},3331:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},3334:function(e,t,r){var n=r(6498);var i=n?n.prototype:undefined,a=i?i.valueOf:undefined;function cloneSymbol(e){return a?Object(a.call(e)):{}}e.exports=cloneSymbol},3366:function(e,t,r){"use strict";t.__esModule=true;var n=r(5013);var i=_interopRequireDefault(n);var a=r(3574);var s=_interopRequireDefault(a);var o=r(2979);var c=_interopRequireDefault(o);t.isBinding=isBinding;t.isReferenced=isReferenced;t.isValidIdentifier=isValidIdentifier;t.isLet=isLet;t.isBlockScoped=isBlockScoped;t.isVar=isVar;t.isSpecifierDefault=isSpecifierDefault;t.isScope=isScope;t.isImmutable=isImmutable;t.isNodesEquivalent=isNodesEquivalent;var u=r(3697);var l=r(2178);var p=_interopRequireDefault(l);var d=r(8011);var f=_interopRequireWildcard(d);var m=r(4450);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function isBinding(e,t){var r=u.getBindingIdentifiers.keys[t.type];if(r){for(var n=0;n=0)return true}else{if(a===e)return true}}}return false}function isReferenced(e,t){switch(t.type){case"BindExpression":return t.object===e||t.callee===e;case"MemberExpression":case"JSXMemberExpression":if(t.property===e&&t.computed){return true}else if(t.object===e){return true}else{return false}case"MetaProperty":return false;case"ObjectProperty":if(t.key===e){return t.computed}case"VariableDeclarator":return t.id!==e;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":for(var r=t.params,n=Array.isArray(r),i=0,r=n?r:(0,c.default)(r);;){var a;if(n){if(i>=r.length)break;a=r[i++]}else{i=r.next();if(i.done)break;a=i.value}var s=a;if(s===e)return false}return t.id!==e;case"ExportSpecifier":if(t.source){return false}else{return t.local===e}case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return false;case"JSXAttribute":return t.name!==e;case"ClassProperty":if(t.key===e){return t.computed}else{return t.value===e}case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return false;case"ClassDeclaration":case"ClassExpression":return t.id!==e;case"ClassMethod":case"ObjectMethod":return t.key===e&&t.computed;case"LabeledStatement":return false;case"CatchClause":return t.param!==e;case"RestElement":return false;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"ObjectPattern":case"ArrayPattern":return false}return true}function isValidIdentifier(e){if(typeof e!=="string"||p.default.keyword.isReservedWordES6(e,true)){return false}else if(e==="await"){return false}else{return p.default.keyword.isIdentifierNameES6(e)}}function isLet(e){return f.isVariableDeclaration(e)&&(e.kind!=="var"||e[m.BLOCK_SCOPED_SYMBOL])}function isBlockScoped(e){return f.isFunctionDeclaration(e)||f.isClassDeclaration(e)||f.isLet(e)}function isVar(e){return f.isVariableDeclaration(e,{kind:"var"})&&!e[m.BLOCK_SCOPED_SYMBOL]}function isSpecifierDefault(e){return f.isImportDefaultSpecifier(e)||f.isIdentifier(e.imported||e.exported,{name:"default"})}function isScope(e,t){if(f.isBlockStatement(e)&&f.isFunction(t,{body:e})){return false}return f.isScopable(e)}function isImmutable(e){if(f.isType(e.type,"Immutable"))return true;if(f.isIdentifier(e)){if(e.name==="undefined"){return true}else{return false}}return false}function isNodesEquivalent(e,t){if((typeof e==="undefined"?"undefined":(0,s.default)(e))!=="object"||(typeof e==="undefined"?"undefined":(0,s.default)(e))!=="object"||e==null||t==null){return e===t}if(e.type!==t.type){return false}var r=(0,i.default)(f.NODE_FIELDS[e.type]||e.type);for(var n=r,a=Array.isArray(n),o=0,n=a?n:(0,c.default)(n);;){var u;if(a){if(o>=n.length)break;u=n[o++]}else{o=n.next();if(o.done)break;u=o.value}var l=u;if((0,s.default)(e[l])!==(0,s.default)(t[l])){return false}if(Array.isArray(e[l])){if(!Array.isArray(t[l])){return false}if(e[l].length!==t[l].length){return false}for(var p=0;p{const i={type:"option",name:n,parent:e};if(r==="preset"&&c[n]){throw new Error(`${(0,a.msg)(i)} is not allowed in preset options`)}if(r!=="arguments"&&s[n]){throw new Error(`${(0,a.msg)(i)} is only allowed in root programmatic options`)}if(r!=="arguments"&&r!=="configfile"&&o[n]){if(r==="babelrcfile"||r==="extendsfile"){throw new Error(`${(0,a.msg)(i)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, `+`or babel.config.js/config file options`)}throw new Error(`${(0,a.msg)(i)} is only allowed in root programmatic options, or babel.config.js/config file options`)}const l=u[n]||c[n]||o[n]||s[n]||throwUnknownError;l(i,t[n])});return t}function throwUnknownError(e){const t=e.name;if(i.default[t]){const{message:r,version:n=5}=i.default[t];throw new Error(`Using removed Babel ${n} option: ${(0,a.msg)(e)} - ${r}`)}else{const t=new Error(`Unknown option: ${(0,a.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);t.code="BABEL_UNKNOWN_OPTION";throw t}}function has(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function assertNoDuplicateSourcemap(e){if(has(e,"sourceMap")&&has(e,"sourceMaps")){throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}}function assertEnvSet(e,t){if(e.parent.type==="env"){throw new Error(`${(0,a.msg)(e)} is not allowed inside of another .env block`)}const r=e.parent;const n=(0,a.assertObject)(e,t);if(n){for(const t of Object.keys(n)){const i=(0,a.assertObject)((0,a.access)(e,t),n[t]);if(!i)continue;const s={type:"env",name:t,parent:r};validateNested(s,i)}}return n}function assertOverridesList(e,t){if(e.parent.type==="env"){throw new Error(`${(0,a.msg)(e)} is not allowed inside an .env block`)}if(e.parent.type==="overrides"){throw new Error(`${(0,a.msg)(e)} is not allowed inside an .overrides block`)}const r=e.parent;const n=(0,a.assertArray)(e,t);if(n){for(const[t,i]of n.entries()){const n=(0,a.access)(e,t);const s=(0,a.assertObject)(n,i);if(!s)throw new Error(`${(0,a.msg)(n)} must be an object`);const o={type:"overrides",index:t,parent:r};validateNested(o,s)}}return n}function checkNoUnwrappedItemOptionPairs(e,t,r,n){if(t===0)return;const i=e[t-1];const a=e[t];if(i.file&&i.options===undefined&&typeof a.value==="object"){n.message+=`\n- Maybe you meant to use\n`+`"${r}s": [\n ["${i.file.request}", ${JSON.stringify(a.value,undefined,2)}]\n]\n`+`To be a valid ${r}, its name and options should be wrapped in a pair of brackets`}}},3413:function(e,t,r){const n=r(1750);const i=(e,t,r)=>n(e,t,"<",r);e.exports=i},3417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findSuggestion=findSuggestion;const{min:r}=Math;function levenshtein(e,t){let n=[],i=[],a,s;const o=e.length,c=t.length;if(!o){return c}if(!c){return o}for(s=0;s<=c;s++){n[s]=s}for(a=1;a<=o;a++){for(i=[a],s=1;s<=c;s++){i[s]=e[a-1]===t[s-1]?n[s-1]:r(n[s-1],n[s],i[s-1])+1}n=i}return i[c]}function findSuggestion(e,t){const n=t.map(t=>levenshtein(t,e));return t[n.indexOf(r(...n))]}},3420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.TSESTree=void 0;t.TSESTree=a(r(6733))},3422:function(e){var t;var r;var n;var i;var a;var s;var o;var c;var u;var l;var p;var d;var f;var m;var g;var _;var h;var y;var v;var T;var S;var b;var E;(function(t){var r=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],function(e){t(createExporter(r,createExporter(e)))})}else if(true&&typeof e.exports==="object"){t(createExporter(r,createExporter(e.exports)))}else{t(createExporter(r))}function createExporter(e,t){if(e!==r){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(r,n){return e[r]=t?t(r,n):n}}})(function(e){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};t=function(e,t){x(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;o--)if(s=e[o])a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a;return i>3&&a&&Object.defineProperty(t,r,a),a};a=function(e,t){return function(r,n){t(r,n,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};o=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};c=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};p=function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return a};d=function(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof m?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};_=function(e){var t,r;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:n==="return"}:i?i(t):t}:i}};h=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof l==="function"?l(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise(function(n,i){r=e[t](r),settle(n,i,r.done,r.value)})}}function settle(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};v=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};T=function(e){return e&&e.__esModule?e:{default:e}};S=function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};b=function(e,t,r){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,r);return r};e("__extends",t);e("__assign",r);e("__rest",n);e("__decorate",i);e("__param",a);e("__metadata",s);e("__awaiter",o);e("__generator",c);e("__exportStar",u);e("__createBinding",E);e("__values",l);e("__read",p);e("__spread",d);e("__spreadArrays",f);e("__await",m);e("__asyncGenerator",g);e("__asyncDelegator",_);e("__asyncValues",h);e("__makeTemplateObject",y);e("__importStar",v);e("__importDefault",T);e("__classPrivateFieldGet",S);e("__classPrivateFieldSet",b)})},3423:function(e,t,r){var n=r(5496);var i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function stringify(e){return i.stringify.apply(i,arguments)}},3444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5320);class PartialMatcher extends n.default{match(e){const t=e.split("/");const r=t.length;const n=this._storage.filter(e=>!e.complete||e.segments.length>r);for(const e of n){const n=e.sections[0];if(!e.complete&&r>n.length){return true}const i=t.every((t,r)=>{const n=e.segments[r];if(n.dynamic&&n.patternRe.test(t)){return true}if(!n.dynamic&&n.pattern===t){return true}return false});if(i){return true}}return false}}t.default=PartialMatcher},3461:function(e){e.exports=function(e){try{return!!e()}catch(e){return true}}},3470:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=removePropertiesDeep;var n=r(9953);var i=r(6625);function removePropertiesDeep(e,t){(0,n.default)(e,i.default,t);return e}},3507:function(e){e.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;e.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;e.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},3523:function(e,t,r){var n=r(9280);var i=r(2510);var a=r(5866);var s=Function.bind;var o=s.bind(s);function bindApi(e,t,r){var n=o(a,null).apply(null,r?[t,r]:[t]);e.api={remove:n};e.remove=n;["before","error","after","wrap"].forEach(function(n){var a=r?[t,n,r]:[t,n];e[n]=e.api[n]=o(i,null).apply(null,a)})}function HookSingular(){var e="h";var t={registry:{}};var r=n.bind(null,t,e);bindApi(r,t,e);return r}function HookCollection(){var e={registry:{}};var t=n.bind(null,e);bindApi(t,e);return t}var c=false;function Hook(){if(!c){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');c=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},3540:function(e){function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=nativeKeysIn},3574:function(e,t,r){"use strict";t.__esModule=true;var n=r(4309);var i=_interopRequireDefault(n);var a=r(9110);var s=_interopRequireDefault(a);var o=typeof s.default==="function"&&typeof i.default==="symbol"?function(e){return typeof e}:function(e){return e&&typeof s.default==="function"&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=typeof s.default==="function"&&o(i.default)==="symbol"?function(e){return typeof e==="undefined"?"undefined":o(e)}:function(e){return e&&typeof s.default==="function"&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e==="undefined"?"undefined":o(e)}},3584:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3422);n.__exportStar(r(3826),t);n.__exportStar(r(6813),t)},3588:function(e,t,r){const n=r(5852);const{getLineNumber:i,getEndLineNumber:a,getCode:s,getUpdatePoint:o,hasTemplateQuasi:c,hasStringArgument:u,hasTemplateArgument:l,getQuasiArgument:p}=r(3094);e.exports=((e,t="",r="")=>{const d=[];let f="";n.default(e,{enter(e){if(e.isIdentifier({name:"fixture"})){if(!c(e.parent))return;f=e.parent.quasi.quasis[0].value.raw}if(e.isIdentifier({name:"test"})){if(!u(e.parent)&&!l(e.parent))return;let n=e.parent.arguments[0].value;if(!n){n=p(e.parent)}if(!n)return;d.push({name:n,suites:[f],updatePoint:o(e.parent),line:i(e),code:s(r,i(e),a(e)),file:t})}if(e.isIdentifier({name:"skip"})){if(!e.parent||!e.parent.object){return}if(e.parent.object.name==="test"){if(!u(e.parentPath.container)&&!l(e.parentPath.container))return;const n=e.parentPath.container.arguments[0].value;d.push({name:n,suites:[f],updatePoint:o(e.parent),line:i(e),code:s(r,i(e.parentPath),a(e.parentPath)),file:t,skipped:true})}}if(e.isIdentifier({name:"before"})){if(!e.parent||!e.parent.object){return}if(e.parent.object.name==="test"){const n=e.parentPath.parentPath.parent;if(!u(n)&&!l(n))return;const o=n.arguments[0].value;d.push({name:o,suites:[f],line:i(e),code:s(r,i(e.parentPath.parentPath),a(e.parentPath.parentPath)),file:t,skipped:false})}}}});return d})},3589:function(e,t,r){var n=r(875),i=r(6386);function copySymbolsIn(e,t){return n(e,i(e),t)}e.exports=copySymbolsIn},3595:function(e){function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=stackDelete},3600:function(e,t,r){var n=r(8161);function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);new n(t).set(new n(e));return t}e.exports=cloneArrayBuffer},3602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeConfigAPI=makeConfigAPI;t.makePresetAPI=makePresetAPI;t.makePluginAPI=makePluginAPI;function _semver(){const e=r(3864);_semver=function(){return e};return e}var n=r(7278);var i=r(8596);var a=r(1427);function makeConfigAPI(e){const t=t=>e.using(e=>{if(typeof t==="undefined")return e.envName;if(typeof t==="function"){return(0,i.assertSimpleType)(t(e.envName))}if(!Array.isArray(t))t=[t];return t.some(t=>{if(typeof t!=="string"){throw new Error("Unexpected non-string value")}return t===e.envName})});const r=t=>e.using(e=>(0,i.assertSimpleType)(t(e.caller)));return{version:n.version,cache:e.simple(),env:t,async:()=>false,caller:r,assertVersion:assertVersion}}function makePresetAPI(e){const t=()=>JSON.parse(e.using(e=>JSON.stringify(e.targets)));return Object.assign({},makeConfigAPI(e),{targets:t})}function makePluginAPI(e){const t=t=>e.using(e=>e.assumptions[t]);return Object.assign({},makePresetAPI(e),{assumption:t})}function assertVersion(e){if(typeof e==="number"){if(!Number.isInteger(e)){throw new Error("Expected string or integer value.")}e=`^${e}.0.0-0`}if(typeof e!=="string"){throw new Error("Expected string or integer value.")}if(_semver().satisfies(n.version,e))return;const t=Error.stackTraceLimit;if(typeof t==="number"&&t<25){Error.stackTraceLimit=25}const r=new Error(`Requires Babel "${e}", but was loaded with "${n.version}". `+`If you are sure you have a compatible version of @babel/core, `+`it is likely that something in your build process is loading the `+`wrong version. Inspect the stack trace of this error to look for `+`the first entry that doesn't mention "@babel/core" or "babel-core" `+`to see what is calling Babel.`);if(typeof t==="number"){Error.stackTraceLimit=t}throw Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:n.version,range:e})}},3633:function(e){function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=isKeyable},3672:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var o;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const c=a(r(5747));const u=a(r(5622));o=c.promises,t.chmod=o.chmod,t.copyFile=o.copyFile,t.lstat=o.lstat,t.mkdir=o.mkdir,t.readdir=o.readdir,t.readlink=o.readlink,t.rename=o.rename,t.rmdir=o.rmdir,t.stat=o.stat,t.symlink=o.symlink,t.unlink=o.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,r=false){return s(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,r){return s(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=u.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const a of r){e=i+a;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=u.dirname(e);const n=u.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=u.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},3674:function(e,t,r){var n=r(5011);var i=Object.create(null);var a=r(6049);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return a(function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var a=0;ar){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n{return e.isFunction()&&!e.isArrowFunctionExpression()||e.isProgram()||e.isClassProperty({static:false})});const i=(n==null?void 0:n.node.kind)==="constructor";if(n.isClassProperty()){throw e.buildCodeFrameError("Unable to transform arrow inside class property")}const{thisPaths:a,argumentsPaths:s,newTargetPaths:c,superProps:p,superCalls:f}=getScopeInformation(e);if(i&&f.length>0){if(!r){throw f[0].buildCodeFrameError("Unable to handle nested super() usage in arrow")}const e=[];n.traverse({Function(e){if(e.isArrowFunctionExpression())return;e.skip()},ClassProperty(e){e.skip()},CallExpression(t){if(!t.get("callee").isSuper())return;e.push(t)}});const t=getSuperBinding(n);e.forEach(e=>{const r=d(t);r.loc=e.node.callee.loc;e.get("callee").replaceWith(r)})}if(s.length>0){const e=getBinding(n,"arguments",()=>{const e=()=>d("arguments");if(n.scope.path.isProgram()){return l(o("===",C("typeof",e()),E("undefined")),n.scope.buildUndefinedNode(),e())}else{return e()}});s.forEach(t=>{const r=d(e);r.loc=t.node.loc;t.replaceWith(r)})}if(c.length>0){const e=getBinding(n,"newtarget",()=>_(d("new"),d("target")));c.forEach(t=>{const r=d(e);r.loc=t.node.loc;t.replaceWith(r)})}if(p.length>0){if(!r){throw p[0].buildCodeFrameError("Unable to handle nested super.prop usage")}const e=p.reduce((e,t)=>e.concat(standardizeSuperProperty(t)),[]);e.forEach(e=>{const t=e.node.computed?"":e.get("property").node.name;const r=e.parentPath.isAssignmentExpression({left:e.node});const i=e.parentPath.isCallExpression({callee:e.node});const s=getSuperPropBinding(n,r,t);const o=[];if(e.node.computed){o.push(e.get("property").node)}if(r){const t=e.parentPath.node.right;o.push(t)}const c=u(d(s),o);if(i){e.parentPath.unshiftContainer("arguments",D());e.replaceWith(g(c,d("call")));a.push(e.parentPath.get("arguments.0"))}else if(r){e.parentPath.replaceWith(c)}else{e.replaceWith(c)}})}let h;if(a.length>0||!t){h=getThisBinding(n,i);if(t||i&&hasSuperClass(n)){a.forEach(e=>{const t=e.isJSX()?m(h):d(h);t.loc=e.node.loc;e.replaceWith(t)});if(!t)h=null}}return h}function standardizeSuperProperty(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){const t=e.parentPath;const r=t.node.operator.slice(0,-1);const n=t.node.right;t.node.operator="=";if(e.node.computed){const i=e.scope.generateDeclaredUidIdentifier("tmp");t.get("left").replaceWith(g(e.node.object,s("=",i,e.node.property),true));t.get("right").replaceWith(o(r,g(e.node.object,d(i.name),true),n))}else{t.get("left").replaceWith(g(e.node.object,e.node.property));t.get("right").replaceWith(o(r,g(e.node.object,d(e.node.property.name)),n))}return[t.get("left"),t.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){const t=e.parentPath;const r=e.scope.generateDeclaredUidIdentifier("tmp");const n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null;const i=[s("=",r,g(e.node.object,n?s("=",n,e.node.property):e.node.property,e.node.computed)),s("=",g(e.node.object,n?d(n.name):e.node.property,e.node.computed),o("+",d(r.name),h(1)))];if(!e.parentPath.node.prefix){i.push(d(r.name))}t.replaceWith(S(i));const a=t.get("expressions.0.right");const c=t.get("expressions.1.left");return[a,c]}return[e]}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}function getThisBinding(e,t){return getBinding(e,"this",r=>{if(!t||!hasSuperClass(e))return D();const n=new WeakSet;e.traverse({Function(e){if(e.isArrowFunctionExpression())return;e.skip()},ClassProperty(e){e.skip()},CallExpression(e){if(!e.get("callee").isSuper())return;if(n.has(e.node))return;n.add(e.node);e.replaceWithMultiple([e.node,s("=",d(r),d("this"))])}})})}function getSuperBinding(e){return getBinding(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return a([v(t)],u(x(),[b(d(t.name))]))})}function getSuperPropBinding(e,t,r){const n=t?"set":"get";return getBinding(e,`superprop_${n}:${r||""}`,()=>{const n=[];let i;if(r){i=g(x(),d(r))}else{const t=e.scope.generateUidIdentifier("prop");n.unshift(t);i=g(x(),d(t.name),true)}if(t){const t=e.scope.generateUidIdentifier("value");n.push(t);i=s("=",i,d(t.name))}return a(n,i)})}function getBinding(e,t,r){const n="binding:"+t;let i=e.getData(n);if(!i){const a=e.scope.generateUidIdentifier(t);i=a.name;e.setData(n,i);e.scope.push({id:a,init:r(i)})}return i}function getScopeInformation(e){const t=[];const r=[];const n=[];const i=[];const a=[];e.traverse({ClassProperty(e){e.skip()},Function(e){if(e.isArrowFunctionExpression())return;e.skip()},ThisExpression(e){t.push(e)},JSXIdentifier(e){if(e.node.name!=="this")return;if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})){return}t.push(e)},CallExpression(e){if(e.get("callee").isSuper())a.push(e)},MemberExpression(e){if(e.get("object").isSuper())i.push(e)},ReferencedIdentifier(e){if(e.node.name!=="arguments")return;let t=e.scope;do{if(t.hasOwnBinding("arguments")){t.rename("arguments");return}if(t.path.isFunction()&&!t.path.isArrowFunctionExpression()){break}}while(t=t.parent);r.push(e)},MetaProperty(e){if(!e.get("meta").isIdentifier({name:"new"}))return;if(!e.get("property").isIdentifier({name:"target"}))return;n.push(e)}});return{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:i,superCalls:a}}},3697:function(e,t,r){"use strict";t.__esModule=true;var n=r(8715);var i=_interopRequireDefault(n);t.getBindingIdentifiers=getBindingIdentifiers;t.getOuterBindingIdentifiers=getOuterBindingIdentifiers;var a=r(8011);var s=_interopRequireWildcard(a);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function getBindingIdentifiers(e,t,r){var n=[].concat(e);var a=(0,i.default)(null);while(n.length){var o=n.shift();if(!o)continue;var c=s.getBindingIdentifiers.keys[o.type];if(s.isIdentifier(o)){if(t){var u=a[o.name]=a[o.name]||[];u.push(o)}else{a[o.name]=o}continue}if(s.isExportDeclaration(o)){if(s.isDeclaration(o.declaration)){n.push(o.declaration)}continue}if(r){if(s.isFunctionDeclaration(o)){n.push(o.id);continue}if(s.isFunctionExpression(o)){continue}}if(c){for(var l=0;l{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}});t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6486)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3804:function(e,t,r){const n=r(5706);const i=(e,t,r)=>n(e,t,r)===0;e.exports=i},3807:function(e){"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},3825:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXIdentifier=JSXIdentifier;t.JSXNamespacedName=JSXNamespacedName;t.JSXMemberExpression=JSXMemberExpression;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;t.JSXElement=JSXElement;t.JSXOpeningElement=JSXOpeningElement;t.JSXClosingElement=JSXClosingElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXFragment=JSXFragment;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXClosingFragment=JSXClosingFragment;function JSXAttribute(e){this.print(e.name,e);if(e.value){this.token("=");this.print(e.value,e)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace,e);this.token(":");this.print(e.name,e)}function JSXMemberExpression(e){this.print(e.object,e);this.token(".");this.print(e.property,e)}function JSXSpreadAttribute(e){this.token("{");this.token("...");this.print(e.argument,e);this.token("}")}function JSXExpressionContainer(e){this.token("{");this.print(e.expression,e);this.token("}")}function JSXSpreadChild(e){this.token("{");this.token("...");this.print(e.expression,e);this.token("}")}function JSXText(e){const t=this.getPossibleRaw(e);if(t!=null){this.token(t)}else{this.token(e.value)}}function JSXElement(e){const t=e.openingElement;this.print(t,e);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t,e)}this.dedent();this.print(e.closingElement,e)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.token("<");this.print(e.name,e);this.print(e.typeParameters,e);if(e.attributes.length>0){this.space();this.printJoin(e.attributes,e,{separator:spaceSeparator})}if(e.selfClosing){this.space();this.token("/>")}else{this.token(">")}}function JSXClosingElement(e){this.token("")}function JSXEmptyExpression(e){this.printInnerComments(e)}function JSXFragment(e){this.print(e.openingFragment,e);this.indent();for(const t of e.children){this.print(t,e)}this.dedent();this.print(e.closingFragment,e)}function JSXOpeningFragment(){this.token("<");this.token(">")}function JSXClosingFragment(){this.token("")}},3826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBigIntLiteral=void 0;const n=r(3422);n.__exportStar(r(7311),t);const i=r(3186);function isBigIntLiteral(e){return e.kind===i.SyntaxKind.BigIntLiteral}t.isBigIntLiteral=isBigIntLiteral},3829:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=prependToMemberExpression;var n=r(6405);function prependToMemberExpression(e,t){e.object=(0,n.memberExpression)(t,e.object);return e}},3864:function(e,t){t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var a=16;var s=t.re=[];var o=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");o[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");o[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");o[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");o[c.MAINVERSION]="("+o[c.NUMERICIDENTIFIER]+")\\."+"("+o[c.NUMERICIDENTIFIER]+")\\."+"("+o[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");o[c.MAINVERSIONLOOSE]="("+o[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+o[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");o[c.PRERELEASEIDENTIFIER]="(?:"+o[c.NUMERICIDENTIFIER]+"|"+o[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");o[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[c.NUMERICIDENTIFIERLOOSE]+"|"+o[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");o[c.PRERELEASE]="(?:-("+o[c.PRERELEASEIDENTIFIER]+"(?:\\."+o[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");o[c.PRERELEASELOOSE]="(?:-?("+o[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");o[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");o[c.BUILD]="(?:\\+("+o[c.BUILDIDENTIFIER]+"(?:\\."+o[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");o[c.FULLPLAIN]="v?"+o[c.MAINVERSION]+o[c.PRERELEASE]+"?"+o[c.BUILD]+"?";o[c.FULL]="^"+o[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");o[c.LOOSEPLAIN]="[v=\\s]*"+o[c.MAINVERSIONLOOSE]+o[c.PRERELEASELOOSE]+"?"+o[c.BUILD]+"?";tok("LOOSE");o[c.LOOSE]="^"+o[c.LOOSEPLAIN]+"$";tok("GTLT");o[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");o[c.XRANGEIDENTIFIERLOOSE]=o[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");o[c.XRANGEIDENTIFIER]=o[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");o[c.XRANGEPLAIN]="[v=\\s]*("+o[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+o[c.XRANGEIDENTIFIER]+")"+"(?:"+o[c.PRERELEASE]+")?"+o[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");o[c.XRANGEPLAINLOOSE]="[v=\\s]*("+o[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+o[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+o[c.PRERELEASELOOSE]+")?"+o[c.BUILD]+"?"+")?)?";tok("XRANGE");o[c.XRANGE]="^"+o[c.GTLT]+"\\s*"+o[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");o[c.XRANGELOOSE]="^"+o[c.GTLT]+"\\s*"+o[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");o[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+a+"})"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:\\.(\\d{1,"+a+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");s[c.COERCERTL]=new RegExp(o[c.COERCE],"g");tok("LONETILDE");o[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");o[c.TILDETRIM]="(\\s*)"+o[c.LONETILDE]+"\\s+";s[c.TILDETRIM]=new RegExp(o[c.TILDETRIM],"g");var l="$1~";tok("TILDE");o[c.TILDE]="^"+o[c.LONETILDE]+o[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");o[c.TILDELOOSE]="^"+o[c.LONETILDE]+o[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");o[c.LONECARET]="(?:\\^)";tok("CARETTRIM");o[c.CARETTRIM]="(\\s*)"+o[c.LONECARET]+"\\s+";s[c.CARETTRIM]=new RegExp(o[c.CARETTRIM],"g");var p="$1^";tok("CARET");o[c.CARET]="^"+o[c.LONECARET]+o[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");o[c.CARETLOOSE]="^"+o[c.LONECARET]+o[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");o[c.COMPARATORLOOSE]="^"+o[c.GTLT]+"\\s*("+o[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");o[c.COMPARATOR]="^"+o[c.GTLT]+"\\s*("+o[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");o[c.COMPARATORTRIM]="(\\s*)"+o[c.GTLT]+"\\s*("+o[c.LOOSEPLAIN]+"|"+o[c.XRANGEPLAIN]+")";s[c.COMPARATORTRIM]=new RegExp(o[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");o[c.HYPHENRANGE]="^\\s*("+o[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+o[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");o[c.HYPHENRANGELOOSE]="^\\s*("+o[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+o[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");o[c.STAR]="(<|>)?=?\\s*\\*";for(var f=0;fn){return null}var r=t.loose?s[c.LOOSE]:s[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var a=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!a){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+a[1];this.minor=+a[2];this.patch=+a[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!a[4]){this.prerelease=[]}else{this.prerelease=a[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var a="prerelease"}for(var s in r){if(s==="major"||s==="minor"||s==="patch"){if(r[s]!==n[s]){return i+s}}}return a}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var r=m.test(e);var n=m.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=g}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var a=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var o=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||a&&s||o||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(s[c.COMPARATORTRIM],d);r("comparator trim",e,s[c.COMPARATORTRIM]);e=e.replace(s[c.TILDETRIM],l);e=e.replace(s[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");var i=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR];var a=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){a=a.filter(function(e){return!!e.match(i)})}a=a.map(function(e){return new Comparator(e,this.options)},this);return a};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,function(t,n,i,a,s){r("tilde",e,t,n,i,a,s);var o;if(isX(n)){o=""}else if(isX(i)){o=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){o=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(s){r("replaceTilde pr",s);o=">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0"}else{o=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0"}r("tilde return",o);return o})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(n,function(t,n,i,a,s){r("caret",e,t,n,i,a,s);var o;if(isX(n)){o=""}else if(isX(i)){o=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(a)){if(n==="0"){o=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{o=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(s){r("replaceCaret pr",s);if(n==="0"){if(i==="0"){o=">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+i+"."+(+a+1)}else{o=">="+n+"."+i+"."+a+"-"+s+" <"+n+"."+(+i+1)+".0"}}else{o=">="+n+"."+i+"."+a+"-"+s+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){o=">="+n+"."+i+"."+a+" <"+n+"."+i+"."+(+a+1)}else{o=">="+n+"."+i+"."+a+" <"+n+"."+(+i+1)+".0"}}else{o=">="+n+"."+i+"."+a+" <"+(+n+1)+".0.0"}}r("caret return",o);return o})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,function(n,i,a,s,o,c){r("xRange",e,n,i,a,s,o,c);var u=isX(a);var l=u||isX(s);var p=l||isX(o);var d=p;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){s=0}o=0;if(i===">"){i=">=";if(l){a=+a+1;s=0;o=0}else{s=+s+1;o=0}}else if(i==="<="){i="<";if(l){a=+a+1}else{s=+s+1}}n=i+a+"."+s+"."+o+c}else if(l){n=">="+a+".0.0"+c+" <"+(+a+1)+".0.0"+c}else if(p){n=">="+a+"."+s+".0"+c+" <"+a+"."+(+s+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(s[c.STAR],"")}function hyphenReplace(e,t,r,n,i,a,s,o,c,u,l,p,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){o=""}else if(isX(u)){o="<"+(+c+1)+".0.0"}else if(isX(l)){o="<"+c+"."+(+u+1)+".0"}else if(p){o="<="+c+"."+u+"."+l+"-"+p}else{o="<="+o}return(t+" "+o).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(a.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var a=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(a.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,a,s,o,c;switch(r){case">":i=gt;a=lte;s=lt;o=">";c=">=";break;case"<":i=lt;a=gte;s=gt;o="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}p=p||e;d=d||e;if(i(e.semver,p.semver,n)){p=e}else if(s(e.semver,d.semver,n)){d=e}});if(p.operator===o||p.operator===c){return false}if((!d.operator||d.operator===o)&&a(e,d.semver)){return false}else if(d.operator===c&&s(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(s[c.COERCE])}else{var n;while((n=s[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}s[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},3867:function(e){e.exports=require("tty")},3878:function(e,t,r){var n=r(8319);var i=n(Object,"create");e.exports=i},3880:function(e,t,r){const n=r(4299);let i;let a;let s;let o;let c;let u;let l;let p;let d;e.exports=function parse(e,t){i=String(e);a="start";s=[];o=0;c=1;u=0;l=undefined;p=undefined;d=undefined;do{l=lex();v[a]()}while(l.type!=="eof");if(typeof t==="function"){return internalize({"":d},"",t)}return d};function internalize(e,t,r){const n=e[t];if(n!=null&&typeof n==="object"){for(const e in n){const t=internalize(n,e,r);if(t===undefined){delete n[e]}else{n[e]=t}}}return r.call(e,t,n)}let f;let m;let g;let _;let h;function lex(){f="default";m="";g=false;_=1;for(;;){h=peek();const e=y[f]();if(e){return e}}}function peek(){if(i[o]){return String.fromCodePoint(i.codePointAt(o))}}function read(){const e=peek();if(e==="\n"){c++;u=0}else if(e){u+=e.length}else{u++}if(e){o+=e.length}return e}const y={default(){switch(h){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();f="comment";return;case undefined:read();return newToken("eof")}if(n.isSpaceSeparator(h)){read();return}return y[a]()},comment(){switch(h){case"*":read();f="multiLineComment";return;case"/":read();f="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(h){case"*":read();f="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(h){case"*":read();return;case"/":read();f="default";return;case undefined:throw invalidChar(read())}read();f="multiLineComment"},singleLineComment(){switch(h){case"\n":case"\r":case"\u2028":case"\u2029":read();f="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(h){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){_=-1}f="sign";return;case".":m=read();f="decimalPointLeading";return;case"0":m=read();f="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":m=read();f="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":g=read()==='"';m="";f="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(h!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e)){throw invalidIdentifier()}break}m+=e;f="identifierName"},identifierName(){switch(h){case"$":case"_":case"‌":case"‍":m+=read();return;case"\\":read();f="identifierNameEscape";return}if(n.isIdContinueChar(h)){m+=read();return}return newToken("identifier",m)},identifierNameEscape(){if(h!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!n.isIdContinueChar(e)){throw invalidIdentifier()}break}m+=e;f="identifierName"},sign(){switch(h){case".":m=read();f="decimalPointLeading";return;case"0":m=read();f="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":m=read();f="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",_*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(h){case".":m+=read();f="decimalPoint";return;case"e":case"E":m+=read();f="decimalExponent";return;case"x":case"X":m+=read();f="hexadecimal";return}return newToken("numeric",_*0)},decimalInteger(){switch(h){case".":m+=read();f="decimalPoint";return;case"e":case"E":m+=read();f="decimalExponent";return}if(n.isDigit(h)){m+=read();return}return newToken("numeric",_*Number(m))},decimalPointLeading(){if(n.isDigit(h)){m+=read();f="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(h){case"e":case"E":m+=read();f="decimalExponent";return}if(n.isDigit(h)){m+=read();f="decimalFraction";return}return newToken("numeric",_*Number(m))},decimalFraction(){switch(h){case"e":case"E":m+=read();f="decimalExponent";return}if(n.isDigit(h)){m+=read();return}return newToken("numeric",_*Number(m))},decimalExponent(){switch(h){case"+":case"-":m+=read();f="decimalExponentSign";return}if(n.isDigit(h)){m+=read();f="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(n.isDigit(h)){m+=read();f="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(n.isDigit(h)){m+=read();return}return newToken("numeric",_*Number(m))},hexadecimal(){if(n.isHexDigit(h)){m+=read();f="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(n.isHexDigit(h)){m+=read();return}return newToken("numeric",_*Number(m))},string(){switch(h){case"\\":read();m+=escape();return;case'"':if(g){read();return newToken("string",m)}m+=read();return;case"'":if(!g){read();return newToken("string",m)}m+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(h);break;case undefined:throw invalidChar(read())}m+=read()},start(){switch(h){case"{":case"[":return newToken("punctuator",read())}f="value"},beforePropertyName(){switch(h){case"$":case"_":m=read();f="identifierName";return;case"\\":read();f="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":g=read()==='"';f="string";return}if(n.isIdStartChar(h)){m+=read();f="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(h===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){f="value"},afterPropertyValue(){switch(h){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(h==="]"){return newToken("punctuator",read())}f="value"},afterArrayValue(){switch(h){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:c,column:u}}function literal(e){for(const t of e){const e=peek();if(e!==t){throw invalidChar(read())}read()}}function escape(){const e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(n.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){let e="";let t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){let e="";let t=4;while(t-- >0){const t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}const v={start(){if(l.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(l.type){case"identifier":case"string":p=l.value;a="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(l.type==="eof"){throw invalidEOF()}a="beforePropertyValue"},beforePropertyValue(){if(l.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(l.type==="eof"){throw invalidEOF()}if(l.type==="punctuator"&&l.value==="]"){pop();return}push()},afterPropertyValue(){if(l.type==="eof"){throw invalidEOF()}switch(l.value){case",":a="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(l.type==="eof"){throw invalidEOF()}switch(l.value){case",":a="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let e;switch(l.type){case"punctuator":switch(l.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=l.value;break}if(d===undefined){d=e}else{const t=s[s.length-1];if(Array.isArray(t)){t.push(e)}else{t[p]=e}}if(e!==null&&typeof e==="object"){s.push(e);if(Array.isArray(e)){a="beforeArrayValue"}else{a="beforePropertyName"}}else{const e=s[s.length-1];if(e==null){a="end"}else if(Array.isArray(e)){a="afterArrayValue"}else{a="afterPropertyValue"}}}function pop(){s.pop();const e=s[s.length-1];if(e==null){a="end"}else if(Array.isArray(e)){a="afterArrayValue"}else{a="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError(`JSON5: invalid end of input at ${c}:${u}`)}return syntaxError(`JSON5: invalid character '${formatChar(e)}' at ${c}:${u}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${c}:${u}`)}function invalidIdentifier(){u-=5;return syntaxError(`JSON5: invalid identifier character at ${c}:${u}`)}function separatorChar(e){console.warn(`JSON5: '${formatChar(e)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function syntaxError(e){const t=new SyntaxError(e);t.lineNumber=c;t.columnNumber=u;return t}},3885:function(e,t,r){e.exports=runParallel;const n=r(1926);function runParallel(e,t){let r,i,a;let s=true;if(Array.isArray(e)){r=[];i=e.length}else{a=Object.keys(e);r={};i=a.length}function done(e){function end(){if(t)t(e,r);t=null}if(s)n(end);else end()}function each(e,t,n){r[e]=n;if(--i===0||t){done(t)}}if(!i){done(null)}else if(a){a.forEach(function(t){e[t](function(e,r){each(t,e,r)})})}else{e.forEach(function(e,t){e(function(e,r){each(t,e,r)})})}s=false}},3895:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=loadBlockHoistPlugin;function _traverse(){const e=r(5167);_traverse=function(){return e};return e}var n=r(426);let i;function loadBlockHoistPlugin(){if(!i){i=new n.default(Object.assign({},a,{visitor:_traverse().default.explode(a.visitor)}),{})}return i}function priority(e){const t=e==null?void 0:e._blockHoist;if(t==null)return 1;if(t===true)return 2;return t}function stableSort(e){const t=Object.create(null);for(let r=0;r+e).sort((e,t)=>t-e);let n=0;for(const i of r){const r=t[i];for(const t of r){e[n++]=t}}return e}const a={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){const{body:t}=e;let r=Math.pow(2,30)-1;let n=false;for(let e=0;er){n=true;break}r=a}if(!n)return;e.body=stableSort(t.slice())}}}}},3897:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isLet;var n=r(4897);var i=r(9068);function isLet(e){return(0,n.isVariableDeclaration)(e)&&(e.kind!=="var"||e[i.BLOCK_SCOPED_SYMBOL])}},3906:function(e){var t=800,r=16;var n=Date.now;function shortOut(e){var i=0,a=0;return function(){var s=n(),o=r-(s-a);a=s;if(o>0){if(++i>=t){return arguments[0]}}else{i=0}return e.apply(undefined,arguments)}}e.exports=shortOut},3933:function(e,t,r){const n=r(5747);const i=r(6402);const a=r(5622);const s=r(5459);let o;class Analyzer{constructor(e,t="."){this.workDir=t;this.typeScript=false;this.plugins=[];this.rawTests=[];o=r(2603);switch(e.toLowerCase()){case"jasmine":case"protractor":this.frameworkParser=r(8393);break;case"jest":case"jestio":this.frameworkParser=r(2462);break;case"codecept":case"codeceptjs":this.frameworkParser=r(3194);break;case"testcafe":this.frameworkParser=r(3588);break;case"mocha":case"cypress":case"cypress.io":case"cypressio":case"webdriverio-mocha":default:this.frameworkParser=r(689);break}}addPlugin(e){this.plugins.push(e)}withTypeScript(){this.typeScript=true;o=r(8492)}analyze(e){if(!this.frameworkParser)throw new Error("No test framework specified. Can't analyze");this.decorator=new s([]);this.stats=this.getEmptyStats();e=a.join(a.resolve(this.workDir),e);const t=i.sync(e);for(const e of t){if(n.lstatSync(e).isDirectory())continue;if(e.includes("ode_modules"))continue;let t=n.readFileSync(e,{encoding:"utf8"}).toString();if(this.plugins.length>0){try{t=r(7278).transform(t,{plugins:[...this.plugins]}).code}catch(t){console.error(`Error parsing ${e}`);console.error(t.message);if(t.message.includes("@babel/")){console.log("\nProbably, required babel plugins are not installed.");console.log("Try to install them manually using npm:");console.log("\nnpm i @babel/core @babel/plugin-transform-typescript --save-dev")}process.exit(1)}}let i;try{if(this.typeScript){const r=o.parse(t,{sourceType:"unambiguous",filePath:e,loc:true,range:true,tokens:true});i={program:r,type:"File"}}else{i=o.parse(t,{sourceType:"unambiguous"})}}catch(t){console.error(`Error parsing ${e}:`);console.error(t.message)}let c=a.relative(this.workDir,e);if(process.env.TESTOMATIO_PREPEND_DIR){c=a.join(process.env.TESTOMATIO_PREPEND_DIR,c)}const u=this.frameworkParser(i,c,t);this.rawTests.push(u);const l=new s(u);this.stats.tests=this.stats.tests.concat(l.getFullNames());this.stats.skipped=this.stats.skipped.concat(l.getSkippedTestFullNames());this.stats.files.push(e);this.decorator.append(u)}}getDecorator(){return this.decorator}getStats(){return this.stats}getEmptyStats(){return{tests:[],suites:[],files:[],skipped:[]}}}e.exports=Analyzer},3935:function(e,t,r){var n=r(4051),i=r(1143),a=r(4337);var s="[object String]";function isString(e){return typeof e=="string"||!i(e)&&a(e)&&n(e)==s}e.exports=isString},3936:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=t.program=t.expression=t.statements=t.statement=t.smart=void 0;var n=r(5766);var i=r(7397);const a=(0,i.default)(n.smart);t.smart=a;const s=(0,i.default)(n.statement);t.statement=s;const o=(0,i.default)(n.statements);t.statements=o;const c=(0,i.default)(n.expression);t.expression=c;const u=(0,i.default)(n.program);t.program=u;var l=Object.assign(a.bind(undefined),{smart:a,statement:s,statements:o,expression:c,program:u,ast:a.ast});t.default=l},3940:function(module){"use strict";module.exports=function toFastproperties(o){function Sub(){}Sub.prototype=o;var receiver=new Sub;function ic(){return typeof receiver.foo}ic();ic();return o;eval("o"+o)}},3962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2617);class Reader{constructor(e,t){this._root=e;this._settings=t;this._root=n.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}t.default=Reader},3966:function(e,t,r){var n=r(1752);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;if(typeof(r=e.valueOf)=="function"&&!n(i=r.call(e)))return i;if(!t&&typeof(r=e.toString)=="function"&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3972:function(e,t,r){var n=r(7734);var i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},3988:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3422);n.__exportStar(r(1219),t)},4000:function(e,t,r){var n=r(3600);function cloneDataView(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}e.exports=cloneDataView},4016:function(e){e.exports=require("tls")},4020:function(e){var t="__lodash_hash_undefined__";function setCacheAdd(e){this.__data__.set(e,t);return this}e.exports=setCacheAdd},4037:function(e,t,r){"use strict";const n=r(2087);const i=r(5518);const a=process.env;let s;if(i("no-color")||i("no-colors")||i("color=false")){s=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){s=true}if("FORCE_COLOR"in a){s=a.FORCE_COLOR.length===0||parseInt(a.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(s===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&s!==true){return 0}const t=s?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in a)||a.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}if(a.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},4051:function(e,t,r){var n=r(6498),i=r(4985),a=r(5602);var s="[object Null]",o="[object Undefined]";var c=n?n.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?o:s}return c&&c in Object(e)?i(e):a(e)}e.exports=baseGetTag},4061:function(e,t,r){e.exports={default:r(3169),__esModule:true}},4067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigPrinter=t.ChainFormatter=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}const n={Programmatic:0,Config:1};t.ChainFormatter=n;const i={title(e,t,r){let i="";if(e===n.Programmatic){i="programmatic options";if(t){i+=" from "+t}}else{i="config "+r}return i},loc(e,t){let r="";if(e!=null){r+=`.overrides[${e}]`}if(t!=null){r+=`.env["${t}"]`}return r},*optionsAndDescriptors(e){const t=Object.assign({},e.options);delete t.overrides;delete t.env;const r=[...yield*e.plugins()];if(r.length){t.plugins=r.map(e=>descriptorToConfig(e))}const n=[...yield*e.presets()];if(n.length){t.presets=[...n].map(e=>descriptorToConfig(e))}return JSON.stringify(t,undefined,2)}};function descriptorToConfig(e){var t;let r=(t=e.file)==null?void 0:t.request;if(r==null){if(typeof e.value==="object"){r=e.value}else if(typeof e.value==="function"){r=`[Function: ${e.value.toString().substr(0,50)} ... ]`}}if(r==null){r="[Unknown]"}if(e.options===undefined){return r}else if(e.name==null){return[r,e.options]}else{return[r,e.options,e.name]}}class ConfigPrinter{constructor(){this._stack=[]}configure(e,t,{callerName:r,filepath:n}){if(!e)return()=>{};return(e,i,a)=>{this._stack.push({type:t,callerName:r,filepath:n,content:e,index:i,envName:a})}}static*format(e){let t=i.title(e.type,e.callerName,e.filepath);const r=i.loc(e.index,e.envName);if(r)t+=` ${r}`;const n=yield*i.optionsAndDescriptors(e.content);return`${t}\n${n}`}*output(){if(this._stack.length===0)return"";const e=yield*_gensync().all(this._stack.map(e=>ConfigPrinter.format(e)));return e.join("\n\n")}}t.ConfigPrinter=ConfigPrinter},4074:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prettifyVersion=prettifyVersion;t.prettifyTargets=prettifyTargets;var n=r(3864);var i=r(6147);function prettifyVersion(e){if(typeof e!=="string"){return e}const t=[n.major(e)];const r=n.minor(e);const i=n.patch(e);if(r||i){t.push(r)}if(i){t.push(i)}return t.join(".")}function prettifyTargets(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];const a=i.unreleasedLabels[r];if(typeof n==="string"&&a!==n){n=prettifyVersion(n)}t[r]=n;return t},{})}},4096:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isNodesEquivalent;var n=r(288);function isNodesEquivalent(e,t){if(typeof e!=="object"||typeof t!=="object"||e==null||t==null){return e===t}if(e.type!==t.type){return false}const r=Object.keys(n.NODE_FIELDS[e.type]||e.type);const i=n.VISITOR_KEYS[e.type];for(const n of r){if(typeof e[n]!==typeof t[n]){return false}if(e[n]==null&&t[n]==null){continue}else if(e[n]==null||t[n]==null){return false}if(Array.isArray(e[n])){if(!Array.isArray(t[n])){return false}if(e[n].length!==t[n].length){return false}for(let r=0;r=0){continue}if((0,n.isAnyTypeAnnotation)(o)){return[o]}if((0,n.isFlowBaseAnnotation)(o)){r[o.type]=o;continue}if((0,n.isUnionTypeAnnotation)(o)){if(!i.has(o.types)){e=e.concat(o.types);i.add(o.types)}continue}if((0,n.isGenericTypeAnnotation)(o)){const e=getQualifiedName(o.id);if(t[e]){let r=t[e];if(r.typeParameters){if(o.typeParameters){r.typeParameters.params=removeTypeDuplicates(r.typeParameters.params.concat(o.typeParameters.params))}}else{r=o.typeParameters}}else{t[e]=o}continue}a.push(o)}for(const e of Object.keys(r)){a.push(r[e])}for(const e of Object.keys(t)){a.push(t[e])}return a}},4119:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true})},4124:function(e,t,r){"use strict";var n=r(6016);var i=r(4680);var a="Map";e.exports=r(4457)(a,function(e){return function Map(){return e(this,arguments.length>0?arguments[0]:undefined)}},{get:function get(e){var t=n.getEntry(i(this,a),e);return t&&t.v},set:function set(e,t){return n.def(i(this,a),e===0?0:e,t)}},n,true)},4125:function(e,t,r){var n=r(6429);var i=r(12);e.exports=r(5496).getIterator=function(e){var t=i(e);if(typeof t!="function")throw TypeError(e+" is not iterable!");return n(t.call(e))}},4140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isValidES3Identifier;var n=r(6920);const i=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function isValidES3Identifier(e){return(0,n.default)(e)&&!i.has(e)}},4149:function(e,t,r){var n=r(4293);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},4182:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=normalizeOptions;function _path(){const e=r(5622);_path=function(){return e};return e}function normalizeOptions(e){const{filename:t,cwd:r,filenameRelative:n=(typeof t==="string"?_path().relative(r,t):"unknown"),sourceType:i="module",inputSourceMap:a,sourceMaps:s=!!a,sourceRoot:o=e.options.moduleRoot,sourceFileName:c=_path().basename(n),comments:u=true,compact:l="auto"}=e.options;const p=e.options;const d=Object.assign({},p,{parserOpts:Object.assign({sourceType:_path().extname(n)===".mjs"?"module":i,sourceFileName:t,plugins:[]},p.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:p.auxiliaryCommentBefore,auxiliaryCommentAfter:p.auxiliaryCommentAfter,retainLines:p.retainLines,comments:u,shouldPrintComment:p.shouldPrintComment,compact:l,minified:p.minified,sourceMaps:s,sourceRoot:o,sourceFileName:c},p.generatorOpts)});for(const t of e.passes){for(const e of t){if(e.manipulateOptions){e.manipulateOptions(d,d.parserOpts)}}}return d}},4184:function(e){"use strict";e.exports=(e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")})},4210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createDirentFromStats=void 0;class DirentFromStats{constructor(e,t){this.name=e;this.isBlockDevice=t.isBlockDevice.bind(t);this.isCharacterDevice=t.isCharacterDevice.bind(t);this.isDirectory=t.isDirectory.bind(t);this.isFIFO=t.isFIFO.bind(t);this.isFile=t.isFile.bind(t);this.isSocket=t.isSocket.bind(t);this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function createDirentFromStats(e,t){return new DirentFromStats(e,t)}t.createDirentFromStats=createDirentFromStats},4213:function(e){e.exports=require("punycode")},4231:function(e){function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},4233:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTupleTypeReference=t.isTupleType=void 0;const n=r(3422);n.__exportStar(r(3988),t);const i=r(3186);const a=r(3988);function isTupleType(e){return(e.flags&i.TypeFlags.Object&&e.objectFlags&i.ObjectFlags.Tuple)!==0}t.isTupleType=isTupleType;function isTupleTypeReference(e){return a.isTypeReference(e)&&isTupleType(e.target)}t.isTupleTypeReference=isTupleTypeReference},4236:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0]};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},4245:function(e,t,r){"use strict";var n=r(799);var i=r(5284);var a=r(917);var s=r(6673);var o=r(2403);var c=r(8681).KEY;var u=r(3461);var l=r(3709);var p=r(8938);var d=r(8472);var f=r(4439);var m=r(7617);var g=r(4438);var _=r(843);var h=r(1600);var y=r(6429);var v=r(1752);var T=r(6764);var S=r(5753);var b=r(3966);var E=r(2851);var x=r(7567);var D=r(5495);var C=r(4811);var A=r(3140);var k=r(109);var P=r(350);var N=C.f;var O=k.f;var F=D.f;var w=n.Symbol;var I=n.JSON;var L=I&&I.stringify;var M="prototype";var R=f("_hidden");var B=f("toPrimitive");var j={}.propertyIsEnumerable;var J=l("symbol-registry");var U=l("symbols");var V=l("op-symbols");var W=Object[M];var K=typeof w=="function"&&!!A.f;var G=n.QObject;var z=!G||!G[M]||!G[M].findChild;var H=a&&u(function(){return x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=N(W,t);if(n)delete W[t];O(e,t,r);if(n&&e!==W)O(W,t,n)}:O;var q=function(e){var t=U[e]=x(w[M]);t._k=e;return t};var $=K&&typeof w.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return e instanceof w};var Y=function defineProperty(e,t,r){if(e===W)Y(V,t,r);y(e);t=b(t,true);y(r);if(i(U,t)){if(!r.enumerable){if(!i(e,R))O(e,R,E(1,{}));e[R][t]=true}else{if(i(e,R)&&e[R][t])e[R][t]=false;r=x(r,{enumerable:E(0,false)})}return H(e,t,r)}return O(e,t,r)};var X=function defineProperties(e,t){y(e);var r=_(t=S(t));var n=0;var i=r.length;var a;while(i>n)Y(e,a=r[n++],t[a]);return e};var Q=function create(e,t){return t===undefined?x(e):X(x(e),t)};var Z=function propertyIsEnumerable(e){var t=j.call(this,e=b(e,true));if(this===W&&i(U,e)&&!i(V,e))return false;return t||!i(this,e)||!i(U,e)||i(this,R)&&this[R][e]?t:true};var ee=function getOwnPropertyDescriptor(e,t){e=S(e);t=b(t,true);if(e===W&&i(U,t)&&!i(V,t))return;var r=N(e,t);if(r&&i(U,t)&&!(i(e,R)&&e[R][t]))r.enumerable=true;return r};var te=function getOwnPropertyNames(e){var t=F(S(e));var r=[];var n=0;var a;while(t.length>n){if(!i(U,a=t[n++])&&a!=R&&a!=c)r.push(a)}return r};var re=function getOwnPropertySymbols(e){var t=e===W;var r=F(t?V:S(e));var n=[];var a=0;var s;while(r.length>a){if(i(U,s=r[a++])&&(t?i(W,s):true))n.push(U[s])}return n};if(!K){w=function Symbol(){if(this instanceof w)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:undefined);var t=function(r){if(this===W)t.call(V,r);if(i(this,R)&&i(this[R],e))this[R][e]=false;H(this,e,E(1,r))};if(a&&z)H(W,e,{configurable:true,set:t});return q(e)};o(w[M],"toString",function toString(){return this._k});C.f=ee;k.f=Y;r(2358).f=D.f=te;r(13).f=Z;A.f=re;if(a&&!r(9381)){o(W,"propertyIsEnumerable",Z,true)}m.f=function(e){return q(f(e))}}s(s.G+s.W+s.F*!K,{Symbol:w});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ne.length>ie;)f(ne[ie++]);for(var ae=P(f.store),se=0;ae.length>se;)g(ae[se++]);s(s.S+s.F*!K,"Symbol",{for:function(e){return i(J,e+="")?J[e]:J[e]=w(e)},keyFor:function keyFor(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in J)if(J[t]===e)return t},useSetter:function(){z=true},useSimple:function(){z=false}});s(s.S+s.F*!K,"Object",{create:Q,defineProperty:Y,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:re});var oe=u(function(){A.f(1)});s(s.S+s.F*oe,"Object",{getOwnPropertySymbols:function getOwnPropertySymbols(e){return A.f(T(e))}});I&&s(s.S+s.F*(!K||u(function(){var e=w();return L([e])!="[null]"||L({a:e})!="{}"||L(Object(e))!="{}"})),"JSON",{stringify:function stringify(e){var t=[e];var r=1;var n,i;while(arguments.length>r)t.push(arguments[r++]);i=n=t[1];if(!v(n)&&e===undefined||$(e))return;if(!h(n))n=function(e,t){if(typeof i=="function")t=i.call(this,e,t);if(!$(t))return t};t[1]=n;return L.apply(I,t)}});w[M][B]||r(891)(w[M],B,w[M].valueOf);p(w,"Symbol");p(Math,"Math",true);p(n.JSON,"JSON",true)},4247:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.needsWhitespace=needsWhitespace;t.needsWhitespaceBefore=needsWhitespaceBefore;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsParens=needsParens;var n=r(8997);var i=r(1053);var a=r(9978);const{FLIPPED_ALIAS_KEYS:s,isCallExpression:o,isExpressionStatement:c,isMemberExpression:u,isNewExpression:l}=a;function expandAliases(e){const t={};function add(e,r){const n=t[e];t[e]=n?function(e,t,i){const a=n(e,t,i);return a==null?r(e,t,i):a}:r}for(const t of Object.keys(e)){const r=s[t];if(r){for(const n of r){add(n,e[t])}}else{add(t,e[t])}}return t}const p=expandAliases(i);const d=expandAliases(n.nodes);const f=expandAliases(n.list);function find(e,t,r,n){const i=e[t.type];return i?i(t,r,n):null}function isOrHasCallExpression(e){if(o(e)){return true}return u(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){if(!e)return 0;if(c(e)){e=e.expression}let n=find(d,e,t);if(!n){const i=find(f,e,t);if(i){for(let t=0;t=p.length)break;m=p[f++]}else{f=p.next();if(f.done)break;m=f.value}var g=m;if(!e)break;a+=g.value.cooked;var _=c[o++];if(_)a+=String(evaluate(_))}if(!e)return;return a}if(t.isConditionalExpression()){var h=evaluate(t.get("test"));if(!e)return;if(h){return evaluate(t.get("consequent"))}else{return evaluate(t.get("alternate"))}}if(t.isExpressionWrapper()){return evaluate(t.get("expression"))}if(t.isMemberExpression()&&!t.parentPath.isCallExpression({callee:r})){var y=t.get("property");var v=t.get("object");if(v.isLiteral()&&y.isIdentifier()){var T=v.node.value;var S=typeof T==="undefined"?"undefined":(0,i.default)(T);if(S==="number"||S==="string"){return T[y.node.name]}}}if(t.isReferencedIdentifier()){var b=t.scope.getBinding(r.name);if(b&&b.constantViolations.length>0){return deopt(b.path)}if(b&&t.node.start=k.length)break;O=k[N++]}else{N=k.next();if(N.done)break;O=N.value}var F=O;F=F.evaluate();if(F.confident){C.push(F.value)}else{return deopt(F)}}return C}if(t.isObjectExpression()){var w={};var I=t.get("properties");for(var L=I,M=Array.isArray(L),R=0,L=M?L:(0,s.default)(L);;){var B;if(M){if(R>=L.length)break;B=L[R++]}else{R=L.next();if(R.done)break;B=R.value}var j=B;if(j.isObjectMethod()||j.isSpreadProperty()){return deopt(j)}var J=j.get("key");var U=J;if(j.node.computed){U=U.evaluate();if(!U.confident){return deopt(J)}U=U.value}else if(U.isIdentifier()){U=U.node.name}else{U=U.node.value}var V=j.get("value");var W=V.evaluate();if(!W.confident){return deopt(V)}W=W.value;w[U]=W}return w}if(t.isLogicalExpression()){var K=e;var G=evaluate(t.get("left"));var z=e;e=K;var H=evaluate(t.get("right"));var q=e;e=z&&q;switch(r.operator){case"||":if(G&&z){e=true;return G}if(!e)return;return G||H;case"&&":if(!G&&z||!H&&q){e=true}if(!e)return;return G&&H}}if(t.isBinaryExpression()){var $=evaluate(t.get("left"));if(!e)return;var Y=evaluate(t.get("right"));if(!e)return;switch(r.operator){case"-":return $-Y;case"+":return $+Y;case"/":return $/Y;case"*":return $*Y;case"%":return $%Y;case"**":return Math.pow($,Y);case"<":return $":return $>Y;case"<=":return $<=Y;case">=":return $>=Y;case"==":return $==Y;case"!=":return $!=Y;case"===":return $===Y;case"!==":return $!==Y;case"|":return $|Y;case"&":return $&Y;case"^":return $^Y;case"<<":return $<>":return $>>Y;case">>>":return $>>>Y}}if(t.isCallExpression()){var X=t.get("callee");var Q=void 0;var Z=void 0;if(X.isIdentifier()&&!t.scope.getBinding(X.node.name,true)&&u.indexOf(X.node.name)>=0){Z=global[r.callee.name]}if(X.isMemberExpression()){var ee=X.get("object");var te=X.get("property");if(ee.isIdentifier()&&te.isIdentifier()&&u.indexOf(ee.node.name)>=0&&l.indexOf(te.node.name)<0){Q=global[ee.node.name];Z=Q[te.node.name]}if(ee.isLiteral()&&te.isIdentifier()){var re=(0,i.default)(ee.node.value);if(re==="string"||re==="number"){Q=ee.node.value;Z=Q[te.node.name]}}}if(Z){var ne=t.get("arguments").map(evaluate);if(!e)return;return Z.apply(Q,ne)}}deopt(t)}}},4263:function(e,t,r){"use strict";var n=r(6581);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("ForAwaitStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,n.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,n.assertNodeType)("Expression")},body:{validate:(0,n.assertNodeType)("Statement")}}});(0,i.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{}});(0,i.default)("Import",{aliases:["Expression"]});(0,i.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")}}});(0,i.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}});(0,i.default)("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}});(0,i.default)("RestProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,n.assertNodeType)("LVal")}}});(0,i.default)("SpreadProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}})},4268:function(e,t,r){var n=r(820);function listCacheSet(e,t){var r=this.__data__,i=n(r,e);if(i<0){++this.size;r.push([e,t])}else{r[i][1]=t}return this}e.exports=listCacheSet},4272:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=cleanJSXElementLiteralChild;var n=r(6405);function cleanJSXElementLiteralChild(e,t){const r=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||n.ID_Start.test(e))},isIdContinueChar(e){return typeof e==="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="‌"||e==="‍"||n.ID_Continue.test(e))},isDigit(e){return typeof e==="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e==="string"&&/[0-9A-Fa-f]/.test(e)}}},4304:function(e){e.exports=require("string_decoder")},4309:function(e,t,r){e.exports={default:r(2107),__esModule:true}},4314:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=stringTemplate;var n=r(4653);var i=r(2601);var a=r(5392);function stringTemplate(e,t,r){t=e.code(t);let s;return o=>{const c=(0,n.normalizeReplacements)(o);if(!s)s=(0,i.default)(e,t,r);return e.unwrap((0,a.default)(s,c))}}},4315:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=inheritInnerComments;var n=r(7723);function inheritInnerComments(e,t){(0,n.default)("innerComments",e,t)}},4333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFileAsync=t.transformFileSync=t.transformFile=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}var n=r(2520);var i=r(1367);var a=r(5078);({});const s=_gensync()(function*(e,t){const r=Object.assign({},t,{filename:e});const s=yield*(0,n.default)(r);if(s===null)return null;const o=yield*a.readFile(e,"utf8");return yield*(0,i.run)(s,o)});const o=s.errback;t.transformFile=o;const c=s.sync;t.transformFileSync=c;const u=s.async;t.transformFileAsync=u},4337:function(e){function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},4338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=hoistVariables;var n=r(9978);const{assignmentExpression:i,expressionStatement:a,identifier:s}=n;const o={Scope(e,t){if(t.kind==="let")e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;const r=[];const n=e.get("declarations");let o;for(const e of n){o=e.node.id;if(e.node.init){r.push(a(i("=",e.node.id,e.node.init)))}for(const r of Object.keys(e.getBindingIdentifiers())){t.emit(s(r),r,e.node.init!==null)}}if(e.parentPath.isFor({left:e.node})){e.replaceWith(o)}else{e.replaceWithMultiple(r)}}};function hoistVariables(e,t,r="var"){e.traverse(o,{kind:r,emit:t})}},4340:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=isPlaceholderType;var n=r(288);function isPlaceholderType(e,t){if(e===t)return true;const r=n.PLACEHOLDERS_ALIAS[e];if(r){for(const e of r){if(t===e)return true}}return false}},4342:function(e,t,r){const n=r(5706);const i=(e,t,r)=>n(e,t,r)<0;e.exports=i},4347:function(e,t,r){t=e.exports=r(6520);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){a=i}});e.splice(a,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},4351:function(e,t,r){var n=r(4514),i=r(2773);var a=Object.prototype;var s=a.hasOwnProperty;function baseKeys(e){if(!n(e)){return i(e)}var t=[];for(var r in Object(e)){if(s.call(e,r)&&r!="constructor"){t.push(r)}}return t}e.exports=baseKeys},4358:function(e,t,r){r(2429);var n=r(799);var i=r(891);var a=r(6438);var s=r(4439)("toStringTag");var o=("CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,"+"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,"+"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,"+"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,"+"TextTrackList,TouchList").split(",");for(var c=0;c=0)return"after";if(r.this.indexOf(e)>=0)return"before";let n;const i={target:0,this:0};while(!n&&i.this=0){n=e}else{i.this++}}if(!n){throw new Error("Internal Babel error - The two compared nodes"+" don't appear to belong to the same program.")}if(isExecutionUncertainInList(r.this,i.this-1)||isExecutionUncertainInList(r.target,i.target-1)){return"unknown"}const s={this:r.this[i.this-1],target:r.target[i.target-1]};if(s.target.listKey&&s.this.listKey&&s.target.container===s.this.container){return s.target.key>s.this.key?"before":"after"}const o=a[n.type];const c={this:o.indexOf(s.this.parentKey),target:o.indexOf(s.target.parentKey)};return c.target>c.this?"before":"after"}const m=new WeakSet;function _guessExecutionStatusRelativeToDifferentFunctions(e){if(!e.isFunctionDeclaration()||e.parentPath.isExportDeclaration()){return"unknown"}const t=e.scope.getBinding(e.node.id.name);if(!t.references)return"before";const r=t.referencePaths;let n;for(const t of r){const r=!!t.find(t=>t.node===e.node);if(r)continue;if(t.key!=="callee"||!t.parentPath.isCallExpression()){return"unknown"}if(m.has(t.node))continue;m.add(t.node);const i=this._guessExecutionStatusRelativeTo(t);m.delete(t.node);if(n&&n!==i){return"unknown"}else{n=i}}return n}function resolve(e,t){return this._resolve(e,t)||this}function _resolve(e,t){if(t&&t.indexOf(this)>=0)return;t=t||[];t.push(this);if(this.isVariableDeclarator()){if(this.get("id").isIdentifier()){return this.get("init").resolve(e,t)}else{}}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if(r.kind==="module")return;if(r.path!==this){const n=r.path.resolve(e,t);if(this.find(e=>e.node===n.node))return;return n}}else if(this.isTypeCastExpression()){return this.get("expression").resolve(e,t)}else if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!u(r))return;const n=r.value;const i=this.get("object").resolve(e,t);if(i.isObjectExpression()){const r=i.get("properties");for(const i of r){if(!i.isProperty())continue;const r=i.get("key");let a=i.isnt("computed")&&r.isIdentifier({name:n});a=a||r.isLiteral({value:n});if(a)return i.get("value").resolve(e,t)}}else if(i.isArrayExpression()&&!isNaN(+n)){const r=i.get("elements");const a=r[n];if(a)return a.resolve(e,t)}}}function isConstantExpression(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);if(!e)return false;return e.constant}if(this.isLiteral()){if(this.isRegExpLiteral()){return false}if(this.isTemplateLiteral()){return this.get("expressions").every(e=>e.isConstantExpression())}return true}if(this.isUnaryExpression()){if(this.node.operator!=="void"){return false}return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){return this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return false}function isInStrictMode(){const e=this.isProgram()?this:this.parentPath;const t=e.find(e=>{if(e.isProgram({sourceType:"module"}))return true;if(e.isClass())return true;if(!e.isProgram()&&!e.isFunction())return false;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement()){return false}const t=e.isFunction()?e.node.body:e.node;for(const e of t.directives){if(e.value.value==="use strict"){return true}}});return!!t}},4393:function(e){function overArg(e,t){return function(r){return e(t(r))}}e.exports=overArg},4405:function(e,t,r){"use strict";t.__esModule=true;t.is=undefined;var n=r(2979);var i=_interopRequireDefault(n);t.matchesPattern=matchesPattern;t.has=has;t.isStatic=isStatic;t.isnt=isnt;t.equals=equals;t.isNodeType=isNodeType;t.canHaveVariableDeclarationOrExpression=canHaveVariableDeclarationOrExpression;t.canSwapBetweenExpressionAndStatement=canSwapBetweenExpressionAndStatement;t.isCompletionRecord=isCompletionRecord;t.isStatementOrBlock=isStatementOrBlock;t.referencesImport=referencesImport;t.getSource=getSource;t.willIMaybeExecuteBefore=willIMaybeExecuteBefore;t._guessExecutionStatusRelativeTo=_guessExecutionStatusRelativeTo;t._guessExecutionStatusRelativeToDifferentFunctions=_guessExecutionStatusRelativeToDifferentFunctions;t.resolve=resolve;t._resolve=_resolve;var a=r(2973);var s=_interopRequireDefault(a);var o=r(8011);var c=_interopRequireWildcard(o);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function matchesPattern(e,t){if(!this.isMemberExpression())return false;var r=e.split(".");var n=[this.node];var i=0;function matches(e){var t=r[i];return t==="*"||e===t}while(n.length){var a=n.shift();if(t&&i===r.length){return true}if(c.isIdentifier(a)){if(!matches(a.name))return false}else if(c.isLiteral(a)){if(!matches(a.value))return false}else if(c.isMemberExpression(a)){if(a.computed&&!c.isLiteral(a.property)){return false}else{n.unshift(a.property);n.unshift(a.object);continue}}else if(c.isThisExpression(a)){if(!matches("this"))return false}else{return false}if(++i>r.length){return false}}return i===r.length}function has(e){var t=this.node&&this.node[e];if(t&&Array.isArray(t)){return!!t.length}else{return!!t}}function isStatic(){return this.scope.isStatic(this.node)}var u=t.is=has;function isnt(e){return!this.has(e)}function equals(e,t){return this.node[e]===t}function isNodeType(e){return c.isType(this.type,e)}function canHaveVariableDeclarationOrExpression(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function canSwapBetweenExpressionAndStatement(e){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression()){return false}if(this.isExpression()){return c.isBlockStatement(e)}else if(this.isBlockStatement()){return c.isExpression(e)}return false}function isCompletionRecord(e){var t=this;var r=true;do{var n=t.container;if(t.isFunction()&&!r){return!!e}r=false;if(Array.isArray(n)&&t.key!==n.length-1){return false}}while((t=t.parentPath)&&!t.isProgram());return true}function isStatementOrBlock(){if(this.parentPath.isLabeledStatement()||c.isBlockStatement(this.container)){return false}else{return(0,s.default)(c.STATEMENT_OR_BLOCK_KEYS,this.key)}}function referencesImport(e,t){if(!this.isReferencedIdentifier())return false;var r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return false;var n=r.path;var i=n.parentPath;if(!i.isImportDeclaration())return false;if(i.node.source.value===e){if(!t)return true}else{return false}if(n.isImportDefaultSpecifier()&&t==="default"){return true}if(n.isImportNamespaceSpecifier()&&t==="*"){return true}if(n.isImportSpecifier()&&n.node.imported.name===t){return true}return false}function getSource(){var e=this.node;if(e.end){return this.hub.file.code.slice(e.start,e.end)}else{return""}}function willIMaybeExecuteBefore(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function _guessExecutionStatusRelativeTo(e){var t=e.scope.getFunctionParent();var r=this.scope.getFunctionParent();if(t.node!==r.node){var n=this._guessExecutionStatusRelativeToDifferentFunctions(t);if(n){return n}else{e=t.path}}var i=e.getAncestry();if(i.indexOf(this)>=0)return"after";var a=this.getAncestry();var s=void 0;var o=void 0;var u=void 0;for(u=0;u=0){s=l;break}}if(!s){return"before"}var p=i[o-1];var d=a[u-1];if(!p||!d){return"before"}if(p.listKey&&p.container===d.container){return p.key>d.key?"before":"after"}var f=c.VISITOR_KEYS[p.type].indexOf(p.key);var m=c.VISITOR_KEYS[d.type].indexOf(d.key);return f>m?"before":"after"}function _guessExecutionStatusRelativeToDifferentFunctions(e){var t=e.path;if(!t.isFunctionDeclaration())return;var r=t.scope.getBinding(t.node.id.name);if(!r.references)return"before";var n=r.referencePaths;for(var a=n,s=Array.isArray(a),o=0,a=s?a:(0,i.default)(a);;){var c;if(s){if(o>=a.length)break;c=a[o++]}else{o=a.next();if(o.done)break;c=o.value}var u=c;if(u.key!=="callee"||!u.parentPath.isCallExpression()){return}}var l=void 0;for(var p=n,d=Array.isArray(p),f=0,p=d?p:(0,i.default)(p);;){var m;if(d){if(f>=p.length)break;m=p[f++]}else{f=p.next();if(f.done)break;m=f.value}var g=m;var _=!!g.find(function(e){return e.node===t.node});if(_)continue;var h=this._guessExecutionStatusRelativeTo(g);if(l){if(l!==h)return}else{l=h}}return l}function resolve(e,t){return this._resolve(e,t)||this}function _resolve(e,t){if(t&&t.indexOf(this)>=0)return;t=t||[];t.push(this);if(this.isVariableDeclarator()){if(this.get("id").isIdentifier()){return this.get("init").resolve(e,t)}else{}}else if(this.isReferencedIdentifier()){var r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if(r.kind==="module")return;if(r.path!==this){var n=r.path.resolve(e,t);if(this.find(function(e){return e.node===n.node}))return;return n}}else if(this.isTypeCastExpression()){return this.get("expression").resolve(e,t)}else if(e&&this.isMemberExpression()){var a=this.toComputedKey();if(!c.isLiteral(a))return;var s=a.value;var o=this.get("object").resolve(e,t);if(o.isObjectExpression()){var u=o.get("properties");for(var l=u,p=Array.isArray(l),d=0,l=p?l:(0,i.default)(l);;){var f;if(p){if(d>=l.length)break;f=l[d++]}else{d=l.next();if(d.done)break;f=d.value}var m=f;if(!m.isProperty())continue;var g=m.get("key");var _=m.isnt("computed")&&g.isIdentifier({name:s});_=_||g.isLiteral({value:s});if(_)return m.get("value").resolve(e,t)}}else if(o.isArrayExpression()&&!isNaN(+s)){var h=o.get("elements");var y=h[s];if(y)return y.resolve(e,t)}}}},4431:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=a(r(2087));const o=r(5082);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const c="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=c+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${c}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},4433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.maybeAsync=maybeAsync;t.forwardAsync=forwardAsync;t.isThenable=isThenable;t.waitFor=t.onFirstPause=t.isAsync=void 0;function _gensync(){const e=r(2585);_gensync=function(){return e};return e}const n=e=>e;const i=_gensync()(function*(e){return yield*e});const a=_gensync()({sync:()=>false,errback:e=>e(null,true)});t.isAsync=a;function maybeAsync(e,t){return _gensync()({sync(...r){const n=e.apply(this,r);if(isThenable(n))throw new Error(t);return n},async(...t){return Promise.resolve(e.apply(this,t))}})}const s=_gensync()({sync:e=>e("sync"),async:e=>e("async")});function forwardAsync(e,t){const r=_gensync()(e);return s(e=>{const n=r[e];return t(n)})}const o=_gensync()({name:"onFirstPause",arity:2,sync:function(e){return i.sync(e)},errback:function(e,t,r){let n=false;i.errback(e,(e,t)=>{n=true;r(e,t)});if(!n){t()}}});t.onFirstPause=o;const c=_gensync()({sync:n,async:n});t.waitFor=c;function isThenable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!!e.then&&typeof e.then==="function"}},4438:function(e,t,r){var n=r(799);var i=r(5496);var a=r(9381);var s=r(7617);var o=r(109).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:n.Symbol||{});if(e.charAt(0)!="_"&&!(e in t))o(t,e,{value:s.f(e)})}},4439:function(e,t,r){var n=r(3709)("wks");var i=r(8472);var a=r(799).Symbol;var s=typeof a=="function";var o=e.exports=function(e){return n[e]||(n[e]=s&&a[e]||(s?a:i)("Symbol."+e))};o.store=n},4450:function(e,t,r){"use strict";t.__esModule=true;t.NOT_LOCAL_BINDING=t.BLOCK_SCOPED_SYMBOL=t.INHERIT_KEYS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.NUMBER_UNARY_OPERATORS=t.BOOLEAN_UNARY_OPERATORS=t.BINARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.EQUALITY_BINARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.UPDATE_OPERATORS=t.LOGICAL_OPERATORS=t.COMMENT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.STATEMENT_OR_BLOCK_KEYS=undefined;var n=r(929);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var a=t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];var s=t.FLATTENABLE_KEYS=["body","expressions"];var o=t.FOR_INIT_KEYS=["left","init"];var c=t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var u=t.LOGICAL_OPERATORS=["||","&&"];var l=t.UPDATE_OPERATORS=["++","--"];var p=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];var d=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];var f=t.COMPARISON_BINARY_OPERATORS=[].concat(d,["in","instanceof"]);var m=t.BOOLEAN_BINARY_OPERATORS=[].concat(f,p);var g=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];var _=t.BINARY_OPERATORS=["+"].concat(g,m);var h=t.BOOLEAN_UNARY_OPERATORS=["delete","!"];var y=t.NUMBER_UNARY_OPERATORS=["+","-","++","--","~"];var v=t.STRING_UNARY_OPERATORS=["typeof"];var T=t.UNARY_OPERATORS=["void"].concat(h,y,v);var S=t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};var b=t.BLOCK_SCOPED_SYMBOL=(0,i.default)("var used to be block scoped");var E=t.NOT_LOCAL_BINDING=(0,i.default)("should not be considered a local binding")},4454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var n=_interopDefault(r(2413));var i=_interopDefault(r(8605));var a=_interopDefault(r(8835));var s=_interopDefault(r(5176));var o=_interopDefault(r(7211));var c=_interopDefault(r(8761));const u=n.Readable;const l=Symbol("buffer");const p=Symbol("type");class Blob{constructor(){this[p]="";const e=arguments[0];const t=arguments[1];const r=[];let n=0;if(e){const t=e;const i=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let a=i===undefined?0:i;var s=r.timeout;let o=s===undefined?0:s;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof n) ;else{e=Buffer.from(String(e))}this[f]={body:e,disturbed:false,error:null};this.size=a;this.timeout=o;if(e instanceof n){e.on("error",function(e){const r=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[f].error=r})}}Body.prototype={get body(){return this[f].body},get bodyUsed(){return this[f].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[l]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}}};function consumeBody(){var e=this;if(this[f].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[f].disturbed=true;if(this[f].error){return Body.Promise.reject(this[f].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof n)){return Body.Promise.resolve(Buffer.alloc(0))}let r=[];let i=0;let a=false;return new Body.Promise(function(n,s){let o;if(e.timeout){o=setTimeout(function(){a=true;s(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){a=true;s(t)}else{s(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(a||t===null){return}if(e.size&&i+t.length>e.size){a=true;s(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}i+=t.length;r.push(t)});t.on("end",function(){if(a){return}clearTimeout(o);try{n(Buffer.concat(r,i))}catch(t){s(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof d!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const r=t.get("content-type");let n="utf-8";let i,a;if(r){i=/charset=([^;]*)/i.exec(r)}a=e.slice(0,1024).toString();if(!i&&a){i=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[h]=Object.create(null);if(e instanceof Headers){const t=e.raw();const r=Object.keys(t);for(const e of r){for(const r of t[e]){this.append(e,r)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const r=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}r.push(Array.from(t))}for(const e of r){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[h],e);if(t===undefined){return null}return this[h][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let r=getHeaders(this);let n=0;while(n1&&arguments[1]!==undefined?arguments[1]:"key+value";const r=Object.keys(e[h]).sort();return r.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[h][t].join(", ")}:function(t){return[t.toLowerCase(),e[h][t].join(", ")]})}const y=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(v);r[y]={target:e,kind:t,index:0};return r}const v=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==v){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[y];const t=e.target,r=e.kind,n=e.index;const i=getHeaders(t,r);const a=i.length;if(n>=a){return{value:undefined,done:true}}this[y].index=n+1;return{value:i[n],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(v,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[h]);const r=find(e[h],"Host");if(r!==undefined){t[r]=t[r][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e)){if(g.test(r)){continue}if(Array.isArray(e[r])){for(const n of e[r]){if(_.test(n)){continue}if(t[h][r]===undefined){t[h][r]=[n]}else{t[h][r].push(n)}}}else if(!_.test(e[r])){t[h][r]=[e[r]]}}return t}const T=Symbol("Response internals");const S=i.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const r=t.status||200;const n=new Headers(t.headers);if(e!=null&&!n.has("Content-Type")){const t=extractContentType(e);if(t){n.append("Content-Type",t)}}this[T]={url:t.url,status:r,statusText:t.statusText||S[r],headers:n,counter:t.counter}}get url(){return this[T].url||""}get status(){return this[T].status}get ok(){return this[T].status>=200&&this[T].status<300}get redirected(){return this[T].counter>0}get statusText(){return this[T].statusText}get headers(){return this[T].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const b=Symbol("Request internals");const E=s.URL;const x=a.parse;const D=a.format;function parseURL(e){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)){e=new E(e).toString()}return x(e)}const C="destroy"in n.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[b]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let r;if(!isRequest(e)){if(e&&e.href){r=parseURL(e.href)}else{r=parseURL(`${e}`)}e={}}else{r=parseURL(e.url)}let n=t.method||e.method||"GET";n=n.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(n==="GET"||n==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let i=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,i,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const a=new Headers(t.headers||e.headers||{});if(i!=null&&!a.has("Content-Type")){const e=extractContentType(i);if(e){a.append("Content-Type",e)}}let s=isRequest(e)?e.signal:null;if("signal"in t)s=t.signal;if(s!=null&&!isAbortSignal(s)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[b]={method:n,redirect:t.redirect||e.redirect||"follow",headers:a,parsedURL:r,signal:s};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[b].method}get url(){return D(this[b].parsedURL)}get headers(){return this[b].headers}get redirect(){return this[b].redirect}get signal(){return this[b].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[b].parsedURL;const r=new Headers(e[b].headers);if(!r.has("Accept")){r.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof n.Readable&&!C){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let i=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){i="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){i=String(t)}}if(i){r.set("Content-Length",i)}if(!r.has("User-Agent")){r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!r.has("Accept-Encoding")){r.set("Accept-Encoding","gzip,deflate")}let a=e.agent;if(typeof a==="function"){a=a(t)}if(!r.has("Connection")&&!a){r.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:a})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const A=n.PassThrough;const k=a.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(r,a){const s=new Request(e,t);const u=getNodeRequestOptions(s);const l=(u.protocol==="https:"?o:i).request;const p=s.signal;let d=null;const f=function abort(){let e=new AbortError("The user aborted a request.");a(e);if(s.body&&s.body instanceof n.Readable){s.body.destroy(e)}if(!d||!d.body)return;d.body.emit("error",e)};if(p&&p.aborted){f();return}const m=function abortAndFinalize(){f();finalize()};const g=l(u);let _;if(p){p.addEventListener("abort",m)}function finalize(){g.abort();if(p)p.removeEventListener("abort",m);clearTimeout(_)}if(s.timeout){g.once("socket",function(e){_=setTimeout(function(){a(new FetchError(`network timeout at: ${s.url}`,"request-timeout"));finalize()},s.timeout)})}g.on("error",function(e){a(new FetchError(`request to ${s.url} failed, reason: ${e.message}`,"system",e));finalize()});g.on("response",function(e){clearTimeout(_);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const n=t.get("Location");const i=n===null?null:k(s.url,n);switch(s.redirect){case"error":a(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${s.url}`,"no-redirect"));finalize();return;case"manual":if(i!==null){try{t.set("Location",i)}catch(e){a(e)}}break;case"follow":if(i===null){break}if(s.counter>=s.follow){a(new FetchError(`maximum redirect reached at: ${s.url}`,"max-redirect"));finalize();return}const n={headers:new Headers(s.headers),follow:s.follow,counter:s.counter+1,agent:s.agent,compress:s.compress,method:s.method,body:s.body,signal:s.signal,timeout:s.timeout,size:s.size};if(e.statusCode!==303&&s.body&&getTotalBytes(s)===null){a(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&s.method==="POST"){n.method="GET";n.body=undefined;n.headers.delete("content-length")}r(fetch(new Request(i,n)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",m)});let n=e.pipe(new A);const i={url:s.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:s.size,timeout:s.timeout,counter:s.counter};const o=t.get("Content-Encoding");if(!s.compress||s.method==="HEAD"||o===null||e.statusCode===204||e.statusCode===304){d=new Response(n,i);r(d);return}const u={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(o=="gzip"||o=="x-gzip"){n=n.pipe(c.createGunzip(u));d=new Response(n,i);r(d);return}if(o=="deflate"||o=="x-deflate"){const t=e.pipe(new A);t.once("data",function(e){if((e[0]&15)===8){n=n.pipe(c.createInflate())}else{n=n.pipe(c.createInflateRaw())}d=new Response(n,i);r(d)});return}if(o=="br"&&typeof c.createBrotliDecompress==="function"){n=n.pipe(c.createBrotliDecompress());d=new Response(n,i);r(d);return}d=new Response(n,i);r(d)});writeToStream(g,s)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},4457:function(e,t,r){"use strict";var n=r(799);var i=r(6673);var a=r(8681);var s=r(3461);var o=r(891);var c=r(3762);var u=r(9602);var l=r(4796);var p=r(1752);var d=r(8938);var f=r(109).f;var m=r(4937)(0);var g=r(917);e.exports=function(e,t,r,_,h,y){var v=n[e];var T=v;var S=h?"set":"add";var b=T&&T.prototype;var E={};if(!g||typeof T!="function"||!(y||b.forEach&&!s(function(){(new T).entries().next()}))){T=_.getConstructor(t,e,h,S);c(T.prototype,r);a.NEED=true}else{T=t(function(t,r){l(t,T,e,"_c");t._c=new v;if(r!=undefined)u(r,h,t[S],t)});m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t=e=="add"||e=="set";if(e in b&&!(y&&e=="clear"))o(T.prototype,e,function(r,n){l(this,T,e);if(!t&&y&&!p(r))return e=="get"?undefined:false;var i=this._c[e](r===0?0:r,n);return t?this:i})});y||f(T.prototype,"size",{get:function(){return this._c.size}})}d(T,e);E[e]=T;i(i.G+i.W+i.F,E);if(!y)_.setStrong(T,e,h);return T}},4461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getKeys=void 0;const n=r(9337);const i=n.getKeys;t.getKeys=i},4464:function(e){"use strict";e.exports=((...e)=>{return[...new Set([].concat(...e))]})},4486:function(e,t,r){var n=r(776);var i=r(612);var a={};var s=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i{t[i[r]]=e[r];return t},{})}e.exports.agents=Object.keys(a).reduce((e,t)=>{let r=a[t];e[n[t]]=Object.keys(r).reduce((e,t)=>{if(t==="A"){e.usage_global=unpackBrowserVersions(r[t])}else if(t==="C"){e.versions=r[t].reduce((e,t)=>{if(t===""){e.push(null)}else{e.push(i[t])}return e},[])}else if(t==="D"){e.prefix_exceptions=unpackBrowserVersions(r[t])}else if(t==="E"){e.browser=r[t]}else if(t==="F"){e.release_date=Object.keys(r[t]).reduce((e,n)=>{e[i[n]]=r[t][n];return e},{})}else{e.prefix=r[t]}return e},{});return e},{})},4501:function(e,t,r){"use strict";const{promisify:n}=r(1669);const i=r(5747);async function isType(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const a=await n(i[e])(r);return a[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return i[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.isFile=isType.bind(null,"stat","isFile");t.isDirectory=isType.bind(null,"stat","isDirectory");t.isSymlink=isType.bind(null,"lstat","isSymbolicLink");t.isFileSync=isTypeSync.bind(null,"statSync","isFile");t.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");t.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},4513:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=import_;function import_(e){return r(4884)(e)}},4514:function(e){var t=Object.prototype;function isPrototype(e){var r=e&&e.constructor,n=typeof r=="function"&&r.prototype||t;return e===n}e.exports=isPrototype},4527:function(e,t,r){var n=r(5753);var i=r(3972);var a=r(5384);e.exports=function(e){return function(t,r,s){var o=n(t);var c=i(o.length);var u=a(s,c);var l;if(e&&r!=r)while(c>u){l=o[u++];if(l!=l)return true}else for(;c>u;u++)if(e||u in o){if(o[u]===r)return e||u||0}return!e&&-1}}},4533:function(e){e.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:false,security:false},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:false,security:false},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:false,security:false},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:false,security:false},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:false,security:false},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:false,security:false},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:false,security:false},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:false,security:false},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:false,security:false},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:false,security:false},{name:"nodejs",version:"0.12.0",date:"2015-02-06",lts:false,security:false},{name:"iojs",version:"1.0.0",date:"2015-01-14"},{name:"iojs",version:"1.1.0",date:"2015-02-03"},{name:"iojs",version:"1.2.0",date:"2015-02-11"},{name:"iojs",version:"1.3.0",date:"2015-02-20"},{name:"iojs",version:"1.5.0",date:"2015-03-06"},{name:"iojs",version:"1.6.0",date:"2015-03-20"},{name:"iojs",version:"2.0.0",date:"2015-05-04"},{name:"iojs",version:"2.1.0",date:"2015-05-24"},{name:"iojs",version:"2.2.0",date:"2015-06-01"},{name:"iojs",version:"2.3.0",date:"2015-06-13"},{name:"iojs",version:"2.4.0",date:"2015-07-17"},{name:"iojs",version:"2.5.0",date:"2015-07-28"},{name:"iojs",version:"3.0.0",date:"2015-08-04"},{name:"iojs",version:"3.1.0",date:"2015-08-19"},{name:"iojs",version:"3.2.0",date:"2015-08-25"},{name:"iojs",version:"3.3.0",date:"2015-09-02"},{name:"nodejs",version:"4.0.0",date:"2015-09-08",lts:false,security:false},{name:"nodejs",version:"4.1.0",date:"2015-09-17",lts:false,security:false},{name:"nodejs",version:"4.2.0",date:"2015-10-12",lts:"Argon",security:false},{name:"nodejs",version:"4.3.0",date:"2016-02-09",lts:"Argon",security:false},{name:"nodejs",version:"4.4.0",date:"2016-03-08",lts:"Argon",security:false},{name:"nodejs",version:"4.5.0",date:"2016-08-16",lts:"Argon",security:false},{name:"nodejs",version:"4.6.0",date:"2016-09-27",lts:"Argon",security:true},{name:"nodejs",version:"4.7.0",date:"2016-12-06",lts:"Argon",security:false},{name:"nodejs",version:"4.8.0",date:"2017-02-21",lts:"Argon",security:false},{name:"nodejs",version:"4.9.0",date:"2018-03-28",lts:"Argon",security:true},{name:"nodejs",version:"5.0.0",date:"2015-10-29",lts:false,security:false},{name:"nodejs",version:"5.1.0",date:"2015-11-17",lts:false,security:false},{name:"nodejs",version:"5.2.0",date:"2015-12-09",lts:false,security:false},{name:"nodejs",version:"5.3.0",date:"2015-12-15",lts:false,security:false},{name:"nodejs",version:"5.4.0",date:"2016-01-06",lts:false,security:false},{name:"nodejs",version:"5.5.0",date:"2016-01-21",lts:false,security:false},{name:"nodejs",version:"5.6.0",date:"2016-02-09",lts:false,security:false},{name:"nodejs",version:"5.7.0",date:"2016-02-23",lts:false,security:false},{name:"nodejs",version:"5.8.0",date:"2016-03-09",lts:false,security:false},{name:"nodejs",version:"5.9.0",date:"2016-03-16",lts:false,security:false},{name:"nodejs",version:"5.10.0",date:"2016-04-01",lts:false,security:false},{name:"nodejs",version:"5.11.0",date:"2016-04-21",lts:false,security:false},{name:"nodejs",version:"5.12.0",date:"2016-06-23",lts:false,security:false},{name:"nodejs",version:"6.0.0",date:"2016-04-26",lts:false,security:false},{name:"nodejs",version:"6.1.0",date:"2016-05-05",lts:false,security:false},{name:"nodejs",version:"6.2.0",date:"2016-05-17",lts:false,security:false},{name:"nodejs",version:"6.3.0",date:"2016-07-06",lts:false,security:false},{name:"nodejs",version:"6.4.0",date:"2016-08-12",lts:false,security:false},{name:"nodejs",version:"6.5.0",date:"2016-08-26",lts:false,security:false},{name:"nodejs",version:"6.6.0",date:"2016-09-14",lts:false,security:false},{name:"nodejs",version:"6.7.0",date:"2016-09-27",lts:false,security:true},{name:"nodejs",version:"6.8.0",date:"2016-10-12",lts:false,security:false},{name:"nodejs",version:"6.9.0",date:"2016-10-18",lts:"Boron",security:false},{name:"nodejs",version:"6.10.0",date:"2017-02-21",lts:"Boron",security:false},{name:"nodejs",version:"6.11.0",date:"2017-06-06",lts:"Boron",security:false},{name:"nodejs",version:"6.12.0",date:"2017-11-06",lts:"Boron",security:false},{name:"nodejs",version:"6.13.0",date:"2018-02-10",lts:"Boron",security:false},{name:"nodejs",version:"6.14.0",date:"2018-03-28",lts:"Boron",security:true},{name:"nodejs",version:"6.15.0",date:"2018-11-27",lts:"Boron",security:true},{name:"nodejs",version:"6.16.0",date:"2018-12-26",lts:"Boron",security:false},{name:"nodejs",version:"6.17.0",date:"2019-02-28",lts:"Boron",security:true},{name:"nodejs",version:"7.0.0",date:"2016-10-25",lts:false,security:false},{name:"nodejs",version:"7.1.0",date:"2016-11-08",lts:false,security:false},{name:"nodejs",version:"7.2.0",date:"2016-11-22",lts:false,security:false},{name:"nodejs",version:"7.3.0",date:"2016-12-20",lts:false,security:false},{name:"nodejs",version:"7.4.0",date:"2017-01-04",lts:false,security:false},{name:"nodejs",version:"7.5.0",date:"2017-01-31",lts:false,security:false},{name:"nodejs",version:"7.6.0",date:"2017-02-21",lts:false,security:false},{name:"nodejs",version:"7.7.0",date:"2017-02-28",lts:false,security:false},{name:"nodejs",version:"7.8.0",date:"2017-03-29",lts:false,security:false},{name:"nodejs",version:"7.9.0",date:"2017-04-11",lts:false,security:false},{name:"nodejs",version:"7.10.0",date:"2017-05-02",lts:false,security:false},{name:"nodejs",version:"8.0.0",date:"2017-05-30",lts:false,security:false},{name:"nodejs",version:"8.1.0",date:"2017-06-08",lts:false,security:false},{name:"nodejs",version:"8.2.0",date:"2017-07-19",lts:false,security:false},{name:"nodejs",version:"8.3.0",date:"2017-08-08",lts:false,security:false},{name:"nodejs",version:"8.4.0",date:"2017-08-15",lts:false,security:false},{name:"nodejs",version:"8.5.0",date:"2017-09-12",lts:false,security:false},{name:"nodejs",version:"8.6.0",date:"2017-09-26",lts:false,security:false},{name:"nodejs",version:"8.7.0",date:"2017-10-11",lts:false,security:false},{name:"nodejs",version:"8.8.0",date:"2017-10-24",lts:false,security:false},{name:"nodejs",version:"8.9.0",date:"2017-10-31",lts:"Carbon",security:false},{name:"nodejs",version:"8.10.0",date:"2018-03-06",lts:"Carbon",security:false},{name:"nodejs",version:"8.11.0",date:"2018-03-28",lts:"Carbon",security:true},{name:"nodejs",version:"8.12.0",date:"2018-09-10",lts:"Carbon",security:false},{name:"nodejs",version:"8.13.0",date:"2018-11-20",lts:"Carbon",security:false},{name:"nodejs",version:"8.14.0",date:"2018-11-27",lts:"Carbon",security:true},{name:"nodejs",version:"8.15.0",date:"2018-12-26",lts:"Carbon",security:false},{name:"nodejs",version:"8.16.0",date:"2019-04-16",lts:"Carbon",security:false},{name:"nodejs",version:"8.17.0",date:"2019-12-17",lts:"Carbon",security:true},{name:"nodejs",version:"9.0.0",date:"2017-10-31",lts:false,security:false},{name:"nodejs",version:"9.1.0",date:"2017-11-07",lts:false,security:false},{name:"nodejs",version:"9.2.0",date:"2017-11-14",lts:false,security:false},{name:"nodejs",version:"9.3.0",date:"2017-12-12",lts:false,security:false},{name:"nodejs",version:"9.4.0",date:"2018-01-10",lts:false,security:false},{name:"nodejs",version:"9.5.0",date:"2018-01-31",lts:false,security:false},{name:"nodejs",version:"9.6.0",date:"2018-02-21",lts:false,security:false},{name:"nodejs",version:"9.7.0",date:"2018-03-01",lts:false,security:false},{name:"nodejs",version:"9.8.0",date:"2018-03-07",lts:false,security:false},{name:"nodejs",version:"9.9.0",date:"2018-03-21",lts:false,security:false},{name:"nodejs",version:"9.10.0",date:"2018-03-28",lts:false,security:true},{name:"nodejs",version:"9.11.0",date:"2018-04-04",lts:false,security:false},{name:"nodejs",version:"10.0.0",date:"2018-04-24",lts:false,security:false},{name:"nodejs",version:"10.1.0",date:"2018-05-08",lts:false,security:false},{name:"nodejs",version:"10.2.0",date:"2018-05-23",lts:false,security:false},{name:"nodejs",version:"10.3.0",date:"2018-05-29",lts:false,security:false},{name:"nodejs",version:"10.4.0",date:"2018-06-06",lts:false,security:false},{name:"nodejs",version:"10.5.0",date:"2018-06-20",lts:false,security:false},{name:"nodejs",version:"10.6.0",date:"2018-07-04",lts:false,security:false},{name:"nodejs",version:"10.7.0",date:"2018-07-18",lts:false,security:false},{name:"nodejs",version:"10.8.0",date:"2018-08-01",lts:false,security:false},{name:"nodejs",version:"10.9.0",date:"2018-08-15",lts:false,security:false},{name:"nodejs",version:"10.10.0",date:"2018-09-06",lts:false,security:false},{name:"nodejs",version:"10.11.0",date:"2018-09-19",lts:false,security:false},{name:"nodejs",version:"10.12.0",date:"2018-10-10",lts:false,security:false},{name:"nodejs",version:"10.13.0",date:"2018-10-30",lts:"Dubnium",security:false},{name:"nodejs",version:"10.14.0",date:"2018-11-27",lts:"Dubnium",security:true},{name:"nodejs",version:"10.15.0",date:"2018-12-26",lts:"Dubnium",security:false},{name:"nodejs",version:"10.16.0",date:"2019-05-28",lts:"Dubnium",security:false},{name:"nodejs",version:"10.17.0",date:"2019-10-22",lts:"Dubnium",security:false},{name:"nodejs",version:"10.18.0",date:"2019-12-17",lts:"Dubnium",security:true},{name:"nodejs",version:"10.19.0",date:"2020-02-05",lts:"Dubnium",security:true},{name:"nodejs",version:"10.20.0",date:"2020-03-26",lts:"Dubnium",security:false},{name:"nodejs",version:"10.21.0",date:"2020-06-02",lts:"Dubnium",security:true},{name:"nodejs",version:"10.22.0",date:"2020-07-21",lts:"Dubnium",security:false},{name:"nodejs",version:"10.23.0",date:"2020-10-27",lts:"Dubnium",security:false},{name:"nodejs",version:"10.24.0",date:"2021-02-23",lts:"Dubnium",security:true},{name:"nodejs",version:"11.0.0",date:"2018-10-23",lts:false,security:false},{name:"nodejs",version:"11.1.0",date:"2018-10-30",lts:false,security:false},{name:"nodejs",version:"11.2.0",date:"2018-11-15",lts:false,security:false},{name:"nodejs",version:"11.3.0",date:"2018-11-27",lts:false,security:true},{name:"nodejs",version:"11.4.0",date:"2018-12-07",lts:false,security:false},{name:"nodejs",version:"11.5.0",date:"2018-12-18",lts:false,security:false},{name:"nodejs",version:"11.6.0",date:"2018-12-26",lts:false,security:false},{name:"nodejs",version:"11.7.0",date:"2019-01-17",lts:false,security:false},{name:"nodejs",version:"11.8.0",date:"2019-01-24",lts:false,security:false},{name:"nodejs",version:"11.9.0",date:"2019-01-30",lts:false,security:false},{name:"nodejs",version:"11.10.0",date:"2019-02-14",lts:false,security:false},{name:"nodejs",version:"11.11.0",date:"2019-03-05",lts:false,security:false},{name:"nodejs",version:"11.12.0",date:"2019-03-14",lts:false,security:false},{name:"nodejs",version:"11.13.0",date:"2019-03-28",lts:false,security:false},{name:"nodejs",version:"11.14.0",date:"2019-04-10",lts:false,security:false},{name:"nodejs",version:"11.15.0",date:"2019-04-30",lts:false,security:false},{name:"nodejs",version:"12.0.0",date:"2019-04-23",lts:false,security:false},{name:"nodejs",version:"12.1.0",date:"2019-04-29",lts:false,security:false},{name:"nodejs",version:"12.2.0",date:"2019-05-07",lts:false,security:false},{name:"nodejs",version:"12.3.0",date:"2019-05-21",lts:false,security:false},{name:"nodejs",version:"12.4.0",date:"2019-06-04",lts:false,security:false},{name:"nodejs",version:"12.5.0",date:"2019-06-26",lts:false,security:false},{name:"nodejs",version:"12.6.0",date:"2019-07-03",lts:false,security:false},{name:"nodejs",version:"12.7.0",date:"2019-07-23",lts:false,security:false},{name:"nodejs",version:"12.8.0",date:"2019-08-06",lts:false,security:false},{name:"nodejs",version:"12.9.0",date:"2019-08-20",lts:false,security:false},{name:"nodejs",version:"12.10.0",date:"2019-09-04",lts:false,security:false},{name:"nodejs",version:"12.11.0",date:"2019-09-25",lts:false,security:false},{name:"nodejs",version:"12.12.0",date:"2019-10-11",lts:false,security:false},{name:"nodejs",version:"12.13.0",date:"2019-10-21",lts:"Erbium",security:false},{name:"nodejs",version:"12.14.0",date:"2019-12-17",lts:"Erbium",security:true},{name:"nodejs",version:"12.15.0",date:"2020-02-05",lts:"Erbium",security:true},{name:"nodejs",version:"12.16.0",date:"2020-02-11",lts:"Erbium",security:false},{name:"nodejs",version:"12.17.0",date:"2020-05-26",lts:"Erbium",security:false},{name:"nodejs",version:"12.18.0",date:"2020-06-02",lts:"Erbium",security:true},{name:"nodejs",version:"12.19.0",date:"2020-10-06",lts:"Erbium",security:false},{name:"nodejs",version:"12.20.0",date:"2020-11-24",lts:"Erbium",security:false},{name:"nodejs",version:"12.21.0",date:"2021-02-23",lts:"Erbium",security:true},{name:"nodejs",version:"12.22.0",date:"2021-03-30",lts:"Erbium",security:false},{name:"nodejs",version:"13.0.0",date:"2019-10-22",lts:false,security:false},{name:"nodejs",version:"13.1.0",date:"2019-11-05",lts:false,security:false},{name:"nodejs",version:"13.2.0",date:"2019-11-21",lts:false,security:false},{name:"nodejs",version:"13.3.0",date:"2019-12-03",lts:false,security:false},{name:"nodejs",version:"13.4.0",date:"2019-12-17",lts:false,security:true},{name:"nodejs",version:"13.5.0",date:"2019-12-18",lts:false,security:false},{name:"nodejs",version:"13.6.0",date:"2020-01-07",lts:false,security:false},{name:"nodejs",version:"13.7.0",date:"2020-01-21",lts:false,security:false},{name:"nodejs",version:"13.8.0",date:"2020-02-05",lts:false,security:true},{name:"nodejs",version:"13.9.0",date:"2020-02-18",lts:false,security:false},{name:"nodejs",version:"13.10.0",date:"2020-03-04",lts:false,security:false},{name:"nodejs",version:"13.11.0",date:"2020-03-12",lts:false,security:false},{name:"nodejs",version:"13.12.0",date:"2020-03-26",lts:false,security:false},{name:"nodejs",version:"13.13.0",date:"2020-04-14",lts:false,security:false},{name:"nodejs",version:"13.14.0",date:"2020-04-29",lts:false,security:false},{name:"nodejs",version:"14.0.0",date:"2020-04-21",lts:false,security:false},{name:"nodejs",version:"14.1.0",date:"2020-04-29",lts:false,security:false},{name:"nodejs",version:"14.2.0",date:"2020-05-05",lts:false,security:false},{name:"nodejs",version:"14.3.0",date:"2020-05-19",lts:false,security:false},{name:"nodejs",version:"14.4.0",date:"2020-06-02",lts:false,security:true},{name:"nodejs",version:"14.5.0",date:"2020-06-30",lts:false,security:false},{name:"nodejs",version:"14.6.0",date:"2020-07-20",lts:false,security:false},{name:"nodejs",version:"14.7.0",date:"2020-07-29",lts:false,security:false},{name:"nodejs",version:"14.8.0",date:"2020-08-11",lts:false,security:false},{name:"nodejs",version:"14.9.0",date:"2020-08-27",lts:false,security:false},{name:"nodejs",version:"14.10.0",date:"2020-09-08",lts:false,security:false},{name:"nodejs",version:"14.11.0",date:"2020-09-15",lts:false,security:true},{name:"nodejs",version:"14.12.0",date:"2020-09-22",lts:false,security:false},{name:"nodejs",version:"14.13.0",date:"2020-09-29",lts:false,security:false},{name:"nodejs",version:"14.14.0",date:"2020-10-15",lts:false,security:false},{name:"nodejs",version:"14.15.0",date:"2020-10-27",lts:"Fermium",security:false},{name:"nodejs",version:"14.16.0",date:"2021-02-23",lts:"Fermium",security:true},{name:"nodejs",version:"14.17.0",date:"2021-05-11",lts:"Fermium",security:false},{name:"nodejs",version:"15.0.0",date:"2020-10-20",lts:false,security:false},{name:"nodejs",version:"15.1.0",date:"2020-11-04",lts:false,security:false},{name:"nodejs",version:"15.2.0",date:"2020-11-10",lts:false,security:false},{name:"nodejs",version:"15.3.0",date:"2020-11-24",lts:false,security:false},{name:"nodejs",version:"15.4.0",date:"2020-12-09",lts:false,security:false},{name:"nodejs",version:"15.5.0",date:"2020-12-22",lts:false,security:false},{name:"nodejs",version:"15.6.0",date:"2021-01-14",lts:false,security:false},{name:"nodejs",version:"15.7.0",date:"2021-01-25",lts:false,security:false},{name:"nodejs",version:"15.8.0",date:"2021-02-02",lts:false,security:false},{name:"nodejs",version:"15.9.0",date:"2021-02-18",lts:false,security:false},{name:"nodejs",version:"15.10.0",date:"2021-02-23",lts:false,security:true},{name:"nodejs",version:"15.11.0",date:"2021-03-03",lts:false,security:false},{name:"nodejs",version:"15.12.0",date:"2021-03-17",lts:false,security:false},{name:"nodejs",version:"15.13.0",date:"2021-03-31",lts:false,security:false},{name:"nodejs",version:"15.14.0",date:"2021-04-06",lts:false,security:false},{name:"nodejs",version:"16.0.0",date:"2021-04-20",lts:false,security:false},{name:"nodejs",version:"16.1.0",date:"2021-05-04",lts:false,security:false},{name:"nodejs",version:"16.2.0",date:"2021-05-19",lts:false,security:false},{name:"nodejs",version:"16.3.0",date:"2021-06-03",lts:false,security:false},{name:"nodejs",version:"16.4.0",date:"2021-06-23",lts:false,security:false},{name:"nodejs",version:"16.5.0",date:"2021-07-14",lts:false,security:false},{name:"nodejs",version:"16.6.0",date:"2021-07-29",lts:false,security:true},{name:"nodejs",version:"16.7.0",date:"2021-08-18",lts:false,security:false},{name:"nodejs",version:"16.8.0",date:"2021-08-25",lts:false,security:false},{name:"nodejs",version:"16.9.0",date:"2021-09-07",lts:false,security:false}]},4537:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;t.ensureStatementsHoisted=ensureStatementsHoisted;t.wrapInterop=wrapInterop;t.buildNamespaceInitStatements=buildNamespaceInitStatements;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.isModule}});Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return u.hasExports}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return u.isSideEffectImport}});Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return l.default}});var n=r(2357);var i=r(9978);var a=r(3936);var s=r(3104);var o=r(9842);var c=r(2703);var u=r(256);var l=r(1284);const{booleanLiteral:p,callExpression:d,cloneNode:f,directive:m,directiveLiteral:g,expressionStatement:_,identifier:h,isIdentifier:y,memberExpression:v,stringLiteral:T,valueToNode:S,variableDeclaration:b,variableDeclarator:E}=i;function rewriteModuleStatementsAndPrepareHeader(e,{loose:t,exportName:r,strict:i,allowTopLevelThis:a,strictMode:l,noInterop:p,importInterop:d=(p?"none":"babel"),lazy:f,esNamespaceOnly:_,constantReexports:h=t,enumerableModuleMeta:y=t,noIncompleteNsImportDetection:v}){(0,u.validateImportInteropOption)(d);n((0,s.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const T=(0,u.default)(e,r,{importInterop:d,initializeReexports:h,lazy:f,esNamespaceOnly:_});if(!a){(0,o.default)(e)}(0,c.default)(e,T);if(l!==false){const t=e.node.directives.some(e=>{return e.value.value==="use strict"});if(!t){e.unshiftContainer("directives",m(g("use strict")))}}const S=[];if((0,u.hasExports)(T)&&!i){S.push(buildESModuleHeader(T,y))}const b=buildExportNameListDeclaration(e,T);if(b){T.exportNameListName=b.name;S.push(b.statement)}S.push(...buildExportInitializationStatements(e,T,h,v));return{meta:T,headers:S}}function ensureStatementsHoisted(e){e.forEach(e=>{e._blockHoist=3})}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return d(e.hub.addHelper("interopRequireWildcard"),[t,p(true)])}else if(r==="node-default"){return null}let n;if(r==="default"){n="interopRequireDefault"}else if(r==="namespace"){n="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return d(e.hub.addHelper(n),[t])}function buildNamespaceInitStatements(e,t,r=false){const n=[];let i=h(t.name);if(t.lazy)i=d(i,[]);for(const e of t.importsNamespace){if(e===t.name)continue;n.push(a.default.statement`var NAME = SOURCE;`({NAME:e,SOURCE:f(i)}))}if(r){n.push(...D(e,t,true))}for(const r of t.reexportNamespace){n.push((t.lazy?a.default.statement` + `(e);function buildGlobal(e){const t=y("babelHelpers");const r=[];const n=g(null,[y("global")],o(r));const c=A([p(s(n,[l(a("===",E("typeof",y("global")),v("undefined")),y("self"),y("global"))]))]);r.push(T("var",[b(t,i("=",h(y("global"),t),_([])))]));buildHelpers(r,t,e);return c}function buildModule(e){const t=[];const r=buildHelpers(t,null,e);t.unshift(u(null,Object.keys(r).map((e=>d(c(r[e]),y(e))))));return A(t,[],"module")}function buildUmd(e){const t=y("babelHelpers");const r=[];r.push(T("var",[b(t,y("global"))]));buildHelpers(r,t,e);return A([buildUmdWrapper({FACTORY_PARAMETERS:y("global"),BROWSER_ARGUMENTS:i("=",h(y("root"),t),_([])),COMMON_ARGUMENTS:y("exports"),AMD_ARGUMENTS:n([v("exports")]),FACTORY_BODY:r,UMD_ROOT:y("this")})])}function buildVar(e){const t=y("babelHelpers");const r=[];r.push(T("var",[b(t,_([]))]));const n=A(r);buildHelpers(r,t,e);r.push(p(t));return n}function buildHelpers(e,t,r){const getHelperReference=e=>t?h(t,y(e)):y(`_${e}`);const n={};helpers().list.forEach((function(a){if(r&&!r.includes(a))return;const o=n[a]=getHelperReference(a);const{nodes:s}=helpers().get(a,getHelperReference,t?null:`_${a}`,[],t?(e,t,r)=>{r((e=>i("=",o,e)));e.body.push(p(i("=",o,y(t))))}:null);e.push(...s)}));return n}function _default(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(n){r=n(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}0&&0},11468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromAst=void 0;t.transformFromAstAsync=transformFromAstAsync;t.transformFromAstSync=transformFromAstSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(42600);var i=r(66915);var a=r(80824);const o=_gensync()((function*(e,t,r){const a=yield*(0,n.default)(r);if(a===null)return null;if(!e)throw new Error("No AST given");return yield*(0,i.run)(a,t,e)}));const s=t.transformFromAst=function transformFromAst(e,t,r,n){let i;let s;if(typeof r==="function"){s=r;i=undefined}else{i=r;s=n}if(s===undefined){{return(0,a.beginHiddenCallStack)(o.sync)(e,t,i)}}(0,a.beginHiddenCallStack)(o.errback)(e,t,i,s)};function transformFromAstSync(...e){return(0,a.beginHiddenCallStack)(o.sync)(...e)}function transformFromAstAsync(...e){return(0,a.beginHiddenCallStack)(o.async)(...e)}0&&0},98676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFile=transformFile;t.transformFileAsync=transformFileAsync;t.transformFileSync=transformFileSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(42600);var i=r(66915);var a=r(74244);({});const o=_gensync()((function*(e,t){const r=Object.assign({},t,{filename:e});const o=yield*(0,n.default)(r);if(o===null)return null;const s=yield*a.readFile(e,"utf8");return yield*(0,i.run)(o,s)}));function transformFile(...e){o.errback(...e)}function transformFileSync(...e){return o.sync(...e)}function transformFileAsync(...e){return o.async(...e)}0&&0},17129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transform=void 0;t.transformAsync=transformAsync;t.transformSync=transformSync;function _gensync(){const e=r(9621);_gensync=function(){return e};return e}var n=r(42600);var i=r(66915);var a=r(80824);const o=_gensync()((function*transform(e,t){const r=yield*(0,n.default)(t);if(r===null)return null;return yield*(0,i.run)(r,e)}));const s=t.transform=function transform(e,t,r){let n;let i;if(typeof t==="function"){i=t;n=undefined}else{n=t;i=r}if(i===undefined){{return(0,a.beginHiddenCallStack)(o.sync)(e,n)}}(0,a.beginHiddenCallStack)(o.errback)(e,n,i)};function transformSync(...e){return(0,a.beginHiddenCallStack)(o.sync)(...e)}function transformAsync(...e){return(0,a.beginHiddenCallStack)(o.async)(...e)}0&&0},90122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadBlockHoistPlugin;function _traverse(){const e=r(50148);_traverse=function(){return e};return e}var n=r(81685);let i;const a={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=performHoisting(e.body)}},SwitchCase:{exit({node:e}){e.consequent=performHoisting(e.consequent)}}}};function performHoisting(e){let t=Math.pow(2,30)-1;let r=false;for(let n=0;nt){r=true;break}t=a}if(!r)return e;return stableSort(e.slice())}function loadBlockHoistPlugin(){if(!i){i=new n.default(Object.assign({},a,{visitor:_traverse().default.explode(a.visitor)}),{})}return i}function priority(e){const t=e==null?void 0:e._blockHoist;if(t==null)return 1;if(t===true)return 2;return t}function stableSort(e){const t=Object.create(null);for(let r=0;r+e)).sort(((e,t)=>t-e));let n=0;for(const i of r){const r=t[i];for(const t of r){e[n++]=t}}return e}0&&0},95430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function helpers(){const e=r(71475);helpers=function(){return e};return e}function _traverse(){const e=r(50148);_traverse=function(){return e};return e}function _codeFrame(){const e=r(90147);_codeFrame=function(){return e};return e}function _t(){const e=r(16535);_t=function(){return e};return e}function _semver(){const e=r(39318);_semver=function(){return e};return e}var n=r(95336);const{cloneNode:i,interpreterDirective:a}=_t();const o={enter(e,t){const r=e.node.loc;if(r){t.loc=r;e.stop()}}};class File{constructor(e,{code:t,ast:r,inputMap:n}){this._map=new Map;this.opts=void 0;this.declarations={};this.path=void 0;this.ast=void 0;this.scope=void 0;this.metadata={};this.code="";this.inputMap=void 0;this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)};this.opts=e;this.code=t;this.ast=r;this.inputMap=n;this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext();this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){if(e){this.path.get("interpreter").replaceWith(a(e))}else{this.path.get("interpreter").remove()}}set(e,t){{if(e==="helpersNamespace"){throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility."+"If you are using @babel/plugin-external-helpers you will need to use a newer "+"version than the one you currently have installed. "+"If you have your own implementation, you'll want to explore using 'helperGenerator' "+"alongside 'file.availableHelper()'.")}}this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}availableHelper(e,t){if(helpers().isInternal(e))return false;let r;try{r=helpers().minVersion(e)}catch(e){if(e.code!=="BABEL_HELPER_UNKNOWN")throw e;return false}if(typeof t!=="string")return true;if(_semver().valid(t))t=`^${t}`;{return!_semver().intersects(`<${r}`,t)&&!_semver().intersects(`>=8.0.0`,t)}}addHelper(e){if(helpers().isInternal(e)){throw new Error("Cannot use internal helper "+e)}return this._addHelper(e)}_addHelper(e){const t=this.declarations[e];if(t)return i(t);const r=this.get("helperGenerator");if(r){const t=r(e);if(t)return t}helpers().minVersion(e);const n=this.declarations[e]=this.scope.generateUidIdentifier(e);const a={};for(const t of helpers().getDependencies(e)){a[t]=this._addHelper(t)}const{nodes:o,globals:s}=helpers().get(e,(e=>a[e]),n.name,Object.keys(this.scope.getAllBindings()));s.forEach((e=>{if(this.path.scope.hasBinding(e,true)){this.path.scope.rename(e)}}));o.forEach((e=>{e._compact=true}));const c=this.path.unshiftContainer("body",o);for(const e of c){if(e.isVariableDeclaration())this.scope.registerDeclaration(e)}return n}buildCodeFrameError(e,t,r=SyntaxError){let n=e==null?void 0:e.loc;if(!n&&e){const r={loc:null};(0,_traverse().default)(e,o,this.scope,r);n=r.loc;let i="This is an error on an internal node. Probably an internal error.";if(n)i+=" Location has been estimated.";t+=` (${i})`}if(n){const{highlightCode:e=true}=this.opts;t+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:n.start.line,column:n.start.column+1},end:n.end&&n.start.line===n.end.line?{line:n.end.line,column:n.end.column+1}:undefined},{highlightCode:e})}return new r(t)}}t["default"]=File;{File.prototype.addImport=function addImport(){throw new Error("This API has been removed. If you're looking for this "+"functionality in Babel 7, you should import the "+"'@babel/helper-module-imports' module and use the functions exposed "+" from that module, such as 'addNamed' or 'addDefault'.")};File.prototype.addTemplateObject=function addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")};{File.prototype.getModuleName=function getModuleName(){return n.getModuleName()(this.opts,this.opts)}}}0&&0},56819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateCode;function _convertSourceMap(){const e=r(25288);_convertSourceMap=function(){return e};return e}function _generator(){const e=r(12123);_generator=function(){return e};return e}var n=r(3749);function generateCode(e,t){const{opts:r,ast:i,code:a,inputMap:o}=t;const{generatorOpts:s}=r;s.inputSourceMap=o==null?void 0:o.toObject();const c=[];for(const t of e){for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(i,s,a,_generator().default);if(e!==undefined)c.push(e)}}}let l;if(c.length===0){l=(0,_generator().default)(i,s,a)}else if(c.length===1){l=c[0];if(typeof l.then==="function"){throw new Error(`You appear to be using an async codegen plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version.`)}}else{throw new Error("More than one plugin attempted to override codegen.")}let{code:u,decodedMap:d=l.map}=l;if(l.__mergedMap){d=Object.assign({},l.map)}else{if(d){if(o){d=(0,n.default)(o.toObject(),d,s.sourceFileName)}else{d=l.map}}}if(r.sourceMaps==="inline"||r.sourceMaps==="both"){u+="\n"+_convertSourceMap().fromObject(d).toComment()}if(r.sourceMaps==="inline"){d=null}return{outputCode:u,outputMap:d}}0&&0},3749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=mergeSourceMap;function _remapping(){const e=r(26563);_remapping=function(){return e};return e}function mergeSourceMap(e,t,r){const n=r.replace(/\\/g,"/");let i=false;const a=_remapping()(rootless(t),((t,r)=>{if(t===n&&!i){i=true;r.source="";return rootless(e)}return null}));if(typeof e.sourceRoot==="string"){a.sourceRoot=e.sourceRoot}return Object.assign({},a)}function rootless(e){return Object.assign({},e,{sourceRoot:null})}0&&0},66915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=run;function _traverse(){const e=r(50148);_traverse=function(){return e};return e}var n=r(28176);var i=r(90122);var a=r(87471);var o=r(76211);var s=r(56819);var c=r(95642);var l=r(97588);function*run(e,t,r){const n=yield*(0,o.default)(e.passes,(0,a.default)(e),t,r);const i=n.opts;try{yield*transformFile(n,e.passes)}catch(e){var l;e.message=`${(l=i.filename)!=null?l:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_TRANSFORM_ERROR"}throw e}let u,d;try{if(i.code!==false){({outputCode:u,outputMap:d}=(0,s.default)(e.passes,n))}}catch(e){var p;e.message=`${(p=i.filename)!=null?p:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_GENERATE_ERROR"}throw e}return{metadata:n.metadata,options:i,ast:i.ast===true?n.ast:null,code:u===undefined?null:u,map:d===undefined?null:d,sourceType:n.ast.program.sourceType,externalDependencies:(0,c.flattenToSet)(e.externalDependencies)}}function*transformFile(e,t){const r=yield*(0,l.isAsync)();for(const a of t){const t=[];const o=[];const s=[];for(const c of a.concat([(0,i.default)()])){const i=new n.default(e,c.key,c.options,r);t.push([c,i]);o.push(i);s.push(c.visitor)}for(const[r,n]of t){if(r.pre){const t=(0,l.maybeAsync)(r.pre,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}const c=_traverse().default.visitors.merge(s,o,e.opts.wrapPluginVisitorMethod);{(0,_traverse().default)(e.ast,c,e.scope)}for(const[r,n]of t){if(r.post){const t=(0,l.maybeAsync)(r.post,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}}}0&&0},76211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeFile;function _fs(){const e=r(79896);_fs=function(){return e};return e}function _path(){const e=r(16928);_path=function(){return e};return e}function _debug(){const e=r(2830);_debug=function(){return e};return e}function _t(){const e=r(16535);_t=function(){return e};return e}function _convertSourceMap(){const e=r(25288);_convertSourceMap=function(){return e};return e}var n=r(95430);var i=r(90321);var a=r(17528);const{file:o,traverseFast:s}=_t();const c=_debug()("babel:transform:file");const l=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/;const u=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*normalizeFile(e,t,r,s){r=`${r||""}`;if(s){if(s.type==="Program"){s=o(s,[],[])}else if(s.type!=="File"){throw new Error("AST root must be a Program or File node")}if(t.cloneInputAst){s=(0,a.default)(s)}}else{s=yield*(0,i.default)(e,t,r)}let d=null;if(t.inputSourceMap!==false){if(typeof t.inputSourceMap==="object"){d=_convertSourceMap().fromObject(t.inputSourceMap)}if(!d){const e=extractComments(l,s);if(e){try{d=_convertSourceMap().fromComment("//"+e)}catch(e){{c("discarding unknown inline input sourcemap")}}}}if(!d){const e=extractComments(u,s);if(typeof t.filename==="string"&&e){try{const r=u.exec(e);const n=_fs().readFileSync(_path().resolve(_path().dirname(t.filename),r[1]),"utf8");d=_convertSourceMap().fromJSON(n)}catch(e){c("discarding unknown file input sourcemap",e)}}else if(e){c("discarding un-loadable file input sourcemap")}}}return new n.default(t,{code:r,ast:s,inputMap:d})}function extractCommentsFromList(e,t,r){if(t){t=t.filter((({value:t})=>{if(e.test(t)){r=t;return false}return true}))}return[t,r]}function extractComments(e,t){let r=null;s(t,(t=>{[t.leadingComments,r]=extractCommentsFromList(e,t.leadingComments,r);[t.innerComments,r]=extractCommentsFromList(e,t.innerComments,r);[t.trailingComments,r]=extractCommentsFromList(e,t.trailingComments,r)}));return r}0&&0},87471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeOptions;function _path(){const e=r(16928);_path=function(){return e};return e}function normalizeOptions(e){const{filename:t,cwd:r,filenameRelative:n=(typeof t==="string"?_path().relative(r,t):"unknown"),sourceType:i="module",inputSourceMap:a,sourceMaps:o=!!a,sourceRoot:s=e.options.moduleRoot,sourceFileName:c=_path().basename(n),comments:l=true,compact:u="auto"}=e.options;const d=e.options;const p=Object.assign({},d,{parserOpts:Object.assign({sourceType:_path().extname(n)===".mjs"?"module":i,sourceFileName:t,plugins:[]},d.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:d.auxiliaryCommentBefore,auxiliaryCommentAfter:d.auxiliaryCommentAfter,retainLines:d.retainLines,comments:l,shouldPrintComment:d.shouldPrintComment,compact:u,minified:d.minified,sourceMaps:o,sourceRoot:s,sourceFileName:c},d.generatorOpts)});for(const t of e.passes){for(const e of t){if(e.manipulateOptions){e.manipulateOptions(p,p.parserOpts)}}}return p}0&&0},28176:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class PluginPass{constructor(e,t,r,n){this._map=new Map;this.key=void 0;this.file=void 0;this.opts=void 0;this.cwd=void 0;this.filename=void 0;this.isAsync=void 0;this.key=t;this.file=e;this.opts=r||{};this.cwd=e.opts.cwd;this.filename=e.opts.filename;this.isAsync=n}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t["default"]=PluginPass;{PluginPass.prototype.getModuleName=function getModuleName(){return this.file.getModuleName()};PluginPass.prototype.addImport=function addImport(){this.file.addImport()}}0&&0},17528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;const r=new Set;let n=0;function deepClone(e,t,i){if(e!==null){if(i){if(t.has(e))return t.get(e)}else if(++n>250){if(r.has(e)){n=0;r.clear();throw new Error("Babel-deepClone: Cycles are not allowed in AST")}r.add(e)}let a;if(Array.isArray(e)){a=new Array(e.length);if(i)t.set(e,a);for(let r=0;r250)r.delete(e)}return a}return e}function _default(e){if(typeof e!=="object")return e;{try{return deepClone(e,new Map,true)}catch(t){return structuredClone(e)}}}0&&0},3432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moduleResolve=moduleResolve;t.resolve=resolve;function _assert(){const e=r(42613);_assert=function(){return e};return e}function _fs(){const e=_interopRequireWildcard(r(79896),true);_fs=function(){return e};return e}function _process(){const e=r(932);_process=function(){return e};return e}function _url(){const e=r(87016);_url=function(){return e};return e}function _path(){const e=r(16928);_path=function(){return e};return e}function _module(){const e=r(73339);_module=function(){return e};return e}function _v(){const e=r(11493);_v=function(){return e};return e}function _util(){const e=r(39023);_util=function(){return e};return e}function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}const n={}.hasOwnProperty;const i=/^([A-Z][a-z\d]*)+$/;const a=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]);const o={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const s=new Map;const c="__node_internal_";let l;o.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",((e,t,r)=>{_assert()(typeof e==="string","'name' must be a string");if(!Array.isArray(t)){t=[t]}let n="The ";if(e.endsWith(" argument")){n+=`${e} `}else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const o=[];const s=[];const c=[];for(const e of t){_assert()(typeof e==="string","All expected entries have to be of type string");if(a.has(e)){o.push(e.toLowerCase())}else if(i.exec(e)===null){_assert()(e!=="object",'The value "object" should be written as "Object"');c.push(e)}else{s.push(e)}}if(s.length>0){const e=o.indexOf("object");if(e!==-1){o.slice(e,1);s.push("Object")}}if(o.length>0){n+=`${o.length>1?"one of type":"of type"} ${formatList(o,"or")}`;if(s.length>0||c.length>0)n+=" or "}if(s.length>0){n+=`an instance of ${formatList(s,"or")}`;if(c.length>0)n+=" or "}if(c.length>0){if(c.length>1){n+=`one of ${formatList(c,"or")}`}else{if(c[0].toLowerCase()!==c[0])n+="an ";n+=`${c[0]}`}}n+=`. Received ${determineSpecificType(r)}`;return n}),TypeError);o.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",((e,t,r=undefined)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`),TypeError);o.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`),Error);o.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((e,t,r,n=false,i=undefined)=>{const a=typeof r==="string"&&!n&&r.length>0&&!r.startsWith("./");if(t==="."){_assert()(n===false);return`Invalid "exports" main target ${JSON.stringify(r)} defined `+`in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`}return`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`}),Error);o.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((e,t,r=false)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`),Error);o.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);o.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`),TypeError);o.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((e,t,r=undefined)=>{if(t===".")return`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`;return`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`}),Error);o.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported "+"resolving ES modules imported from %s",Error);o.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);o.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",((e,t)=>`Unknown file extension "${e}" for ${t}`),TypeError);o.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=(0,_util().inspect)(t);if(n.length>128){n=`${n.slice(0,128)}...`}const i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${r}. Received ${n}`}),TypeError);function createError(e,t,r){s.set(e,t);return makeNodeErrorWithCode(r,e)}function makeNodeErrorWithCode(e,t){return NodeError;function NodeError(...r){const n=Error.stackTraceLimit;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=0;const i=new e;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=n;const a=getMessage(t,r,i);Object.defineProperties(i,{message:{value:a,enumerable:false,writable:true,configurable:true},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:false,writable:true,configurable:true}});u(i);i.code=t;return i}}function isErrorStackTraceLimitWritable(){try{if(_v().startupSnapshot.isBuildingSnapshot()){return false}}catch(e){}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(e===undefined){return Object.isExtensible(Error)}return n.call(e,"writable")&&e.writable!==undefined?e.writable:e.set!==undefined}function hideStackFrames(e){const t=c+e.name;Object.defineProperty(e,"name",{value:t});return e}const u=hideStackFrames((function(e){const t=isErrorStackTraceLimitWritable();if(t){l=Error.stackTraceLimit;Error.stackTraceLimit=Number.POSITIVE_INFINITY}Error.captureStackTrace(e);if(t)Error.stackTraceLimit=l;return e}));function getMessage(e,t,r){const n=s.get(e);_assert()(n!==undefined,"expected `message` to be found");if(typeof n==="function"){_assert()(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${n.length}).`);return Reflect.apply(n,r,t)}const i=/%[dfijoOs]/g;let a=0;while(i.exec(n)!==null)a++;_assert()(a===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${a}).`);if(t.length===0)return n;t.unshift(n);return Reflect.apply(_util().format,null,t)}function determineSpecificType(e){if(e===null||e===undefined){return String(e)}if(typeof e==="function"&&e.name){return`function ${e.name}`}if(typeof e==="object"){if(e.constructor&&e.constructor.name){return`an instance of ${e.constructor.name}`}return`${(0,_util().inspect)(e,{depth:-1})}`}let t=(0,_util().inspect)(e,{colors:false});if(t.length>28){t=`${t.slice(0,25)}...`}return`type ${typeof e} (${t})`}const d={}.hasOwnProperty;const{ERR_INVALID_PACKAGE_CONFIG:p}=o;const g=new Map;function read(e,{base:t,specifier:r}){const n=g.get(e);if(n){return n}let i;try{i=_fs().default.readFileSync(_path().toNamespacedPath(e),"utf8")}catch(e){const t=e;if(t.code!=="ENOENT"){throw t}}const a={exists:false,pjsonPath:e,main:undefined,name:undefined,type:"none",exports:undefined,imports:undefined};if(i!==undefined){let n;try{n=JSON.parse(i)}catch(n){const i=n;const a=new p(e,(t?`"${r}" from `:"")+(0,_url().fileURLToPath)(t||r),i.message);a.cause=i;throw a}a.exists=true;if(d.call(n,"name")&&typeof n.name==="string"){a.name=n.name}if(d.call(n,"main")&&typeof n.main==="string"){a.main=n.main}if(d.call(n,"exports")){a.exports=n.exports}if(d.call(n,"imports")){a.imports=n.imports}if(d.call(n,"type")&&(n.type==="commonjs"||n.type==="module")){a.type=n.type}}g.set(e,a);return a}function getPackageScopeConfig(e){let t=new URL("package.json",e);while(true){const r=t.pathname;if(r.endsWith("node_modules/package.json")){break}const n=read((0,_url().fileURLToPath)(t),{specifier:e});if(n.exists){return n}const i=t;t=new URL("../package.json",t);if(t.pathname===i.pathname){break}}const r=(0,_url().fileURLToPath)(t);return{pjsonPath:r,exists:false,type:"none"}}function getPackageType(e){return getPackageScopeConfig(e).type}const{ERR_UNKNOWN_FILE_EXTENSION:y}=o;const h={}.hasOwnProperty;const _={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function mimeToFormat(e){if(e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e))return"module";if(e==="application/json")return"json";return null}const A={__proto__:null,"data:":getDataProtocolModuleFormat,"file:":getFileProtocolModuleFormat,"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:"(){return"builtin"}};function getDataProtocolModuleFormat(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return mimeToFormat(t)}function extname(e){const t=e.pathname;let r=t.length;while(r--){const e=t.codePointAt(r);if(e===47){return""}if(e===46){return t.codePointAt(r-1)===47?"":t.slice(r)}}return""}function getFileProtocolModuleFormat(e,t,r){const n=extname(e);if(n===".js"){const t=getPackageType(e);if(t!=="none"){return t}return"commonjs"}if(n===""){const t=getPackageType(e);if(t==="none"||t==="commonjs"){return"commonjs"}return"module"}const i=_[n];if(i)return i;if(r){return undefined}const a=(0,_url().fileURLToPath)(e);throw new y(n,a)}function getHttpProtocolModuleFormat(){}function defaultGetFormatWithoutErrors(e,t){const r=e.protocol;if(!h.call(A,r)){return null}return A[r](e,t,true)||null}const{ERR_INVALID_ARG_VALUE:v}=o;const E=Object.freeze(["node","import"]);const T=new Set(E);function getDefaultConditions(){return E}function getDefaultConditionsSet(){return T}function getConditionsSet(e){if(e!==undefined&&e!==getDefaultConditions()){if(!Array.isArray(e)){throw new v("conditions",e,"expected an array")}return new Set(e)}return getDefaultConditionsSet()}const b=RegExp.prototype[Symbol.replace];const{ERR_NETWORK_IMPORT_DISALLOWED:S,ERR_INVALID_MODULE_SPECIFIER:C,ERR_INVALID_PACKAGE_CONFIG:x,ERR_INVALID_PACKAGE_TARGET:D,ERR_MODULE_NOT_FOUND:I,ERR_PACKAGE_IMPORT_NOT_DEFINED:k,ERR_PACKAGE_PATH_NOT_EXPORTED:N,ERR_UNSUPPORTED_DIR_IMPORT:P,ERR_UNSUPPORTED_RESOLVE_REQUEST:w}=o;const F={}.hasOwnProperty;const O=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;const B=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;const M=/^\.|%|\\/;const L=/\*/g;const R=/%2f|%5c/i;const Q=new Set;const j=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e,t,r,n,i,a,o){if(_process().noDeprecation){return}const s=(0,_url().fileURLToPath)(n);const c=j.exec(o?e:t)!==null;_process().emitWarning(`Use of deprecated ${c?"double slash":"leading or trailing slash matching"} resolving "${e}" for module `+`request "${t}" ${t===r?"":`matched to "${r}" `}in the "${i?"imports":"exports"}" field module resolution of the package at ${s}${a?` imported from ${(0,_url().fileURLToPath)(a)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e,t,r,n){if(_process().noDeprecation){return}const i=defaultGetFormatWithoutErrors(e,{parentURL:r.href});if(i!=="module")return;const a=(0,_url().fileURLToPath)(e.href);const o=(0,_url().fileURLToPath)(new(_url().URL)(".",t));const s=(0,_url().fileURLToPath)(r);if(!n){_process().emitWarning(`No "main" or "exports" field defined in the package.json for ${o} resolving the main entry point "${a.slice(o.length)}", imported from ${s}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}else if(_path().resolve(o,n)!==a){_process().emitWarning(`Package ${o} has a "main" field set to "${n}", `+`excluding the full filename and extension to the resolved file at "${a.slice(o.length)}", imported from ${s}.\n Automatic extension resolution of the "main" field is `+"deprecated for ES modules.","DeprecationWarning","DEP0151")}}function tryStatSync(e){try{return(0,_fs().statSync)(e)}catch(e){}}function fileExists(e){const t=(0,_fs().statSync)(e,{throwIfNoEntry:false});const r=t?t.isFile():undefined;return r===null||r===undefined?false:r}function legacyMainResolve(e,t,r){let n;if(t.main!==undefined){n=new(_url().URL)(t.main,e);if(fileExists(n))return n;const i=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let a=-1;while(++at)):e+t;return packageResolve(r,n,c)}}throw invalidPackageTarget(r,e,n,o,i)}if(O.exec(e.slice(2))!==null){if(B.exec(e.slice(2))===null){if(!s){const s=a?r.replace("*",(()=>t)):r+t;const c=a?b.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(c,s,r,n,o,i,true)}}else{throw invalidPackageTarget(r,e,n,o,i)}}const l=new(_url().URL)(e,n);const u=l.pathname;const d=new(_url().URL)(".",n).pathname;if(!u.startsWith(d))throw invalidPackageTarget(r,e,n,o,i);if(t==="")return l;if(O.exec(t)!==null){const c=a?r.replace("*",(()=>t)):r+t;if(B.exec(t)===null){if(!s){const s=a?b.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(s,c,r,n,o,i,false)}}else{throwInvalidSubpath(c,r,n,o,i)}}if(a){return new(_url().URL)(b.call(L,l.href,(()=>t)))}return new(_url().URL)(t,l)}function isArrayIndex(e){const t=Number(e);if(`${t}`!==e)return false;return t>=0&&t<4294967295}function resolvePackageTarget(e,t,r,n,i,a,o,s,c){if(typeof t==="string"){return resolvePackageTargetString(t,r,n,e,i,a,o,s,c)}if(Array.isArray(t)){const l=t;if(l.length===0)return null;let u;let d=-1;while(++d=r.length&&t.endsWith(a)&&patternKeyCompare(o,r)===1&&r.lastIndexOf("*")===i){o=r;s=t.slice(i,t.length-a.length)}}}if(o){const r=a[o];const c=resolvePackageTarget(e,r,s,o,n,true,false,t.endsWith("/"),i);if(c===null||c===undefined){throw exportsNotFound(t,e,n)}return c}throw exportsNotFound(t,e,n)}function patternKeyCompare(e,t){const r=e.indexOf("*");const n=t.indexOf("*");const i=r===-1?e.length:r+1;const a=n===-1?t.length:n+1;if(i>a)return-1;if(a>i)return 1;if(r===-1)return 1;if(n===-1)return-1;if(e.length>t.length)return-1;if(t.length>e.length)return 1;return 0}function packageImportsResolve(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){const r="is not a valid internal imports specifier name";throw new C(e,r,(0,_url().fileURLToPath)(t))}let n;const i=getPackageScopeConfig(t);if(i.exists){n=(0,_url().pathToFileURL)(i.pjsonPath);const a=i.imports;if(a){if(F.call(a,e)&&!e.includes("*")){const i=resolvePackageTarget(n,a[e],"",e,t,false,true,false,r);if(i!==null&&i!==undefined){return i}}else{let i="";let o="";const s=Object.getOwnPropertyNames(a);let c=-1;while(++c=t.length&&e.endsWith(n)&&patternKeyCompare(i,t)===1&&t.lastIndexOf("*")===r){i=t;o=e.slice(r,e.length-n.length)}}}if(i){const e=a[i];const s=resolvePackageTarget(n,e,o,i,t,true,true,false,r);if(s!==null&&s!==undefined){return s}}}}}throw importNotDefined(e,n,t)}function parsePackageName(e,t){let r=e.indexOf("/");let n=true;let i=false;if(e[0]==="@"){i=true;if(r===-1||e.length===0){n=false}else{r=e.indexOf("/",r+1)}}const a=r===-1?e:e.slice(0,r);if(M.exec(a)!==null){n=false}if(!n){throw new C(e,"is not a valid package name",(0,_url().fileURLToPath)(t))}const o="."+(r===-1?"":e.slice(r));return{packageName:a,packageSubpath:o,isScoped:i}}function packageResolve(e,t,r){if(_module().builtinModules.includes(e)){return new(_url().URL)("node:"+e)}const{packageName:n,packageSubpath:i,isScoped:a}=parsePackageName(e,t);const o=getPackageScopeConfig(t);if(o.exists){const e=(0,_url().pathToFileURL)(o.pjsonPath);if(o.name===n&&o.exports!==undefined&&o.exports!==null){return packageExportsResolve(e,i,o,t,r)}}let s=new(_url().URL)("./node_modules/"+n+"/package.json",t);let c=(0,_url().fileURLToPath)(s);let l;do{const o=tryStatSync(c.slice(0,-13));if(!o||!o.isDirectory()){l=c;s=new(_url().URL)((a?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",s);c=(0,_url().fileURLToPath)(s);continue}const u=read(c,{base:t,specifier:e});if(u.exports!==undefined&&u.exports!==null){return packageExportsResolve(s,i,u,t,r)}if(i==="."){return legacyMainResolve(s,u,t)}return new(_url().URL)(i,s)}while(c.length!==l.length);throw new I(n,(0,_url().fileURLToPath)(t),false)}function isRelativeSpecifier(e){if(e[0]==="."){if(e.length===1||e[1]==="/")return true;if(e[1]==="."&&(e.length===2||e[2]==="/")){return true}}return false}function shouldBeTreatedAsRelativeOrAbsolutePath(e){if(e==="")return false;if(e[0]==="/")return true;return isRelativeSpecifier(e)}function moduleResolve(e,t,r,n){const i=t.protocol;const a=i==="data:";const o=a||i==="http:"||i==="https:";let s;if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){try{s=new(_url().URL)(e,t)}catch(r){const n=new w(e,t);n.cause=r;throw n}}else if(i==="file:"&&e[0]==="#"){s=packageImportsResolve(e,t,r)}else{try{s=new(_url().URL)(e)}catch(n){if(o&&!_module().builtinModules.includes(e)){const r=new w(e,t);r.cause=n;throw r}s=packageResolve(e,t,r)}}_assert()(s!==undefined,"expected to be defined");if(s.protocol!=="file:"){return s}return finalizeResolution(s,t,n)}function checkIfDisallowedImport(e,t,r){if(r){const n=r.protocol;if(n==="http:"||n==="https:"){if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){const n=t==null?void 0:t.protocol;if(n&&n!=="https:"&&n!=="http:"){throw new S(e,r,"remote imports cannot import from a local location.")}return{url:(t==null?void 0:t.href)||""}}if(_module().builtinModules.includes(e)){throw new S(e,r,"remote imports cannot import from a local location.")}throw new S(e,r,"only relative and absolute specifiers are supported.")}}}function isURL(e){return Boolean(e&&typeof e==="object"&&"href"in e&&typeof e.href==="string"&&"protocol"in e&&typeof e.protocol==="string"&&e.href&&e.protocol)}function throwIfInvalidParentURL(e){if(e===undefined){return}if(typeof e!=="string"&&!isURL(e)){throw new o.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}}function defaultResolve(e,t={}){const{parentURL:r}=t;_assert()(r!==undefined,"expected `parentURL` to be defined");throwIfInvalidParentURL(r);let n;if(r){try{n=new(_url().URL)(r)}catch(e){}}let i;let a;try{i=shouldBeTreatedAsRelativeOrAbsolutePath(e)?new(_url().URL)(e,n):new(_url().URL)(e);a=i.protocol;if(a==="data:"){return{url:i.href,format:null}}}catch(e){}const o=checkIfDisallowedImport(e,i,n);if(o)return o;if(a===undefined&&i){a=i.protocol}if(a==="node:"){return{url:e}}if(i&&i.protocol==="node:")return{url:e};const s=getConditionsSet(t.conditions);const c=moduleResolve(e,new(_url().URL)(r),s,false);return{url:c.href,format:defaultGetFormatWithoutErrors(c,{parentURL:r})}}function resolve(e,t){if(!t){throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that")}try{return defaultResolve(e,{parentURL:t}).url}catch(e){const t=e;if((t.code==="ERR_UNSUPPORTED_DIR_IMPORT"||t.code==="ERR_MODULE_NOT_FOUND")&&typeof t.url==="string"){return t.url}throw e}}0&&0},11669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Buffer{constructor(e,t){this._map=null;this._buf="";this._str="";this._appendCount=0;this._last=0;this._queue=[];this._queueCursor=0;this._canMarkIdName=true;this._indentChar="";this._fastIndentations=[];this._position={line:1,column:0};this._sourcePosition={identifierName:undefined,identifierNamePos:undefined,line:undefined,column:undefined,filename:undefined};this._map=e;this._indentChar=t;for(let e=0;e<64;e++){this._fastIndentations.push(t.repeat(e))}this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++){e.push({char:0,repeat:1,line:undefined,column:undefined,identifierName:undefined,identifierNamePos:undefined,filename:""})}}_pushQueue(e,t,r,n,i){const a=this._queueCursor;if(a===this._queue.length){this._allocQueue()}const o=this._queue[a];o.char=e;o.repeat=t;o.line=r;o.column=n;o.filename=i;this._queueCursor++}_popQueue(){if(this._queueCursor===0){throw new Error("Cannot pop from empty queue")}return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map;const t={code:(this._buf+this._str).trimRight(),decodedMap:e==null?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;t.map=r;return r},set map(e){Object.defineProperty(t,"map",{value:e,writable:true})},get rawMappings(){const r=e==null?void 0:e.getRawMappings();t.rawMappings=r;return r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:true})}};return t}append(e,t){this._flush();this._append(e,this._sourcePosition,t)}appendChar(e){this._flush();this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10){while(this._queueCursor!==0){const e=this._queue[this._queueCursor-1].char;if(e!==32&&e!==9){break}this._queueCursor--}}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){if(e===0)return;this._pushQueue(-1,e,undefined,undefined,undefined)}_flush(){const e=this._queueCursor;const t=this._queue;for(let r=0;r1?this._indentChar.repeat(t):this._indentChar}}else{this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e)}if(e!==10){this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename);this._position.column+=t}else{this._position.line++;this._position.column=0}if(this._canMarkIdName){r.identifierName=undefined;r.identifierNamePos=undefined}}_append(e,t,r){const n=e.length;const i=this._position;this._last=e.charCodeAt(n-1);if(++this._appendCount>4096){+this._str;this._buf+=this._str;this._str=e;this._appendCount=0}else{this._str+=e}if(!r&&!this._map){i.column+=n;return}const{column:a,identifierName:o,identifierNamePos:s,filename:c}=t;let l=t.line;if((o!=null||s!=null)&&this._canMarkIdName){t.identifierName=undefined;t.identifierNamePos=undefined}let u=e.indexOf("\n");let d=0;if(u!==0){this._mark(l,a,o,s,c)}while(u!==-1){i.line++;i.column=0;d=u+1;if(d=0;r--){if(this._queue[r].char!==10){break}t++}return t===e&&this._last===10?t+1:t}endsWithCharAndNewline(){const e=this._queue;const t=this._queueCursor;if(t!==0){const r=e[t-1].char;if(r!==10)return;if(t>1){return e[t-2].char}else{return this._last}}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,t){if(!this._map){t();return}this.source("start",e);const r=e.identifierName;const n=this._sourcePosition;if(r){this._canMarkIdName=false;n.identifierName=r}t();if(r){this._canMarkIdName=true;n.identifierName=undefined;n.identifierNamePos=undefined}this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){const n=t[e];const i=this._sourcePosition;if(n){i.line=n.line;i.column=Math.max(n.column+r,0);i.filename=t.filename}}getCurrentColumn(){const e=this._queue;const t=this._queueCursor;let r=-1;let n=0;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockStatement=BlockStatement;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.File=File;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;t.Program=Program;function File(e){if(e.program){this.print(e.program.interpreter)}this.print(e.program)}function Program(e){var t;this.noIndentInnerCommentsHere();this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,undefined,t);if(!((n=e.directives[r-1].trailingComments)!=null&&n.length)){this.newline(t)}}this.printSequence(e.body)}function BlockStatement(e){var t;this.tokenChar(123);const r=this.enterDelimited();const n=(t=e.directives)==null?void 0:t.length;if(n){var i;const t=e.body.length?2:1;this.printSequence(e.directives,true,t);if(!((i=e.directives[n-1].trailingComments)!=null&&i.length)){this.newline(t)}}this.printSequence(e.body,true);r();this.rightBrace(e)}function Directive(e){this.print(e.value);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const n=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const{value:i}=e;if(!n.test(i)){this.token(`"${i}"`)}else if(!r.test(i)){this.token(`'${i}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}`);this.newline(1,true)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},70926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassAccessorProperty=ClassAccessorProperty;t.ClassBody=ClassBody;t.ClassExpression=t.ClassDeclaration=ClassDeclaration;t.ClassMethod=ClassMethod;t.ClassPrivateMethod=ClassPrivateMethod;t.ClassPrivateProperty=ClassPrivateProperty;t.ClassProperty=ClassProperty;t.StaticBlock=StaticBlock;t._classMethodHead=_classMethodHead;var n=r(16535);const{isExportDefaultDeclaration:i,isExportNamedDeclaration:a}=n;function ClassDeclaration(e,t){const r=i(t)||a(t);if(!r||!this._shouldPrintDecoratorsBeforeExport(t)){this.printJoin(e.decorators)}if(e.declare){this.word("declare");this.space()}if(e.abstract){this.word("abstract");this.space()}this.word("class");if(e.id){this.space();this.print(e.id)}this.print(e.typeParameters);if(e.superClass){this.space();this.word("extends");this.space();this.print(e.superClass);this.print(e.superTypeParameters)}if(e.implements){this.space();this.word("implements");this.space();this.printList(e.implements)}this.space();this.print(e.body)}function ClassBody(e){this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();const t=classBodyEmptySemicolonsPrinter(this,e);t==null||t(-1);const r=this.enterDelimited();this.printJoin(e.body,true,true,t,true);r();if(!this.endsWith(10))this.newline();this.rightBrace(e)}}function classBodyEmptySemicolonsPrinter(e,t){if(!e.tokenMap||t.start==null||t.end==null){return null}const r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1;let i=0;let a=0;const advanceNextLocIndex=()=>{while(a{if(a<=o){a=o+1;advanceNextLocIndex()}const s=a===t.body.length?t.end:t.body[a].start;let c;while(n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addDeprecatedGenerators=addDeprecatedGenerators;function addDeprecatedGenerators(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression);this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"m")}};Object.assign(e.prototype,t)}}},33361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=AssignmentExpression;t.AssignmentPattern=AssignmentPattern;t.AwaitExpression=AwaitExpression;t.BindExpression=BindExpression;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.Decorator=Decorator;t.DoExpression=DoExpression;t.EmptyStatement=EmptyStatement;t.ExpressionStatement=ExpressionStatement;t.Import=Import;t.MemberExpression=MemberExpression;t.MetaProperty=MetaProperty;t.ModuleExpression=ModuleExpression;t.NewExpression=NewExpression;t.OptionalCallExpression=OptionalCallExpression;t.OptionalMemberExpression=OptionalMemberExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.PrivateName=PrivateName;t.SequenceExpression=SequenceExpression;t.Super=Super;t.ThisExpression=ThisExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.V8IntrinsicIdentifier=V8IntrinsicIdentifier;t.YieldExpression=YieldExpression;t._shouldPrintDecoratorsBeforeExport=_shouldPrintDecoratorsBeforeExport;var n=r(16535);var i=r(95460);const{isCallExpression:a,isLiteral:o,isMemberExpression:s,isNewExpression:c,isPattern:l}=n;function UnaryExpression(e){const{operator:t}=e;if(t==="void"||t==="delete"||t==="typeof"||t==="throw"){this.word(t);this.space()}else{this.token(t)}this.print(e.argument)}function DoExpression(e){if(e.async){this.word("async",true);this.space()}this.word("do");this.space();this.print(e.body)}function ParenthesizedExpression(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression);t();this.rightParens(e)}function UpdateExpression(e){if(e.prefix){this.token(e.operator);this.print(e.argument)}else{this.print(e.argument,true);this.token(e.operator)}}function ConditionalExpression(e){this.print(e.test);this.space();this.tokenChar(63);this.space();this.print(e.consequent);this.space();this.tokenChar(58);this.space();this.print(e.alternate)}function NewExpression(e,t){this.word("new");this.space();this.print(e.callee);if(this.format.minified&&e.arguments.length===0&&!e.optional&&!a(t,{callee:e})&&!s(t)&&!c(t)){return}this.print(e.typeArguments);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")){return}this.tokenChar(40);const r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));r();this.rightParens(e)}function SequenceExpression(e){this.printList(e.expressions)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function _shouldPrintDecoratorsBeforeExport(e){if(typeof this.format.decoratorsBeforeExport==="boolean"){return this.format.decoratorsBeforeExport}return typeof e.start==="number"&&e.start===e.declaration.start}function Decorator(e){this.tokenChar(64);this.print(e.expression);this.newline()}function OptionalMemberExpression(e){let{computed:t}=e;const{optional:r,property:n}=e;this.print(e.object);if(!t&&s(n)){throw new TypeError("Got a MemberExpression for MemberExpression property")}if(o(n)&&typeof n.value==="number"){t=true}if(r){this.token("?.")}if(t){this.tokenChar(91);this.print(n);this.tokenChar(93)}else{if(!r){this.tokenChar(46)}this.print(n)}}function OptionalCallExpression(e){this.print(e.callee);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}this.print(e.typeArguments);this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments);t();this.rightParens(e)}function CallExpression(e){this.print(e.callee);this.print(e.typeArguments);{this.print(e.typeParameters)}this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));t();this.rightParens(e)}function Import(){this.word("import")}function AwaitExpression(e){this.word("await");this.space();this.print(e.argument)}function YieldExpression(e){if(e.delegate){this.word("yield",true);this.tokenChar(42);if(e.argument){this.space();this.print(e.argument)}}else if(e.argument){this.word("yield",true);this.space();this.print(e.argument)}else{this.word("yield")}}function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(e){this.tokenContext|=i.TokenContext.expressionStatement;this.print(e.expression);this.semicolon()}function AssignmentPattern(e){this.print(e.left);if(e.left.type==="Identifier"||l(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space();this.tokenChar(61);this.space();this.print(e.right)}function AssignmentExpression(e){this.print(e.left);this.space();if(e.operator==="in"||e.operator==="instanceof"){this.word(e.operator)}else{this.token(e.operator);this._endsWithDiv=e.operator==="/"}this.space();this.print(e.right)}function BindExpression(e){this.print(e.object);this.token("::");this.print(e.callee)}function MemberExpression(e){this.print(e.object);if(!e.computed&&s(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(o(e.property)&&typeof e.property.value==="number"){t=true}if(t){const t=this.enterDelimited();this.tokenChar(91);this.print(e.property);this.tokenChar(93);t()}else{this.tokenChar(46);this.print(e.property)}}function MetaProperty(e){this.print(e.meta);this.tokenChar(46);this.print(e.property)}function PrivateName(e){this.tokenChar(35);this.print(e.id)}function V8IntrinsicIdentifier(e){this.tokenChar(37);this.word(e.name)}function ModuleExpression(e){this.word("module",true);this.space();this.tokenChar(123);this.indent();const{body:t}=e;if(t.body.length||t.directives.length){this.newline()}this.print(t);this.dedent();this.rightBrace(e)}},88408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnyTypeAnnotation=AnyTypeAnnotation;t.ArrayTypeAnnotation=ArrayTypeAnnotation;t.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;t.BooleanTypeAnnotation=BooleanTypeAnnotation;t.DeclareClass=DeclareClass;t.DeclareExportAllDeclaration=DeclareExportAllDeclaration;t.DeclareExportDeclaration=DeclareExportDeclaration;t.DeclareFunction=DeclareFunction;t.DeclareInterface=DeclareInterface;t.DeclareModule=DeclareModule;t.DeclareModuleExports=DeclareModuleExports;t.DeclareOpaqueType=DeclareOpaqueType;t.DeclareTypeAlias=DeclareTypeAlias;t.DeclareVariable=DeclareVariable;t.DeclaredPredicate=DeclaredPredicate;t.EmptyTypeAnnotation=EmptyTypeAnnotation;t.EnumBooleanBody=EnumBooleanBody;t.EnumBooleanMember=EnumBooleanMember;t.EnumDeclaration=EnumDeclaration;t.EnumDefaultedMember=EnumDefaultedMember;t.EnumNumberBody=EnumNumberBody;t.EnumNumberMember=EnumNumberMember;t.EnumStringBody=EnumStringBody;t.EnumStringMember=EnumStringMember;t.EnumSymbolBody=EnumSymbolBody;t.ExistsTypeAnnotation=ExistsTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.FunctionTypeParam=FunctionTypeParam;t.IndexedAccessType=IndexedAccessType;t.InferredPredicate=InferredPredicate;t.InterfaceDeclaration=InterfaceDeclaration;t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=InterfaceExtends;t.InterfaceTypeAnnotation=InterfaceTypeAnnotation;t.IntersectionTypeAnnotation=IntersectionTypeAnnotation;t.MixedTypeAnnotation=MixedTypeAnnotation;t.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;t.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return o.NumericLiteral}});t.NumberTypeAnnotation=NumberTypeAnnotation;t.ObjectTypeAnnotation=ObjectTypeAnnotation;t.ObjectTypeCallProperty=ObjectTypeCallProperty;t.ObjectTypeIndexer=ObjectTypeIndexer;t.ObjectTypeInternalSlot=ObjectTypeInternalSlot;t.ObjectTypeProperty=ObjectTypeProperty;t.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;t.OpaqueType=OpaqueType;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return o.StringLiteral}});t.StringTypeAnnotation=StringTypeAnnotation;t.SymbolTypeAnnotation=SymbolTypeAnnotation;t.ThisTypeAnnotation=ThisTypeAnnotation;t.TupleTypeAnnotation=TupleTypeAnnotation;t.TypeAlias=TypeAlias;t.TypeAnnotation=TypeAnnotation;t.TypeCastExpression=TypeCastExpression;t.TypeParameter=TypeParameter;t.TypeParameterDeclaration=t.TypeParameterInstantiation=TypeParameterInstantiation;t.TypeofTypeAnnotation=TypeofTypeAnnotation;t.UnionTypeAnnotation=UnionTypeAnnotation;t.Variance=Variance;t.VoidTypeAnnotation=VoidTypeAnnotation;t._interfaceish=_interfaceish;t._variance=_variance;var n=r(16535);var i=r(24119);var a=r(95460);var o=r(26659);const{isDeclareExportDeclaration:s,isStatement:c}=n;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(e,t){if(!s(t)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(e)}function DeclareFunction(e,t){if(!s(t)){this.word("declare");this.space()}this.word("function");this.space();this.print(e.id);this.print(e.id.typeAnnotation.typeAnnotation);if(e.predicate){this.space();this.print(e.predicate)}this.semicolon()}function InferredPredicate(){this.tokenChar(37);this.word("checks")}function DeclaredPredicate(e){this.tokenChar(37);this.word("checks");this.tokenChar(40);this.print(e.value);this.tokenChar(41)}function DeclareInterface(e){this.word("declare");this.space();this.InterfaceDeclaration(e)}function DeclareModule(e){this.word("declare");this.space();this.word("module");this.space();this.print(e.id);this.space();this.print(e.body)}function DeclareModuleExports(e){this.word("declare");this.space();this.word("module");this.tokenChar(46);this.word("exports");this.print(e.typeAnnotation)}function DeclareTypeAlias(e){this.word("declare");this.space();this.TypeAlias(e)}function DeclareOpaqueType(e,t){if(!s(t)){this.word("declare");this.space()}this.OpaqueType(e)}function DeclareVariable(e,t){if(!s(t)){this.word("declare");this.space()}this.word("var");this.space();this.print(e.id);this.print(e.id.typeAnnotation);this.semicolon()}function DeclareExportDeclaration(e){this.word("declare");this.space();this.word("export");this.space();if(e.default){this.word("default");this.space()}FlowExportDeclaration.call(this,e)}function DeclareExportAllDeclaration(e){this.word("declare");this.space();i.ExportAllDeclaration.call(this,e)}function EnumDeclaration(e){const{id:t,body:r}=e;this.word("enum");this.space();this.print(t);this.print(r)}function enumExplicitType(e,t,r){if(r){e.space();e.word("of");e.space();e.word(t)}e.space()}function enumBody(e,t){const{members:r}=t;e.token("{");e.indent();e.newline();for(const t of r){e.print(t);e.newline()}if(t.hasUnknownMembers){e.token("...");e.newline()}e.dedent();e.token("}")}function EnumBooleanBody(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t);enumBody(this,e)}function EnumNumberBody(e){const{explicitType:t}=e;enumExplicitType(this,"number",t);enumBody(this,e)}function EnumStringBody(e){const{explicitType:t}=e;enumExplicitType(this,"string",t);enumBody(this,e)}function EnumSymbolBody(e){enumExplicitType(this,"symbol",true);enumBody(this,e)}function EnumDefaultedMember(e){const{id:t}=e;this.print(t);this.tokenChar(44)}function enumInitializedMember(e,t){e.print(t.id);e.space();e.token("=");e.space();e.print(t.init);e.token(",")}function EnumBooleanMember(e){enumInitializedMember(this,e)}function EnumNumberMember(e){enumInitializedMember(this,e)}function EnumStringMember(e){enumInitializedMember(this,e)}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t);if(!c(t))this.semicolon()}else{this.tokenChar(123);if(e.specifiers.length){this.space();this.printList(e.specifiers);this.space()}this.tokenChar(125);if(e.source){this.space();this.word("from");this.space();this.print(e.source)}this.semicolon()}}function ExistsTypeAnnotation(){this.tokenChar(42)}function FunctionTypeAnnotation(e,t){this.print(e.typeParameters);this.tokenChar(40);if(e.this){this.word("this");this.tokenChar(58);this.space();this.print(e.this.typeAnnotation);if(e.params.length||e.rest){this.tokenChar(44);this.space()}}this.printList(e.params);if(e.rest){if(e.params.length){this.tokenChar(44);this.space()}this.token("...");this.print(e.rest)}this.tokenChar(41);const r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)){this.tokenChar(58)}else{this.space();this.token("=>")}this.space();this.print(e.returnType)}function FunctionTypeParam(e){this.print(e.name);if(e.optional)this.tokenChar(63);if(e.name){this.tokenChar(58);this.space()}this.print(e.typeAnnotation)}function InterfaceExtends(e){this.print(e.id);this.print(e.typeParameters,true)}function _interfaceish(e){var t;this.print(e.id);this.print(e.typeParameters);if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}if(e.type==="DeclareClass"){var r,n;if((r=e.mixins)!=null&&r.length){this.space();this.word("mixins");this.space();this.printList(e.mixins)}if((n=e.implements)!=null&&n.length){this.space();this.word("implements");this.space();this.printList(e.implements)}}this.space();this.print(e.body)}function _variance(e){var t;const r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus"){this.tokenChar(43)}else if(r==="minus"){this.tokenChar(45)}}}function InterfaceDeclaration(e){this.word("interface");this.space();this._interfaceish(e)}function andSeparator(e){this.space();this.token("&",false,e);this.space()}function InterfaceTypeAnnotation(e){var t;this.word("interface");if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}this.space();this.print(e.body)}function IntersectionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,andSeparator)}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(e){this.tokenChar(63);this.print(e.typeAnnotation)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(e){this.tokenChar(91);this.printList(e.types);this.tokenChar(93)}function TypeofTypeAnnotation(e){this.word("typeof");this.space();this.print(e.argument)}function TypeAlias(e){this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);this.space();this.tokenChar(61);this.space();this.print(e.right);this.semicolon()}function TypeAnnotation(e,t){this.tokenChar(58);this.space();if(t.type==="ArrowFunctionExpression"){this.tokenContext|=a.TokenContext.arrowFlowReturnType}else if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function TypeParameterInstantiation(e){this.tokenChar(60);this.printList(e.params);this.tokenChar(62)}function TypeParameter(e){this._variance(e);this.word(e.name);if(e.bound){this.print(e.bound)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function OpaqueType(e){this.word("opaque");this.space();this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);if(e.supertype){this.tokenChar(58);this.space();this.print(e.supertype)}if(e.impltype){this.space();this.tokenChar(61);this.space();this.print(e.impltype)}this.semicolon()}function ObjectTypeAnnotation(e){if(e.exact){this.token("{|")}else{this.tokenChar(123)}const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length){this.newline();this.space();this.printJoin(t,true,true,undefined,undefined,(function addNewlines(e){if(e&&!t[0])return 1}),(()=>{if(t.length!==1||e.inexact){this.tokenChar(44);this.space()}}));this.space()}if(e.inexact){this.indent();this.token("...");if(t.length){this.newline()}this.dedent()}if(e.exact){this.token("|}")}else{this.tokenChar(125)}}function ObjectTypeInternalSlot(e){if(e.static){this.word("static");this.space()}this.tokenChar(91);this.tokenChar(91);this.print(e.id);this.tokenChar(93);this.tokenChar(93);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeCallProperty(e){if(e.static){this.word("static");this.space()}this.print(e.value)}function ObjectTypeIndexer(e){if(e.static){this.word("static");this.space()}this._variance(e);this.tokenChar(91);if(e.id){this.print(e.id);this.tokenChar(58);this.space()}this.print(e.key);this.tokenChar(93);this.tokenChar(58);this.space();this.print(e.value)}function ObjectTypeProperty(e){if(e.proto){this.word("proto");this.space()}if(e.static){this.word("static");this.space()}if(e.kind==="get"||e.kind==="set"){this.word(e.kind);this.space()}this._variance(e);this.print(e.key);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeSpreadProperty(e){this.token("...");this.print(e.argument)}function QualifiedTypeIdentifier(e){this.print(e.qualification);this.tokenChar(46);this.print(e.id)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(e){this.space();this.token("|",false,e);this.space()}function UnionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,orSeparator)}function TypeCastExpression(e){this.tokenChar(40);this.print(e.expression);this.print(e.typeAnnotation);this.tokenChar(41)}function Variance(e){if(e.kind==="plus"){this.tokenChar(43)}else{this.tokenChar(45)}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function OptionalIndexedAccessType(e){this.print(e.objectType);if(e.optional){this.token("?.")}this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}},39662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(97571);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})}));var i=r(33361);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var a=r(40102);Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var o=r(70926);Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var s=r(31748);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));var c=r(24119);Object.keys(c).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===c[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return c[e]}})}));var l=r(26659);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var u=r(88408);Object.keys(u).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===u[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return u[e]}})}));var d=r(82933);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));var p=r(27099);Object.keys(p).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===p[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})}));var g=r(16975);Object.keys(g).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===g[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return g[e]}})}))},27099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXClosingElement=JSXClosingElement;t.JSXClosingFragment=JSXClosingFragment;t.JSXElement=JSXElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXFragment=JSXFragment;t.JSXIdentifier=JSXIdentifier;t.JSXMemberExpression=JSXMemberExpression;t.JSXNamespacedName=JSXNamespacedName;t.JSXOpeningElement=JSXOpeningElement;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;function JSXAttribute(e){this.print(e.name);if(e.value){this.tokenChar(61);this.print(e.value)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace);this.tokenChar(58);this.print(e.name)}function JSXMemberExpression(e){this.print(e.object);this.tokenChar(46);this.print(e.property)}function JSXSpreadAttribute(e){this.tokenChar(123);this.token("...");this.print(e.argument);this.rightBrace(e)}function JSXExpressionContainer(e){this.tokenChar(123);this.print(e.expression);this.rightBrace(e)}function JSXSpreadChild(e){this.tokenChar(123);this.token("...");this.print(e.expression);this.rightBrace(e)}function JSXText(e){const t=this.getPossibleRaw(e);if(t!==undefined){this.token(t,true)}else{this.token(e.value,true)}}function JSXElement(e){const t=e.openingElement;this.print(t);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingElement)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.tokenChar(60);this.print(e.name);{if(e.typeArguments){this.print(e.typeArguments)}this.print(e.typeParameters)}if(e.attributes.length>0){this.space();this.printJoin(e.attributes,undefined,undefined,spaceSeparator)}if(e.selfClosing){this.space();this.tokenChar(47)}this.tokenChar(62)}function JSXClosingElement(e){this.tokenChar(60);this.tokenChar(47);this.print(e.name);this.tokenChar(62)}function JSXEmptyExpression(){this.printInnerComments()}function JSXFragment(e){this.print(e.openingFragment);this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingFragment)}function JSXOpeningFragment(){this.tokenChar(60);this.tokenChar(62)}function JSXClosingFragment(){this.token("{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrowFunctionExpression=ArrowFunctionExpression;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t._functionHead=_functionHead;t._methodHead=_methodHead;t._param=_param;t._parameters=_parameters;t._params=_params;t._predicate=_predicate;t._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var n=r(16535);var i=r(95460);const{isIdentifier:a}=n;function _params(e,t,r){this.print(e.typeParameters);const n=_getFuncIdName.call(this,t,r);if(n){this.sourceIdentifierName(n.name,n.pos)}this.tokenChar(40);this._parameters(e.params,")");const i=e.type==="ArrowFunctionExpression";this.print(e.returnType,i);this._noLineTerminator=i}function _parameters(e,t){const r=this.enterDelimited();const n=this.shouldPrintTrailingComma(t);const i=e.length;for(let t=0;t");this.space();this.tokenContext|=i.TokenContext.arrowBody;this.print(e.body)}function _shouldPrintArrowParamsParens(e){var t,r;if(e.params.length!==1)return true;if(e.typeParameters||e.returnType||e.predicate){return true}const n=e.params[0];if(!a(n)||n.typeAnnotation||n.optional||(t=n.leadingComments)!=null&&t.length||(r=n.trailingComments)!=null&&r.length){return true}if(this.tokenMap){if(e.loc==null)return true;if(this.tokenMap.findMatching(e,"(")!==null)return true;const t=this.tokenMap.findMatching(e,"=>");if((t==null?void 0:t.loc)==null)return true;return t.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return true;return false}function _getFuncIdName(e,t){let r=e;if(!r&&t){const e=t.type;if(e==="VariableDeclarator"){r=t.id}else if(e==="AssignmentExpression"||e==="AssignmentPattern"){r=t.left}else if(e==="ObjectProperty"||e==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral"){r=t.key}}else if(e==="ClassPrivateProperty"||e==="ClassAccessorProperty"){r=t.key}}if(!r)return;let n;if(r.type==="Identifier"){var i,a;n={pos:(i=r.loc)==null?void 0:i.start,name:((a=r.loc)==null?void 0:a.identifierName)||r.name}}else if(r.type==="PrivateName"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var s;n={pos:(s=r.loc)==null?void 0:s.start,name:r.value}}return n}},24119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExportAllDeclaration=ExportAllDeclaration;t.ExportDefaultDeclaration=ExportDefaultDeclaration;t.ExportDefaultSpecifier=ExportDefaultSpecifier;t.ExportNamedDeclaration=ExportNamedDeclaration;t.ExportNamespaceSpecifier=ExportNamespaceSpecifier;t.ExportSpecifier=ExportSpecifier;t.ImportAttribute=ImportAttribute;t.ImportDeclaration=ImportDeclaration;t.ImportDefaultSpecifier=ImportDefaultSpecifier;t.ImportExpression=ImportExpression;t.ImportNamespaceSpecifier=ImportNamespaceSpecifier;t.ImportSpecifier=ImportSpecifier;t._printAttributes=_printAttributes;var n=r(16535);var i=r(95460);const{isClassDeclaration:a,isExportDefaultSpecifier:o,isExportNamespaceSpecifier:s,isImportDefaultSpecifier:c,isImportNamespaceSpecifier:l,isStatement:u}=n;function ImportSpecifier(e){if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}this.print(e.imported);if(e.local&&e.local.name!==e.imported.name){this.space();this.word("as");this.space();this.print(e.local)}}function ImportDefaultSpecifier(e){this.print(e.local)}function ExportDefaultSpecifier(e){this.print(e.exported)}function ExportSpecifier(e){if(e.exportKind==="type"){this.word("type");this.space()}this.print(e.local);if(e.exported&&e.local.name!==e.exported.name){this.space();this.word("as");this.space();this.print(e.exported)}}function ExportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.exported)}let d=false;function _printAttributes(e,t){var r;const{importAttributesKeyword:n}=this.format;const{attributes:i,assertions:a}=e;if(i&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!d){d=true;console.warn(`You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : \`import { a } from "b" with { type: "json" };\`\n - "assert" : \`import { a } from "b" assert { type: "json" };\`\n - "with-legacy" : \`import { a } from "b" with type: "json";\`\n`)}const o=n==="assert"||!n&&a;this.word(o?"assert":"with");this.space();if(!o&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||a);return}const s=t?1:0;this.token("{",null,s);this.space();this.printList(i||a,this.shouldPrintTrailingComma("}"));this.space();this.token("}",null,s)}function ExportAllDeclaration(e){var t,r;this.word("export");this.space();if(e.exportKind==="type"){this.word("type");this.space()}this.tokenChar(42);this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,false)}else{this.print(e.source)}this.semicolon()}function maybePrintDecoratorsBeforeExport(e,t){if(a(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)){e.printJoin(t.declaration.decorators)}}function ExportNamedDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.space();if(e.declaration){const t=e.declaration;this.print(t);if(!u(t))this.semicolon()}else{if(e.exportKind==="type"){this.word("type");this.space()}const n=e.specifiers.slice(0);let i=false;for(;;){const e=n[0];if(o(e)||s(e)){i=true;this.print(n.shift());if(n.length){this.tokenChar(44);this.space()}}else{break}}let a=false;if(n.length||!n.length&&!i){a=true;this.tokenChar(123);if(n.length){this.space();this.printList(n,this.shouldPrintTrailingComma("}"));this.space()}this.tokenChar(125)}if(e.source){var t,r;this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,a)}else{this.print(e.source)}}this.semicolon()}}function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.noIndentInnerCommentsHere();this.space();this.word("default");this.space();this.tokenContext|=i.TokenContext.exportDefault;const t=e.declaration;this.print(t);if(!u(t))this.semicolon()}function ImportDeclaration(e){var t,r;this.word("import");this.space();const n=e.importKind==="type"||e.importKind==="typeof";if(n){this.noIndentInnerCommentsHere();this.word(e.importKind);this.space()}else if(e.module){this.noIndentInnerCommentsHere();this.word("module");this.space()}else if(e.phase){this.noIndentInnerCommentsHere();this.word(e.phase);this.space()}const i=e.specifiers.slice(0);const a=!!i.length;while(a){const e=i[0];if(c(e)||l(e)){this.print(i.shift());if(i.length){this.tokenChar(44);this.space()}}else{break}}let o=false;if(i.length){o=true;this.tokenChar(123);this.space();this.printList(i,this.shouldPrintTrailingComma("}"));this.space();this.tokenChar(125)}else if(n&&!a){o=true;this.tokenChar(123);this.tokenChar(125)}if(a||n){this.space();this.word("from");this.space()}if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,o)}else{this.print(e.source)}this.semicolon()}function ImportAttribute(e){this.print(e.key);this.tokenChar(58);this.space();this.print(e.value)}function ImportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.local)}function ImportExpression(e){this.word("import");if(e.phase){this.tokenChar(46);this.word(e.phase)}this.tokenChar(40);const t=this.shouldPrintTrailingComma(")");this.print(e.source);if(e.options!=null){this.tokenChar(44);this.space();this.print(e.options)}if(t){this.tokenChar(44)}this.rightParens(e)}},40102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BreakStatement=BreakStatement;t.CatchClause=CatchClause;t.ContinueStatement=ContinueStatement;t.DebuggerStatement=DebuggerStatement;t.DoWhileStatement=DoWhileStatement;t.ForOfStatement=t.ForInStatement=void 0;t.ForStatement=ForStatement;t.IfStatement=IfStatement;t.LabeledStatement=LabeledStatement;t.ReturnStatement=ReturnStatement;t.SwitchCase=SwitchCase;t.SwitchStatement=SwitchStatement;t.ThrowStatement=ThrowStatement;t.TryStatement=TryStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.WhileStatement=WhileStatement;t.WithStatement=WithStatement;var n=r(16535);const{isFor:i,isForStatement:a,isIfStatement:o,isStatement:s}=n;function WithStatement(e){this.word("with");this.space();this.tokenChar(40);this.print(e.object);this.tokenChar(41);this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.space();const t=e.alternate&&o(getLastStatement(e.consequent));if(t){this.tokenChar(123);this.newline();this.indent()}this.printAndIndentOnComments(e.consequent);if(t){this.dedent();this.newline();this.tokenChar(125)}if(e.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate)}}function getLastStatement(e){const{body:t}=e;if(s(t)===false){return e}return getLastStatement(t)}function ForStatement(e){this.word("for");this.space();this.tokenChar(40);{const t=this.enterForStatementInit();this.print(e.init);t()}this.tokenChar(59);if(e.test){this.space();this.print(e.test)}this.token(";",false,1);if(e.update){this.space();this.print(e.update)}this.tokenChar(41);this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.printBlock(e)}function ForXStatement(e){this.word("for");this.space();const t=e.type==="ForOfStatement";if(t&&e.await){this.word("await");this.space()}this.noIndentInnerCommentsHere();this.tokenChar(40);{const r=this.enterForXStatementInit(t);this.print(e.left);r==null||r()}this.space();this.word(t?"of":"in");this.space();this.print(e.right);this.tokenChar(41);this.printBlock(e)}const c=t.ForInStatement=ForXStatement;const l=t.ForOfStatement=ForXStatement;function DoWhileStatement(e){this.word("do");this.space();this.print(e.body);this.space();this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.semicolon()}function printStatementAfterKeyword(e,t){if(t){e.space();e.printTerminatorless(t)}e.semicolon()}function BreakStatement(e){this.word("break");printStatementAfterKeyword(this,e.label)}function ContinueStatement(e){this.word("continue");printStatementAfterKeyword(this,e.label)}function ReturnStatement(e){this.word("return");printStatementAfterKeyword(this,e.argument)}function ThrowStatement(e){this.word("throw");printStatementAfterKeyword(this,e.argument)}function LabeledStatement(e){this.print(e.label);this.tokenChar(58);this.space();this.print(e.body)}function TryStatement(e){this.word("try");this.space();this.print(e.block);this.space();if(e.handlers){this.print(e.handlers[0])}else{this.print(e.handler)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.tokenChar(40);this.print(e.param);this.print(e.param.typeAnnotation);this.tokenChar(41);this.space()}this.print(e.body)}function SwitchStatement(e){this.word("switch");this.space();this.tokenChar(40);this.print(e.discriminant);this.tokenChar(41);this.space();this.tokenChar(123);this.printSequence(e.cases,true,undefined,(function addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}));this.rightBrace(e)}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test);this.tokenChar(58)}else{this.word("default");this.tokenChar(58)}if(e.consequent.length){this.newline();this.printSequence(e.consequent,true)}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}const{kind:r}=e;if(r==="await using"){this.word("await");this.space();this.word("using",true)}else{this.word(r,r==="using")}this.space();let n=false;if(!i(t)){for(const t of e.declarations){if(t.init){n=true}}}this.printList(e.declarations,undefined,undefined,e.declarations.length>1,n?function(e){this.token(",",false,e);this.newline()}:undefined);if(i(t)){if(a(t)){if(t.init===e)return}else{if(t.left===e)return}}this.semicolon()}function VariableDeclarator(e){this.print(e.id);if(e.definite)this.tokenChar(33);this.print(e.id.typeAnnotation);if(e.init){this.space();this.tokenChar(61);this.space();this.print(e.init)}}},97571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateElement=TemplateElement;t.TemplateLiteral=TemplateLiteral;t._printTemplate=_printTemplate;function TaggedTemplateExpression(e){this.print(e.tag);{this.print(e.typeParameters)}this.print(e.quasi)}function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function _printTemplate(e,t){const r=e.quasis;let n="`";for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentPlaceholder=ArgumentPlaceholder;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.BigIntLiteral=BigIntLiteral;t.BooleanLiteral=BooleanLiteral;t.Identifier=Identifier;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;t.PipelineTopicExpression=PipelineTopicExpression;t.RecordExpression=RecordExpression;t.RegExpLiteral=RegExpLiteral;t.SpreadElement=t.RestElement=RestElement;t.StringLiteral=StringLiteral;t.TopicReference=TopicReference;t.TupleExpression=TupleExpression;t.VoidPattern=VoidPattern;t._getRawIdentifier=_getRawIdentifier;var n=r(16535);var i=r(59376);const{isAssignmentPattern:a,isIdentifier:o}=n;let s=null;let c="";function _getRawIdentifier(e){if(e===s)return c;s=e;const{name:t}=e;const r=this.tokenMap.find(e,(e=>e.value===t));if(r){c=this._originalCode.slice(r.start,r.end);return c}return c=e.name}function Identifier(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name);this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function ArgumentPlaceholder(){this.tokenChar(63)}function RestElement(e){this.token("...");this.print(e.argument)}function ObjectExpression(e){const t=e.properties;this.tokenChar(123);if(t.length){const e=this.enterDelimited();this.space();this.printList(t,this.shouldPrintTrailingComma("}"),true,true);this.space();e()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}function ObjectMethod(e){this.printJoin(e.decorators);this._methodHead(e);this.space();this.print(e.body)}function ObjectProperty(e){this.printJoin(e.decorators);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{if(a(e.value)&&o(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}this.print(e.key);if(e.shorthand&&o(e.key)&&o(e.value)&&e.key.name===e.value.name){return}}this.tokenChar(58);this.space();this.print(e.value)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.tokenChar(91);const n=this.enterDelimited();for(let e=0;e0)this.space();this.print(n);if(e0)this.space();this.print(n);if(eJSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of `+`${r.join(", ")} (${t} received instead).`)}}function PipelineTopicExpression(e){this.print(e.expression)}function PipelineBareFunction(e){this.print(e.callee)}function PipelinePrimaryTopicReference(){this.tokenChar(35)}function VoidPattern(){this.word("void")}},16975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSAnyKeyword=TSAnyKeyword;t.TSArrayType=TSArrayType;t.TSSatisfiesExpression=t.TSAsExpression=TSTypeExpression;t.TSBigIntKeyword=TSBigIntKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSInterfaceHeritage=t.TSClassImplements=TSClassImplements;t.TSConditionalType=TSConditionalType;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSConstructorType=TSConstructorType;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSEnumBody=TSEnumBody;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSExportAssignment=TSExportAssignment;t.TSExternalModuleReference=TSExternalModuleReference;t.TSFunctionType=TSFunctionType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSImportType=TSImportType;t.TSIndexSignature=TSIndexSignature;t.TSIndexedAccessType=TSIndexedAccessType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSInterfaceBody=TSInterfaceBody;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSIntersectionType=TSIntersectionType;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSLiteralType=TSLiteralType;t.TSMappedType=TSMappedType;t.TSMethodSignature=TSMethodSignature;t.TSModuleBlock=TSModuleBlock;t.TSModuleDeclaration=TSModuleDeclaration;t.TSNamedTupleMember=TSNamedTupleMember;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.TSNeverKeyword=TSNeverKeyword;t.TSNonNullExpression=TSNonNullExpression;t.TSNullKeyword=TSNullKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSOptionalType=TSOptionalType;t.TSParameterProperty=TSParameterProperty;t.TSParenthesizedType=TSParenthesizedType;t.TSPropertySignature=TSPropertySignature;t.TSQualifiedName=TSQualifiedName;t.TSRestType=TSRestType;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSTemplateLiteralType=TSTemplateLiteralType;t.TSThisType=TSThisType;t.TSTupleType=TSTupleType;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeAssertion=TSTypeAssertion;t.TSTypeLiteral=TSTypeLiteral;t.TSTypeOperator=TSTypeOperator;t.TSTypeParameter=TSTypeParameter;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeReference=TSTypeReference;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSUnionType=TSUnionType;t.TSUnknownKeyword=TSUnknownKeyword;t.TSVoidKeyword=TSVoidKeyword;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;function TSTypeAnnotation(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":");this.space();if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function TSTypeParameterInstantiation(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null){r&&(r=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,","))));r||(r=this.shouldPrintTrailingComma(">"))}this.printList(e.params,r);this.tokenChar(62)}function TSTypeParameter(e){if(e.const){this.word("const");this.space()}if(e.in){this.word("in");this.space()}if(e.out){this.word("out");this.space()}this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e,t){if(e.declare){this.word("declare");this.space()}this._functionHead(e,t);this.semicolon()}function TSDeclareMethod(e){this._classMethodHead(e);this.semicolon()}function TSQualifiedName(e){this.print(e.left);this.tokenChar(46);this.print(e.right)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function maybePrintTrailingCommaOrSemicolon(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,",")){e.token(",")}else if(e.tokenMap.endMatches(t,";")){e.semicolon()}}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSPropertySignature(e){const{readonly:t}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function tsPrintPropertyOrMethodName(e){if(e.computed){this.tokenChar(91)}this.print(e.key);if(e.computed){this.tokenChar(93)}if(e.optional){this.tokenChar(63)}}function TSMethodSignature(e){const{kind:t}=e;if(t==="set"||t==="get"){this.word(t);this.space()}this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSIndexSignature(e){const{readonly:t,static:r}=e;if(r){this.word("static");this.space()}if(t){this.word("readonly");this.space()}this.tokenChar(91);this._parameters(e.parameters,"]");this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){if(e.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");this.space();const n=e.typeAnnotation;this.print(n)}function TSTypeReference(e){const t=e.typeParameters;this.print(e.typeName,!!t);this.print(t)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName);const t=e.typeParameters;if(t){this.print(t)}}function TSTypeLiteral(e){printBraced(this,e,(()=>this.printJoin(e.members,true,true)))}function TSArrayType(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function TSTupleType(e){this.tokenChar(91);this.printList(e.elementTypes,this.shouldPrintTrailingComma("]"));this.tokenChar(93)}function TSOptionalType(e){this.print(e.typeAnnotation);this.tokenChar(63)}function TSRestType(e){this.token("...");this.print(e.typeAnnotation)}function TSNamedTupleMember(e){this.print(e.label);if(e.optional)this.tokenChar(63);this.tokenChar(58);this.space();this.print(e.elementType)}function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")}function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")}function tsPrintUnionOrIntersectionType(e,t,r){var n;let i=0;if((n=e.tokenMap)!=null&&n.startMatches(t,r)){i=1;e.token(r)}e.printJoin(t.types,undefined,undefined,(function(e){this.space();this.token(r,null,e+i);this.space()}))}function TSConditionalType(e){this.print(e.checkType);this.space();this.word("extends");this.space();this.print(e.extendsType);this.space();this.tokenChar(63);this.space();this.print(e.trueType);this.space();this.tokenChar(58);this.space();this.print(e.falseType)}function TSInferType(e){this.word("infer");this.print(e.typeParameter)}function TSParenthesizedType(e){this.tokenChar(40);this.print(e.typeAnnotation);this.tokenChar(41)}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation)}function TSIndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function TSMappedType(e){const{nameType:t,optional:r,readonly:n,typeAnnotation:i}=e;this.tokenChar(123);const a=this.enterDelimited();this.space();if(n){tokenIfPlusMinus(this,n);this.word("readonly");this.space()}this.tokenChar(91);{this.word(e.typeParameter.name)}this.space();this.word("in");this.space();{this.print(e.typeParameter.constraint)}if(t){this.space();this.word("as");this.space();this.print(t)}this.tokenChar(93);if(r){tokenIfPlusMinus(this,r);this.tokenChar(63)}if(i){this.tokenChar(58);this.space();this.print(i)}this.space();a();this.tokenChar(125)}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSTemplateLiteralType(e){this._printTemplate(e,e.types)}function TSLiteralType(e){this.print(e.literal)}function TSClassImplements(e){this.print(e.expression);this.print(e.typeArguments)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:n,extends:i,body:a}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r);this.print(n);if(i!=null&&i.length){this.space();this.word("extends");this.space();this.printList(i)}this.space();this.print(a)}function TSInterfaceBody(e){printBraced(this,e,(()=>this.printJoin(e.body,true,true)))}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r);this.print(n);this.space();this.tokenChar(61);this.space();this.print(i);this.semicolon()}function TSTypeExpression(e){const{type:t,expression:r,typeAnnotation:n}=e;this.print(r,true);this.space();this.word(t==="TSAsExpression"?"as":"satisfies");this.space();this.print(n)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60);this.print(t);this.tokenChar(62);this.space();this.print(r)}function TSInstantiationExpression(e){this.print(e.expression);{this.print(e.typeParameters)}}function TSEnumDeclaration(e){const{declare:t,const:r,id:n}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(n);this.space();{TSEnumBody.call(this,e)}}function TSEnumBody(e){printBraced(this,e,(()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:true,true,true)}))}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t);if(r){this.space();this.tokenChar(61);this.space();this.print(r)}}function TSModuleDeclaration(e){const{declare:t,id:r,kind:n}=e;if(t){this.word("declare");this.space()}{if(!e.global){this.word(n!=null?n:r.type==="Identifier"?"namespace":"module");this.space()}this.print(r);if(!e.body){this.semicolon();return}let t=e.body;while(t.type==="TSModuleDeclaration"){this.tokenChar(46);this.print(t.id);t=t.body}this.space();this.print(t)}}function TSModuleBlock(e){printBraced(this,e,(()=>this.printSequence(e.body,true)))}function TSImportType(e){const{argument:t,qualifier:r,options:n}=e;this.word("import");this.tokenChar(40);this.print(t);if(n){this.tokenChar(44);this.print(n)}this.tokenChar(41);if(r){this.tokenChar(46);this.print(r)}const i=e.typeParameters;if(i){this.print(i)}}function TSImportEqualsDeclaration(e){const{id:t,moduleReference:r}=e;if(e.isExport){this.word("export");this.space()}this.word("import");this.space();this.print(t);this.space();this.tokenChar(61);this.space();this.print(r);this.semicolon()}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression);this.tokenChar(41)}function TSNonNullExpression(e){this.print(e.expression);this.tokenChar(33)}function TSExportAssignment(e){this.word("export");this.space();this.tokenChar(61);this.space();this.print(e.expression);this.semicolon()}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id);this.semicolon()}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");const n=e.typeAnnotation;this.print(n)}function tsPrintClassMemberModifiers(e){const t=e.type==="ClassPrivateProperty";const r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";printModifiersList(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]);if(e.static){this.word("static");this.space()}printModifiersList(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function printBraced(e,t,r){e.token("{");const n=e.enterDelimited();r();n();e.rightBrace(t)}function printModifiersList(e,t,r){var n;const i=new Set;for(const e of r){if(e)i.add(e)}(n=e.tokenMap)==null||n.find(t,(t=>{if(i.has(t.value)){e.token(t.value);e.space();i.delete(t.value);return i.size===0}}));for(const t of i){e.word(t);e.space()}}},12123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.generate=generate;var n=r(18201);var i=r(81163);function normalizeOptions(e,t,r){if(t.experimental_preserveFormat){if(typeof e!=="string"){throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string")}if(!t.retainLines){throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`")}if(t.compact&&t.compact!=="auto"){throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option")}if(t.minified){throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option")}if(t.jsescOption){throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option")}if(!Array.isArray(r.tokens)){throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}}const n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var i;n.decoratorsBeforeExport=t.decoratorsBeforeExport;n.jsescOption.json=t.jsonCompatibleStrings;n.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash"}if(n.minified){n.compact=true;n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)}else{n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve"))}if(n.compact==="auto"){n.compact=typeof e==="string"&&e.length>5e5;if(n.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of ${"500KB"}.`)}}if(n.compact||n.preserveFormat){n.indent.adjustMultilineComment=false}const{auxiliaryCommentBefore:a,auxiliaryCommentAfter:o,shouldPrintComment:s}=n;if(a&&!s(a)){n.auxiliaryCommentBefore=undefined}if(o&&!s(o)){n.auxiliaryCommentAfter=undefined}return n}{t.CodeGenerator=class CodeGenerator{constructor(e,t={},r){this._ast=void 0;this._format=void 0;this._map=void 0;this._ast=e;this._format=normalizeOptions(r,t,e);this._map=t.sourceMaps?new n.default(t,r):null}generate(){const e=new i.default(this._format,this._map);return e.generate(this._ast)}}}function generate(e,t={},r){const a=normalizeOptions(r,t,e);const o=t.sourceMaps?new n.default(t,r):null;const s=new i.default(a,o,e.tokens,typeof r==="string"?r:null);return s.generate(e)}var a=t["default"]=generate},95460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenContext=void 0;t.isLastChild=isLastChild;t.needsParens=needsParens;t.needsWhitespace=needsWhitespace;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsWhitespaceBefore=needsWhitespaceBefore;var n=r(77971);var i=r(19504);var a=r(16535);const{FLIPPED_ALIAS_KEYS:o,VISITOR_KEYS:s,isCallExpression:c,isDecorator:l,isExpressionStatement:u,isMemberExpression:d,isNewExpression:p,isParenthesizedExpression:g}=a;const y=t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function expandAliases(e){const t=new Map;function add(e,r){const n=t.get(e);t.set(e,n?function(e,t,i,a){var o;return(o=n(e,t,i,a))!=null?o:r(e,t,i,a)}:r)}for(const t of Object.keys(e)){const r=o[t];if(r){for(const n of r){add(n,e[t])}}else{add(t,e[t])}}return t}const h=expandAliases(i);const _=expandAliases(n.nodes);function isOrHasCallExpression(e){if(c(e)){return true}return d(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){var n;if(!e)return false;if(u(e)){e=e.expression}const i=(n=_.get(e.type))==null?void 0:n(e,t);if(typeof i==="number"){return(i&r)!==0}return false}function needsWhitespaceBefore(e,t){return needsWhitespace(e,t,1)}function needsWhitespaceAfter(e,t){return needsWhitespace(e,t,2)}function needsParens(e,t,r,n){var i;if(!t)return false;if(p(t)&&t.callee===e){if(isOrHasCallExpression(e))return true}if(l(t)){return!isDecoratorMemberExpression(e)&&!(c(e)&&isDecoratorMemberExpression(e.callee))&&!g(e)}return(i=h.get(e.type))==null?void 0:i(e,t,r,n)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return true;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&isDecoratorMemberExpression(e.object);default:return false}}function isLastChild(e,t){const r=s[e.type];for(let n=r.length-1;n>=0;n--){const i=e[r[n]];if(i===t){return true}else if(Array.isArray(i)){let e=i.length-1;while(e>=0&&i[e]===null)e--;return e>=0&&i[e]===t}else if(i){return false}}return false}},19504:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssignmentExpression=AssignmentExpression;t.Binary=Binary;t.BinaryExpression=BinaryExpression;t.ClassExpression=ClassExpression;t.ArrowFunctionExpression=t.ConditionalExpression=ConditionalExpression;t.DoExpression=DoExpression;t.FunctionExpression=FunctionExpression;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.Identifier=Identifier;t.LogicalExpression=LogicalExpression;t.NullableTypeAnnotation=NullableTypeAnnotation;t.ObjectExpression=ObjectExpression;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.OptionalCallExpression=t.OptionalMemberExpression=OptionalMemberExpression;t.SequenceExpression=SequenceExpression;t.TSSatisfiesExpression=t.TSAsExpression=TSAsExpression;t.TSConditionalType=TSConditionalType;t.TSConstructorType=t.TSFunctionType=TSFunctionType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSIntersectionType=TSIntersectionType;t.UnaryLike=t.TSTypeAssertion=UnaryLike;t.TSTypeOperator=TSTypeOperator;t.TSUnionType=TSUnionType;t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=UnionTypeAnnotation;t.UpdateExpression=UpdateExpression;t.AwaitExpression=t.YieldExpression=YieldExpression;var n=r(16535);var i=r(95460);const{isArrayTypeAnnotation:a,isBinaryExpression:o,isCallExpression:s,isForOfStatement:c,isIndexedAccessType:l,isMemberExpression:u,isObjectPattern:d,isOptionalMemberExpression:p,isYieldExpression:g,isStatement:y}=n;const h=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(e,t){if(t==="BinaryExpression"||t==="LogicalExpression"){return h.get(e.operator)}if(t==="TSAsExpression"||t==="TSSatisfiesExpression"){return h.get("in")}}function isTSTypeExpression(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}const isClassExtendsClause=(e,t)=>{const r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e};const hasPostfixPart=(e,t)=>{const r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function NullableTypeAnnotation(e,t){return a(t)}function FunctionTypeAnnotation(e,t,r){const n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||Boolean(r&i.TokenContext.arrowFlowReturnType)}function UpdateExpression(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)}function needsParenBeforeExpressionBrace(e){return Boolean(e&(i.TokenContext.expressionStatement|i.TokenContext.arrowBody))}function ObjectExpression(e,t,r){return needsParenBeforeExpressionBrace(r)}function DoExpression(e,t,r){return!e.async&&Boolean(r&i.TokenContext.expressionStatement)}function Binary(e,t){const r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**"){return t.left===e}if(isClassExtendsClause(e,t)){return true}if(hasPostfixPart(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression"){return true}const n=getBinaryPrecedence(t,r);if(n!=null){const i=getBinaryPrecedence(e,e.type);if(n===i&&r==="BinaryExpression"&&t.right===e||n>i){return true}}return undefined}function UnionTypeAnnotation(e,t){const r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function OptionalIndexedAccessType(e,t){return l(t)&&t.objectType===e}function TSAsExpression(e,t){if((t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e){return true}if(t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left){return true}return Binary(e,t)}function TSConditionalType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"){return true}if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}if(r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)){return true}return false}function TSUnionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSIntersectionType(e,t){const r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInferType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"){return true}if(e.typeParameter.constraint){if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}}return false}function TSTypeOperator(e,t){const r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInstantiationExpression(e,t){const r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function TSFunctionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function BinaryExpression(e,t,r){return e.operator==="in"&&Boolean(r&i.TokenContext.forInOrInitHeadAccumulate)}function SequenceExpression(e,t){const r=t.type;if(r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"){return false}if(r==="ClassDeclaration"){return true}if(r==="ForOfStatement"){return t.right===e}if(r==="ExportDefaultDeclaration"){return true}return!y(t)}function YieldExpression(e,t){const r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||hasPostfixPart(e,t)||r==="AwaitExpression"&&g(e)||r==="ConditionalExpression"&&e===t.test||isClassExtendsClause(e,t)||isTSTypeExpression(r)}function ClassExpression(e,t,r){return Boolean(r&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))}function UnaryLike(e,t){return hasPostfixPart(e,t)||o(t)&&t.operator==="**"&&t.left===e||isClassExtendsClause(e,t)}function FunctionExpression(e,t,r){return Boolean(r&(i.TokenContext.expressionStatement|i.TokenContext.exportDefault))}function ConditionalExpression(e,t){const r=t.type;if(r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||isTSTypeExpression(r)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return s(t)&&t.callee===e||u(t)&&t.object===e}function AssignmentExpression(e,t,r){if(needsParenBeforeExpressionBrace(r)&&d(e.left)){return true}else{return ConditionalExpression(e,t)}}function LogicalExpression(e,t){const r=t.type;if(isTSTypeExpression(r))return true;if(r!=="LogicalExpression")return false;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Identifier(e,t,r,n){var a;const o=t.type;if((a=e.extra)!=null&&a.parenthesized&&o==="AssignmentExpression"&&t.left===e){const e=t.right.type;if((e==="FunctionExpression"||e==="ClassExpression")&&t.right.id==null){return true}}if(n&&n(e)!==e.name){return false}if(e.name==="let"){const n=u(t,{object:e,computed:true})||p(t,{object:e,computed:true,optional:false});if(n&&r&(i.TokenContext.expressionStatement|i.TokenContext.forInitHead|i.TokenContext.forInHead)){return true}return Boolean(r&i.TokenContext.forOfHead)}return e.name==="async"&&c(t,{left:e,await:false})}},77971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodes=void 0;var n=r(16535);const{FLIPPED_ALIAS_KEYS:i,isArrayExpression:a,isAssignmentExpression:o,isBinary:s,isBlockStatement:c,isCallExpression:l,isFunction:u,isIdentifier:d,isLiteral:p,isMemberExpression:g,isObjectExpression:y,isOptionalCallExpression:h,isOptionalMemberExpression:_,isStringLiteral:A}=n;function crawlInternal(e,t){if(!e)return t;if(g(e)||_(e)){crawlInternal(e.object,t);if(e.computed)crawlInternal(e.property,t)}else if(s(e)||o(e)){crawlInternal(e.left,t);crawlInternal(e.right,t)}else if(l(e)||h(e)){t.hasCall=true;crawlInternal(e.callee,t)}else if(u(e)){t.hasFunction=true}else if(d(e)){t.hasHelper=t.hasHelper||e.callee&&isHelper(e.callee)}return t}function crawl(e){return crawlInternal(e,{hasCall:false,hasFunction:false,hasHelper:false})}function isHelper(e){if(!e)return false;if(g(e)){return isHelper(e.object)||isHelper(e.property)}else if(d(e)){return e.name==="require"||e.name.charCodeAt(0)===95}else if(l(e)){return isHelper(e.callee)}else if(s(e)||o(e)){return d(e.left)&&isHelper(e.left)||isHelper(e.right)}else{return false}}function isType(e){return p(e)||y(e)||a(e)||d(e)||g(e)}const v=t.nodes={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction){return t.hasFunction?1|2:2}},SwitchCase(e,t){return(!!e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(u(e.left)||u(e.right)){return 2}},Literal(e){if(A(e)&&e.value==="use strict"){return 2}},CallExpression(e){if(u(e.callee)||isHelper(e)){return 1|2}},OptionalCallExpression(e){if(u(e.callee)){return 1|2}},VariableDeclaration(e){for(let t=0;tr}))}))},81163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(11669);var i=r(95460);var a=i;var o=r(16535);var s=r(93849);var c=r(39662);var l=r(60617);const{isExpression:u,isFunction:d,isStatement:p,isClassBody:g,isTSInterfaceBody:y,isTSEnumMember:h}=o;const _=/e/i;const A=/\.0+$/;const v=/[\n\r\u2028\u2029]/;const E=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return e.type==="CommentLine"||v.test(e.value)}const{needsParens:T}=a;class Printer{constructor(e,t,r,a){this.tokenContext=i.TokenContext.normal;this._tokens=null;this._originalCode=null;this._currentNode=null;this._indent=0;this._indentRepeat=0;this._insideAux=false;this._noLineTerminator=false;this._noLineTerminatorAfterNode=null;this._printAuxAfterOnNextUserNode=false;this._printedComments=new Set;this._endsWithInteger=false;this._endsWithWord=false;this._endsWithDiv=false;this._lastCommentLine=0;this._endsWithInnerRaw=false;this._indentInnerComments=true;this.tokenMap=null;this._boundGetRawIdentifier=this._getRawIdentifier.bind(this);this._printSemicolonBeforeNextNode=-1;this._printSemicolonBeforeNextToken=-1;this.format=e;this._tokens=r;this._originalCode=a;this._indentRepeat=e.indent.style.length;this._inputMap=t==null?void 0:t._inputMap;this._buf=new n.default(t,e.indent.style[0])}enterForStatementInit(){this.tokenContext|=i.TokenContext.forInitHead|i.TokenContext.forInOrInitHeadAccumulate;return()=>this.tokenContext=i.TokenContext.normal}enterForXStatementInit(e){if(e){this.tokenContext|=i.TokenContext.forOfHead;return null}else{this.tokenContext|=i.TokenContext.forInHead|i.TokenContext.forInOrInitHeadAccumulate;return()=>this.tokenContext=i.TokenContext.normal}}enterDelimited(){const e=this.tokenContext;const t=this._noLineTerminatorAfterNode;if(!(e&i.TokenContext.forInOrInitHeadAccumulate)&&t===null){return()=>{}}this._noLineTerminatorAfterNode=null;this.tokenContext=i.TokenContext.normal;return()=>{this._noLineTerminatorAfterNode=t;this.tokenContext=e}}generate(e){if(this.format.preserveFormat){this.tokenMap=new s.TokenMap(e,this._tokens,this._originalCode)}this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent++}dedent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent--}semicolon(e=false){this._maybeAddAuxComment();if(e){this._appendChar(59);this._noLineTerminator=false;return}if(this.tokenMap){const e=this._currentNode;if(e.start!=null&&e.end!=null){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59);this._noLineTerminator=false}rightBrace(e){if(this.format.minified){this._buf.removeLastSemicolon()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1);this.tokenChar(41)}space(e=false){const{format:t}=this;if(t.compact||t.preserveFormat)return;if(e){this._space()}else if(this._buf.hasContent()){const e=this.getLastChar();if(e!==32&&e!==10){this._space()}}}word(e,t=false){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;this._maybePrintInnerComments(e);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e);if(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47){this._space()}this._append(e,false);this._endsWithWord=true;this._noLineTerminator=t}number(e,t){function isNonDecimalLiteral(e){if(e.length>2&&e.charCodeAt(0)===48){const t=e.charCodeAt(1);return t===98||t===111||t===120}return false}this.word(e);this._endsWithInteger=Number.isInteger(t)&&!isNonDecimalLiteral(e)&&!_.test(e)&&!A.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,t=false,r=0){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;this._maybePrintInnerComments(e,r);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e,r);const n=this.getLastChar();const a=e.charCodeAt(0);if(n===33&&(e==="--"||a===61)||a===43&&n===43||a===45&&n===45||a===46&&this._endsWithInteger){this._space()}this._append(e,t);this._noLineTerminator=false}tokenChar(e){this.tokenContext&=i.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(t);const r=this.getLastChar();if(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger){this._space()}this._appendChar(e);this._noLineTerminator=false}newline(e=1,t){if(e<=0)return;if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let t=0;t0&&this._noLineTerminator){return}for(let e=0;e0?t:t-this._buf.getCurrentColumn();if(i>0){const e=this._originalCode?this._originalCode.slice(r-i,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._append(e,false)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=true;this.print(e)}print(e,t,r){var n,o,s;if(!e)return;this._endsWithInnerRaw=false;const c=e.type;const l=this.format;const d=l.concise;if(e._compact){l.concise=true}const p=this[c];if(p===undefined){throw new ReferenceError(`unknown node of type ${JSON.stringify(c)} with constructor ${JSON.stringify(e.constructor.name)}`)}const g=this._currentNode;this._currentNode=e;if(this.tokenMap){this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode}const y=this._insideAux;this._insideAux=e.loc==null;this._maybeAddAuxComment(this._insideAux&&!y);const h=(n=e.extra)==null?void 0:n.parenthesized;let _=h&&l.preserveFormat||h&&l.retainFunctionParens&&c==="FunctionExpression"||T(e,g,this.tokenContext,l.preserveFormat?this._boundGetRawIdentifier:undefined);if(!_&&h&&(o=e.leadingComments)!=null&&o.length&&e.leadingComments[0].type==="CommentBlock"){const t=g==null?void 0:g.type;switch(t){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(g.callee!==e)break;default:_=true}}let A=false;if(!_&&this._noLineTerminator&&((s=e.leadingComments)!=null&&s.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())){_=true;A=true}let v;let E;if(!_){t||(t=g&&this._noLineTerminatorAfterNode===g&&a.isLastChild(g,e));if(t){var b;if((b=e.trailingComments)!=null&&b.some(commentIsNewline)){if(u(e))_=true}else{v=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=e}}}if(_){this.tokenChar(40);if(A)this.indent();this._endsWithInnerRaw=false;if(this.tokenContext&i.TokenContext.forInOrInitHeadAccumulate){E=this.tokenContext;this.tokenContext=i.TokenContext.normal}v=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=null}this._lastCommentLine=0;this._printLeadingComments(e,g);const S=c==="Program"||c==="File"?null:e.loc;this.exactSource(S,p.bind(this,e,g));if(_){this._printTrailingComments(e,g);if(A){this.dedent();this.newline()}this.tokenChar(41);this._noLineTerminator=t;if(E)this.tokenContext=E}else if(t&&!this._noLineTerminator){this._noLineTerminator=true;this._printTrailingComments(e,g)}else{this._printTrailingComments(e,g,r)}this._currentNode=g;l.concise=d;this._insideAux=y;if(v!==undefined){this._noLineTerminatorAfterNode=v}this._endsWithInnerRaw=false}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e},0)}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e},0)}}getPossibleRaw(e){const t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r,n,i,a,o,s){if(!(e!=null&&e.length))return;if(r==null&&this.format.retainLines){var c;const t=(c=e[0].loc)==null?void 0:c.start.line;if(t!=null&&t!==this._buf.getCurrentLine()){r=true}}if(r)this.indent();const l={addNewlines:a,nextNodeStartLine:0};const u=n==null?void 0:n.bind(this);const d=e.length;for(let r=0;r0;if(t)this.indent();this.print(e);if(t)this.dedent()}printBlock(e){const t=e.body;if(t.type!=="EmptyStatement"){this.space()}this.print(t)}_printTrailingComments(e,t,r){const{innerComments:n,trailingComments:i}=e;if(n!=null&&n.length){this._printComments(2,n,e,t,r)}if(i!=null&&i.length){this._printComments(2,i,e,t,r)}}_printLeadingComments(e,t){const r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var r;this.printInnerComments((r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=true;this._indentInnerComments=true}printInnerComments(e){const t=this._currentNode;const r=t.innerComments;if(!(r!=null&&r.length))return;const n=this.endsWith(32);const i=this._indentInnerComments;const a=this._printedComments.size;if(i)this.indent();this._printComments(1,r,t,undefined,undefined,e);if(n&&a!==this._printedComments.size){this.space()}if(i)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=false}printSequence(e,t,r,n){this.printJoin(e,true,t!=null?t:false,undefined,undefined,n,undefined,r)}printList(e,t,r,n,i,a){this.printJoin(e,r,n,i!=null?i:commaSeparator,t,undefined,a)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise){this.space();return}if(!e){return}const n=t.nextNodeStartLine;const i=this._lastCommentLine;if(n>0&&i>0){const e=n-i;if(e>=0){this.newline(e||1);return}}if(this._buf.hasContent()){this.newline(1)}}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&E.test(e.value)){return 2}if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(r&&r.start>t.start){return 2}}this._printedComments.add(e);if(!this.format.shouldPrintComment(e.value)){return 0}return 1}_printComment(e,t){const r=this._noLineTerminator;const n=e.type==="CommentBlock";const i=n&&t!==1&&!this._noLineTerminator;if(i&&this._buf.hasContent()&&t!==2){this.newline(1)}const a=this.getLastChar();if(a!==91&&a!==123&&a!==40){this.space()}let o;if(n){o=`/*${e.value}*/`;if(this.format.indent.adjustMultilineComment){var s;const t=(s=e.loc)==null?void 0:s.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");o=o.replace(e,"\n")}if(this.format.concise){o=o.replace(/\n(?!$)/g,`\n`)}else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines){e+=this._getIndent()}o=o.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else if(!r){o=`//${e.value}`}else{o=`/*${e.value}*/`}if(this._endsWithDiv)this._space();if(this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1;this.source("start",e.loc);this._append(o,n);this._printSemicolonBeforeNextNode=r;this._printSemicolonBeforeNextToken=t}else{this.source("start",e.loc);this._append(o,n)}if(!n&&!r){this.newline(1,true)}if(i&&t!==3){this.newline(1)}}_printComments(e,t,r,n,i=0,a){const o=r.loc;const s=t.length;let c=!!o;const l=c?o.start.line:0;const u=c?o.end.line:0;let _=0;let A=0;const E=this._noLineTerminator?function(){}:this.newline.bind(this);for(let o=0;o1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody"){this._printComment(T,o===0?2:o===s-1?3:0)}else{this._printComment(T,0)}}}if(e===2&&c&&_){this._lastCommentLine=_}}}Object.assign(Printer.prototype,c);{(0,l.addDeprecatedGenerators)(Printer)}var b=t["default"]=Printer;function commaSeparator(e,t){this.token(",",false,e);if(!t)this.space()}},18201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(36153);var i=r(99535);class SourceMap{constructor(e,t){var r;this._map=void 0;this._rawMappings=void 0;this._sourceFileName=void 0;this._lastGenLine=0;this._lastSourceLine=0;this._lastSourceColumn=0;this._inputMap=void 0;const a=this._map=new n.GenMapping({sourceRoot:e.sourceRoot});this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/");this._rawMappings=undefined;if(e.inputSourceMap){this._inputMap=new i.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length){for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenMap=void 0;var n=r(16535);const{traverseFast:i,VISITOR_KEYS:a}=n;class TokenMap{constructor(e,t,r){this._tokens=void 0;this._source=void 0;this._nodesToTokenIndexes=new Map;this._nodesOccurrencesCountCache=new Map;this._tokensCache=new Map;this._tokens=t;this._source=r;i(e,(e=>{const t=this._getTokensIndexesOfNode(e);if(t.length>0)this._nodesToTokenIndexes.set(e,t)}));this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=0;e=0;e--){const n=r[e];const i=this._tokens[n];if(t(i,n))return n}}return-1}findMatching(e,t,r=0){const n=this._nodesToTokenIndexes.get(e);if(n){let i=0;const a=r;if(a>1){const n=this._nodesOccurrencesCountCache.get(e);if(n&&n.test===t&&n.count0){this._nodesOccurrencesCountCache.set(e,{test:t,count:a,i:i})}return o}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return false;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[0]];if(n.start!==e.start)return false;return this.matchesOriginal(n,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[r.length-1]];if(n.end!==e.end)return false;return this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];const{first:t,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1);let n=t;const i=childrenIterator(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"){i.next()}const a=[];for(const e of i){if(e==null)continue;if(e.start==null||e.end==null)continue;const t=this._findTokensOfNode(e,n,r);const i=t.first;for(let e=n;e>1;if(ethis._tokens[n].start){t=n+1}else{return n}}return t}_findLastTokenOfNode(e,t,r){while(t<=r){const n=r+t>>1;if(ethis._tokens[n].end){t=n+1}else{return n}}return r}}t.TokenMap=TokenMap;function*childrenIterator(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInclusionReasons=getInclusionReasons;var n=r(39318);var i=r(27523);var a=r(81842);function getInclusionReasons(e,t,r){const o=r[e]||{};return Object.keys(t).reduce(((e,r)=>{const s=(0,a.getLowestImplementedVersion)(o,r);const c=t[r];if(!s){e[r]=(0,i.prettifyVersion)(c)}else{const t=(0,a.isUnreleasedVersion)(s,r);const o=(0,a.isUnreleasedVersion)(c,r);if(!o&&(t||n.lt(c.toString(),(0,a.semverify)(s)))){e[r]=(0,i.prettifyVersion)(c)}}return e}),{})}},4888:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=filterItems;t.isRequired=isRequired;t.targetsSupported=targetsSupported;var n=r(39318);var i=r(81842);const a=r(26699);function targetsSupported(e,t){const r=Object.keys(e);if(r.length===0){return false}const a=r.filter((r=>{const a=(0,i.getLowestImplementedVersion)(t,r);if(!a){return true}const o=e[r];if((0,i.isUnreleasedVersion)(o,r)){return false}if((0,i.isUnreleasedVersion)(a,r)){return true}if(!n.valid(o.toString())){throw new Error(`Invalid version passed for target "${r}": "${o}". `+"Versions must be in semver format (major.minor.patch)")}return n.gt((0,i.semverify)(a),o.toString())}));return a.length===0}function isRequired(e,t,{compatData:r=a,includes:n,excludes:i}={}){if(i!=null&&i.has(e))return false;if(n!=null&&n.has(e))return true;return!targetsSupported(t,r[e])}function filterItems(e,t,r,n,i,a,o){const s=new Set;const c={compatData:e,includes:t,excludes:r};for(const t in e){if(isRequired(t,n,c)){s.add(t)}else if(o){const e=o.get(t);if(e){s.add(e)}}}i==null||i.forEach((e=>!r.has(e)&&s.add(e)));a==null||a.forEach((e=>!t.has(e)&&s.delete(e)));return s}},56519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"TargetNames",{enumerable:true,get:function(){return c.TargetNames}});t["default"]=getTargets;Object.defineProperty(t,"filterItems",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"getInclusionReasons",{enumerable:true,get:function(){return u.getInclusionReasons}});t.isBrowsersQueryValid=isBrowsersQueryValid;Object.defineProperty(t,"isRequired",{enumerable:true,get:function(){return d.isRequired}});Object.defineProperty(t,"prettifyTargets",{enumerable:true,get:function(){return l.prettifyTargets}});Object.defineProperty(t,"unreleasedLabels",{enumerable:true,get:function(){return s.unreleasedLabels}});var n=r(77913);var i=r(29233);var a=r(42762);var o=r(81842);var s=r(11917);var c=r(69629);var l=r(27523);var u=r(95768);var d=r(4888);const p=r(63888);const g=p["es6.module"];const y=new i.OptionValidator("@babel/helper-compilation-targets");function validateTargetNames(e){const t=Object.keys(c.TargetNames);for(const r of Object.keys(e)){if(!(r in c.TargetNames)){throw new Error(y.formatMessage(`'${r}' is not a valid target\n- Did you mean '${(0,i.findSuggestion)(r,t)}'?`))}}return e}function isBrowsersQueryValid(e){return typeof e==="string"||Array.isArray(e)&&e.every((e=>typeof e==="string"))}function validateBrowsers(e){y.invariant(e===undefined||isBrowsersQueryValid(e),`'${String(e)}' is not a valid browserslist query`);return e}function getLowestVersions(e){return e.reduce(((e,t)=>{const[r,n]=t.split(" ");const i=s.browserNameMap[r];if(!i){return e}try{const t=n.split("-")[0].toLowerCase();const r=(0,o.isUnreleasedVersion)(t,i);if(!e[i]){e[i]=r?t:(0,o.semverify)(t);return e}const a=e[i];const s=(0,o.isUnreleasedVersion)(a,i);if(s&&r){e[i]=(0,o.getLowestUnreleased)(a,t,i)}else if(s){e[i]=(0,o.semverify)(t)}else if(!s&&!r){const r=(0,o.semverify)(t);e[i]=(0,o.semverMin)(a,r)}}catch(e){}return e}),{})}function outputDecimalWarning(e){if(!e.length){return}console.warn("Warning, the following targets are using a decimal version:\n");e.forEach((({target:e,value:t})=>console.warn(` ${e}: ${t}`)));console.warn(`\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n`)}function semverifyTarget(e,t){try{return(0,o.semverify)(t)}catch(r){throw new Error(y.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function nodeTargetParser(e){const t=e===true||e==="current"?process.versions.node.split("-")[0]:semverifyTarget("node",e);return["node",t]}function defaultTargetParser(e,t){const r=(0,o.isUnreleasedVersion)(t,e)?t.toLowerCase():semverifyTarget(e,t);return[e,r]}function generateTargets(e){const t=Object.assign({},e);delete t.esmodules;delete t.browsers;return t}function resolveTargets(e,t){const r=n(e,{mobileToDesktop:true,env:t});return getLowestVersions(r)}const h=new a({max:64});function resolveTargetsCached(e,t){const r=typeof e==="string"?e:e.join()+t;let n=h.get(r);if(!n){n=resolveTargets(e,t);h.set(r,n)}return Object.assign({},n)}function getTargets(e={},t={}){var r,i;let{browsers:a,esmodules:s}=e;const{configPath:c=".",onBrowserslistConfigFound:l}=t;validateBrowsers(a);const u=generateTargets(e);let d=validateTargetNames(u);const p=!!a;const y=p||Object.keys(d).length>0;const h=!t.ignoreBrowserslistConfig&&!y;if(!a&&h){a=process.env.BROWSERSLIST;if(!a){const e=t.configFile||process.env.BROWSERSLIST_CONFIG||n.findConfigFile(c);if(e!=null){l==null||l(e);a=n.loadConfig({config:e,env:t.browserslistEnv})}}if(a==null){{a=[]}}}if(s&&(s!=="intersect"||!((r=a)!=null&&r.length))){a=Object.keys(g).map((e=>`${e} >= ${g[e]}`)).join(", ");s=false}if((i=a)!=null&&i.length){const e=resolveTargetsCached(a,t.browserslistEnv);if(s==="intersect"){for(const t of Object.keys(e)){if(t!=="deno"&&t!=="ie"){const r=g[t==="opera_mobile"?"op_mob":t];if(r){const n=e[t];e[t]=(0,o.getHighestUnreleased)(n,(0,o.semverify)(r),t)}else{delete e[t]}}else{delete e[t]}}}d=Object.assign(e,d)}const _={};const A=[];for(const e of Object.keys(d).sort()){const t=d[e];if(typeof t==="number"&&t%1!==0){A.push({target:e,value:t})}const[r,n]=e==="node"?nodeTargetParser(t):defaultTargetParser(e,t);if(n){_[r]=n}}outputDecimalWarning(A);return _}},69629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TargetNames=void 0;const r=t.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}},27523:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prettifyTargets=prettifyTargets;t.prettifyVersion=prettifyVersion;var n=r(39318);var i=r(11917);function prettifyVersion(e){if(typeof e!=="string"){return e}const{major:t,minor:r,patch:i}=n.parse(e);const a=[t];if(r||i){a.push(r)}if(i){a.push(i)}return a.join(".")}function prettifyTargets(e){return Object.keys(e).reduce(((t,r)=>{let n=e[r];const a=i.unreleasedLabels[r];if(typeof n==="string"&&a!==n){n=prettifyVersion(n)}t[r]=n;return t}),{})}},11917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unreleasedLabels=t.browserNameMap=void 0;const r=t.unreleasedLabels={safari:"tp"};const n=t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},81842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHighestUnreleased=getHighestUnreleased;t.getLowestImplementedVersion=getLowestImplementedVersion;t.getLowestUnreleased=getLowestUnreleased;t.isUnreleasedVersion=isUnreleasedVersion;t.semverMin=semverMin;t.semverify=semverify;var n=r(39318);var i=r(29233);var a=r(11917);const o=/^(?:\d+|\d(?:\d?[^\d\n\r\u2028\u2029]\d+|\d{2,}(?:[^\d\n\r\u2028\u2029]\d+)?))$/;const s=new i.OptionValidator("@babel/helper-compilation-targets");function semverMin(e,t){return e&&n.lt(e,t)?e:t}function semverify(e){if(typeof e==="string"&&n.valid(e)){return e}s.invariant(typeof e==="number"||typeof e==="string"&&o.test(e),`'${e}' is not a valid version`);e=e.toString();let t=0;let r=0;while((t=e.indexOf(".",t+1))>0){r++}return e+".0".repeat(2-r)}function isUnreleasedVersion(e,t){const r=a.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()}function getLowestUnreleased(e,t,r){const n=a.unreleasedLabels[r];if(e===n){return t}if(t===n){return e}return semverMin(e,t)}function getHighestUnreleased(e,t,r){return getLowestUnreleased(e,t,r)===e?t:e}function getLowestImplementedVersion(e,t){const r=e[t];if(!r&&t==="android"){return e.chrome}return r}},91235:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(42613);var i=r(16535);const{callExpression:a,cloneNode:o,expressionStatement:s,identifier:c,importDeclaration:l,importDefaultSpecifier:u,importNamespaceSpecifier:d,importSpecifier:p,memberExpression:g,stringLiteral:y,variableDeclaration:h,variableDeclarator:_}=i;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(l([],y(this._importedSource)));return this}require(){this._statements.push(s(a(c("require"),[y(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[d(t)];this._resultName=o(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=o(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const i=this._statements[this._statements.length-1];n(i.type==="ImportDeclaration");n(i.specifiers.length===0);i.specifiers=[p(r,c(t))];this._resultName=o(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=s(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=h("var",[_(t,r.expression)]);this._resultName=o(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=a(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=a(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=g(t.expression,c(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=g(t.declarations[0].init,c(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=g(this._resultName,c(e))}}t["default"]=ImportBuilder},56358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(42613);var i=r(16535);var a=r(91235);var o=r(97585);const{identifier:s,importSpecifier:c,numericLiteral:l,sequenceExpression:u,isImportDeclaration:d}=i;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let i;if(typeof e==="string"){i=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");i=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)i.nameHint=t.nameHint;if(t.blockHoist!==undefined)i.blockHoist=t.blockHoist}return i}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const i=t===null;const{importedSource:s,importedType:c,importedInterop:d,importingInterop:p,ensureLiveReference:g,ensureNoContext:y,nameHint:h,importPosition:_,blockHoist:A}=e;let v=h||t;const E=(0,o.default)(this._programPath);const T=E&&p==="node";const b=E&&p==="babel";if(_==="after"&&!E){throw new Error(`"importPosition": "after" is only supported in modules`)}const S=new a.default(s,this._programScope,this._hub);if(c==="es6"){if(!T&&!b){throw new Error("Cannot import an ES6 module from CommonJS")}S.import();if(i){S.namespace(h||s)}else if(r||n){S.named(v,t)}}else if(c!=="commonjs"){throw new Error(`Unexpected interopType "${c}"`)}else if(d==="babel"){if(T){v=v!=="default"?v:s;const e=`${s}$es6Default`;S.import();if(i){S.default(e).var(v||s).wildcardInterop()}else if(r){if(g){S.default(e).var(v||s).defaultInterop().read("default")}else{S.default(e).var(v).defaultInterop().prop(t)}}else if(n){S.default(e).read(t)}}else if(b){S.import();if(i){S.namespace(v||s)}else if(r||n){S.named(v,t)}}else{S.require();if(i){S.var(v||s).wildcardInterop()}else if((r||n)&&g){if(r){v=v!=="default"?v:s;S.var(v).read(t);S.defaultInterop()}else{S.var(s).read(t)}}else if(r){S.var(v).defaultInterop().prop(t)}else if(n){S.var(v).prop(t)}}}else if(d==="compiled"){if(T){S.import();if(i){S.default(v||s)}else if(r||n){S.default(s).read(v)}}else if(b){S.import();if(i){S.namespace(v||s)}else if(r||n){S.named(v,t)}}else{S.require();if(i){S.var(v||s)}else if(r||n){if(g){S.var(s).read(v)}else{S.prop(t).var(v)}}}}else if(d==="uncompiled"){if(r&&g){throw new Error("No live reference for commonjs default")}if(T){S.import();if(i){S.default(v||s)}else if(r){S.default(v)}else if(n){S.default(s).read(v)}}else if(b){S.import();if(i){S.default(v||s)}else if(r){S.default(v)}else if(n){S.named(v,t)}}else{S.require();if(i){S.var(v||s)}else if(r){S.var(v)}else if(n){if(g){S.var(s).read(v)}else{S.var(v).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${d}".`)}const{statements:C,resultName:x}=S.done();this._insertStatements(C,_,A);if((r||n)&&y&&x.type!=="Identifier"){return u([l(0),x])}return x}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&d(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(d(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const i=e.node.source.value;const a=r.get(i);if(!a)continue;for(const r of a){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=c(t.specifiers[0].local,s("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},10678:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.default}});var n=r(56358);var i=r(97585);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,i){return new n.default(e).addNamed(t,r,i)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},97585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},92840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(54301);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,i){const a=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(a)||n.types.isTemplateLiteral(a)&&a.quasis.length===0){if(t){return n.template.expression.ast` + Promise.resolve().then(() => ${i(a)}) + `}else return i(a)}const o=n.types.isTemplateLiteral(a)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);if(t){return n.template.expression.ast` + (specifier => + new Promise(r => r(${o})) + .then(s => ${i(n.types.identifier("s"))}) + )(${a}) + `}else if(r){return n.template.expression.ast` + (specifier => + new Promise(r => r(${i(o)})) + )(${a}) + `}else{return n.template.expression.ast` + (specifier => ${i(o)})(${a}) + `}}},94036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,i,a,o;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(i=r.moduleIds)!=null?i:t.moduleIds,getModuleId:(a=r.getModuleId)!=null?a:t.getModuleId,moduleRoot:(o=r.moduleRoot)!=null?o:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:i=t.moduleRoot}=e;const{moduleId:a,moduleIds:o=!!a,getModuleId:s,moduleRoot:c=i}=t;if(!o)return null;if(a!=null&&!s){return a}let l=c!=null?c+"/":"";if(n){const e=i!=null?new RegExp("^"+i+"/?"):"";l+=n.replace(e,"").replace(/\.\w*$/,"")}l=l.replace(/\\/g,"/");if(s){return s(l)||l}else{return l}}},3665:(e,t,r)=>{"use strict";var n;n={value:true};n={enumerable:true,get:function(){return d.buildDynamicImport}};n=buildNamespaceInitStatements;n=ensureStatementsHoisted;Object.defineProperty(t,"ug",{enumerable:true,get:function(){return p.default}});n={enumerable:true,get:function(){return l.hasExports}};n={enumerable:true,get:function(){return o.isModule}};n={enumerable:true,get:function(){return l.isSideEffectImport}};n=rewriteModuleStatementsAndPrepareHeader;n={enumerable:true,get:function(){return s.default}};n=wrapInterop;var i=r(42613);var a=r(54301);var o=r(10678);var s=r(92338);var c=r(78775);var l=r(64193);var u=r(80247);var d=r(92840);var p=r(94036);{r(92840).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:n,strictMode:d,noInterop:p,importInterop:g=(p?"none":"babel"),lazy:y,getWrapperPayload:h=u.toGetWrapperPayload(y!=null?y:false),wrapReference:_=u.wrapReference,esNamespaceOnly:A,filename:v,constantReexports:E=arguments[1].loose,enumerableModuleMeta:T=arguments[1].loose,noIncompleteNsImportDetection:b}){(0,l.validateImportInteropOption)(g);i((0,o.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const S=(0,l.default)(e,t,{importInterop:g,initializeReexports:E,getWrapperPayload:h,esNamespaceOnly:A,filename:v});if(!n){(0,s.default)(e)}(0,c.default)(e,S,_);if(d!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",a.types.directive(a.types.directiveLiteral("use strict")))}}const C=[];if((0,l.hasExports)(S)&&!r){C.push(buildESModuleHeader(S,T))}const x=buildExportNameListDeclaration(e,S);if(x){S.exportNameListName=x.name;C.push(x.statement)}C.push(...buildExportInitializationStatements(e,S,_,E,b));return{meta:S,headers:C}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return a.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,a.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let n;if(r==="default"){n="interopRequireDefault"}else if(r==="namespace"){n="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return a.types.callExpression(e.hub.addHelper(n),[t])}function buildNamespaceInitStatements(e,t,r=false,n=u.wrapReference){var i;const o=[];const s=a.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;o.push(a.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:a.types.cloneNode(s)}))}const c=(i=n(s,t.wrap))!=null?i:s;if(r){o.push(...buildReexportsFromMeta(e,t,true,n))}for(const r of t.reexportNamespace){o.push((!a.types.isIdentifier(c)?a.template.statement` Object.defineProperty(EXPORTS, "NAME", { enumerable: true, get: function() { return NAMESPACE; } }); - `:a.default.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:f(i)}))}if(t.reexportAll){const a=buildNamespaceReexport(e,f(i),r);a.loc=t.reexportAll.loc;n.push(a)}return n}const x={constant:a.default.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:a.default.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:(0,a.default)` - Object.defineProperty(EXPORTS, "EXPORT_NAME", { - enumerable: true, - get: function() { - return NAMESPACE_IMPORT; - }, - }); - `};const D=(e,t,r)=>{const n=t.lazy?d(h(t.name),[]):h(t.name);const{stringSpecifiers:i}=e;return Array.from(t.reexports,([a,s])=>{let o=f(n);if(s==="default"&&t.interop==="node-default"){}else if(i.has(s)){o=v(o,T(s),true)}else{o=v(o,h(s))}const c={EXPORTS:e.exportName,EXPORT_NAME:a,NAMESPACE_IMPORT:o};if(r||y(o)){if(i.has(a)){return x.constantComputed(c)}else{return x.constant(c)}}else{return x.spec(c)}})};function buildESModuleHeader(e,t=false){return(t?a.default.statement` + `:a.template.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:a.types.cloneNode(c)}))}if(t.reexportAll){const n=buildNamespaceReexport(e,a.types.cloneNode(c),r);n.loc=t.reexportAll.loc;o.push(n)}return o}const g={constant:({exports:e,exportName:t,namespaceImport:r})=>a.template.statement.ast` + ${e}.${t} = ${r}; + `,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>a.template.statement.ast` + ${e}["${t}"] = ${r}; + `,spec:({exports:e,exportName:t,namespaceImport:r})=>a.template.statement.ast` + Object.defineProperty(${e}, "${t}", { + enumerable: true, + get: function() { + return ${r}; + }, + }); + `};function buildReexportsFromMeta(e,t,r,n){var i;let o=a.types.identifier(t.name);o=(i=n(o,t.wrap))!=null?i:o;const{stringSpecifiers:s}=e;return Array.from(t.reexports,(([n,i])=>{let c=a.types.cloneNode(o);if(i==="default"&&t.interop==="node-default"){}else if(s.has(i)){c=a.types.memberExpression(c,a.types.stringLiteral(i),true)}else{c=a.types.memberExpression(c,a.types.identifier(i))}const l={exports:e.exportName,exportName:n,namespaceImport:c};if(r||a.types.isIdentifier(c)){if(s.has(n)){return g.constantComputed(l)}else{return g.constant(l)}}else{return g.spec(l)}}))}function buildESModuleHeader(e,t=false){return(t?a.template.statement` EXPORTS.__esModule = true; - `:a.default.statement` + `:a.template.statement` Object.defineProperty(EXPORTS, "__esModule", { value: true, }); - `)({EXPORTS:e.exportName})}function buildNamespaceReexport(e,t,r){return(r?a.default.statement` + `)({EXPORTS:e.exportName})}function buildNamespaceReexport(e,t,r){return(r?a.template.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; @@ -42,7 +128,7 @@ module.exports=function(e,t){"use strict";var r={};function __webpack_require__( EXPORTS[key] = NAMESPACE[key]; }); - `:a.default.statement` + `:a.template.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; @@ -55,1856 +141,27 @@ module.exports=function(e,t){"use strict";var r={};function __webpack_require__( }, }); }); - `)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,a.default)` + `)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,a.template)` if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; - `({EXPORTS_LIST:e.exportNameListName}):null})}function buildExportNameListDeclaration(e,t){const r=Object.create(null);for(const e of t.local.values()){for(const t of e.names){r[t]=true}}let n=false;for(const e of t.source.values()){for(const t of e.reexports.keys()){r[t]=true}for(const t of e.reexportNamespace){r[t]=true}n=n||!!e.reexportAll}if(!n||Object.keys(r).length===0)return null;const i=e.scope.generateUidIdentifier("exportNames");delete r.default;return{name:i.name,statement:b("var",[E(i,S(r))])}}function buildExportInitializationStatements(e,t,r=false,n=false){const i=[];const a=[];for(const[e,r]of t.local){if(r.kind==="import"){}else if(r.kind==="hoisted"){i.push(buildInitStatement(t,r.names,h(e)))}else{a.push(...r.names)}}for(const e of t.source.values()){if(!r){i.push(...D(t,e,false))}for(const t of e.reexportNamespace){a.push(t)}}if(!n){i.push(...chunk(a,100).map(r=>{return buildInitStatement(t,r,e.scope.buildUndefinedNode())}))}return i}const C={computed:a.default.expression`EXPORTS["NAME"] = VALUE`,default:a.default.expression`EXPORTS.NAME = VALUE`};function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return _(t.reduce((e,t)=>{const r={EXPORTS:i,NAME:t,VALUE:e};if(n.has(t)){return C.computed(r)}else{return C.default(r)}},r))}function chunk(e,t){const r=[];for(let n=0;n{throw new Error(formatDiagnostics([e]))},fileExists:c.existsSync,getCurrentDirectory:()=>t&&u.resolve(t)||process.cwd(),readDirectory:l.sys.readDirectory,readFile:e=>c.readFileSync(e,"utf-8"),useCaseSensitiveFileNames:l.sys.useCaseSensitiveFileNames});const n=r;if(n.errors.length){throw new Error(formatDiagnostics(n.errors))}const i=l.createCompilerHost(n.options,true);return l.createProgram(n.fileNames,n.options,i)}t.createProgramFromConfigFile=createProgramFromConfigFile;function formatDiagnostics(e){return l.formatDiagnostics(e,{getCanonicalFileName:e=>e,getCurrentDirectory:process.cwd,getNewLine:()=>"\n"})}},4553:function(e){function baseTimes(e,t){var r=-1,n=Array(e);while(++r{if(e===t)return true;e=new n(e,r);t=new n(t,r);let i=false;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,r);i=i||t!==null;if(t)continue e}if(i)return false}return true};const u=(e,t,r)=>{if(e===t)return true;if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a)return true;else if(r.includePrerelease)e=[new i(">=0.0.0-0")];else e=[new i(">=0.0.0")]}if(t.length===1&&t[0].semver===a){if(r.includePrerelease)return true;else t=[new i(">=0.0.0")]}const n=new Set;let c,u;for(const t of e){if(t.operator===">"||t.operator===">=")c=l(c,t,r);else if(t.operator==="<"||t.operator==="<=")u=p(u,t,r);else n.add(t.semver)}if(n.size>1)return null;let d;if(c&&u){d=o(c.semver,u.semver,r);if(d>0)return null;else if(d===0&&(c.operator!==">="||u.operator!=="<="))return null}for(const e of n){if(c&&!s(e,String(c),r))return null;if(u&&!s(e,String(u),r))return null;for(const n of t){if(!s(e,String(n),r))return false}return true}let f,m;let g,_;let h=u&&!r.includePrerelease&&u.semver.prerelease.length?u.semver:false;let y=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:false;if(h&&h.prerelease.length===1&&u.operator==="<"&&h.prerelease[0]===0){h=false}for(const e of t){_=_||e.operator===">"||e.operator===">=";g=g||e.operator==="<"||e.operator==="<=";if(c){if(y){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch){y=false}}if(e.operator===">"||e.operator===">="){f=l(c,e,r);if(f===e&&f!==c)return false}else if(c.operator===">="&&!s(c.semver,String(e),r))return false}if(u){if(h){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===h.major&&e.semver.minor===h.minor&&e.semver.patch===h.patch){h=false}}if(e.operator==="<"||e.operator==="<="){m=p(u,e,r);if(m===e&&m!==u)return false}else if(u.operator==="<="&&!s(u.semver,String(e),r))return false}if(!e.operator&&(u||c)&&d!==0)return false}if(c&&g&&!u&&d!==0)return false;if(u&&_&&!c&&d!==0)return false;if(y||h)return false;return true};const l=(e,t,r)=>{if(!e)return t;const n=o(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const p=(e,t,r)=>{if(!e)return t;const n=o(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=c},4590:function(e,t,r){var n=r(8857),i=r(6386),a=r(1971);function getAllKeysIn(e){return n(e,a,i)}e.exports=getAllKeysIn},4596:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=assertNode;var n=r(2352);function assertNode(e){if(!(0,n.default)(e)){var t;const r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}},4627:function(e){const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:i}},4629:function(e,t,r){var n=r(875),i=r(1863);function baseAssign(e,t){return e&&n(t,i(t),e)}e.exports=baseAssign},4644:function(e,t,r){"use strict";t.__esModule=true;var n=r(2979);var i=_interopRequireDefault(n);var a=r(7272);var s=_interopRequireDefault(a);var o=r(8697);var c=_interopRequireWildcard(o);var u=r(2605);var l=_interopRequireDefault(u);var p=r(2758);var d=_interopRequireDefault(p);var f=r(5852);var m=_interopRequireDefault(f);var g=r(5249);var _=_interopRequireDefault(g);var h=r(55);var y=_interopRequireDefault(h);var v=r(8011);var T=_interopRequireWildcard(v);var S=r(6450);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var b=(0,l.default)("babel");var E=function(){function NodePath(e,t){(0,s.default)(this,NodePath);this.parent=t;this.hub=e;this.contexts=[];this.data={};this.shouldSkip=false;this.shouldStop=false;this.removed=false;this.state=null;this.opts=null;this.skipKeys=null;this.parentPath=null;this.context=null;this.container=null;this.listKey=null;this.inList=false;this.parentKey=null;this.key=null;this.node=null;this.scope=null;this.type=null;this.typeAnnotation=null}NodePath.get=function get(e){var t=e.hub,r=e.parentPath,n=e.parent,i=e.container,a=e.listKey,s=e.key;if(!t&&r){t=r.hub}(0,d.default)(n,"To get a node path the parent needs to exist");var o=i[s];var c=S.path.get(n)||[];if(!S.path.has(n)){S.path.set(n,c)}var u=void 0;for(var l=0;l1&&arguments[1]!==undefined?arguments[1]:SyntaxError;return this.hub.file.buildCodeFrameError(this.node,e,t)};NodePath.prototype.traverse=function traverse(e,t){(0,m.default)(this.node,e,this.scope,t,this)};NodePath.prototype.mark=function mark(e,t){this.hub.file.metadata.marked.push({type:e,message:t,loc:this.node.loc})};NodePath.prototype.set=function set(e,t){T.validate(this.node,e,t);this.node[e]=t};NodePath.prototype.getPathLocation=function getPathLocation(){var e=[];var t=this;do{var r=t.key;if(t.inList)r=t.listKey+"["+r+"]";e.unshift(r)}while(t=t.parentPath);return e.join(".")};NodePath.prototype.debug=function debug(e){if(!b.enabled)return;b(this.getPathLocation()+" "+this.type+": "+e())};return NodePath}();t.default=E;(0,_.default)(E.prototype,r(3125));(0,_.default)(E.prototype,r(6927));(0,_.default)(E.prototype,r(4866));(0,_.default)(E.prototype,r(4249));(0,_.default)(E.prototype,r(63));(0,_.default)(E.prototype,r(4405));(0,_.default)(E.prototype,r(586));(0,_.default)(E.prototype,r(5326));(0,_.default)(E.prototype,r(5128));(0,_.default)(E.prototype,r(7129));(0,_.default)(E.prototype,r(6242));var x=function _loop2(){if(C){if(A>=D.length)return"break";k=D[A++]}else{A=D.next();if(A.done)return"break";k=A.value}var e=k;var t="is"+e;E.prototype[t]=function(e){return T[t](this.node,e)};E.prototype["assert"+e]=function(r){if(!this[t](r)){throw new TypeError("Expected node path of type "+e)}}};for(var D=T.TYPES,C=Array.isArray(D),A=0,D=C?D:(0,i.default)(D);;){var k;var P=x();if(P==="break")break}var N=function _loop(e){if(e[0]==="_")return"continue";if(T.TYPES.indexOf(e)<0)T.TYPES.push(e);var t=c[e];E.prototype["is"+e]=function(e){return t.checkPath(this,e)}};for(var O in c){var F=N(O);if(F==="continue")continue}e.exports=t["default"]},4653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=merge;t.validate=validate;t.normalizeReplacements=normalizeReplacements;const r=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var i,a;for(a=0;a=0)continue;r[i]=e[i]}return r}function merge(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:a=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:a}}function validate(e){if(e!=null&&typeof e!=="object"){throw new Error("Unknown template options.")}const t=e||{},{placeholderWhitelist:n,placeholderPattern:i,preserveComments:a,syntacticPlaceholders:s}=t,o=_objectWithoutPropertiesLoose(t,r);if(n!=null&&!(n instanceof Set)){throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined")}if(i!=null&&!(i instanceof RegExp)&&i!==false){throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined")}if(a!=null&&typeof a!=="boolean"){throw new Error("'.preserveComments' must be a boolean, null, or undefined")}if(s!=null&&typeof s!=="boolean"){throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined")}if(s===true&&(n!=null||i!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}return{parser:o,placeholderWhitelist:n||undefined,placeholderPattern:i==null?undefined:i,preserveComments:a==null?undefined:a,syntacticPlaceholders:s==null?undefined:s}}function normalizeReplacements(e){if(Array.isArray(e)){return e.reduce((e,t,r)=>{e["$"+r]=t;return e},{})}else if(typeof e==="object"||e==null){return e||undefined}throw new Error("Template replacements must be an array, object, null, or undefined")}},4654:function(e,t,r){var n=r(8319),i=r(7824);var a=n(i,"Map");e.exports=a},4661:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Settings=t.scandirSync=t.scandir=void 0;const n=r(7182);const i=r(1148);const a=r(9046);t.Settings=a.default;function scandir(e,t,r){if(typeof t==="function"){n.read(e,getSettings(),t);return}n.read(e,getSettings(t),r)}t.scandir=scandir;function scandirSync(e,t){const r=getSettings(t);return i.read(e,r)}t.scandirSync=scandirSync;function getSettings(e={}){if(e instanceof a.default){return e}return new a.default(e)}},4667:function(e,t,r){var n=r(377);var i=4;function clone(e){return n(e,i)}e.exports=clone},4677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.insertBefore=insertBefore;t._containerInsert=_containerInsert;t._containerInsertBefore=_containerInsertBefore;t._containerInsertAfter=_containerInsertAfter;t.insertAfter=insertAfter;t.updateSiblingKeys=updateSiblingKeys;t._verifyNodeList=_verifyNodeList;t.unshiftContainer=unshiftContainer;t.pushContainer=pushContainer;t.hoist=hoist;var n=r(2715);var i=r(6563);var a=r(7774);var s=r(9978);const{arrowFunctionExpression:o,assertExpression:c,assignmentExpression:u,blockStatement:l,callExpression:p,cloneNode:d,expressionStatement:f,isExpression:m}=s;function insertBefore(e){this._assertUnremoved();const t=this._verifyNodeList(e);const{parentPath:r}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||r.isExportNamedDeclaration()||r.isExportDefaultDeclaration()&&this.isDeclaration()){return r.insertBefore(t)}else if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node)t.push(this.node);return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return this._containerInsertBefore(t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(l(r?[e]:[]));return this.unshiftContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function _containerInsert(e,t){this.updateSiblingKeys(e,t.length);const r=[];this.container.splice(e,0,...t);for(let n=0;n{return m(e)?f(e):e}))}else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node){const e=this.node;let{scope:n}=this;if(n.path.isPattern()){c(e);this.replaceWith(p(o([],e),[]));this.get("callee.body").insertAfter(t);return[this]}if(r.isMethod({computed:true,key:e})){n=n.parent}const i=n.generateDeclaredUidIdentifier();t.unshift(f(u("=",d(i),e)));t.push(f(d(i)))}return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return this._containerInsertAfter(t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(l(r?[e]:[]));return this.pushContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function updateSiblingKeys(e,t){if(!this.parent)return;const r=n.path.get(this.parent);for(const[,n]of r){if(n.key>=e){n.key+=t}}}function _verifyNodeList(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}for(let t=0;te.typeAnnotation);const r=(0,i.default)(t);if(r.length===1){return r[0]}else{return(0,n.tsUnionType)(r)}}},4711:function(e,t,r){var n=r(3878);function hashClear(){this.__data__=n?n(null):{};this.size=0}e.exports=hashClear},4729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertArrayExpression=assertArrayExpression;t.assertAssignmentExpression=assertAssignmentExpression;t.assertBinaryExpression=assertBinaryExpression;t.assertInterpreterDirective=assertInterpreterDirective;t.assertDirective=assertDirective;t.assertDirectiveLiteral=assertDirectiveLiteral;t.assertBlockStatement=assertBlockStatement;t.assertBreakStatement=assertBreakStatement;t.assertCallExpression=assertCallExpression;t.assertCatchClause=assertCatchClause;t.assertConditionalExpression=assertConditionalExpression;t.assertContinueStatement=assertContinueStatement;t.assertDebuggerStatement=assertDebuggerStatement;t.assertDoWhileStatement=assertDoWhileStatement;t.assertEmptyStatement=assertEmptyStatement;t.assertExpressionStatement=assertExpressionStatement;t.assertFile=assertFile;t.assertForInStatement=assertForInStatement;t.assertForStatement=assertForStatement;t.assertFunctionDeclaration=assertFunctionDeclaration;t.assertFunctionExpression=assertFunctionExpression;t.assertIdentifier=assertIdentifier;t.assertIfStatement=assertIfStatement;t.assertLabeledStatement=assertLabeledStatement;t.assertStringLiteral=assertStringLiteral;t.assertNumericLiteral=assertNumericLiteral;t.assertNullLiteral=assertNullLiteral;t.assertBooleanLiteral=assertBooleanLiteral;t.assertRegExpLiteral=assertRegExpLiteral;t.assertLogicalExpression=assertLogicalExpression;t.assertMemberExpression=assertMemberExpression;t.assertNewExpression=assertNewExpression;t.assertProgram=assertProgram;t.assertObjectExpression=assertObjectExpression;t.assertObjectMethod=assertObjectMethod;t.assertObjectProperty=assertObjectProperty;t.assertRestElement=assertRestElement;t.assertReturnStatement=assertReturnStatement;t.assertSequenceExpression=assertSequenceExpression;t.assertParenthesizedExpression=assertParenthesizedExpression;t.assertSwitchCase=assertSwitchCase;t.assertSwitchStatement=assertSwitchStatement;t.assertThisExpression=assertThisExpression;t.assertThrowStatement=assertThrowStatement;t.assertTryStatement=assertTryStatement;t.assertUnaryExpression=assertUnaryExpression;t.assertUpdateExpression=assertUpdateExpression;t.assertVariableDeclaration=assertVariableDeclaration;t.assertVariableDeclarator=assertVariableDeclarator;t.assertWhileStatement=assertWhileStatement;t.assertWithStatement=assertWithStatement;t.assertAssignmentPattern=assertAssignmentPattern;t.assertArrayPattern=assertArrayPattern;t.assertArrowFunctionExpression=assertArrowFunctionExpression;t.assertClassBody=assertClassBody;t.assertClassExpression=assertClassExpression;t.assertClassDeclaration=assertClassDeclaration;t.assertExportAllDeclaration=assertExportAllDeclaration;t.assertExportDefaultDeclaration=assertExportDefaultDeclaration;t.assertExportNamedDeclaration=assertExportNamedDeclaration;t.assertExportSpecifier=assertExportSpecifier;t.assertForOfStatement=assertForOfStatement;t.assertImportDeclaration=assertImportDeclaration;t.assertImportDefaultSpecifier=assertImportDefaultSpecifier;t.assertImportNamespaceSpecifier=assertImportNamespaceSpecifier;t.assertImportSpecifier=assertImportSpecifier;t.assertMetaProperty=assertMetaProperty;t.assertClassMethod=assertClassMethod;t.assertObjectPattern=assertObjectPattern;t.assertSpreadElement=assertSpreadElement;t.assertSuper=assertSuper;t.assertTaggedTemplateExpression=assertTaggedTemplateExpression;t.assertTemplateElement=assertTemplateElement;t.assertTemplateLiteral=assertTemplateLiteral;t.assertYieldExpression=assertYieldExpression;t.assertAwaitExpression=assertAwaitExpression;t.assertImport=assertImport;t.assertBigIntLiteral=assertBigIntLiteral;t.assertExportNamespaceSpecifier=assertExportNamespaceSpecifier;t.assertOptionalMemberExpression=assertOptionalMemberExpression;t.assertOptionalCallExpression=assertOptionalCallExpression;t.assertClassProperty=assertClassProperty;t.assertClassPrivateProperty=assertClassPrivateProperty;t.assertClassPrivateMethod=assertClassPrivateMethod;t.assertPrivateName=assertPrivateName;t.assertAnyTypeAnnotation=assertAnyTypeAnnotation;t.assertArrayTypeAnnotation=assertArrayTypeAnnotation;t.assertBooleanTypeAnnotation=assertBooleanTypeAnnotation;t.assertBooleanLiteralTypeAnnotation=assertBooleanLiteralTypeAnnotation;t.assertNullLiteralTypeAnnotation=assertNullLiteralTypeAnnotation;t.assertClassImplements=assertClassImplements;t.assertDeclareClass=assertDeclareClass;t.assertDeclareFunction=assertDeclareFunction;t.assertDeclareInterface=assertDeclareInterface;t.assertDeclareModule=assertDeclareModule;t.assertDeclareModuleExports=assertDeclareModuleExports;t.assertDeclareTypeAlias=assertDeclareTypeAlias;t.assertDeclareOpaqueType=assertDeclareOpaqueType;t.assertDeclareVariable=assertDeclareVariable;t.assertDeclareExportDeclaration=assertDeclareExportDeclaration;t.assertDeclareExportAllDeclaration=assertDeclareExportAllDeclaration;t.assertDeclaredPredicate=assertDeclaredPredicate;t.assertExistsTypeAnnotation=assertExistsTypeAnnotation;t.assertFunctionTypeAnnotation=assertFunctionTypeAnnotation;t.assertFunctionTypeParam=assertFunctionTypeParam;t.assertGenericTypeAnnotation=assertGenericTypeAnnotation;t.assertInferredPredicate=assertInferredPredicate;t.assertInterfaceExtends=assertInterfaceExtends;t.assertInterfaceDeclaration=assertInterfaceDeclaration;t.assertInterfaceTypeAnnotation=assertInterfaceTypeAnnotation;t.assertIntersectionTypeAnnotation=assertIntersectionTypeAnnotation;t.assertMixedTypeAnnotation=assertMixedTypeAnnotation;t.assertEmptyTypeAnnotation=assertEmptyTypeAnnotation;t.assertNullableTypeAnnotation=assertNullableTypeAnnotation;t.assertNumberLiteralTypeAnnotation=assertNumberLiteralTypeAnnotation;t.assertNumberTypeAnnotation=assertNumberTypeAnnotation;t.assertObjectTypeAnnotation=assertObjectTypeAnnotation;t.assertObjectTypeInternalSlot=assertObjectTypeInternalSlot;t.assertObjectTypeCallProperty=assertObjectTypeCallProperty;t.assertObjectTypeIndexer=assertObjectTypeIndexer;t.assertObjectTypeProperty=assertObjectTypeProperty;t.assertObjectTypeSpreadProperty=assertObjectTypeSpreadProperty;t.assertOpaqueType=assertOpaqueType;t.assertQualifiedTypeIdentifier=assertQualifiedTypeIdentifier;t.assertStringLiteralTypeAnnotation=assertStringLiteralTypeAnnotation;t.assertStringTypeAnnotation=assertStringTypeAnnotation;t.assertSymbolTypeAnnotation=assertSymbolTypeAnnotation;t.assertThisTypeAnnotation=assertThisTypeAnnotation;t.assertTupleTypeAnnotation=assertTupleTypeAnnotation;t.assertTypeofTypeAnnotation=assertTypeofTypeAnnotation;t.assertTypeAlias=assertTypeAlias;t.assertTypeAnnotation=assertTypeAnnotation;t.assertTypeCastExpression=assertTypeCastExpression;t.assertTypeParameter=assertTypeParameter;t.assertTypeParameterDeclaration=assertTypeParameterDeclaration;t.assertTypeParameterInstantiation=assertTypeParameterInstantiation;t.assertUnionTypeAnnotation=assertUnionTypeAnnotation;t.assertVariance=assertVariance;t.assertVoidTypeAnnotation=assertVoidTypeAnnotation;t.assertEnumDeclaration=assertEnumDeclaration;t.assertEnumBooleanBody=assertEnumBooleanBody;t.assertEnumNumberBody=assertEnumNumberBody;t.assertEnumStringBody=assertEnumStringBody;t.assertEnumSymbolBody=assertEnumSymbolBody;t.assertEnumBooleanMember=assertEnumBooleanMember;t.assertEnumNumberMember=assertEnumNumberMember;t.assertEnumStringMember=assertEnumStringMember;t.assertEnumDefaultedMember=assertEnumDefaultedMember;t.assertIndexedAccessType=assertIndexedAccessType;t.assertOptionalIndexedAccessType=assertOptionalIndexedAccessType;t.assertJSXAttribute=assertJSXAttribute;t.assertJSXClosingElement=assertJSXClosingElement;t.assertJSXElement=assertJSXElement;t.assertJSXEmptyExpression=assertJSXEmptyExpression;t.assertJSXExpressionContainer=assertJSXExpressionContainer;t.assertJSXSpreadChild=assertJSXSpreadChild;t.assertJSXIdentifier=assertJSXIdentifier;t.assertJSXMemberExpression=assertJSXMemberExpression;t.assertJSXNamespacedName=assertJSXNamespacedName;t.assertJSXOpeningElement=assertJSXOpeningElement;t.assertJSXSpreadAttribute=assertJSXSpreadAttribute;t.assertJSXText=assertJSXText;t.assertJSXFragment=assertJSXFragment;t.assertJSXOpeningFragment=assertJSXOpeningFragment;t.assertJSXClosingFragment=assertJSXClosingFragment;t.assertNoop=assertNoop;t.assertPlaceholder=assertPlaceholder;t.assertV8IntrinsicIdentifier=assertV8IntrinsicIdentifier;t.assertArgumentPlaceholder=assertArgumentPlaceholder;t.assertBindExpression=assertBindExpression;t.assertImportAttribute=assertImportAttribute;t.assertDecorator=assertDecorator;t.assertDoExpression=assertDoExpression;t.assertExportDefaultSpecifier=assertExportDefaultSpecifier;t.assertRecordExpression=assertRecordExpression;t.assertTupleExpression=assertTupleExpression;t.assertDecimalLiteral=assertDecimalLiteral;t.assertStaticBlock=assertStaticBlock;t.assertModuleExpression=assertModuleExpression;t.assertTopicReference=assertTopicReference;t.assertPipelineTopicExpression=assertPipelineTopicExpression;t.assertPipelineBareFunction=assertPipelineBareFunction;t.assertPipelinePrimaryTopicReference=assertPipelinePrimaryTopicReference;t.assertTSParameterProperty=assertTSParameterProperty;t.assertTSDeclareFunction=assertTSDeclareFunction;t.assertTSDeclareMethod=assertTSDeclareMethod;t.assertTSQualifiedName=assertTSQualifiedName;t.assertTSCallSignatureDeclaration=assertTSCallSignatureDeclaration;t.assertTSConstructSignatureDeclaration=assertTSConstructSignatureDeclaration;t.assertTSPropertySignature=assertTSPropertySignature;t.assertTSMethodSignature=assertTSMethodSignature;t.assertTSIndexSignature=assertTSIndexSignature;t.assertTSAnyKeyword=assertTSAnyKeyword;t.assertTSBooleanKeyword=assertTSBooleanKeyword;t.assertTSBigIntKeyword=assertTSBigIntKeyword;t.assertTSIntrinsicKeyword=assertTSIntrinsicKeyword;t.assertTSNeverKeyword=assertTSNeverKeyword;t.assertTSNullKeyword=assertTSNullKeyword;t.assertTSNumberKeyword=assertTSNumberKeyword;t.assertTSObjectKeyword=assertTSObjectKeyword;t.assertTSStringKeyword=assertTSStringKeyword;t.assertTSSymbolKeyword=assertTSSymbolKeyword;t.assertTSUndefinedKeyword=assertTSUndefinedKeyword;t.assertTSUnknownKeyword=assertTSUnknownKeyword;t.assertTSVoidKeyword=assertTSVoidKeyword;t.assertTSThisType=assertTSThisType;t.assertTSFunctionType=assertTSFunctionType;t.assertTSConstructorType=assertTSConstructorType;t.assertTSTypeReference=assertTSTypeReference;t.assertTSTypePredicate=assertTSTypePredicate;t.assertTSTypeQuery=assertTSTypeQuery;t.assertTSTypeLiteral=assertTSTypeLiteral;t.assertTSArrayType=assertTSArrayType;t.assertTSTupleType=assertTSTupleType;t.assertTSOptionalType=assertTSOptionalType;t.assertTSRestType=assertTSRestType;t.assertTSNamedTupleMember=assertTSNamedTupleMember;t.assertTSUnionType=assertTSUnionType;t.assertTSIntersectionType=assertTSIntersectionType;t.assertTSConditionalType=assertTSConditionalType;t.assertTSInferType=assertTSInferType;t.assertTSParenthesizedType=assertTSParenthesizedType;t.assertTSTypeOperator=assertTSTypeOperator;t.assertTSIndexedAccessType=assertTSIndexedAccessType;t.assertTSMappedType=assertTSMappedType;t.assertTSLiteralType=assertTSLiteralType;t.assertTSExpressionWithTypeArguments=assertTSExpressionWithTypeArguments;t.assertTSInterfaceDeclaration=assertTSInterfaceDeclaration;t.assertTSInterfaceBody=assertTSInterfaceBody;t.assertTSTypeAliasDeclaration=assertTSTypeAliasDeclaration;t.assertTSAsExpression=assertTSAsExpression;t.assertTSTypeAssertion=assertTSTypeAssertion;t.assertTSEnumDeclaration=assertTSEnumDeclaration;t.assertTSEnumMember=assertTSEnumMember;t.assertTSModuleDeclaration=assertTSModuleDeclaration;t.assertTSModuleBlock=assertTSModuleBlock;t.assertTSImportType=assertTSImportType;t.assertTSImportEqualsDeclaration=assertTSImportEqualsDeclaration;t.assertTSExternalModuleReference=assertTSExternalModuleReference;t.assertTSNonNullExpression=assertTSNonNullExpression;t.assertTSExportAssignment=assertTSExportAssignment;t.assertTSNamespaceExportDeclaration=assertTSNamespaceExportDeclaration;t.assertTSTypeAnnotation=assertTSTypeAnnotation;t.assertTSTypeParameterInstantiation=assertTSTypeParameterInstantiation;t.assertTSTypeParameterDeclaration=assertTSTypeParameterDeclaration;t.assertTSTypeParameter=assertTSTypeParameter;t.assertExpression=assertExpression;t.assertBinary=assertBinary;t.assertScopable=assertScopable;t.assertBlockParent=assertBlockParent;t.assertBlock=assertBlock;t.assertStatement=assertStatement;t.assertTerminatorless=assertTerminatorless;t.assertCompletionStatement=assertCompletionStatement;t.assertConditional=assertConditional;t.assertLoop=assertLoop;t.assertWhile=assertWhile;t.assertExpressionWrapper=assertExpressionWrapper;t.assertFor=assertFor;t.assertForXStatement=assertForXStatement;t.assertFunction=assertFunction;t.assertFunctionParent=assertFunctionParent;t.assertPureish=assertPureish;t.assertDeclaration=assertDeclaration;t.assertPatternLike=assertPatternLike;t.assertLVal=assertLVal;t.assertTSEntityName=assertTSEntityName;t.assertLiteral=assertLiteral;t.assertImmutable=assertImmutable;t.assertUserWhitespacable=assertUserWhitespacable;t.assertMethod=assertMethod;t.assertObjectMember=assertObjectMember;t.assertProperty=assertProperty;t.assertUnaryLike=assertUnaryLike;t.assertPattern=assertPattern;t.assertClass=assertClass;t.assertModuleDeclaration=assertModuleDeclaration;t.assertExportDeclaration=assertExportDeclaration;t.assertModuleSpecifier=assertModuleSpecifier;t.assertPrivate=assertPrivate;t.assertFlow=assertFlow;t.assertFlowType=assertFlowType;t.assertFlowBaseAnnotation=assertFlowBaseAnnotation;t.assertFlowDeclaration=assertFlowDeclaration;t.assertFlowPredicate=assertFlowPredicate;t.assertEnumBody=assertEnumBody;t.assertEnumMember=assertEnumMember;t.assertJSX=assertJSX;t.assertTSTypeElement=assertTSTypeElement;t.assertTSType=assertTSType;t.assertTSBaseType=assertTSBaseType;t.assertNumberLiteral=assertNumberLiteral;t.assertRegexLiteral=assertRegexLiteral;t.assertRestProperty=assertRestProperty;t.assertSpreadProperty=assertSpreadProperty;var n=r(7565);function assert(e,t,r){if(!(0,n.default)(e,t,r)){throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, `+`but instead got "${t.type}".`)}}function assertArrayExpression(e,t){assert("ArrayExpression",e,t)}function assertAssignmentExpression(e,t){assert("AssignmentExpression",e,t)}function assertBinaryExpression(e,t){assert("BinaryExpression",e,t)}function assertInterpreterDirective(e,t){assert("InterpreterDirective",e,t)}function assertDirective(e,t){assert("Directive",e,t)}function assertDirectiveLiteral(e,t){assert("DirectiveLiteral",e,t)}function assertBlockStatement(e,t){assert("BlockStatement",e,t)}function assertBreakStatement(e,t){assert("BreakStatement",e,t)}function assertCallExpression(e,t){assert("CallExpression",e,t)}function assertCatchClause(e,t){assert("CatchClause",e,t)}function assertConditionalExpression(e,t){assert("ConditionalExpression",e,t)}function assertContinueStatement(e,t){assert("ContinueStatement",e,t)}function assertDebuggerStatement(e,t){assert("DebuggerStatement",e,t)}function assertDoWhileStatement(e,t){assert("DoWhileStatement",e,t)}function assertEmptyStatement(e,t){assert("EmptyStatement",e,t)}function assertExpressionStatement(e,t){assert("ExpressionStatement",e,t)}function assertFile(e,t){assert("File",e,t)}function assertForInStatement(e,t){assert("ForInStatement",e,t)}function assertForStatement(e,t){assert("ForStatement",e,t)}function assertFunctionDeclaration(e,t){assert("FunctionDeclaration",e,t)}function assertFunctionExpression(e,t){assert("FunctionExpression",e,t)}function assertIdentifier(e,t){assert("Identifier",e,t)}function assertIfStatement(e,t){assert("IfStatement",e,t)}function assertLabeledStatement(e,t){assert("LabeledStatement",e,t)}function assertStringLiteral(e,t){assert("StringLiteral",e,t)}function assertNumericLiteral(e,t){assert("NumericLiteral",e,t)}function assertNullLiteral(e,t){assert("NullLiteral",e,t)}function assertBooleanLiteral(e,t){assert("BooleanLiteral",e,t)}function assertRegExpLiteral(e,t){assert("RegExpLiteral",e,t)}function assertLogicalExpression(e,t){assert("LogicalExpression",e,t)}function assertMemberExpression(e,t){assert("MemberExpression",e,t)}function assertNewExpression(e,t){assert("NewExpression",e,t)}function assertProgram(e,t){assert("Program",e,t)}function assertObjectExpression(e,t){assert("ObjectExpression",e,t)}function assertObjectMethod(e,t){assert("ObjectMethod",e,t)}function assertObjectProperty(e,t){assert("ObjectProperty",e,t)}function assertRestElement(e,t){assert("RestElement",e,t)}function assertReturnStatement(e,t){assert("ReturnStatement",e,t)}function assertSequenceExpression(e,t){assert("SequenceExpression",e,t)}function assertParenthesizedExpression(e,t){assert("ParenthesizedExpression",e,t)}function assertSwitchCase(e,t){assert("SwitchCase",e,t)}function assertSwitchStatement(e,t){assert("SwitchStatement",e,t)}function assertThisExpression(e,t){assert("ThisExpression",e,t)}function assertThrowStatement(e,t){assert("ThrowStatement",e,t)}function assertTryStatement(e,t){assert("TryStatement",e,t)}function assertUnaryExpression(e,t){assert("UnaryExpression",e,t)}function assertUpdateExpression(e,t){assert("UpdateExpression",e,t)}function assertVariableDeclaration(e,t){assert("VariableDeclaration",e,t)}function assertVariableDeclarator(e,t){assert("VariableDeclarator",e,t)}function assertWhileStatement(e,t){assert("WhileStatement",e,t)}function assertWithStatement(e,t){assert("WithStatement",e,t)}function assertAssignmentPattern(e,t){assert("AssignmentPattern",e,t)}function assertArrayPattern(e,t){assert("ArrayPattern",e,t)}function assertArrowFunctionExpression(e,t){assert("ArrowFunctionExpression",e,t)}function assertClassBody(e,t){assert("ClassBody",e,t)}function assertClassExpression(e,t){assert("ClassExpression",e,t)}function assertClassDeclaration(e,t){assert("ClassDeclaration",e,t)}function assertExportAllDeclaration(e,t){assert("ExportAllDeclaration",e,t)}function assertExportDefaultDeclaration(e,t){assert("ExportDefaultDeclaration",e,t)}function assertExportNamedDeclaration(e,t){assert("ExportNamedDeclaration",e,t)}function assertExportSpecifier(e,t){assert("ExportSpecifier",e,t)}function assertForOfStatement(e,t){assert("ForOfStatement",e,t)}function assertImportDeclaration(e,t){assert("ImportDeclaration",e,t)}function assertImportDefaultSpecifier(e,t){assert("ImportDefaultSpecifier",e,t)}function assertImportNamespaceSpecifier(e,t){assert("ImportNamespaceSpecifier",e,t)}function assertImportSpecifier(e,t){assert("ImportSpecifier",e,t)}function assertMetaProperty(e,t){assert("MetaProperty",e,t)}function assertClassMethod(e,t){assert("ClassMethod",e,t)}function assertObjectPattern(e,t){assert("ObjectPattern",e,t)}function assertSpreadElement(e,t){assert("SpreadElement",e,t)}function assertSuper(e,t){assert("Super",e,t)}function assertTaggedTemplateExpression(e,t){assert("TaggedTemplateExpression",e,t)}function assertTemplateElement(e,t){assert("TemplateElement",e,t)}function assertTemplateLiteral(e,t){assert("TemplateLiteral",e,t)}function assertYieldExpression(e,t){assert("YieldExpression",e,t)}function assertAwaitExpression(e,t){assert("AwaitExpression",e,t)}function assertImport(e,t){assert("Import",e,t)}function assertBigIntLiteral(e,t){assert("BigIntLiteral",e,t)}function assertExportNamespaceSpecifier(e,t){assert("ExportNamespaceSpecifier",e,t)}function assertOptionalMemberExpression(e,t){assert("OptionalMemberExpression",e,t)}function assertOptionalCallExpression(e,t){assert("OptionalCallExpression",e,t)}function assertClassProperty(e,t){assert("ClassProperty",e,t)}function assertClassPrivateProperty(e,t){assert("ClassPrivateProperty",e,t)}function assertClassPrivateMethod(e,t){assert("ClassPrivateMethod",e,t)}function assertPrivateName(e,t){assert("PrivateName",e,t)}function assertAnyTypeAnnotation(e,t){assert("AnyTypeAnnotation",e,t)}function assertArrayTypeAnnotation(e,t){assert("ArrayTypeAnnotation",e,t)}function assertBooleanTypeAnnotation(e,t){assert("BooleanTypeAnnotation",e,t)}function assertBooleanLiteralTypeAnnotation(e,t){assert("BooleanLiteralTypeAnnotation",e,t)}function assertNullLiteralTypeAnnotation(e,t){assert("NullLiteralTypeAnnotation",e,t)}function assertClassImplements(e,t){assert("ClassImplements",e,t)}function assertDeclareClass(e,t){assert("DeclareClass",e,t)}function assertDeclareFunction(e,t){assert("DeclareFunction",e,t)}function assertDeclareInterface(e,t){assert("DeclareInterface",e,t)}function assertDeclareModule(e,t){assert("DeclareModule",e,t)}function assertDeclareModuleExports(e,t){assert("DeclareModuleExports",e,t)}function assertDeclareTypeAlias(e,t){assert("DeclareTypeAlias",e,t)}function assertDeclareOpaqueType(e,t){assert("DeclareOpaqueType",e,t)}function assertDeclareVariable(e,t){assert("DeclareVariable",e,t)}function assertDeclareExportDeclaration(e,t){assert("DeclareExportDeclaration",e,t)}function assertDeclareExportAllDeclaration(e,t){assert("DeclareExportAllDeclaration",e,t)}function assertDeclaredPredicate(e,t){assert("DeclaredPredicate",e,t)}function assertExistsTypeAnnotation(e,t){assert("ExistsTypeAnnotation",e,t)}function assertFunctionTypeAnnotation(e,t){assert("FunctionTypeAnnotation",e,t)}function assertFunctionTypeParam(e,t){assert("FunctionTypeParam",e,t)}function assertGenericTypeAnnotation(e,t){assert("GenericTypeAnnotation",e,t)}function assertInferredPredicate(e,t){assert("InferredPredicate",e,t)}function assertInterfaceExtends(e,t){assert("InterfaceExtends",e,t)}function assertInterfaceDeclaration(e,t){assert("InterfaceDeclaration",e,t)}function assertInterfaceTypeAnnotation(e,t){assert("InterfaceTypeAnnotation",e,t)}function assertIntersectionTypeAnnotation(e,t){assert("IntersectionTypeAnnotation",e,t)}function assertMixedTypeAnnotation(e,t){assert("MixedTypeAnnotation",e,t)}function assertEmptyTypeAnnotation(e,t){assert("EmptyTypeAnnotation",e,t)}function assertNullableTypeAnnotation(e,t){assert("NullableTypeAnnotation",e,t)}function assertNumberLiteralTypeAnnotation(e,t){assert("NumberLiteralTypeAnnotation",e,t)}function assertNumberTypeAnnotation(e,t){assert("NumberTypeAnnotation",e,t)}function assertObjectTypeAnnotation(e,t){assert("ObjectTypeAnnotation",e,t)}function assertObjectTypeInternalSlot(e,t){assert("ObjectTypeInternalSlot",e,t)}function assertObjectTypeCallProperty(e,t){assert("ObjectTypeCallProperty",e,t)}function assertObjectTypeIndexer(e,t){assert("ObjectTypeIndexer",e,t)}function assertObjectTypeProperty(e,t){assert("ObjectTypeProperty",e,t)}function assertObjectTypeSpreadProperty(e,t){assert("ObjectTypeSpreadProperty",e,t)}function assertOpaqueType(e,t){assert("OpaqueType",e,t)}function assertQualifiedTypeIdentifier(e,t){assert("QualifiedTypeIdentifier",e,t)}function assertStringLiteralTypeAnnotation(e,t){assert("StringLiteralTypeAnnotation",e,t)}function assertStringTypeAnnotation(e,t){assert("StringTypeAnnotation",e,t)}function assertSymbolTypeAnnotation(e,t){assert("SymbolTypeAnnotation",e,t)}function assertThisTypeAnnotation(e,t){assert("ThisTypeAnnotation",e,t)}function assertTupleTypeAnnotation(e,t){assert("TupleTypeAnnotation",e,t)}function assertTypeofTypeAnnotation(e,t){assert("TypeofTypeAnnotation",e,t)}function assertTypeAlias(e,t){assert("TypeAlias",e,t)}function assertTypeAnnotation(e,t){assert("TypeAnnotation",e,t)}function assertTypeCastExpression(e,t){assert("TypeCastExpression",e,t)}function assertTypeParameter(e,t){assert("TypeParameter",e,t)}function assertTypeParameterDeclaration(e,t){assert("TypeParameterDeclaration",e,t)}function assertTypeParameterInstantiation(e,t){assert("TypeParameterInstantiation",e,t)}function assertUnionTypeAnnotation(e,t){assert("UnionTypeAnnotation",e,t)}function assertVariance(e,t){assert("Variance",e,t)}function assertVoidTypeAnnotation(e,t){assert("VoidTypeAnnotation",e,t)}function assertEnumDeclaration(e,t){assert("EnumDeclaration",e,t)}function assertEnumBooleanBody(e,t){assert("EnumBooleanBody",e,t)}function assertEnumNumberBody(e,t){assert("EnumNumberBody",e,t)}function assertEnumStringBody(e,t){assert("EnumStringBody",e,t)}function assertEnumSymbolBody(e,t){assert("EnumSymbolBody",e,t)}function assertEnumBooleanMember(e,t){assert("EnumBooleanMember",e,t)}function assertEnumNumberMember(e,t){assert("EnumNumberMember",e,t)}function assertEnumStringMember(e,t){assert("EnumStringMember",e,t)}function assertEnumDefaultedMember(e,t){assert("EnumDefaultedMember",e,t)}function assertIndexedAccessType(e,t){assert("IndexedAccessType",e,t)}function assertOptionalIndexedAccessType(e,t){assert("OptionalIndexedAccessType",e,t)}function assertJSXAttribute(e,t){assert("JSXAttribute",e,t)}function assertJSXClosingElement(e,t){assert("JSXClosingElement",e,t)}function assertJSXElement(e,t){assert("JSXElement",e,t)}function assertJSXEmptyExpression(e,t){assert("JSXEmptyExpression",e,t)}function assertJSXExpressionContainer(e,t){assert("JSXExpressionContainer",e,t)}function assertJSXSpreadChild(e,t){assert("JSXSpreadChild",e,t)}function assertJSXIdentifier(e,t){assert("JSXIdentifier",e,t)}function assertJSXMemberExpression(e,t){assert("JSXMemberExpression",e,t)}function assertJSXNamespacedName(e,t){assert("JSXNamespacedName",e,t)}function assertJSXOpeningElement(e,t){assert("JSXOpeningElement",e,t)}function assertJSXSpreadAttribute(e,t){assert("JSXSpreadAttribute",e,t)}function assertJSXText(e,t){assert("JSXText",e,t)}function assertJSXFragment(e,t){assert("JSXFragment",e,t)}function assertJSXOpeningFragment(e,t){assert("JSXOpeningFragment",e,t)}function assertJSXClosingFragment(e,t){assert("JSXClosingFragment",e,t)}function assertNoop(e,t){assert("Noop",e,t)}function assertPlaceholder(e,t){assert("Placeholder",e,t)}function assertV8IntrinsicIdentifier(e,t){assert("V8IntrinsicIdentifier",e,t)}function assertArgumentPlaceholder(e,t){assert("ArgumentPlaceholder",e,t)}function assertBindExpression(e,t){assert("BindExpression",e,t)}function assertImportAttribute(e,t){assert("ImportAttribute",e,t)}function assertDecorator(e,t){assert("Decorator",e,t)}function assertDoExpression(e,t){assert("DoExpression",e,t)}function assertExportDefaultSpecifier(e,t){assert("ExportDefaultSpecifier",e,t)}function assertRecordExpression(e,t){assert("RecordExpression",e,t)}function assertTupleExpression(e,t){assert("TupleExpression",e,t)}function assertDecimalLiteral(e,t){assert("DecimalLiteral",e,t)}function assertStaticBlock(e,t){assert("StaticBlock",e,t)}function assertModuleExpression(e,t){assert("ModuleExpression",e,t)}function assertTopicReference(e,t){assert("TopicReference",e,t)}function assertPipelineTopicExpression(e,t){assert("PipelineTopicExpression",e,t)}function assertPipelineBareFunction(e,t){assert("PipelineBareFunction",e,t)}function assertPipelinePrimaryTopicReference(e,t){assert("PipelinePrimaryTopicReference",e,t)}function assertTSParameterProperty(e,t){assert("TSParameterProperty",e,t)}function assertTSDeclareFunction(e,t){assert("TSDeclareFunction",e,t)}function assertTSDeclareMethod(e,t){assert("TSDeclareMethod",e,t)}function assertTSQualifiedName(e,t){assert("TSQualifiedName",e,t)}function assertTSCallSignatureDeclaration(e,t){assert("TSCallSignatureDeclaration",e,t)}function assertTSConstructSignatureDeclaration(e,t){assert("TSConstructSignatureDeclaration",e,t)}function assertTSPropertySignature(e,t){assert("TSPropertySignature",e,t)}function assertTSMethodSignature(e,t){assert("TSMethodSignature",e,t)}function assertTSIndexSignature(e,t){assert("TSIndexSignature",e,t)}function assertTSAnyKeyword(e,t){assert("TSAnyKeyword",e,t)}function assertTSBooleanKeyword(e,t){assert("TSBooleanKeyword",e,t)}function assertTSBigIntKeyword(e,t){assert("TSBigIntKeyword",e,t)}function assertTSIntrinsicKeyword(e,t){assert("TSIntrinsicKeyword",e,t)}function assertTSNeverKeyword(e,t){assert("TSNeverKeyword",e,t)}function assertTSNullKeyword(e,t){assert("TSNullKeyword",e,t)}function assertTSNumberKeyword(e,t){assert("TSNumberKeyword",e,t)}function assertTSObjectKeyword(e,t){assert("TSObjectKeyword",e,t)}function assertTSStringKeyword(e,t){assert("TSStringKeyword",e,t)}function assertTSSymbolKeyword(e,t){assert("TSSymbolKeyword",e,t)}function assertTSUndefinedKeyword(e,t){assert("TSUndefinedKeyword",e,t)}function assertTSUnknownKeyword(e,t){assert("TSUnknownKeyword",e,t)}function assertTSVoidKeyword(e,t){assert("TSVoidKeyword",e,t)}function assertTSThisType(e,t){assert("TSThisType",e,t)}function assertTSFunctionType(e,t){assert("TSFunctionType",e,t)}function assertTSConstructorType(e,t){assert("TSConstructorType",e,t)}function assertTSTypeReference(e,t){assert("TSTypeReference",e,t)}function assertTSTypePredicate(e,t){assert("TSTypePredicate",e,t)}function assertTSTypeQuery(e,t){assert("TSTypeQuery",e,t)}function assertTSTypeLiteral(e,t){assert("TSTypeLiteral",e,t)}function assertTSArrayType(e,t){assert("TSArrayType",e,t)}function assertTSTupleType(e,t){assert("TSTupleType",e,t)}function assertTSOptionalType(e,t){assert("TSOptionalType",e,t)}function assertTSRestType(e,t){assert("TSRestType",e,t)}function assertTSNamedTupleMember(e,t){assert("TSNamedTupleMember",e,t)}function assertTSUnionType(e,t){assert("TSUnionType",e,t)}function assertTSIntersectionType(e,t){assert("TSIntersectionType",e,t)}function assertTSConditionalType(e,t){assert("TSConditionalType",e,t)}function assertTSInferType(e,t){assert("TSInferType",e,t)}function assertTSParenthesizedType(e,t){assert("TSParenthesizedType",e,t)}function assertTSTypeOperator(e,t){assert("TSTypeOperator",e,t)}function assertTSIndexedAccessType(e,t){assert("TSIndexedAccessType",e,t)}function assertTSMappedType(e,t){assert("TSMappedType",e,t)}function assertTSLiteralType(e,t){assert("TSLiteralType",e,t)}function assertTSExpressionWithTypeArguments(e,t){assert("TSExpressionWithTypeArguments",e,t)}function assertTSInterfaceDeclaration(e,t){assert("TSInterfaceDeclaration",e,t)}function assertTSInterfaceBody(e,t){assert("TSInterfaceBody",e,t)}function assertTSTypeAliasDeclaration(e,t){assert("TSTypeAliasDeclaration",e,t)}function assertTSAsExpression(e,t){assert("TSAsExpression",e,t)}function assertTSTypeAssertion(e,t){assert("TSTypeAssertion",e,t)}function assertTSEnumDeclaration(e,t){assert("TSEnumDeclaration",e,t)}function assertTSEnumMember(e,t){assert("TSEnumMember",e,t)}function assertTSModuleDeclaration(e,t){assert("TSModuleDeclaration",e,t)}function assertTSModuleBlock(e,t){assert("TSModuleBlock",e,t)}function assertTSImportType(e,t){assert("TSImportType",e,t)}function assertTSImportEqualsDeclaration(e,t){assert("TSImportEqualsDeclaration",e,t)}function assertTSExternalModuleReference(e,t){assert("TSExternalModuleReference",e,t)}function assertTSNonNullExpression(e,t){assert("TSNonNullExpression",e,t)}function assertTSExportAssignment(e,t){assert("TSExportAssignment",e,t)}function assertTSNamespaceExportDeclaration(e,t){assert("TSNamespaceExportDeclaration",e,t)}function assertTSTypeAnnotation(e,t){assert("TSTypeAnnotation",e,t)}function assertTSTypeParameterInstantiation(e,t){assert("TSTypeParameterInstantiation",e,t)}function assertTSTypeParameterDeclaration(e,t){assert("TSTypeParameterDeclaration",e,t)}function assertTSTypeParameter(e,t){assert("TSTypeParameter",e,t)}function assertExpression(e,t){assert("Expression",e,t)}function assertBinary(e,t){assert("Binary",e,t)}function assertScopable(e,t){assert("Scopable",e,t)}function assertBlockParent(e,t){assert("BlockParent",e,t)}function assertBlock(e,t){assert("Block",e,t)}function assertStatement(e,t){assert("Statement",e,t)}function assertTerminatorless(e,t){assert("Terminatorless",e,t)}function assertCompletionStatement(e,t){assert("CompletionStatement",e,t)}function assertConditional(e,t){assert("Conditional",e,t)}function assertLoop(e,t){assert("Loop",e,t)}function assertWhile(e,t){assert("While",e,t)}function assertExpressionWrapper(e,t){assert("ExpressionWrapper",e,t)}function assertFor(e,t){assert("For",e,t)}function assertForXStatement(e,t){assert("ForXStatement",e,t)}function assertFunction(e,t){assert("Function",e,t)}function assertFunctionParent(e,t){assert("FunctionParent",e,t)}function assertPureish(e,t){assert("Pureish",e,t)}function assertDeclaration(e,t){assert("Declaration",e,t)}function assertPatternLike(e,t){assert("PatternLike",e,t)}function assertLVal(e,t){assert("LVal",e,t)}function assertTSEntityName(e,t){assert("TSEntityName",e,t)}function assertLiteral(e,t){assert("Literal",e,t)}function assertImmutable(e,t){assert("Immutable",e,t)}function assertUserWhitespacable(e,t){assert("UserWhitespacable",e,t)}function assertMethod(e,t){assert("Method",e,t)}function assertObjectMember(e,t){assert("ObjectMember",e,t)}function assertProperty(e,t){assert("Property",e,t)}function assertUnaryLike(e,t){assert("UnaryLike",e,t)}function assertPattern(e,t){assert("Pattern",e,t)}function assertClass(e,t){assert("Class",e,t)}function assertModuleDeclaration(e,t){assert("ModuleDeclaration",e,t)}function assertExportDeclaration(e,t){assert("ExportDeclaration",e,t)}function assertModuleSpecifier(e,t){assert("ModuleSpecifier",e,t)}function assertPrivate(e,t){assert("Private",e,t)}function assertFlow(e,t){assert("Flow",e,t)}function assertFlowType(e,t){assert("FlowType",e,t)}function assertFlowBaseAnnotation(e,t){assert("FlowBaseAnnotation",e,t)}function assertFlowDeclaration(e,t){assert("FlowDeclaration",e,t)}function assertFlowPredicate(e,t){assert("FlowPredicate",e,t)}function assertEnumBody(e,t){assert("EnumBody",e,t)}function assertEnumMember(e,t){assert("EnumMember",e,t)}function assertJSX(e,t){assert("JSX",e,t)}function assertTSTypeElement(e,t){assert("TSTypeElement",e,t)}function assertTSType(e,t){assert("TSType",e,t)}function assertTSBaseType(e,t){assert("TSBaseType",e,t)}function assertNumberLiteral(e,t){console.trace("The node type NumberLiteral has been renamed to NumericLiteral");assert("NumberLiteral",e,t)}function assertRegexLiteral(e,t){console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");assert("RegexLiteral",e,t)}function assertRestProperty(e,t){console.trace("The node type RestProperty has been renamed to RestElement");assert("RestProperty",e,t)}function assertSpreadProperty(e,t){console.trace("The node type SpreadProperty has been renamed to SpreadElement");assert("SpreadProperty",e,t)}},4750:function(e,t,r){"use strict";e=r.nmd(e);const n=r(4486);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const a=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const s=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const o=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:a(r,0)};t.color.ansi16m={rgb:s(o,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:a(r,10)};t.bgColor.ansi16m={rgb:s(o,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=a(r.ansi256,0);t.bgColor.ansi256[e]=a(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=s(r.rgb,0);t.bgColor.ansi16m[e]=s(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},4752:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(2357);var i=r(9978);const{callExpression:a,cloneNode:s,expressionStatement:o,identifier:c,importDeclaration:u,importDefaultSpecifier:l,importNamespaceSpecifier:p,importSpecifier:d,memberExpression:f,stringLiteral:m,variableDeclaration:g,variableDeclarator:_}=i;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._scope=null;this._hub=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(u([],m(this._importedSource)));return this}require(){this._statements.push(o(a(c("require"),[m(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=s(t);return this}default(e){e=this._scope.generateUidIdentifier(e);const t=this._statements[this._statements.length-1];n(t.type==="ImportDeclaration");n(t.specifiers.length===0);t.specifiers=[l(e)];this._resultName=s(e);return this}named(e,t){if(t==="default")return this.default(e);e=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[d(e,c(t))];this._resultName=s(e);return this}var(e){e=this._scope.generateUidIdentifier(e);let t=this._statements[this._statements.length-1];if(t.type!=="ExpressionStatement"){n(this._resultName);t=o(this._resultName);this._statements.push(t)}this._statements[this._statements.length-1]=g("var",[_(e,t.expression)]);this._resultName=s(e);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=a(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=a(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=f(t.expression,c(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=f(t.declarations[0].init,c(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=f(this._resultName,c(e))}}t.default=ImportBuilder},4770:function(e,t,r){const n=r(962);const i=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},4784:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(3794)}else{e.exports=r(3081)}},4796:function(e){e.exports=function(e,t,r,n){if(!(e instanceof t)||n!==undefined&&n in e){throw TypeError(r+": incorrect invocation!")}return e}},4798:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFirstSemanticOrSyntacticError=void 0;const n=r(3186);function getFirstSemanticOrSyntacticError(e,t){try{const r=whitelistSupportedDiagnostics(e.getSyntacticDiagnostics(t));if(r.length){return convertDiagnosticToSemanticOrSyntacticError(r[0])}const n=whitelistSupportedDiagnostics(e.getSemanticDiagnostics(t));if(n.length){return convertDiagnosticToSemanticOrSyntacticError(n[0])}return undefined}catch(e){console.warn(`Warning From TSC: "${e.message}`);return undefined}}t.getFirstSemanticOrSyntacticError=getFirstSemanticOrSyntacticError;function whitelistSupportedDiagnostics(e){return e.filter(e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return true}return false})}function convertDiagnosticToSemanticOrSyntacticError(e){return Object.assign(Object.assign({},e),{message:(0,n.flattenDiagnosticMessageText)(e.messageText,n.sys.newLine)})}},4802:function(e,t,r){var n=r(3878);var i=Object.prototype;var a=i.hasOwnProperty;function hashHas(e){var t=this.__data__;return n?t[e]!==undefined:a.call(t,e)}e.exports=hashHas},4803:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=simplifyAccess;var n=r(9978);const{LOGICAL_OPERATORS:i,assignmentExpression:a,binaryExpression:s,cloneNode:o,identifier:c,logicalExpression:u,numericLiteral:l,sequenceExpression:p,unaryExpression:d}=n;function simplifyAccess(e,t){e.traverse(f,{scope:e.scope,bindingNames:t,seen:new WeakSet})}const f={UpdateExpression:{exit(e){const{scope:t,bindingNames:r}=this;const n=e.get("argument");if(!n.isIdentifier())return;const i=n.node.name;if(!r.has(i))return;if(t.getBinding(i)!==e.scope.getBinding(i)){return}if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const t=e.node.operator=="++"?"+=":"-=";e.replaceWith(a(t,n.node,l(1)))}else if(e.node.prefix){e.replaceWith(a("=",c(i),s(e.node.operator[0],d("+",n.node),l(1))))}else{const t=e.scope.generateUidIdentifierBasedOnNode(n.node,"old");const r=t.name;e.scope.push({id:t});const i=s(e.node.operator[0],c(r),l(1));e.replaceWith(p([a("=",c(r),d("+",n.node)),a("=",o(n.node),i),c(r)]))}}},AssignmentExpression:{exit(e){const{scope:t,seen:r,bindingNames:n}=this;if(e.node.operator==="=")return;if(r.has(e.node))return;r.add(e.node);const c=e.get("left");if(!c.isIdentifier())return;const l=c.node.name;if(!n.has(l))return;if(t.getBinding(l)!==e.scope.getBinding(l)){return}const p=e.node.operator.slice(0,-1);if(i.includes(p)){e.replaceWith(u(p,e.node.left,a("=",o(e.node.left),e.node.right)))}else{e.node.right=s(p,o(e.node.left),e.node.right);e.node.operator="="}}}}},4811:function(e,t,r){var n=r(13);var i=r(2851);var a=r(5753);var s=r(3966);var o=r(5284);var c=r(3178);var u=Object.getOwnPropertyDescriptor;t.f=r(917)?u:function getOwnPropertyDescriptor(e,t){e=a(e);t=s(t,true);if(c)try{return u(e,t)}catch(e){}if(o(e,t))return i(!n.f.call(e,t),e[t])}},4825:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.typescriptVersionIsAtLeast=void 0;const s=a(r(6900));const o=a(r(3186));function semverCheck(e){return s.satisfies(o.version,`>= ${e}.0 || >= ${e}.1-rc || >= ${e}.0-beta`,{includePrerelease:true})}const c=["3.7","3.8","3.9","4.0"];const u={};t.typescriptVersionIsAtLeast=u;for(const e of c){u[e]=semverCheck(e)}},4846:function(e){e.exports={A:{A:{J:.0131217,E:.00621152,F:.0255585,G:.115013,A:.0255585,B:.747587,jB:.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","jB","J","E","F","G","A","B","","",""],E:"IE",F:{jB:962323200,J:998870400,E:1161129600,F:1237420800,G:1300060800,A:1346716800,B:1381968e3}},B:{A:{C:.008086,K:.004267,L:.004043,D:.008086,M:.008086,N:.016172,O:.08086,P:0,S:.004298,T:.00944,U:.004043,V:.012129,W:.008086,X:.008086,Y:.008086,Z:.008086,a:.020215,b:.016172,c:.105118,Q:3.35973,H:.004043,d:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","D","M","N","O","P","S","T","U","V","W","X","Y","Z","a","b","c","Q","H","d","","",""],E:"Edge",F:{C:1438128e3,K:1447286400,L:1470096e3,D:1491868800,M:1508198400,N:1525046400,O:1542067200,P:1579046400,S:1581033600,T:1586736e3,U:1590019200,V:1594857600,W:1598486400,X:1602201600,Y:1605830400,Z:161136e4,a:1614816e3,b:1618358400,c:1622073600,Q:1626912e3,H:1630627200,d:1632441600},D:{C:"ms",K:"ms",L:"ms",D:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{0:.00487,1:.005029,2:.0047,3:.04043,4:.008086,5:.004043,6:.004525,7:.004043,8:.008086,9:.004538,kB:.004043,cB:.004271,I:.020215,e:.004879,J:.020136,E:.005725,F:.004525,G:.00533,A:.004283,B:.008086,C:.004471,K:.004486,L:.00453,D:.004043,M:.004417,N:.004425,O:.004043,f:.004443,g:.004283,h:.004043,i:.013698,j:.004043,k:.008786,l:.008086,m:.004317,n:.004393,o:.004418,p:.008834,q:.004043,r:.008928,s:.004471,t:.009284,u:.004707,v:.009076,w:.004425,x:.004783,y:.004271,z:.004783,AB:.008282,BB:.008086,CB:.072774,DB:.004335,EB:.004141,FB:.008086,GB:.012129,HB:.004425,IB:.004043,dB:.004043,JB:.008086,eB:.00472,KB:.004425,LB:.008086,R:.00415,MB:.004267,NB:.004043,OB:.004267,PB:.012129,QB:.00415,RB:.008282,SB:.004425,TB:.008086,UB:.00415,VB:.00415,WB:.004141,XB:.004043,YB:.004043,ZB:.157677,P:.008086,S:.008086,T:.008086,lB:.012129,U:.008086,V:.016172,W:.008086,X:.008086,Y:.012129,Z:.036387,a:.084903,b:1.01479,c:1.4757,Q:.020215,H:0,d:0,mB:.008786,nB:.00487},B:"moz",C:["kB","cB","mB","nB","I","e","J","E","F","G","A","B","C","K","L","D","M","N","O","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","dB","JB","eB","KB","LB","R","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","P","S","T","lB","U","V","W","X","Y","Z","a","b","c","Q","H","d",""],E:"Firefox",F:{0:1439251200,1:144288e4,2:1446508800,3:1450137600,4:1453852800,5:1457395200,6:1461628800,7:1465257600,8:1470096e3,9:1474329600,kB:1161648e3,cB:1213660800,mB:124632e4,nB:1264032e3,I:1300752e3,e:1308614400,J:1313452800,E:1317081600,F:1317081600,G:1320710400,A:1324339200,B:1327968e3,C:1331596800,K:1335225600,L:1338854400,D:1342483200,M:1346112e3,N:1349740800,O:1353628800,f:1357603200,g:1361232e3,h:1364860800,i:1368489600,j:1372118400,k:1375747200,l:1379376e3,m:1386633600,n:1391472e3,o:1395100800,p:1398729600,q:1402358400,r:1405987200,s:1409616e3,t:1413244800,u:1417392e3,v:1421107200,w:1424736e3,x:1428278400,y:1431475200,z:1435881600,AB:1479168e3,BB:1485216e3,CB:1488844800,DB:149256e4,EB:1497312e3,FB:1502150400,GB:1506556800,HB:1510617600,IB:1516665600,dB:1520985600,JB:1525824e3,eB:1529971200,KB:1536105600,LB:1540252800,R:1544486400,MB:154872e4,NB:1552953600,OB:1558396800,PB:1562630400,QB:1567468800,RB:1571788800,SB:1575331200,TB:1578355200,UB:1581379200,VB:1583798400,WB:1586304e3,XB:1588636800,YB:1591056e3,ZB:1593475200,P:1595894400,S:1598313600,T:1600732800,lB:1603152e3,U:1605571200,V:1607990400,W:1611619200,X:1614038400,Y:1616457600,Z:1618790400,a:1622505600,b:1626134400,c:1628553600,Q:1630972800,H:null,d:null}},D:{A:{0:.016172,1:.0236,2:.004403,3:.008086,4:.004465,5:.004642,6:.004891,7:.012129,8:.020215,9:.190021,I:.004706,e:.004879,J:.004879,E:.005591,F:.005591,G:.005591,A:.004534,B:.004464,C:.010424,K:.0083,L:.004706,D:.015087,M:.004393,N:.004393,O:.008652,f:.004043,g:.004393,h:.004317,i:.012129,j:.008786,k:.016172,l:.004461,m:.004141,n:.004326,o:.0047,p:.004538,q:.004043,r:.008596,s:.004566,t:.008086,u:.008086,v:.016172,w:.004335,x:.004464,y:.028301,z:.004464,AB:.004043,BB:.004043,CB:.008086,DB:.016172,EB:.012129,FB:.012129,GB:.060645,HB:.008086,IB:.008086,dB:.008086,JB:.012129,eB:.04043,KB:.008086,LB:.016172,R:.020215,MB:.024258,NB:.024258,OB:.016172,PB:.012129,QB:.068731,RB:.052559,SB:.024258,TB:.04043,UB:.016172,VB:.092989,WB:.076817,XB:.060645,YB:.024258,ZB:.056602,P:.185978,S:.088946,T:.064688,U:.097032,V:.113204,W:.214279,X:.12129,Y:.299182,Z:.133419,a:.198107,b:.311311,c:1.33823,Q:21.4077,H:.028301,d:.024258,oB:.008086,pB:0,qB:0},B:"webkit",C:["","","","I","e","J","E","F","G","A","B","C","K","L","D","M","N","O","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","dB","JB","eB","KB","LB","R","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","P","S","T","U","V","W","X","Y","Z","a","b","c","Q","H","d","oB","pB","qB"],E:"Chrome",F:{0:1421798400,1:1425513600,2:1429401600,3:143208e4,4:1437523200,5:1441152e3,6:1444780800,7:1449014400,8:1453248e3,9:1456963200,I:1264377600,e:1274745600,J:1283385600,E:1287619200,F:1291248e3,G:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,D:1316131200,M:1319500800,N:1323734400,O:1328659200,f:1332892800,g:133704e4,h:1340668800,i:1343692800,j:1348531200,k:1352246400,l:1357862400,m:1361404800,n:1364428800,o:1369094400,p:1374105600,q:1376956800,r:1384214400,s:1389657600,t:1392940800,u:1397001600,v:1400544e3,w:1405468800,x:1409011200,y:141264e4,z:1416268800,AB:1460592e3,BB:1464134400,CB:1469059200,DB:1472601600,EB:1476230400,FB:1480550400,GB:1485302400,HB:1489017600,IB:149256e4,dB:1496707200,JB:1500940800,eB:1504569600,KB:1508198400,LB:1512518400,R:1516752e3,MB:1520294400,NB:1523923200,OB:1527552e3,PB:1532390400,QB:1536019200,RB:1539648e3,SB:1543968e3,TB:154872e4,UB:1552348800,VB:1555977600,WB:1559606400,XB:1564444800,YB:1568073600,ZB:1571702400,P:1575936e3,S:1580860800,T:1586304e3,U:1589846400,V:1594684800,W:1598313600,X:1601942400,Y:1605571200,Z:1611014400,a:1614556800,b:1618272e3,c:1621987200,Q:1626739200,H:1630368e3,d:1632268800,oB:null,pB:null,qB:null}},E:{A:{I:0,e:.004043,J:.004656,E:.004465,F:.004043,G:.004891,A:.004425,B:.008086,C:.012129,K:.076817,L:.517504,D:.016172,rB:0,fB:.008692,sB:.020215,tB:.00456,uB:.004283,vB:.016172,gB:.020215,aB:.052559,bB:.08086,wB:.529633,xB:2.59156,yB:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","rB","fB","I","e","sB","J","tB","E","uB","F","G","vB","A","gB","B","aB","C","bB","K","wB","L","xB","D","yB","",""],E:"Safari",F:{rB:1205798400,fB:1226534400,I:1244419200,e:1275868800,sB:131112e4,J:1343174400,tB:13824e5,E:13824e5,uB:1410998400,F:1413417600,G:1443657600,vB:1458518400,A:1474329600,gB:1490572800,B:1505779200,aB:1522281600,C:1537142400,bB:1553472e3,K:1568851200,wB:1585008e3,L:1600214400,xB:1619395200,D:1632096e3,yB:null}},F:{A:{0:.008086,1:.004227,2:.004418,3:.004043,4:.004227,5:.004725,6:.008086,7:.008942,8:.004707,9:.004827,G:.0082,B:.016581,C:.004317,D:.00685,M:.00685,N:.00685,O:.005014,f:.006015,g:.004879,h:.006597,i:.006597,j:.013434,k:.006702,l:.006015,m:.005595,n:.004393,o:.008652,p:.004879,q:.004879,r:.004043,s:.005152,t:.005014,u:.009758,v:.004879,w:.008086,x:.004283,y:.004367,z:.004534,AB:.004707,BB:.004707,CB:.004326,DB:.008922,EB:.014349,FB:.004425,GB:.00472,HB:.004425,IB:.004425,JB:.00472,KB:.004532,LB:.004566,R:.02283,MB:.00867,NB:.004656,OB:.004642,PB:.004043,QB:.00944,RB:.00415,SB:.004271,TB:.004298,UB:.096692,VB:.004201,WB:.004141,XB:.004043,YB:.456859,ZB:.392171,P:0,zB:.00685,"0B":.004043,"1B":.008392,"2B":.004706,aB:.006229,hB:.004879,"3B":.008786,bB:.00472},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","G","zB","0B","1B","2B","B","aB","hB","3B","C","bB","D","M","N","O","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","R","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","P","","",""],E:"Opera",F:{0:1474329600,1:1477267200,2:1481587200,3:1486425600,4:1490054400,5:1494374400,6:1498003200,7:1502236800,8:1506470400,9:1510099200,G:1150761600,zB:1223424e3,"0B":1251763200,"1B":1267488e3,"2B":1277942400,B:1292457600,aB:1302566400,hB:1309219200,"3B":1323129600,C:1323129600,bB:1352073600,D:1372723200,M:1377561600,N:1381104e3,O:1386288e3,f:1390867200,g:1393891200,h:1399334400,i:1401753600,j:1405987200,k:1409616e3,l:1413331200,m:1417132800,n:1422316800,o:1425945600,p:1430179200,q:1433808e3,r:1438646400,s:1442448e3,t:1445904e3,u:1449100800,v:1454371200,w:1457308800,x:146232e4,y:1465344e3,z:1470096e3,AB:1515024e3,BB:1517961600,CB:1521676800,DB:1525910400,EB:1530144e3,FB:1534982400,GB:1537833600,HB:1543363200,IB:1548201600,JB:1554768e3,KB:1561593600,LB:1566259200,R:1570406400,MB:1573689600,NB:1578441600,OB:1583971200,PB:1587513600,QB:1592956800,RB:1595894400,SB:1600128e3,TB:1603238400,UB:161352e4,VB:1612224e3,WB:1616544e3,XB:1619568e3,YB:1623715200,ZB:1627948800,P:1631577600},D:{G:"o",B:"o",C:"o",zB:"o","0B":"o","1B":"o","2B":"o",aB:"o",hB:"o","3B":"o",bB:"o"}},G:{A:{F:.0014876,D:0,fB:0,"4B":0,iB:.0029752,"5B":.0089256,"6B":.101157,"7B":.0267768,"8B":.0163636,"9B":.0208264,AC:.133884,BC:.0401652,CC:.145785,DC:.0773552,EC:.0624792,FC:.0639668,GC:.182975,HC:.0565288,IC:.0252892,JC:.138347,KC:.450743,LC:1.8714,MC:10.8193},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","fB","4B","iB","5B","6B","7B","F","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","KC","LC","MC","D","","",""],E:"Safari on iOS",F:{fB:1270252800,"4B":1283904e3,iB:1299628800,"5B":1331078400,"6B":1359331200,"7B":1394409600,F:1410912e3,"8B":1413763200,"9B":1442361600,AC:1458518400,BC:1473724800,CC:1490572800,DC:1505779200,EC:1522281600,FC:1537142400,GC:1553472e3,HC:1568851200,IC:1572220800,JC:1580169600,KC:1585008e3,LC:1600214400,MC:1619395200,D:1632096e3}},H:{A:{NC:1.15031},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","NC","","",""],E:"Opera Mini",F:{NC:1426464e3}},I:{A:{cB:0,I:.0104681,H:0,OC:0,PC:0,QC:0,RC:.0157022,iB:.0575747,SC:0,TC:.261703},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","OC","PC","QC","cB","I","RC","iB","SC","TC","H","","",""],E:"Android Browser",F:{OC:1256515200,PC:1274313600,QC:1291593600,cB:1298332800,I:1318896e3,RC:1341792e3,iB:1374624e3,SC:1386547200,TC:1401667200,H:1630368e3}},J:{A:{E:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","E","A","","",""],E:"Blackberry Browser",F:{E:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,R:.0111391,aB:0,hB:0,bB:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","aB","hB","C","bB","R","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,aB:1314835200,hB:1318291200,C:1330300800,bB:1349740800,R:1613433600},D:{R:"webkit"}},L:{A:{H:39.6323},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","","",""],E:"Chrome for Android",F:{H:1630454400}},M:{A:{Q:.303756},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Q","","",""],E:"Firefox for Android",F:{Q:1630972800}},N:{A:{A:.0115934,B:.022664},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{UC:1.11377},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","UC","","",""],E:"UC Browser for Android",F:{UC:1471392e3},D:{UC:"webkit"}},P:{A:{I:.291303,VC:.0103543,WC:.010304,XC:.0728256,YC:.0103584,ZC:.0416146,gB:.0208073,aC:.135248,bC:.062422,cC:.19767,dC:2.25759},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","VC","WC","XC","YC","ZC","gB","aC","bC","cC","dC","","",""],E:"Samsung Internet",F:{I:1461024e3,VC:1481846400,WC:1509408e3,XC:1528329600,YC:1546128e3,ZC:1554163200,gB:1567900800,aC:1582588800,bC:1593475200,cC:1605657600,dC:1618531200}},Q:{A:{eC:.17868},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","eC","","",""],E:"QQ Browser",F:{eC:1589846400}},R:{A:{fC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","fC","","",""],E:"Baidu Browser",F:{fC:1491004800}},S:{A:{gC:.113164},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","gC","","",""],E:"KaiOS Browser",F:{gC:1527811200}}}},4848:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPackageData=findPackageData;function _path(){const e=r(5622);_path=function(){return e};return e}var n=r(8256);const i="package.json";function*findPackageData(e){let t=null;const r=[];let n=true;let s=_path().dirname(e);while(!t&&_path().basename(s)!=="node_modules"){r.push(s);t=yield*a(_path().join(s,i));const e=_path().dirname(s);if(s===e){n=false;break}s=e}return{filepath:e,directories:r,pkg:t,isPackage:n}}const a=(0,n.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){t.message=`${e}: Error while parsing JSON - ${t.message}`;throw t}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!=="object"){throw new Error(`${e}: Config returned typeof ${typeof r}`)}if(Array.isArray(r)){throw new Error(`${e}: Expected config object but found array`)}return{filepath:e,dirname:_path().dirname(e),options:r}})},4853:function(e,t,r){var n=r(405),i=r(9751),a=r(655),s=r(1275),o=r(7469),c=r(438);var u=200;function baseUniq(e,t,r){var l=-1,p=i,d=e.length,f=true,m=[],g=m;if(r){f=false;p=a}else if(d>=u){var _=t?null:o(e);if(_){return c(_)}f=false;p=s;g=new n}else{g=t?[]:m}e:while(++l=a.length)break;c=a[o++]}else{o=a.next();if(o.done)break;c=o.value}var u=c;if(u.init){n.push(f.expressionStatement(f.assignmentExpression("=",u.id,u.init)))}}e.replaceWithMultiple(n)}};function replaceWithMultiple(e){this.resync();e=this._verifyNodeList(e);f.inheritLeadingComments(e[0],this.node);f.inheritTrailingComments(e[e.length-1],this.node);this.node=this.container[this.key]=null;this.insertAfter(e);if(this.node){this.requeue()}else{this.remove()}}function replaceWithSourceString(e){this.resync();try{e="("+e+")";e=(0,p.parse)(e)}catch(r){var t=r.loc;if(t){r.message+=" - make sure this is an expression.";r.message+="\n"+(0,s.default)(e,t.line,t.column+1)}throw r}e=e.program.body[0].expression;c.default.removeProperties(e);return this.replaceWith(e)}function replaceWith(e){this.resync();if(this.removed){throw new Error("You can't replace this node, we've already removed it")}if(e instanceof l.default){e=e.node}if(!e){throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead")}if(this.node===e){return}if(this.isProgram()&&!f.isProgram(e)){throw new Error("You can only replace a Program root node with another Program node")}if(Array.isArray(e)){throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`")}if(typeof e==="string"){throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`")}if(this.isNodeType("Statement")&&f.isExpression(e)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e)&&!this.parentPath.isExportDefaultDeclaration()){e=f.expressionStatement(e)}}if(this.isNodeType("Expression")&&f.isStatement(e)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e)){return this.replaceExpressionWithStatements([e])}}var t=this.node;if(t){f.inheritsComments(e,t);f.removeComments(t)}this._replaceWith(e);this.type=e.type;this.setScope();this.requeue()}function _replaceWith(e){if(!this.container){throw new ReferenceError("Container is falsy")}if(this.inList){f.validate(this.parent,this.key,[e])}else{f.validate(this.parent,this.key,e)}this.debug(function(){return"Replace with "+(e&&e.type)});this.node=this.container[this.key]=e}function replaceExpressionWithStatements(e){this.resync();var t=f.toSequenceExpression(e,this.scope);if(f.isSequenceExpression(t)){var r=t.expressions;if(r.length>=2&&this.parentPath.isExpressionStatement()){this._maybePopFromStatements(r)}if(r.length===1){this.replaceWith(r[0])}else{this.replaceWith(t)}}else if(t){this.replaceWith(t)}else{var n=f.functionExpression(null,[],f.blockStatement(e));n.shadow=true;this.replaceWith(f.callExpression(n,[]));this.traverse(m);var a=this.get("callee").getCompletionRecords();for(var s=a,o=Array.isArray(s),c=0,s=o?s:(0,i.default)(s);;){var u;if(o){if(c>=s.length)break;u=s[c++]}else{c=s.next();if(c.done)break;u=c.value}var l=u;if(!l.isExpressionStatement())continue;var p=l.findParent(function(e){return e.isLoop()});if(p){var d=p.getData("expressionReplacementReturnUid");if(!d){var g=this.get("callee");d=g.scope.generateDeclaredUidIdentifier("ret");g.get("body").pushContainer("body",f.returnStatement(d));p.setData("expressionReplacementReturnUid",d)}else{d=f.identifier(d.name)}l.get("expression").replaceWith(f.assignmentExpression("=",d,l.node.expression))}else{l.replaceWith(f.returnStatement(l.node.expression))}}return this.node}}function replaceInline(e){this.resync();if(Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);this._containerInsertAfter(e);return this.remove()}else{return this.replaceWithMultiple(e)}}else{return this.replaceWith(e)}}},4870:function(e){function stackGet(e){return this.__data__.get(e)}e.exports=stackGet},4879:function(e){function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},4884:function(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){if(typeof e==="number"&&__webpack_require__.m[e])return __webpack_require__(e);try{return require(e)}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t}var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t})}webpackEmptyAsyncContext.keys=function(){return[]};webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;e.exports=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=4884},4896:function(e){e.exports=function(e,r){var n=[];for(var i=0;i` - ${e.message}`).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,r){super(_buildMessageForResponseErrors(r));this.request=e;this.headers=t;this.response=r;this.name="GraphqlResponseError";this.errors=r.errors;this.data=r.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const s=["method","baseUrl","url","headers","request","query","mediaType"];const o=["query","method","url"];const c=/\/api\/v3\/?$/;function graphql(e,t,r){if(r){if(typeof t==="string"&&"query"in r){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in r){if(!o.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const n=typeof t==="string"?Object.assign({query:t},r):t;const i=Object.keys(n).reduce((e,t)=>{if(s.includes(t)){e[t]=n[t];return e}if(!e.variables){e.variables={}}e.variables[t]=n[t];return e},{});const a=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(c.test(a)){i.url=a.replace(c,"/api/graphql")}return e(i).then(e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers)){t[r]=e.headers[r]}throw new GraphqlResponseError(i,t,e.data)}return e.data.data})}function withDefaults(e,t){const r=e.defaults(t);const i=(e,t)=>{return graphql(r,e,t)};return Object.assign(i,{defaults:withDefaults.bind(null,r),endpoint:n.request.endpoint})}const u=withDefaults(n.request,{headers:{"user-agent":`octokit-graphql.js/${a} ${i.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=u;t.withCustomRequest=withCustomRequest},4915:function(e,t,r){const n=r(658);const i=r(3804);const a=(e,t)=>{if(i(e,t)){return null}else{const r=n(e);const i=n(t);const a=r.prerelease.length||i.prerelease.length;const s=a?"pre":"";const o=a?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==i[e]){return s+e}}}return o}};e.exports=a},4937:function(e,t,r){var n=r(9839);var i=r(6062);var a=r(6764);var s=r(3972);var o=r(8360);e.exports=function(e,t){var r=e==1;var c=e==2;var u=e==3;var l=e==4;var p=e==6;var d=e==5||p;var f=t||o;return function(t,o,m){var g=a(t);var _=i(g);var h=n(o,m,3);var y=s(_.length);var v=0;var T=r?f(t,y):c?f(t,0):undefined;var S,b;for(;y>v;v++)if(d||v in _){S=_[v];b=h(S,v,g);if(e){if(r)T[v]=b;else if(b)switch(e){case 3:return true;case 5:return S;case 6:return v;case 2:T.push(S)}else if(l)return false}}return p?-1:u||l?l:T}}},4938:function(e,t,r){"use strict";e.exports=r(5687)},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class PluginPass{constructor(e,t,r){this._map=new Map;this.key=void 0;this.file=void 0;this.opts=void 0;this.cwd=void 0;this.filename=void 0;this.key=t;this.file=e;this.opts=r||{};this.cwd=e.opts.cwd;this.filename=e.opts.filename}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}addImport(){return this.file.addImport()}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t.default=PluginPass;{PluginPass.prototype.getModuleName=function getModuleName(){return this.file.getModuleName()}}},4961:function(e){function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=hasOwn},4962:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=optimiseCallExpression;var n=r(9978);const{callExpression:i,identifier:a,isIdentifier:s,isSpreadElement:o,memberExpression:c,optionalCallExpression:u,optionalMemberExpression:l}=n;function optimiseCallExpression(e,t,r,n){if(r.length===1&&o(r[0])&&s(r[0].argument,{name:"arguments"})){if(n){return u(l(e,a("apply"),false,true),[t,r[0].argument],false)}return i(c(e,a("apply")),[t,r[0].argument])}else{if(n){return u(l(e,a("call"),false,true),[t,...r],false)}return i(c(e,a("call")),[t,...r])}}},4970:function(e,t,r){r(6814);e.exports=r(5496).Object.keys},4978:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;class Hub{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}t.default=Hub},4985:function(e,t,r){var n=r(6498);var i=Object.prototype;var a=i.hasOwnProperty;var s=i.toString;var o=n?n.toStringTag:undefined;function getRawTag(e){var t=a.call(e,o),r=e[o];try{e[o]=undefined;var n=true}catch(e){}var i=s.call(e);if(n){if(t){e[o]=r}else{delete e[o]}}return i}e.exports=getRawTag},4986:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const o=r(4304);const c=a(r(5009));function exec(e,t,r){return s(this,void 0,void 0,function*(){const n=c.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const a=new c.ToolRunner(i,t,r);return a.exec()})}t.exec=exec;function getExecOutput(e,t,r){var n,i;return s(this,void 0,void 0,function*(){let a="";let s="";const c=new o.StringDecoder("utf8");const u=new o.StringDecoder("utf8");const l=(n=r===null||r===void 0?void 0:r.listeners)===null||n===void 0?void 0:n.stdout;const p=(i=r===null||r===void 0?void 0:r.listeners)===null||i===void 0?void 0:i.stderr;const d=e=>{s+=u.write(e);if(p){p(e)}};const f=e=>{a+=c.write(e);if(l){l(e)}};const m=Object.assign(Object.assign({},r===null||r===void 0?void 0:r.listeners),{stdout:f,stderr:d});const g=yield exec(e,t,Object.assign(Object.assign({},r),{listeners:m}));a+=c.end();s+=u.end();return{exitCode:g,stdout:a,stderr:s}})}t.getExecOutput=getExecOutput},5009:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const o=a(r(2087));const c=a(r(8614));const u=a(r(3129));const l=a(r(5622));const p=a(r(1));const d=a(r(3672));const f=r(8213);const m=process.platform==="win32";class ToolRunner extends c.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(m){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(o.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+o.EOL.length);i=n.indexOf(o.EOL)}return n}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(m){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(m){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return s(this,void 0,void 0,function*(){if(!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||m&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield p.which(this.toolPath,true);return new Promise((e,t)=>s(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+o.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});if(this.options.cwd&&!(yield d.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const a=u.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));let s="";if(a.stdout){a.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}s=this._processLineBuffer(e,s,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}let c="";if(a.stderr){a.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}a.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});a.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});a.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(s.length>0){this.emit("stdline",s)}if(c.length>0){this.emit("errline",c)}a.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!a.stdin){throw new Error("child process missing stdin")}a.stdin.end(this.options.input)}}))})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let a=0;a0){t.push(i);i=""}continue}append(s)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends c.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=f.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},5011:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r=u.FirstAssignment&&e.kind<=u.LastAssignment}t.isAssignmentOperator=isAssignmentOperator;function isLogicalOperator(e){return l.includes(e.kind)}t.isLogicalOperator=isLogicalOperator;function getTextForTokenKind(e){return s.tokenToString(e)}t.getTextForTokenKind=getTextForTokenKind;function isESTreeClassMember(e){return e.kind!==u.SemicolonClassElement}t.isESTreeClassMember=isESTreeClassMember;function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}t.hasModifier=hasModifier;function getLastModifier(e){return!!e.modifiers&&!!e.modifiers.length&&e.modifiers[e.modifiers.length-1]||null}t.getLastModifier=getLastModifier;function isComma(e){return e.kind===u.CommaToken}t.isComma=isComma;function isComment(e){return e.kind===u.SingleLineCommentTrivia||e.kind===u.MultiLineCommentTrivia}t.isComment=isComment;function isJSDocComment(e){return e.kind===u.JSDocComment}t.isJSDocComment=isJSDocComment;function getBinaryExpressionType(e){if(isAssignmentOperator(e)){return o.AST_NODE_TYPES.AssignmentExpression}else if(isLogicalOperator(e)){return o.AST_NODE_TYPES.LogicalExpression}return o.AST_NODE_TYPES.BinaryExpression}t.getBinaryExpressionType=getBinaryExpressionType;function getLineAndCharacterFor(e,t){const r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}t.getLineAndCharacterFor=getLineAndCharacterFor;function getLocFor(e,t,r){return{start:getLineAndCharacterFor(e,r),end:getLineAndCharacterFor(t,r)}}t.getLocFor=getLocFor;function canContainDirective(e){if(e.kind===s.SyntaxKind.Block){switch(e.parent.kind){case s.SyntaxKind.Constructor:case s.SyntaxKind.GetAccessor:case s.SyntaxKind.SetAccessor:case s.SyntaxKind.ArrowFunction:case s.SyntaxKind.FunctionExpression:case s.SyntaxKind.FunctionDeclaration:case s.SyntaxKind.MethodDeclaration:return true;default:return false}}return true}t.canContainDirective=canContainDirective;function getRange(e,t){return[e.getStart(t),e.getEnd()]}t.getRange=getRange;function isToken(e){return e.kind>=u.FirstToken&&e.kind<=u.LastToken}t.isToken=isToken;function isJSXToken(e){return e.kind>=u.JsxElement&&e.kind<=u.JsxAttribute}t.isJSXToken=isJSXToken;function getDeclarationKind(e){if(e.flags&s.NodeFlags.Let){return"let"}if(e.flags&s.NodeFlags.Const){return"const"}return"var"}t.getDeclarationKind=getDeclarationKind;function getTSNodeAccessibility(e){const t=e.modifiers;if(!t){return null}for(let e=0;e{const n=t.pos<=e.pos&&t.end>e.end||t.pos===e.end;return n&&nodeHasTokens(t,r)?find(t):undefined})}}t.findNextToken=findNextToken;function findFirstMatchingAncestor(e,t){while(e){if(t(e)){return e}e=e.parent}return undefined}t.findFirstMatchingAncestor=findFirstMatchingAncestor;function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}t.hasJSXAncestor=hasJSXAncestor;function unescapeStringLiteralText(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,e=>{const t=e.slice(1,-1);if(t[0]==="#"){const r=t[1]==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>1114111?e:String.fromCodePoint(r)}return c.xhtmlEntities[t]||e})}t.unescapeStringLiteralText=unescapeStringLiteralText;function isComputedProperty(e){return e.kind===u.ComputedPropertyName}t.isComputedProperty=isComputedProperty;function isOptional(e){return e.questionToken?e.questionToken.kind===u.QuestionToken:false}t.isOptional=isOptional;function isChainExpression(e){return e.type===o.AST_NODE_TYPES.ChainExpression}t.isChainExpression=isChainExpression;function isChildUnwrappableOptionalChain(e,t){return isChainExpression(t)&&e.expression.kind!==s.SyntaxKind.ParenthesizedExpression}t.isChildUnwrappableOptionalChain=isChildUnwrappableOptionalChain;function getTokenType(e){if("originalKeywordKind"in e&&e.originalKeywordKind){if(e.originalKeywordKind===u.NullKeyword){return o.AST_TOKEN_TYPES.Null}else if(e.originalKeywordKind>=u.FirstFutureReservedWord&&e.originalKeywordKind<=u.LastKeyword){return o.AST_TOKEN_TYPES.Identifier}return o.AST_TOKEN_TYPES.Keyword}if(e.kind>=u.FirstKeyword&&e.kind<=u.LastFutureReservedWord){if(e.kind===u.FalseKeyword||e.kind===u.TrueKeyword){return o.AST_TOKEN_TYPES.Boolean}return o.AST_TOKEN_TYPES.Keyword}if(e.kind>=u.FirstPunctuation&&e.kind<=u.LastPunctuation){return o.AST_TOKEN_TYPES.Punctuator}if(e.kind>=u.NoSubstitutionTemplateLiteral&&e.kind<=u.TemplateTail){return o.AST_TOKEN_TYPES.Template}switch(e.kind){case u.NumericLiteral:return o.AST_TOKEN_TYPES.Numeric;case u.JsxText:return o.AST_TOKEN_TYPES.JSXText;case u.StringLiteral:if(e.parent&&(e.parent.kind===u.JsxAttribute||e.parent.kind===u.JsxElement)){return o.AST_TOKEN_TYPES.JSXText}return o.AST_TOKEN_TYPES.String;case u.RegularExpressionLiteral:return o.AST_TOKEN_TYPES.RegularExpression;case u.Identifier:case u.ConstructorKeyword:case u.GetKeyword:case u.SetKeyword:default:}if(e.parent&&e.kind===u.Identifier){if(isJSXToken(e.parent)){return o.AST_TOKEN_TYPES.JSXIdentifier}if(e.parent.kind===u.PropertyAccessExpression&&hasJSXAncestor(e)){return o.AST_TOKEN_TYPES.JSXIdentifier}}return o.AST_TOKEN_TYPES.Identifier}t.getTokenType=getTokenType;function convertToken(e,t){const r=e.kind===u.JsxText?e.getFullStart():e.getStart(t);const n=e.getEnd();const i=t.text.slice(r,n);const a=getTokenType(e);if(a===o.AST_TOKEN_TYPES.RegularExpression){return{type:a,value:i,range:[r,n],loc:getLocFor(r,n,t),regex:{pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}}}else{return{type:a,value:i,range:[r,n],loc:getLocFor(r,n,t)}}}t.convertToken=convertToken;function convertTokens(e){const t=[];function walk(r){if(isComment(r)||isJSDocComment(r)){return}if(isToken(r)&&r.kind!==u.EndOfFileToken){const n=convertToken(r,e);if(n){t.push(n)}}else{r.getChildren(e).forEach(walk)}}walk(e);return t}t.convertTokens=convertTokens;class TSError extends Error{constructor(e,t,r,n,i){super(e);this.fileName=t;this.index=r;this.lineNumber=n;this.column=i;Object.defineProperty(this,"name",{value:new.target.name,enumerable:false,configurable:true})}}t.TSError=TSError;function createError(e,t,r){const n=e.getLineAndCharacterOfPosition(t);return new TSError(r,e.fileName,t,n.line+1,n.character)}t.createError=createError;function nodeHasTokens(e,t){return e.kind===u.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}t.nodeHasTokens=nodeHasTokens;function firstDefined(e,t){if(e===undefined){return undefined}for(let r=0;r{const s=this.api(t,e,r);s.once("error",a);s.on("data",e=>n.push(r.transform(e)));s.once("end",()=>i(n))})}api(e,t,r){if(t.dynamic){return this._reader.dynamic(e,r)}return this._reader.static(t.patterns,r)}}t.default=ProviderAsync},5128:function(e,t,r){"use strict";t.__esModule=true;var n=r(3574);var i=_interopRequireDefault(n);var a=r(2979);var s=_interopRequireDefault(a);t.insertBefore=insertBefore;t._containerInsert=_containerInsert;t._containerInsertBefore=_containerInsertBefore;t._containerInsertAfter=_containerInsertAfter;t._maybePopFromStatements=_maybePopFromStatements;t.insertAfter=insertAfter;t.updateSiblingKeys=updateSiblingKeys;t._verifyNodeList=_verifyNodeList;t.unshiftContainer=unshiftContainer;t.pushContainer=pushContainer;t.hoist=hoist;var o=r(6450);var c=r(412);var u=_interopRequireDefault(c);var l=r(4644);var p=_interopRequireDefault(l);var d=r(8011);var f=_interopRequireWildcard(d);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function insertBefore(e){this._assertUnremoved();e=this._verifyNodeList(e);if(this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement()){return this.parentPath.insertBefore(e)}else if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&this.key==="init"){if(this.node)e.push(this.node);this.replaceExpressionWithStatements(e)}else{this._maybePopFromStatements(e);if(Array.isArray(this.container)){return this._containerInsertBefore(e)}else if(this.isStatementOrBlock()){if(this.node)e.push(this.node);this._replaceWith(f.blockStatement(e))}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}return[this]}function _containerInsert(e,t){this.updateSiblingKeys(e,t.length);var r=[];for(var n=0;n=u.length)break;f=u[d++]}else{d=u.next();if(d.done)break;f=d.value}var m=f;m.setScope();m.debug(function(){return"Inserted."});for(var g=c,_=Array.isArray(g),h=0,g=_?g:(0,s.default)(g);;){var y;if(_){if(h>=g.length)break;y=g[h++]}else{h=g.next();if(h.done)break;y=h.value}var v=y;v.maybeQueue(m,true)}}return r}function _containerInsertBefore(e){return this._containerInsert(this.key,e)}function _containerInsertAfter(e){return this._containerInsert(this.key+1,e)}function _maybePopFromStatements(e){var t=e[e.length-1];var r=f.isIdentifier(t)||f.isExpressionStatement(t)&&f.isIdentifier(t.expression);if(r&&!this.isCompletionRecord()){e.pop()}}function insertAfter(e){this._assertUnremoved();e=this._verifyNodeList(e);if(this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement()){return this.parentPath.insertAfter(e)}else if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&this.key==="init"){if(this.node){var t=this.scope.generateDeclaredUidIdentifier();e.unshift(f.expressionStatement(f.assignmentExpression("=",t,this.node)));e.push(f.expressionStatement(t))}this.replaceExpressionWithStatements(e)}else{this._maybePopFromStatements(e);if(Array.isArray(this.container)){return this._containerInsertAfter(e)}else if(this.isStatementOrBlock()){if(this.node)e.unshift(this.node);this._replaceWith(f.blockStatement(e))}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}return[this]}function updateSiblingKeys(e,t){if(!this.parent)return;var r=o.path.get(this.parent);for(var n=0;n=e){i.key+=t}}}function _verifyNodeList(e){if(!e){return[]}if(e.constructor!==Array){e=[e]}for(var t=0;t0&&arguments[0]!==undefined?arguments[0]:this.scope;var t=new u.default(this,e);return t.run()}},5132:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getBaseClassMemberOfClassElement=t.getIteratorYieldResultFromIteratorResult=t.getInstanceTypeOfClassLikeDeclaration=t.getConstructorTypeOfClassLikeDeclaration=t.getSymbolOfClassLikeDeclaration=t.getPropertyNameFromType=t.symbolHasReadonlyDeclaration=t.isPropertyReadonlyInType=t.getWellKnownSymbolPropertyOfType=t.getPropertyOfType=t.isBooleanLiteralType=t.isFalsyType=t.isThenableType=t.someTypePart=t.intersectionTypeParts=t.unionTypeParts=t.getCallSignaturesOfType=t.isTypeAssignableToString=t.isTypeAssignableToNumber=t.isOptionalChainingUndefinedMarkerType=t.removeOptionalChainingUndefinedMarkerType=t.removeOptionalityFromType=t.isEmptyObjectType=void 0;const n=r(3186);const i=r(9817);const a=r(9833);const s=r(1121);function isEmptyObjectType(e){if(i.isObjectType(e)&&e.objectFlags&n.ObjectFlags.Anonymous&&e.getProperties().length===0&&e.getCallSignatures().length===0&&e.getConstructSignatures().length===0&&e.getStringIndexType()===undefined&&e.getNumberIndexType()===undefined){const t=e.getBaseTypes();return t===undefined||t.every(isEmptyObjectType)}return false}t.isEmptyObjectType=isEmptyObjectType;function removeOptionalityFromType(e,t){if(!containsTypeWithFlag(t,n.TypeFlags.Undefined))return t;const r=containsTypeWithFlag(t,n.TypeFlags.Null);t=e.getNonNullableType(t);return r?e.getNullableType(t,n.TypeFlags.Null):t}t.removeOptionalityFromType=removeOptionalityFromType;function containsTypeWithFlag(e,t){for(const r of unionTypeParts(e))if(a.isTypeFlagSet(r,t))return true;return false}function removeOptionalChainingUndefinedMarkerType(e,t){if(!i.isUnionType(t))return isOptionalChainingUndefinedMarkerType(e,t)?t.getNonNullableType():t;let r=0;let n=false;for(const i of t.types){if(isOptionalChainingUndefinedMarkerType(e,i)){n=true}else{r|=i.flags}}return n?e.getNullableType(t.getNonNullableType(),r):t}t.removeOptionalChainingUndefinedMarkerType=removeOptionalChainingUndefinedMarkerType;function isOptionalChainingUndefinedMarkerType(e,t){return a.isTypeFlagSet(t,n.TypeFlags.Undefined)&&e.getNullableType(t.getNonNullableType(),n.TypeFlags.Undefined)!==t}t.isOptionalChainingUndefinedMarkerType=isOptionalChainingUndefinedMarkerType;function isTypeAssignableToNumber(e,t){return isTypeAssignableTo(e,t,n.TypeFlags.NumberLike)}t.isTypeAssignableToNumber=isTypeAssignableToNumber;function isTypeAssignableToString(e,t){return isTypeAssignableTo(e,t,n.TypeFlags.StringLike)}t.isTypeAssignableToString=isTypeAssignableToString;function isTypeAssignableTo(e,t,r){r|=n.TypeFlags.Any;let s;return function check(t){if(i.isTypeParameter(t)&&t.symbol!==undefined&&t.symbol.declarations!==undefined){if(s===undefined){s=new Set([t])}else if(!s.has(t)){s.add(t)}else{return false}const r=t.symbol.declarations[0];if(r.constraint===undefined)return true;return check(e.getTypeFromTypeNode(r.constraint))}if(i.isUnionType(t))return t.types.every(check);if(i.isIntersectionType(t))return t.types.some(check);return a.isTypeFlagSet(t,r)}(t)}function getCallSignaturesOfType(e){if(i.isUnionType(e)){const t=[];for(const r of e.types)t.push(...getCallSignaturesOfType(r));return t}if(i.isIntersectionType(e)){let t;for(const r of e.types){const e=getCallSignaturesOfType(r);if(e.length!==0){if(t!==undefined)return[];t=e}}return t===undefined?[]:t}return e.getCallSignatures()}t.getCallSignaturesOfType=getCallSignaturesOfType;function unionTypeParts(e){return i.isUnionType(e)?e.types:[e]}t.unionTypeParts=unionTypeParts;function intersectionTypeParts(e){return i.isIntersectionType(e)?e.types:[e]}t.intersectionTypeParts=intersectionTypeParts;function someTypePart(e,t,r){return t(e)?e.types.some(r):r(e)}t.someTypePart=someTypePart;function isThenableType(e,t,r=e.getTypeAtLocation(t)){for(const n of unionTypeParts(e.getApparentType(r))){const r=n.getProperty("then");if(r===undefined)continue;const i=e.getTypeOfSymbolAtLocation(r,t);for(const r of unionTypeParts(i))for(const n of r.getCallSignatures())if(n.parameters.length!==0&&isCallback(e,n.parameters[0],t))return true}return false}t.isThenableType=isThenableType;function isCallback(e,t,r){let n=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken){n=n.getNumberIndexType();if(n===undefined)return false}for(const e of unionTypeParts(n))if(e.getCallSignatures().length!==0)return true;return false}function isFalsyType(e){if(e.flags&(n.TypeFlags.Undefined|n.TypeFlags.Null|n.TypeFlags.Void))return true;if(i.isLiteralType(e))return!e.value;return isBooleanLiteralType(e,false)}t.isFalsyType=isFalsyType;function isBooleanLiteralType(e,t){return a.isTypeFlagSet(e,n.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}t.isBooleanLiteralType=isBooleanLiteralType;function getPropertyOfType(e,t){if(!t.startsWith("__"))return e.getProperty(t);return e.getProperties().find(e=>e.escapedName===t)}t.getPropertyOfType=getPropertyOfType;function getWellKnownSymbolPropertyOfType(e,t,r){const n="__@"+t;for(const i of e.getProperties()){if(!i.name.startsWith(n))continue;const e=r.getApparentType(r.getTypeAtLocation(i.valueDeclaration.name.expression)).symbol;if(i.escapedName===getPropertyNameOfWellKnownSymbol(r,e,t))return i}return}t.getWellKnownSymbolPropertyOfType=getWellKnownSymbolPropertyOfType;function getPropertyNameOfWellKnownSymbol(e,t,r){const n=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(r);const a=n&&e.getTypeOfSymbolAtLocation(n,n.valueDeclaration);if(a&&i.isUniqueESSymbolType(a))return a.escapedName;return"__@"+r}function isPropertyReadonlyInType(e,t,r){let i=false;let s=false;for(const o of unionTypeParts(e)){if(getPropertyOfType(o,t)===undefined){const e=(a.isNumericPropertyName(t)?r.getIndexInfoOfType(o,n.IndexKind.Number):undefined)||r.getIndexInfoOfType(o,n.IndexKind.String);if(e!==undefined&&e.isReadonly){if(i)return true;s=true}}else if(s||isReadonlyPropertyIntersection(o,t,r)){return true}else{i=true}}return false}t.isPropertyReadonlyInType=isPropertyReadonlyInType;function isReadonlyPropertyIntersection(e,t,r){return someTypePart(e,i.isIntersectionType,e=>{const s=getPropertyOfType(e,t);if(s===undefined)return false;if(s.flags&n.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&i.isTupleTypeReference(e))return e.target.readonly;switch(isReadonlyPropertyFromMappedType(e,t,r)){case true:return true;case false:return false;default:}}return a.isSymbolFlagSet(s,n.SymbolFlags.ValueModule)||symbolHasReadonlyDeclaration(s,r)})}function isReadonlyPropertyFromMappedType(e,t,r){if(!i.isObjectType(e)||!a.isObjectFlagSet(e,n.ObjectFlags.Mapped))return;const s=e.symbol.declarations[0];if(s.readonlyToken!==undefined&&!/^__@[^@]+$/.test(t))return s.readonlyToken.kind!==n.SyntaxKind.MinusToken;return isPropertyReadonlyInType(e.modifiersType,t,r)}function symbolHasReadonlyDeclaration(e,t){return(e.flags&n.SymbolFlags.Accessor)===n.SymbolFlags.GetAccessor||e.declarations!==undefined&&e.declarations.some(e=>a.isModifierFlagSet(e,n.ModifierFlags.Readonly)||s.isVariableDeclaration(e)&&a.isNodeFlagSet(e.parent,n.NodeFlags.Const)||s.isCallExpression(e)&&a.isReadonlyAssignmentDeclaration(e,t)||s.isEnumMember(e)||(s.isPropertyAssignment(e)||s.isShorthandPropertyAssignment(e))&&a.isInConstContext(e.parent))}t.symbolHasReadonlyDeclaration=symbolHasReadonlyDeclaration;function getPropertyNameFromType(e){if(e.flags&(n.TypeFlags.StringLiteral|n.TypeFlags.NumberLiteral)){const t=String(e.value);return{displayName:t,symbolName:n.escapeLeadingUnderscores(t)}}if(i.isUniqueESSymbolType(e))return{displayName:`[${e.symbol?`${isKnownSymbol(e.symbol)?"Symbol.":""}${e.symbol.name}`:e.escapedName.replace(/^__@|@\d+$/g,"")}]`,symbolName:e.escapedName}}t.getPropertyNameFromType=getPropertyNameFromType;function isKnownSymbol(e){return a.isSymbolFlagSet(e,n.SymbolFlags.Property)&&e.valueDeclaration!==undefined&&s.isInterfaceDeclaration(e.valueDeclaration.parent)&&e.valueDeclaration.parent.name.text==="SymbolConstructor"&&isGlobalDeclaration(e.valueDeclaration.parent)}function isGlobalDeclaration(e){return a.isNodeFlagSet(e.parent,n.NodeFlags.GlobalAugmentation)||s.isSourceFile(e.parent)&&!n.isExternalModule(e.parent)}function getSymbolOfClassLikeDeclaration(e,t){var r;return t.getSymbolAtLocation((r=e.name)!==null&&r!==void 0?r:a.getChildOfKind(e,n.SyntaxKind.ClassKeyword))}t.getSymbolOfClassLikeDeclaration=getSymbolOfClassLikeDeclaration;function getConstructorTypeOfClassLikeDeclaration(e,t){return e.kind===n.SyntaxKind.ClassExpression?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(getSymbolOfClassLikeDeclaration(e,t),e)}t.getConstructorTypeOfClassLikeDeclaration=getConstructorTypeOfClassLikeDeclaration;function getInstanceTypeOfClassLikeDeclaration(e,t){return e.kind===n.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getDeclaredTypeOfSymbol(getSymbolOfClassLikeDeclaration(e,t))}t.getInstanceTypeOfClassLikeDeclaration=getInstanceTypeOfClassLikeDeclaration;function getIteratorYieldResultFromIteratorResult(e,t,r){return i.isUnionType(e)&&e.types.find(e=>{const n=e.getProperty("done");return n!==undefined&&isBooleanLiteralType(removeOptionalityFromType(r,r.getTypeOfSymbolAtLocation(n,t)),false)})||e}t.getIteratorYieldResultFromIteratorResult=getIteratorYieldResultFromIteratorResult;function getBaseClassMemberOfClassElement(e,t){if(!s.isClassLikeDeclaration(e.parent))return;const r=a.getBaseOfClassLikeExpression(e.parent);if(r===undefined)return;const i=a.getSingleLateBoundPropertyNameOfPropertyName(e.name,t);if(i===undefined)return;const o=t.getTypeAtLocation(a.hasModifier(e.modifiers,n.SyntaxKind.StaticKeyword)?r.expression:r);return getPropertyOfType(o,i.symbolName)}t.getBaseClassMemberOfClassElement=getBaseClassMemberOfClassElement},5160:function(e){var t=9007199254740991;var r=/^(?:0|[1-9]\d*)$/;function isIndex(e,n){var i=typeof e;n=n==null?t:n;return!!n&&(i=="number"||i!="symbol"&&r.test(e))&&(e>-1&&e%1==0&&e=2,has16m:e>=3}}function supportsColor(e,t){if(o===0){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(e&&!t&&o===undefined){return 0}const r=o||0;if(s.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},5249:function(e,t,r){var n=r(363),i=r(875),a=r(8797),s=r(9146),o=r(4514),c=r(1863);var u=Object.prototype;var l=u.hasOwnProperty;var p=a(function(e,t){if(o(t)||s(t)){i(t,c(t),e);return}for(var r in t){if(l.call(t,r)){n(e,r,t[r])}}});e.exports=p},5251:function(e,t,r){var n=r(6605).default;var i=r(1941).default;var a=r(5622);var s=r(5747);var o=r(8093);var c=/^\s*\[(.+)]\s*$/;var u=/^browserslist-config-/;var l=/@[^/]+\/browserslist-config(-|$|\/)/;var p=6*30*24*60*60*1e3;var d="Browserslist config should be a string or an array "+"of strings with browser queries";var f=false;var m={};var g={};function checkExtend(e){var t=" Use `dangerousExtend` option to disable.";if(!u.test(e)&&!l.test(e)){throw new o("Browserslist config needs `browserslist-config-` prefix. "+t)}if(e.replace(/^@[^/]+\//,"").indexOf(".")!==-1){throw new o("`.` not allowed in Browserslist config name. "+t)}if(e.indexOf("node_modules")!==-1){throw new o("`node_modules` not allowed in Browserslist config."+t)}}function isFile(e){if(e in m){return m[e]}var t=s.existsSync(e)&&s.statSync(e).isFile();if(!process.env.BROWSERSLIST_DISABLE_CACHE){m[e]=t}return t}function eachParent(e,t){var r=isFile(e)?a.dirname(e):e;var n=a.resolve(r);do{var i=t(n);if(typeof i!=="undefined")return i}while(n!==(n=a.dirname(n)));return undefined}function check(e){if(Array.isArray(e)){for(var t=0;t{const t=n.pattern.isDynamicPattern(e,this._settings);if(!t){return{dynamic:false,pattern:e}}return{dynamic:true,pattern:e,patternRe:n.pattern.makeRe(e,this._micromatchOptions)}})}_splitSegmentsIntoSections(e){return n.array.splitWhen(e,e=>e.dynamic&&n.pattern.hasGlobStar(e.pattern))}}t.default=Matcher},5326:function(e,t,r){"use strict";t.__esModule=true;var n=r(2979);var i=_interopRequireDefault(n);t.remove=remove;t._callRemovalHooks=_callRemovalHooks;t._remove=_remove;t._markRemoved=_markRemoved;t._assertUnremoved=_assertUnremoved;var a=r(7729);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function remove(){this._assertUnremoved();this.resync();if(this._callRemovalHooks()){this._markRemoved();return}this.shareCommentsWithSiblings();this._remove();this._markRemoved()}function _callRemovalHooks(){for(var e=a.hooks,t=Array.isArray(e),r=0,e=t?e:(0,i.default)(e);;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{r=e.next();if(r.done)break;n=r.value}var s=n;if(s(this,this.parentPath))return true}}function _remove(){if(Array.isArray(this.container)){this.container.splice(this.key,1);this.updateSiblingKeys(this.key,-1)}else{this._replaceWith(null)}}function _markRemoved(){this.shouldSkip=true;this.removed=true;this.node=null}function _assertUnremoved(){if(this.removed){throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}},5338:function(e){function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},5340:function(e,t,r){"use strict";var n=r(6581);var i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,i.default)("AssignmentPattern",{visitor:["left","right"],aliases:["Pattern","LVal"],fields:{left:{validate:(0,n.assertNodeType)("Identifier")},right:{validate:(0,n.assertNodeType)("Expression")},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator")))}}});(0,i.default)("ArrayPattern",{visitor:["elements","typeAnnotation"],aliases:["Pattern","LVal"],fields:{elements:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Identifier","Pattern","RestElement")))},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator")))}}});(0,i.default)("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{params:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("LVal")))},body:{validate:(0,n.assertNodeType)("BlockStatement","Expression")},async:{validate:(0,n.assertValueType)("boolean"),default:false}}});(0,i.default)("ClassBody",{visitor:["body"],fields:{body:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ClassMethod","ClassProperty")))}}});(0,i.default)("ClassDeclaration",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Statement","Declaration","Pureish"],fields:{id:{validate:(0,n.assertNodeType)("Identifier")},body:{validate:(0,n.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,n.assertNodeType)("Expression")},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator")))}}});(0,i.default)("ClassExpression",{inherits:"ClassDeclaration",aliases:["Scopable","Class","Expression","Pureish"],fields:{id:{optional:true,validate:(0,n.assertNodeType)("Identifier")},body:{validate:(0,n.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,n.assertNodeType)("Expression")},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator")))}}});(0,i.default)("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:(0,n.assertNodeType)("StringLiteral")}}});(0,i.default)("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,n.assertNodeType)("FunctionDeclaration","ClassDeclaration","Expression")}}});(0,i.default)("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,n.assertNodeType)("Declaration"),optional:true},specifiers:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ExportSpecifier")))},source:{validate:(0,n.assertNodeType)("StringLiteral"),optional:true}}});(0,i.default)("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,n.assertNodeType)("Identifier")},exported:{validate:(0,n.assertNodeType)("Identifier")}}});(0,i.default)("ForOfStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(0,n.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,n.assertNodeType)("Expression")},body:{validate:(0,n.assertNodeType)("Statement")}}});(0,i.default)("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,n.assertNodeType)("StringLiteral")}}});(0,i.default)("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,n.assertNodeType)("Identifier")}}});(0,i.default)("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,n.assertNodeType)("Identifier")}}});(0,i.default)("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,n.assertNodeType)("Identifier")},imported:{validate:(0,n.assertNodeType)("Identifier")},importKind:{validate:(0,n.assertOneOf)(null,"type","typeof")}}});(0,i.default)("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,n.assertValueType)("string")},property:{validate:(0,n.assertValueType)("string")}}});(0,i.default)("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:{kind:{validate:(0,n.chain)((0,n.assertValueType)("string"),(0,n.assertOneOf)("get","set","method","constructor")),default:"method"},computed:{default:false,validate:(0,n.assertValueType)("boolean")},static:{default:false,validate:(0,n.assertValueType)("boolean")},key:{validate:function validate(e,t,r){var i=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];n.assertNodeType.apply(undefined,i)(e,t,r)}},params:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("LVal")))},body:{validate:(0,n.assertNodeType)("BlockStatement")},generator:{default:false,validate:(0,n.assertValueType)("boolean")},async:{default:false,validate:(0,n.assertValueType)("boolean")}}});(0,i.default)("ObjectPattern",{visitor:["properties","typeAnnotation"],aliases:["Pattern","LVal"],fields:{properties:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("RestProperty","Property")))},decorators:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Decorator")))}}});(0,i.default)("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}});(0,i.default)("Super",{aliases:["Expression"]});(0,i.default)("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,n.assertNodeType)("Expression")},quasi:{validate:(0,n.assertNodeType)("TemplateLiteral")}}});(0,i.default)("TemplateElement",{builder:["value","tail"],fields:{value:{},tail:{validate:(0,n.assertValueType)("boolean"),default:false}}});(0,i.default)("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("TemplateElement")))},expressions:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("Expression")))}}});(0,i.default)("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,n.assertValueType)("boolean"),default:false},argument:{optional:true,validate:(0,n.assertNodeType)("Expression")}}})},5344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=r(6677);var i=r(4247);var a=r(9978);var s=r(8657);const{isProgram:o,isFile:c,isEmptyStatement:u}=a;const l=/e/i;const p=/\.0+$/;const d=/^0[box]/;const f=/^\s*[@#]__PURE__\s*$/;const{needsParens:m,needsWhitespaceAfter:g,needsWhitespaceBefore:_}=i;class Printer{constructor(e,t){this.inForStatementInitCounter=0;this._printStack=[];this._indent=0;this._insideAux=false;this._parenPushNewlineState=null;this._noLineTerminator=false;this._printAuxAfterOnNextUserNode=false;this._printedComments=new WeakSet;this._endsWithInteger=false;this._endsWithWord=false;this.format=e;this._buf=new n.default(t)}generate(e){this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){if(this.format.compact||this.format.concise)return;this._indent++}dedent(){if(this.format.compact||this.format.concise)return;this._indent--}semicolon(e=false){this._maybeAddAuxComment();this._append(";",!e)}rightBrace(){if(this.format.minified){this._buf.removeLastSemicolon()}this.token("}")}space(e=false){if(this.format.compact)return;if(e){this._space()}else if(this._buf.hasContent()){const e=this.getLastChar();if(e!==32&&e!==10){this._space()}}}word(e){if(this._endsWithWord||this.endsWith(47)&&e.charCodeAt(0)===47){this._space()}this._maybeAddAuxComment();this._append(e);this._endsWithWord=true}number(e){this.word(e);this._endsWithInteger=Number.isInteger(+e)&&!d.test(e)&&!l.test(e)&&!p.test(e)&&e.charCodeAt(e.length-1)!==46}token(e){const t=this.getLastChar();const r=e.charCodeAt(0);if(e==="--"&&t===33||r===43&&t===43||r===45&&t===45||r===46&&this._endsWithInteger){this._space()}this._maybeAddAuxComment();this._append(e)}newline(e=1){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}const t=this.endsWithCharAndNewline();if(t===10)return;if(t===123||t===58){e--}if(e<=0)return;for(let t=0;t{n.call(this,e,t)});this._printTrailingComments(e);if(a)this.token(")");this._printStack.pop();this.format.concise=r;this._insideAux=i}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e})}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e})}}getPossibleRaw(e){const t=e.extra;if(t&&t.raw!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r={}){if(!(e!=null&&e.length))return;if(r.indent)this.indent();const n={addNewlines:r.addNewlines};for(let i=0;i0;if(r)this.indent();this.print(e,t);if(r)this.dedent()}printBlock(e){const t=e.body;if(!u(t)){this.space()}this.print(t,e)}_printTrailingComments(e){this._printComments(this._getComments(false,e))}_printLeadingComments(e){this._printComments(this._getComments(true,e),true)}printInnerComments(e,t=true){var r;if(!((r=e.innerComments)!=null&&r.length))return;if(t)this.indent();this._printComments(e.innerComments);if(t)this.dedent()}printSequence(e,t,r={}){r.statement=true;return this.printJoin(e,t,r)}printList(e,t,r={}){if(r.separator==null){r.separator=commaSeparator}return this.printJoin(e,t,r)}_printNewline(e,t,r,n){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}let i=0;if(this._buf.hasContent()){if(!e)i++;if(n.addNewlines)i+=n.addNewlines(e,t)||0;const a=e?_:g;if(a(t,r))i++}this.newline(Math.min(2,i))}_getComments(e,t){return t&&(e?t.leadingComments:t.trailingComments)||[]}_printComment(e,t){if(!this.format.shouldPrintComment(e.value))return;if(e.ignore)return;if(this._printedComments.has(e))return;this._printedComments.add(e);const r=e.type==="CommentBlock";const n=r&&!t&&!this._noLineTerminator;if(n&&this._buf.hasContent())this.newline(1);const i=this.getLastChar();if(i!==91&&i!==123){this.space()}let a=!r&&!this._noLineTerminator?`//${e.value}\n`:`/*${e.value}*/`;if(r&&this.format.indent.adjustMultilineComment){var s;const t=(s=e.loc)==null?void 0:s.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}const r=Math.max(this._getIndent().length,this.format.retainLines?0:this._buf.getCurrentColumn());a=a.replace(/\n(?!$)/g,`\n${" ".repeat(r)}`)}if(this.endsWith(47))this._space();this.withSource("start",e.loc,()=>{this._append(a)});if(n)this.newline(1)}_printComments(e,t){if(!(e!=null&&e.length))return;if(t&&e.length===1&&f.test(e[0].value)){this._printComment(e[0],this._buf.hasContent()&&!this.endsWith(10))}else{for(const t of e){this._printComment(t)}}}printAssertions(e){var t;if((t=e.assertions)!=null&&t.length){this.space();this.word("assert");this.space();this.token("{");this.space();this.printList(e.assertions,e);this.space();this.token("}")}}}Object.assign(Printer.prototype,s);{Printer.prototype.Noop=function Noop(){}}var h=Printer;t.default=h;function commaSeparator(){this.token(",");this.space()}},5356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},5357:function(e,t,r){var n=r(8888);var i={"{":"}","(":")","[":"]"};var a=function(e){if(e[0]==="!"){return true}var t=0;while(tt){var n=e.indexOf("\\",t);if(n===-1||n>r){return true}}}if(e[t]==="{"&&e[t+1]!=="}"){r=e.indexOf("}",t);if(r>t){n=e.indexOf("\\",t);if(n===-1||n>r){return true}}}if(e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){r=e.indexOf(")",t);if(r>t){n=e.indexOf("\\",t);if(n===-1||n>r){return true}}}if(e[t]==="("&&e[t+1]!=="|"){var a=e.indexOf("|",t);if(a>t&&e[a+1]!==")"){r=e.indexOf(")",a);if(r>a){n=e.indexOf("\\",a);if(n===-1||n>r){return true}}}}if(e[t]==="\\"){var s=e[t+1];t+=2;var o=i[s];if(o){var c=e.indexOf(o,t);if(c!==-1){t=c+1}}if(e[t]==="!"){return true}}else{t++}}return false};var s=function(e){if(e[0]==="!"){return true}var t=0;while(ti){throw new TypeError(`version is longer than ${i} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},5375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2444);class ErrorFilter{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return n.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}t.default=ErrorFilter},5378:function(e,t,r){var n=r(7727);function baseValues(e,t){return n(t,function(t){return e[t]})}e.exports=baseValues},5382:function(e,t,r){var n=r(8319);var i=function(){try{var e=n(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=i},5384:function(e,t,r){var n=r(7734);var i=Math.max;var a=Math.min;e.exports=function(e,t){e=n(e);return e<0?i(e+t,0):a(e,t)}},5390:function(e,t,r){"use strict";var n=r(7567);var i=r(2851);var a=r(8938);var s={};r(891)(s,r(4439)("iterator"),function(){return this});e.exports=function(e,t,r){e.prototype=n(s,{next:i(1,r)});a(e,t+" Iterator")}},5392:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=populatePlaceholders;var n=r(9978);const{blockStatement:i,cloneNode:a,emptyStatement:s,expressionStatement:o,identifier:c,isStatement:u,isStringLiteral:l,stringLiteral:p,validate:d}=n;function populatePlaceholders(e,t){const r=a(e.ast);if(t){e.placeholders.forEach(e=>{if(!Object.prototype.hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}});Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t)){throw new Error(`Unknown substitution "${t}" given`)}})}e.placeholders.slice().reverse().forEach(e=>{try{applyReplacement(e,r,t&&t[e.name]||null)}catch(t){t.message=`@babel/template placeholder "${e.name}": ${t.message}`;throw t}});return r}function applyReplacement(e,t,r){if(e.isDuplicate){if(Array.isArray(r)){r=r.map(e=>a(e))}else if(typeof r==="object"){r=a(r)}}const{parent:n,key:f,index:m}=e.resolve(t);if(e.type==="string"){if(typeof r==="string"){r=p(r)}if(!r||!l(r)){throw new Error("Expected string substitution")}}else if(e.type==="statement"){if(m===undefined){if(!r){r=s()}else if(Array.isArray(r)){r=i(r)}else if(typeof r==="string"){r=o(c(r))}else if(!u(r)){r=o(r)}}else{if(r&&!Array.isArray(r)){if(typeof r==="string"){r=c(r)}if(!u(r)){r=o(r)}}}}else if(e.type==="param"){if(typeof r==="string"){r=c(r)}if(m===undefined)throw new Error("Assertion failure.")}else{if(typeof r==="string"){r=c(r)}if(Array.isArray(r)){throw new Error("Cannot replace single expression with an array.")}}if(m===undefined){d(n,f,r);n[f]=r}else{const t=n[f].slice();if(e.type==="statement"||e.type==="param"){if(r==null){t.splice(m,1)}else if(Array.isArray(r)){t.splice(m,1,...r)}else{t[m]=r}}else{t[m]=r}d(n,f,t);n[f]=t}}},5418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;const n=r(5622);const i=2;const a=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(e){return e.replace(/\\/g,"/")}t.unixify=unixify;function makeAbsolute(e,t){return n.resolve(e,t)}t.makeAbsolute=makeAbsolute;function escape(e){return e.replace(a,"\\$2")}t.escape=escape;function removeLeadingDotSegment(e){if(e.charAt(0)==="."){const t=e.charAt(1);if(t==="/"||t==="\\"){return e.slice(i)}}return e}t.removeLeadingDotSegment=removeLeadingDotSegment},5423:function(e,t,r){var n=r(8319),i=r(7824);var a=n(i,"Set");e.exports=a},5439:function(e,t,r){var n=r(8229),i=r(4231),a=r(616);var s=a&&a.isMap;var o=s?i(s):n;e.exports=o},5440:function(e){"use strict";function reusify(e){var t=new e;var r=t;function get(){var n=t;if(n.next){t=n.next}else{t=new e;r=t}n.next=null;return n}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},5455:function(e){function baseIsNaN(e){return e!==e}e.exports=baseIsNaN},5459:function(e,t,r){const n=r(7418);class Decorator{constructor(e){this.tests=e.map(e=>{if(!e.suites)e.suites=[];return e});this.fileLink=`https://github.com/${process.env.GITHUB_REPOSITORY}/tree/${process.env.GITHUB_SHA}`;this.isCommentEnabled=false;this.comments={}}enableComment(){this.isCommentEnabled=true}disableComment(){this.isCommentEnabled=false}getTests(){return this.tests}count(){return this.tests.length}append(e){this.tests=this.tests.concat(e)}getTestNames(){return this.tests.map(e=>e.name)}getFullNames(){return this.tests.filter(e=>!e.skipped).map(e=>{return`${e.suites.join(": ")}: ${e.name}`})}getSuiteNames(){return[...new Set(this.tests.map(e=>e.suites.join(": ")))]}getTestsInSuite(e){return this.tests.filter(t=>t.suites.join(": ").startsWith(e))}getSkippedTests(){return this.tests.filter(e=>e.skipped)}getSkippedTestFullNames(){return this.getSkippedTests().map(e=>{return`${e.suites.join(": ")}: ${e.name}`})}getSkippedMarkdownList(){const e=[];const t=this.getSkippedTests();for(const r of t){e.push(`* [~~${escapeSpecial(r.name)}~~]`+`(${this.fileLink}/${r.file}#L${r.line})`)}return e}getSuitesMarkdownList(){const e=[];for(const t of this.tests){const r=t.suites[0]||"";const n=this.getTestsInSuite(r).length;const i=`* **${r} (${n} tests)** [${t.file}](${this.fileLink}/${t.file})`;if(e.indexOf(i)<0){e.push(i)}}return e}getTextList(){const e=[];let t=[];const r=r=>{const n=r.suites;if(t.length>n.length){t=t.slice(0,n.length)}for(let r=0;r{const n=r.suites;if(t.length>n.length){t=t.slice(0,n.length)}for(let r=0;r{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n0?arguments[0]:undefined)}};var v={get:function get(e){if(u(e)){var t=m(e);if(t===true)return _(l(this,f)).get(e);return t?t[this._i]:undefined}},set:function set(e,t){return c.def(l(this,f),e,t)}};var T=e.exports=r(4457)(f,y,v,c,true,true);if(p&&d){h=c.getConstructor(y,f);o(h.prototype,v);s.NEED=true;i(["delete","has","get","set"],function(e){var t=T.prototype;var r=t[e];a(t,e,function(t,n){if(u(t)&&!g(t)){if(!this._f)this._f=new h;var i=this._f[e](t,n);return e=="set"?this:i}return r.call(this,t,n)})})}},5597:function(e,t,r){"use strict";var n=r(5747);var i=r(5622);var a=r(4149);Object.defineProperty(t,"commentRegex",{get:function getCommentRegex(){return/^\s*\/(?:\/|\*)[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/gm}});Object.defineProperty(t,"mapFileCommentRegex",{get:function getMapFileCommentRegex(){return/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/gm}});function decodeBase64(e){return(a.Buffer.from(e,"base64")||"").toString()}function stripComment(e){return e.split(",").pop()}function readFromFileMap(e,r){var a=t.mapFileCommentRegex.exec(e);var s=a[1]||a[2];var o=i.resolve(r,s);try{return n.readFileSync(o,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+o+"\n"+e)}}function Converter(e,t){t=t||{};if(t.isFileComment)e=readFromFileMap(e,t.commentFileDir);if(t.hasComment)e=stripComment(e);if(t.isEncoded)e=decodeBase64(e);if(t.isJSON||t.isEncoded)e=JSON.parse(e);this.sourcemap=e}Converter.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};Converter.prototype.toBase64=function(){var e=this.toJSON();return(a.Buffer.from(e,"utf8")||"").toString("base64")};Converter.prototype.toComment=function(e){var t=this.toBase64();var r="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return e&&e.multiline?"/*# "+r+" */":"//# "+r};Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())};Converter.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};Converter.prototype.setProperty=function(e,t){this.sourcemap[e]=t;return this};Converter.prototype.getProperty=function(e){return this.sourcemap[e]};t.fromObject=function(e){return new Converter(e)};t.fromJSON=function(e){return new Converter(e,{isJSON:true})};t.fromBase64=function(e){return new Converter(e,{isEncoded:true})};t.fromComment=function(e){e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,"");return new Converter(e,{isEncoded:true,hasComment:true})};t.fromMapFileComment=function(e,t){return new Converter(e,{commentFileDir:t,isFileComment:true,isJSON:true})};t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null};t.fromMapFileSource=function(e,r){var n=e.match(t.mapFileCommentRegex);return n?t.fromMapFileComment(n.pop(),r):null};t.removeComments=function(e){return e.replace(t.commentRegex,"")};t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")};t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},5602:function(e){var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},5606:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=toBlock;var n=r(4897);var i=r(6405);function toBlock(e,t){if((0,n.isBlockStatement)(e)){return e}let r=[];if((0,n.isEmptyStatement)(e)){r=[]}else{if(!(0,n.isStatement)(e)){if((0,n.isFunction)(t)){e=(0,i.returnStatement)(e)}else{e=(0,i.expressionStatement)(e)}}r=[e]}return(0,i.blockStatement)(r)}},5622:function(e){e.exports=require("path")},5680:function(e,t,r){var n=r(7734);var i=r(7818);e.exports=function(e){return function(t,r){var a=String(i(t));var s=n(r);var o=a.length;var c,u;if(s<0||s>=o)return e?"":undefined;c=a.charCodeAt(s);return c<55296||c>56319||s+1===o||(u=a.charCodeAt(s+1))<56320||u>57343?e?a.charAt(s):c:e?a.slice(s,s+2):(c-55296<<10)+(u-56320)+65536}}},5681:function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},5687:function(e){e.exports={builtin:{Array:false,ArrayBuffer:false,Atomics:false,BigInt:false,BigInt64Array:false,BigUint64Array:false,Boolean:false,constructor:false,DataView:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Float32Array:false,Float64Array:false,Function:false,globalThis:false,hasOwnProperty:false,Infinity:false,Int16Array:false,Int32Array:false,Int8Array:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Map:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,Promise:false,propertyIsEnumerable:false,Proxy:false,RangeError:false,ReferenceError:false,Reflect:false,RegExp:false,Set:false,SharedArrayBuffer:false,String:false,Symbol:false,SyntaxError:false,toLocaleString:false,toString:false,TypeError:false,Uint16Array:false,Uint32Array:false,Uint8Array:false,Uint8ClampedArray:false,undefined:false,unescape:false,URIError:false,valueOf:false,WeakMap:false,WeakSet:false},es5:{Array:false,Boolean:false,constructor:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Function:false,hasOwnProperty:false,Infinity:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,propertyIsEnumerable:false,RangeError:false,ReferenceError:false,RegExp:false,String:false,SyntaxError:false,toLocaleString:false,toString:false,TypeError:false,undefined:false,unescape:false,URIError:false,valueOf:false},es2015:{Array:false,ArrayBuffer:false,Boolean:false,constructor:false,DataView:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Float32Array:false,Float64Array:false,Function:false,hasOwnProperty:false,Infinity:false,Int16Array:false,Int32Array:false,Int8Array:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Map:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,Promise:false,propertyIsEnumerable:false,Proxy:false,RangeError:false,ReferenceError:false,Reflect:false,RegExp:false,Set:false,String:false,Symbol:false,SyntaxError:false,toLocaleString:false,toString:false,TypeError:false,Uint16Array:false,Uint32Array:false,Uint8Array:false,Uint8ClampedArray:false,undefined:false,unescape:false,URIError:false,valueOf:false,WeakMap:false,WeakSet:false},es2017:{Array:false,ArrayBuffer:false,Atomics:false,Boolean:false,constructor:false,DataView:false,Date:false,decodeURI:false,decodeURIComponent:false,encodeURI:false,encodeURIComponent:false,Error:false,escape:false,eval:false,EvalError:false,Float32Array:false,Float64Array:false,Function:false,hasOwnProperty:false,Infinity:false,Int16Array:false,Int32Array:false,Int8Array:false,isFinite:false,isNaN:false,isPrototypeOf:false,JSON:false,Map:false,Math:false,NaN:false,Number:false,Object:false,parseFloat:false,parseInt:false,Promise:false,propertyIsEnumerable:false,Proxy:false,RangeError:false,ReferenceError:false,Reflect:false,RegExp:false,Set:false,SharedArrayBuffer:false,String:false,Symbol:false,SyntaxError:false,toLocaleString:false,toString:false,TypeError:false,Uint16Array:false,Uint32Array:false,Uint8Array:false,Uint8ClampedArray:false,undefined:false,unescape:false,URIError:false,valueOf:false,WeakMap:false,WeakSet:false},browser:{AbortController:false,AbortSignal:false,addEventListener:false,alert:false,AnalyserNode:false,Animation:false,AnimationEffectReadOnly:false,AnimationEffectTiming:false,AnimationEffectTimingReadOnly:false,AnimationEvent:false,AnimationPlaybackEvent:false,AnimationTimeline:false,applicationCache:false,ApplicationCache:false,ApplicationCacheErrorEvent:false,atob:false,Attr:false,Audio:false,AudioBuffer:false,AudioBufferSourceNode:false,AudioContext:false,AudioDestinationNode:false,AudioListener:false,AudioNode:false,AudioParam:false,AudioProcessingEvent:false,AudioScheduledSourceNode:false,"AudioWorkletGlobalScope ":false,AudioWorkletNode:false,AudioWorkletProcessor:false,BarProp:false,BaseAudioContext:false,BatteryManager:false,BeforeUnloadEvent:false,BiquadFilterNode:false,Blob:false,BlobEvent:false,blur:false,BroadcastChannel:false,btoa:false,BudgetService:false,ByteLengthQueuingStrategy:false,Cache:false,caches:false,CacheStorage:false,cancelAnimationFrame:false,cancelIdleCallback:false,CanvasCaptureMediaStreamTrack:false,CanvasGradient:false,CanvasPattern:false,CanvasRenderingContext2D:false,ChannelMergerNode:false,ChannelSplitterNode:false,CharacterData:false,clearInterval:false,clearTimeout:false,clientInformation:false,ClipboardEvent:false,close:false,closed:false,CloseEvent:false,Comment:false,CompositionEvent:false,confirm:false,console:false,ConstantSourceNode:false,ConvolverNode:false,CountQueuingStrategy:false,createImageBitmap:false,Credential:false,CredentialsContainer:false,crypto:false,Crypto:false,CryptoKey:false,CSS:false,CSSConditionRule:false,CSSFontFaceRule:false,CSSGroupingRule:false,CSSImportRule:false,CSSKeyframeRule:false,CSSKeyframesRule:false,CSSMediaRule:false,CSSNamespaceRule:false,CSSPageRule:false,CSSRule:false,CSSRuleList:false,CSSStyleDeclaration:false,CSSStyleRule:false,CSSStyleSheet:false,CSSSupportsRule:false,CustomElementRegistry:false,customElements:false,CustomEvent:false,DataTransfer:false,DataTransferItem:false,DataTransferItemList:false,defaultstatus:false,defaultStatus:false,DelayNode:false,DeviceMotionEvent:false,DeviceOrientationEvent:false,devicePixelRatio:false,dispatchEvent:false,document:false,Document:false,DocumentFragment:false,DocumentType:false,DOMError:false,DOMException:false,DOMImplementation:false,DOMMatrix:false,DOMMatrixReadOnly:false,DOMParser:false,DOMPoint:false,DOMPointReadOnly:false,DOMQuad:false,DOMRect:false,DOMRectReadOnly:false,DOMStringList:false,DOMStringMap:false,DOMTokenList:false,DragEvent:false,DynamicsCompressorNode:false,Element:false,ErrorEvent:false,event:false,Event:false,EventSource:false,EventTarget:false,external:false,fetch:false,File:false,FileList:false,FileReader:false,find:false,focus:false,FocusEvent:false,FontFace:false,FontFaceSetLoadEvent:false,FormData:false,frameElement:false,frames:false,GainNode:false,Gamepad:false,GamepadButton:false,GamepadEvent:false,getComputedStyle:false,getSelection:false,HashChangeEvent:false,Headers:false,history:false,History:false,HTMLAllCollection:false,HTMLAnchorElement:false,HTMLAreaElement:false,HTMLAudioElement:false,HTMLBaseElement:false,HTMLBodyElement:false,HTMLBRElement:false,HTMLButtonElement:false,HTMLCanvasElement:false,HTMLCollection:false,HTMLContentElement:false,HTMLDataElement:false,HTMLDataListElement:false,HTMLDetailsElement:false,HTMLDialogElement:false,HTMLDirectoryElement:false,HTMLDivElement:false,HTMLDListElement:false,HTMLDocument:false,HTMLElement:false,HTMLEmbedElement:false,HTMLFieldSetElement:false,HTMLFontElement:false,HTMLFormControlsCollection:false,HTMLFormElement:false,HTMLFrameElement:false,HTMLFrameSetElement:false,HTMLHeadElement:false,HTMLHeadingElement:false,HTMLHRElement:false,HTMLHtmlElement:false,HTMLIFrameElement:false,HTMLImageElement:false,HTMLInputElement:false,HTMLLabelElement:false,HTMLLegendElement:false,HTMLLIElement:false,HTMLLinkElement:false,HTMLMapElement:false,HTMLMarqueeElement:false,HTMLMediaElement:false,HTMLMenuElement:false,HTMLMetaElement:false,HTMLMeterElement:false,HTMLModElement:false,HTMLObjectElement:false,HTMLOListElement:false,HTMLOptGroupElement:false,HTMLOptionElement:false,HTMLOptionsCollection:false,HTMLOutputElement:false,HTMLParagraphElement:false,HTMLParamElement:false,HTMLPictureElement:false,HTMLPreElement:false,HTMLProgressElement:false,HTMLQuoteElement:false,HTMLScriptElement:false,HTMLSelectElement:false,HTMLShadowElement:false,HTMLSlotElement:false,HTMLSourceElement:false,HTMLSpanElement:false,HTMLStyleElement:false,HTMLTableCaptionElement:false,HTMLTableCellElement:false,HTMLTableColElement:false,HTMLTableElement:false,HTMLTableRowElement:false,HTMLTableSectionElement:false,HTMLTemplateElement:false,HTMLTextAreaElement:false,HTMLTimeElement:false,HTMLTitleElement:false,HTMLTrackElement:false,HTMLUListElement:false,HTMLUnknownElement:false,HTMLVideoElement:false,IDBCursor:false,IDBCursorWithValue:false,IDBDatabase:false,IDBFactory:false,IDBIndex:false,IDBKeyRange:false,IDBObjectStore:false,IDBOpenDBRequest:false,IDBRequest:false,IDBTransaction:false,IDBVersionChangeEvent:false,IdleDeadline:false,IIRFilterNode:false,Image:false,ImageBitmap:false,ImageBitmapRenderingContext:false,ImageCapture:false,ImageData:false,indexedDB:false,innerHeight:false,innerWidth:false,InputEvent:false,IntersectionObserver:false,IntersectionObserverEntry:false,Intl:false,isSecureContext:false,KeyboardEvent:false,KeyframeEffect:false,KeyframeEffectReadOnly:false,length:false,localStorage:false,location:true,Location:false,locationbar:false,matchMedia:false,MediaDeviceInfo:false,MediaDevices:false,MediaElementAudioSourceNode:false,MediaEncryptedEvent:false,MediaError:false,MediaKeyMessageEvent:false,MediaKeySession:false,MediaKeyStatusMap:false,MediaKeySystemAccess:false,MediaList:false,MediaQueryList:false,MediaQueryListEvent:false,MediaRecorder:false,MediaSettingsRange:false,MediaSource:false,MediaStream:false,MediaStreamAudioDestinationNode:false,MediaStreamAudioSourceNode:false,MediaStreamEvent:false,MediaStreamTrack:false,MediaStreamTrackEvent:false,menubar:false,MessageChannel:false,MessageEvent:false,MessagePort:false,MIDIAccess:false,MIDIConnectionEvent:false,MIDIInput:false,MIDIInputMap:false,MIDIMessageEvent:false,MIDIOutput:false,MIDIOutputMap:false,MIDIPort:false,MimeType:false,MimeTypeArray:false,MouseEvent:false,moveBy:false,moveTo:false,MutationEvent:false,MutationObserver:false,MutationRecord:false,name:false,NamedNodeMap:false,NavigationPreloadManager:false,navigator:false,Navigator:false,NetworkInformation:false,Node:false,NodeFilter:false,NodeIterator:false,NodeList:false,Notification:false,OfflineAudioCompletionEvent:false,OfflineAudioContext:false,offscreenBuffering:false,OffscreenCanvas:true,onabort:true,onafterprint:true,onanimationend:true,onanimationiteration:true,onanimationstart:true,onappinstalled:true,onauxclick:true,onbeforeinstallprompt:true,onbeforeprint:true,onbeforeunload:true,onblur:true,oncancel:true,oncanplay:true,oncanplaythrough:true,onchange:true,onclick:true,onclose:true,oncontextmenu:true,oncuechange:true,ondblclick:true,ondevicemotion:true,ondeviceorientation:true,ondeviceorientationabsolute:true,ondrag:true,ondragend:true,ondragenter:true,ondragleave:true,ondragover:true,ondragstart:true,ondrop:true,ondurationchange:true,onemptied:true,onended:true,onerror:true,onfocus:true,ongotpointercapture:true,onhashchange:true,oninput:true,oninvalid:true,onkeydown:true,onkeypress:true,onkeyup:true,onlanguagechange:true,onload:true,onloadeddata:true,onloadedmetadata:true,onloadstart:true,onlostpointercapture:true,onmessage:true,onmessageerror:true,onmousedown:true,onmouseenter:true,onmouseleave:true,onmousemove:true,onmouseout:true,onmouseover:true,onmouseup:true,onmousewheel:true,onoffline:true,ononline:true,onpagehide:true,onpageshow:true,onpause:true,onplay:true,onplaying:true,onpointercancel:true,onpointerdown:true,onpointerenter:true,onpointerleave:true,onpointermove:true,onpointerout:true,onpointerover:true,onpointerup:true,onpopstate:true,onprogress:true,onratechange:true,onrejectionhandled:true,onreset:true,onresize:true,onscroll:true,onsearch:true,onseeked:true,onseeking:true,onselect:true,onstalled:true,onstorage:true,onsubmit:true,onsuspend:true,ontimeupdate:true,ontoggle:true,ontransitionend:true,onunhandledrejection:true,onunload:true,onvolumechange:true,onwaiting:true,onwheel:true,open:false,openDatabase:false,opener:false,Option:false,origin:false,OscillatorNode:false,outerHeight:false,outerWidth:false,PageTransitionEvent:false,pageXOffset:false,pageYOffset:false,PannerNode:false,parent:false,Path2D:false,PaymentAddress:false,PaymentRequest:false,PaymentRequestUpdateEvent:false,PaymentResponse:false,performance:false,Performance:false,PerformanceEntry:false,PerformanceLongTaskTiming:false,PerformanceMark:false,PerformanceMeasure:false,PerformanceNavigation:false,PerformanceNavigationTiming:false,PerformanceObserver:false,PerformanceObserverEntryList:false,PerformancePaintTiming:false,PerformanceResourceTiming:false,PerformanceTiming:false,PeriodicWave:false,Permissions:false,PermissionStatus:false,personalbar:false,PhotoCapabilities:false,Plugin:false,PluginArray:false,PointerEvent:false,PopStateEvent:false,postMessage:false,Presentation:false,PresentationAvailability:false,PresentationConnection:false,PresentationConnectionAvailableEvent:false,PresentationConnectionCloseEvent:false,PresentationConnectionList:false,PresentationReceiver:false,PresentationRequest:false,print:false,ProcessingInstruction:false,ProgressEvent:false,PromiseRejectionEvent:false,prompt:false,PushManager:false,PushSubscription:false,PushSubscriptionOptions:false,queueMicrotask:false,RadioNodeList:false,Range:false,ReadableStream:false,registerProcessor:false,RemotePlayback:false,removeEventListener:false,Request:false,requestAnimationFrame:false,requestIdleCallback:false,resizeBy:false,ResizeObserver:false,ResizeObserverEntry:false,resizeTo:false,Response:false,RTCCertificate:false,RTCDataChannel:false,RTCDataChannelEvent:false,RTCDtlsTransport:false,RTCIceCandidate:false,RTCIceGatherer:false,RTCIceTransport:false,RTCPeerConnection:false,RTCPeerConnectionIceEvent:false,RTCRtpContributingSource:false,RTCRtpReceiver:false,RTCRtpSender:false,RTCSctpTransport:false,RTCSessionDescription:false,RTCStatsReport:false,RTCTrackEvent:false,screen:false,Screen:false,screenLeft:false,ScreenOrientation:false,screenTop:false,screenX:false,screenY:false,ScriptProcessorNode:false,scroll:false,scrollbars:false,scrollBy:false,scrollTo:false,scrollX:false,scrollY:false,SecurityPolicyViolationEvent:false,Selection:false,self:false,ServiceWorker:false,ServiceWorkerContainer:false,ServiceWorkerRegistration:false,sessionStorage:false,setInterval:false,setTimeout:false,ShadowRoot:false,SharedWorker:false,SourceBuffer:false,SourceBufferList:false,speechSynthesis:false,SpeechSynthesisEvent:false,SpeechSynthesisUtterance:false,StaticRange:false,status:false,statusbar:false,StereoPannerNode:false,stop:false,Storage:false,StorageEvent:false,StorageManager:false,styleMedia:false,StyleSheet:false,StyleSheetList:false,SubtleCrypto:false,SVGAElement:false,SVGAngle:false,SVGAnimatedAngle:false,SVGAnimatedBoolean:false,SVGAnimatedEnumeration:false,SVGAnimatedInteger:false,SVGAnimatedLength:false,SVGAnimatedLengthList:false,SVGAnimatedNumber:false,SVGAnimatedNumberList:false,SVGAnimatedPreserveAspectRatio:false,SVGAnimatedRect:false,SVGAnimatedString:false,SVGAnimatedTransformList:false,SVGAnimateElement:false,SVGAnimateMotionElement:false,SVGAnimateTransformElement:false,SVGAnimationElement:false,SVGCircleElement:false,SVGClipPathElement:false,SVGComponentTransferFunctionElement:false,SVGDefsElement:false,SVGDescElement:false,SVGDiscardElement:false,SVGElement:false,SVGEllipseElement:false,SVGFEBlendElement:false,SVGFEColorMatrixElement:false,SVGFEComponentTransferElement:false,SVGFECompositeElement:false,SVGFEConvolveMatrixElement:false,SVGFEDiffuseLightingElement:false,SVGFEDisplacementMapElement:false,SVGFEDistantLightElement:false,SVGFEDropShadowElement:false,SVGFEFloodElement:false,SVGFEFuncAElement:false,SVGFEFuncBElement:false,SVGFEFuncGElement:false,SVGFEFuncRElement:false,SVGFEGaussianBlurElement:false,SVGFEImageElement:false,SVGFEMergeElement:false,SVGFEMergeNodeElement:false,SVGFEMorphologyElement:false,SVGFEOffsetElement:false,SVGFEPointLightElement:false,SVGFESpecularLightingElement:false,SVGFESpotLightElement:false,SVGFETileElement:false,SVGFETurbulenceElement:false,SVGFilterElement:false,SVGForeignObjectElement:false,SVGGElement:false,SVGGeometryElement:false,SVGGradientElement:false,SVGGraphicsElement:false,SVGImageElement:false,SVGLength:false,SVGLengthList:false,SVGLinearGradientElement:false,SVGLineElement:false,SVGMarkerElement:false,SVGMaskElement:false,SVGMatrix:false,SVGMetadataElement:false,SVGMPathElement:false,SVGNumber:false,SVGNumberList:false,SVGPathElement:false,SVGPatternElement:false,SVGPoint:false,SVGPointList:false,SVGPolygonElement:false,SVGPolylineElement:false,SVGPreserveAspectRatio:false,SVGRadialGradientElement:false,SVGRect:false,SVGRectElement:false,SVGScriptElement:false,SVGSetElement:false,SVGStopElement:false,SVGStringList:false,SVGStyleElement:false,SVGSVGElement:false,SVGSwitchElement:false,SVGSymbolElement:false,SVGTextContentElement:false,SVGTextElement:false,SVGTextPathElement:false,SVGTextPositioningElement:false,SVGTitleElement:false,SVGTransform:false,SVGTransformList:false,SVGTSpanElement:false,SVGUnitTypes:false,SVGUseElement:false,SVGViewElement:false,TaskAttributionTiming:false,Text:false,TextDecoder:false,TextEncoder:false,TextEvent:false,TextMetrics:false,TextTrack:false,TextTrackCue:false,TextTrackCueList:false,TextTrackList:false,TimeRanges:false,toolbar:false,top:false,Touch:false,TouchEvent:false,TouchList:false,TrackEvent:false,TransitionEvent:false,TreeWalker:false,UIEvent:false,URL:false,URLSearchParams:false,ValidityState:false,visualViewport:false,VisualViewport:false,VTTCue:false,WaveShaperNode:false,WebAssembly:false,WebGL2RenderingContext:false,WebGLActiveInfo:false,WebGLBuffer:false,WebGLContextEvent:false,WebGLFramebuffer:false,WebGLProgram:false,WebGLQuery:false,WebGLRenderbuffer:false,WebGLRenderingContext:false,WebGLSampler:false,WebGLShader:false,WebGLShaderPrecisionFormat:false,WebGLSync:false,WebGLTexture:false,WebGLTransformFeedback:false,WebGLUniformLocation:false,WebGLVertexArrayObject:false,WebSocket:false,WheelEvent:false,window:false,Window:false,Worker:false,WritableStream:false,XMLDocument:false,XMLHttpRequest:false,XMLHttpRequestEventTarget:false,XMLHttpRequestUpload:false,XMLSerializer:false,XPathEvaluator:false,XPathExpression:false,XPathResult:false,XSLTProcessor:false},worker:{addEventListener:false,applicationCache:false,atob:false,Blob:false,BroadcastChannel:false,btoa:false,Cache:false,caches:false,clearInterval:false,clearTimeout:false,close:true,console:false,fetch:false,FileReaderSync:false,FormData:false,Headers:false,IDBCursor:false,IDBCursorWithValue:false,IDBDatabase:false,IDBFactory:false,IDBIndex:false,IDBKeyRange:false,IDBObjectStore:false,IDBOpenDBRequest:false,IDBRequest:false,IDBTransaction:false,IDBVersionChangeEvent:false,ImageData:false,importScripts:true,indexedDB:false,location:false,MessageChannel:false,MessagePort:false,name:false,navigator:false,Notification:false,onclose:true,onconnect:true,onerror:true,onlanguagechange:true,onmessage:true,onoffline:true,ononline:true,onrejectionhandled:true,onunhandledrejection:true,performance:false,Performance:false,PerformanceEntry:false,PerformanceMark:false,PerformanceMeasure:false,PerformanceNavigation:false,PerformanceResourceTiming:false,PerformanceTiming:false,postMessage:true,Promise:false,queueMicrotask:false,removeEventListener:false,Request:false,Response:false,self:true,ServiceWorkerRegistration:false,setInterval:false,setTimeout:false,TextDecoder:false,TextEncoder:false,URL:false,URLSearchParams:false,WebSocket:false,Worker:false,WorkerGlobalScope:false,XMLHttpRequest:false},node:{__dirname:false,__filename:false,Buffer:false,clearImmediate:false,clearInterval:false,clearTimeout:false,console:false,exports:true,global:false,Intl:false,module:false,process:false,queueMicrotask:false,require:false,setImmediate:false,setInterval:false,setTimeout:false,TextDecoder:false,TextEncoder:false,URL:false,URLSearchParams:false},commonjs:{exports:true,global:false,module:false,require:false},amd:{define:false,require:false},mocha:{after:false,afterEach:false,before:false,beforeEach:false,context:false,describe:false,it:false,mocha:false,run:false,setup:false,specify:false,suite:false,suiteSetup:false,suiteTeardown:false,teardown:false,test:false,xcontext:false,xdescribe:false,xit:false,xspecify:false},jasmine:{afterAll:false,afterEach:false,beforeAll:false,beforeEach:false,describe:false,expect:false,fail:false,fdescribe:false,fit:false,it:false,jasmine:false,pending:false,runs:false,spyOn:false,spyOnProperty:false,waits:false,waitsFor:false,xdescribe:false,xit:false},jest:{afterAll:false,afterEach:false,beforeAll:false,beforeEach:false,describe:false,expect:false,fdescribe:false,fit:false,it:false,jest:false,pit:false,require:false,test:false,xdescribe:false,xit:false,xtest:false},qunit:{asyncTest:false,deepEqual:false,equal:false,expect:false,module:false,notDeepEqual:false,notEqual:false,notOk:false,notPropEqual:false,notStrictEqual:false,ok:false,propEqual:false,QUnit:false,raises:false,start:false,stop:false,strictEqual:false,test:false,throws:false},phantomjs:{console:true,exports:true,phantom:true,require:true,WebPage:true},couch:{emit:false,exports:false,getRow:false,log:false,module:false,provides:false,require:false,respond:false,send:false,start:false,sum:false},rhino:{defineClass:false,deserialize:false,gc:false,help:false,importClass:false,importPackage:false,java:false,load:false,loadClass:false,Packages:false,print:false,quit:false,readFile:false,readUrl:false,runCommand:false,seal:false,serialize:false,spawn:false,sync:false,toint32:false,version:false},nashorn:{__DIR__:false,__FILE__:false,__LINE__:false,com:false,edu:false,exit:false,java:false,Java:false,javafx:false,JavaImporter:false,javax:false,JSAdapter:false,load:false,loadWithNewGlobal:false,org:false,Packages:false,print:false,quit:false},wsh:{ActiveXObject:true,Enumerator:true,GetObject:true,ScriptEngine:true,ScriptEngineBuildVersion:true,ScriptEngineMajorVersion:true,ScriptEngineMinorVersion:true,VBArray:true,WScript:true,WSH:true,XDomainRequest:true},jquery:{$:false,jQuery:false},yui:{YAHOO:false,YAHOO_config:false,YUI:false,YUI_config:false},shelljs:{cat:false,cd:false,chmod:false,config:false,cp:false,dirs:false,echo:false,env:false,error:false,exec:false,exit:false,find:false,grep:false,ln:false,ls:false,mkdir:false,mv:false,popd:false,pushd:false,pwd:false,rm:false,sed:false,set:false,target:false,tempdir:false,test:false,touch:false,which:false},prototypejs:{$:false,$$:false,$A:false,$break:false,$continue:false,$F:false,$H:false,$R:false,$w:false,Abstract:false,Ajax:false,Autocompleter:false,Builder:false,Class:false,Control:false,Draggable:false,Draggables:false,Droppables:false,Effect:false,Element:false,Enumerable:false,Event:false,Field:false,Form:false,Hash:false,Insertion:false,ObjectRange:false,PeriodicalExecuter:false,Position:false,Prototype:false,Scriptaculous:false,Selector:false,Sortable:false,SortableObserver:false,Sound:false,Template:false,Toggle:false,Try:false},meteor:{_:false,$:false,Accounts:false,AccountsClient:false,AccountsCommon:false,AccountsServer:false,App:false,Assets:false,Blaze:false,check:false,Cordova:false,DDP:false,DDPRateLimiter:false,DDPServer:false,Deps:false,EJSON:false,Email:false,HTTP:false,Log:false,Match:false,Meteor:false,Mongo:false,MongoInternals:false,Npm:false,Package:false,Plugin:false,process:false,Random:false,ReactiveDict:false,ReactiveVar:false,Router:false,ServiceConfiguration:false,Session:false,share:false,Spacebars:false,Template:false,Tinytest:false,Tracker:false,UI:false,Utils:false,WebApp:false,WebAppInternals:false},mongo:{_isWindows:false,_rand:false,BulkWriteResult:false,cat:false,cd:false,connect:false,db:false,getHostName:false,getMemInfo:false,hostname:false,ISODate:false,listFiles:false,load:false,ls:false,md5sumFile:false,mkdir:false,Mongo:false,NumberInt:false,NumberLong:false,ObjectId:false,PlanCache:false,print:false,printjson:false,pwd:false,quit:false,removeFile:false,rs:false,sh:false,UUID:false,version:false,WriteResult:false},applescript:{$:false,Application:false,Automation:false,console:false,delay:false,Library:false,ObjC:false,ObjectSpecifier:false,Path:false,Progress:false,Ref:false},serviceworker:{addEventListener:false,applicationCache:false,atob:false,Blob:false,BroadcastChannel:false,btoa:false,Cache:false,caches:false,CacheStorage:false,clearInterval:false,clearTimeout:false,Client:false,clients:false,Clients:false,close:true,console:false,ExtendableEvent:false,ExtendableMessageEvent:false,fetch:false,FetchEvent:false,FileReaderSync:false,FormData:false,Headers:false,IDBCursor:false,IDBCursorWithValue:false,IDBDatabase:false,IDBFactory:false,IDBIndex:false,IDBKeyRange:false,IDBObjectStore:false,IDBOpenDBRequest:false,IDBRequest:false,IDBTransaction:false,IDBVersionChangeEvent:false,ImageData:false,importScripts:false,indexedDB:false,location:false,MessageChannel:false,MessagePort:false,name:false,navigator:false,Notification:false,onclose:true,onconnect:true,onerror:true,onfetch:true,oninstall:true,onlanguagechange:true,onmessage:true,onmessageerror:true,onnotificationclick:true,onnotificationclose:true,onoffline:true,ononline:true,onpush:true,onpushsubscriptionchange:true,onrejectionhandled:true,onsync:true,onunhandledrejection:true,performance:false,Performance:false,PerformanceEntry:false,PerformanceMark:false,PerformanceMeasure:false,PerformanceNavigation:false,PerformanceResourceTiming:false,PerformanceTiming:false,postMessage:true,Promise:false,queueMicrotask:false,registration:false,removeEventListener:false,Request:false,Response:false,self:false,ServiceWorker:false,ServiceWorkerContainer:false,ServiceWorkerGlobalScope:false,ServiceWorkerMessageEvent:false,ServiceWorkerRegistration:false,setInterval:false,setTimeout:false,skipWaiting:false,TextDecoder:false,TextEncoder:false,URL:false,URLSearchParams:false,WebSocket:false,WindowClient:false,Worker:false,WorkerGlobalScope:false,XMLHttpRequest:false},atomtest:{advanceClock:false,fakeClearInterval:false,fakeClearTimeout:false,fakeSetInterval:false,fakeSetTimeout:false,resetTimeouts:false,waitsForPromise:false},embertest:{andThen:false,click:false,currentPath:false,currentRouteName:false,currentURL:false,fillIn:false,find:false,findAll:false,findWithAssert:false,keyEvent:false,pauseTest:false,resumeTest:false,triggerEvent:false,visit:false,wait:false},protractor:{$:false,$$:false,browser:false,by:false,By:false,DartObject:false,element:false,protractor:false},"shared-node-browser":{clearInterval:false,clearTimeout:false,console:false,setInterval:false,setTimeout:false,URL:false,URLSearchParams:false},webextensions:{browser:false,chrome:false,opr:false},greasemonkey:{cloneInto:false,createObjectIn:false,exportFunction:false,GM:false,GM_addStyle:false,GM_deleteValue:false,GM_getResourceText:false,GM_getResourceURL:false,GM_getValue:false,GM_info:false,GM_listValues:false,GM_log:false,GM_openInTab:false,GM_registerMenuCommand:false,GM_setClipboard:false,GM_setValue:false,GM_xmlhttpRequest:false,unsafeWindow:false},devtools:{$:false,$_:false,$$:false,$0:false,$1:false,$2:false,$3:false,$4:false,$x:false,chrome:false,clear:false,copy:false,debug:false,dir:false,dirxml:false,getEventListeners:false,inspect:false,keys:false,monitor:false,monitorEvents:false,profile:false,profileEnd:false,queryObjects:false,table:false,undebug:false,unmonitor:false,unmonitorEvents:false,values:false}}},5706:function(e,t,r){const n=r(5369);const i=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=i},5724:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;const n=r(5622);const i=r(5763);const a=r(9074);const s="**";const o="\\";const c=/[*?]|^!/;const u=/\[.*]/;const l=/(?:^|[^!*+?@])\(.*\|.*\)/;const p=/[!*+?@]\(.*\)/;const d=/{.*(?:,|\.\.).*}/;function isStaticPattern(e,t={}){return!isDynamicPattern(e,t)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e,t={}){if(e===""){return false}if(t.caseSensitiveMatch===false||e.includes(o)){return true}if(c.test(e)||u.test(e)||l.test(e)){return true}if(t.extglob!==false&&p.test(e)){return true}if(t.braceExpansion!==false&&d.test(e)){return true}return false}t.isDynamicPattern=isDynamicPattern;function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(e){return e.filter(e=>!isPatternRelatedToParentDirectory(e))}t.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(e){return e.filter(isPatternRelatedToParentDirectory)}t.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(e){return e.startsWith("..")||e.startsWith("./..")}t.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(e){return i(e,{flipBackslashes:false})}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.includes(s)}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+s)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){const t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(e){return e.reduce((e,t)=>{return e.concat(expandBraceExpansion(t))},[])}t.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(e){return a.braces(e,{expand:true,nodupes:true})}t.expandBraceExpansion=expandBraceExpansion;function getPatternParts(e,t){let{parts:r}=a.scan(e,Object.assign(Object.assign({},t),{parts:true}));if(r.length===0){r=[e]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}t.getPatternParts=getPatternParts;function makeRe(e,t){return a.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map(e=>makeRe(e,t))}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some(t=>t.test(e))}t.matchAny=matchAny},5731:function(e,t,r){"use strict";var n=r(9381);var i=r(6673);var a=r(2403);var s=r(891);var o=r(6438);var c=r(5390);var u=r(8938);var l=r(9594);var p=r(4439)("iterator");var d=!([].keys&&"next"in[].keys());var f="@@iterator";var m="keys";var g="values";var _=function(){return this};e.exports=function(e,t,r,h,y,v,T){c(r,t,h);var S=function(e){if(!d&&e in D)return D[e];switch(e){case m:return function keys(){return new r(this,e)};case g:return function values(){return new r(this,e)}}return function entries(){return new r(this,e)}};var b=t+" Iterator";var E=y==g;var x=false;var D=e.prototype;var C=D[p]||D[f]||y&&D[y];var A=C||S(y);var k=y?!E?A:S("entries"):undefined;var P=t=="Array"?D.entries||C:C;var N,O,F;if(P){F=l(P.call(new e));if(F!==Object.prototype&&F.next){u(F,b,true);if(!n&&typeof F[p]!="function")s(F,p,_)}}if(E&&C&&C.name!==g){x=true;A=function values(){return C.call(this)}}if((!n||T)&&(d||x||!D[p])){s(D,p,A)}o[t]=A;o[b]=_;if(y){N={values:E?A:S(g),keys:v?A:S(m),entries:k};if(T)for(O in N){if(!(O in D))a(D,O,N[O])}else i(i.P+i.F*(d||x),t,N)}return N}},5735:function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},5743:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.clearParseAndGenerateServicesCalls=t.clearProgramCache=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0;const o=s(r(4784));const c=r(1625);const u=s(r(2744));const l=s(r(6900));const p=r(5622);const d=a(r(3186));const f=r(6828);const m=r(7999);const g=r(7863);const _=r(1961);const h=r(500);const y=r(564);const v=r(4798);const T=r(9208);const S=r(4543);const b=(0,o.default)("typescript-eslint:typescript-estree:parser");const E=">=3.3.1 <4.5.0";const x=["4.4.0-beta","4.4.1-rc"];const D=d.version;const C=l.default.satisfies(D,[E].concat(x).join(" || "));let A;let k=false;const P=new Map;function clearProgramCache(){P.clear()}t.clearProgramCache=clearProgramCache;function enforceString(e){if(typeof e!=="string"){return String(e)}return e}function getProgramAndAST(e,t,r,n){return t&&(0,S.useProvidedPrograms)(t,A)||r&&(0,h.createProjectProgram)(e,n,A)||r&&n&&(0,g.createDefaultProgram)(e,A)||(0,_.createIsolatedProgram)(e,A)}function getFileName({jsx:e}={}){return e?"estree.tsx":"estree.ts"}function resetExtra(){A={code:"",comment:false,comments:[],createDefaultProgram:false,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:false,errorOnUnknownASTType:false,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:false,extraFileExtensions:[],filePath:getFileName(),jsx:false,loc:false,log:console.log,preserveNodeMaps:true,programs:null,projects:[],range:false,strict:false,tokens:null,tsconfigRootDir:process.cwd(),singleRun:false,moduleResolver:""}}function getTsconfigPath(e,t){return(0,T.getCanonicalFileName)((0,T.ensureAbsolutePath)(e,t))}function prepareAndTransformProjects(e,t){const r=[];if(typeof e==="string"){r.push(e)}else if(Array.isArray(e)){for(const t of e){if(typeof t==="string"){r.push(t)}}}if(r.length===0){return[]}const n=r.filter(e=>!(0,u.default)(e));const i=r.filter(e=>(0,u.default)(e));const a=new Set(n.concat((0,c.sync)([...i,...t],{cwd:A.tsconfigRootDir})).map(e=>getTsconfigPath(e,A)));b("parserOptions.project (excluding ignored) matched projects: %s",a);return Array.from(a)}function applyParserOptionsToExtra(e){var t;if(e.debugLevel===true){A.debugLevel=new Set(["typescript-eslint"])}else if(Array.isArray(e.debugLevel)){A.debugLevel=new Set(e.debugLevel)}if(A.debugLevel.size>0){const e=[];if(A.debugLevel.has("typescript-eslint")){e.push("typescript-eslint:*")}if(A.debugLevel.has("eslint")||o.default.enabled("eslint:*,-eslint:code-path")){e.push("eslint:*,-eslint:code-path")}o.default.enable(e.join(","))}A.range=typeof e.range==="boolean"&&e.range;A.loc=typeof e.loc==="boolean"&&e.loc;if(typeof e.tokens==="boolean"&&e.tokens){A.tokens=[]}if(typeof e.comment==="boolean"&&e.comment){A.comment=true;A.comments=[]}if(typeof e.jsx==="boolean"&&e.jsx){A.jsx=true}if(typeof e.filePath==="string"&&e.filePath!==""){A.filePath=e.filePath}else{A.filePath=getFileName(A)}if(typeof e.errorOnUnknownASTType==="boolean"&&e.errorOnUnknownASTType){A.errorOnUnknownASTType=true}if(typeof e.loggerFn==="function"){A.log=e.loggerFn}else if(e.loggerFn===false){A.log=(()=>{})}if(typeof e.tsconfigRootDir==="string"){A.tsconfigRootDir=e.tsconfigRootDir}A.filePath=(0,T.ensureAbsolutePath)(A.filePath,A);if(Array.isArray(e.programs)){if(!e.programs.length){throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`)}A.programs=e.programs;b("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!A.programs){const r=((t=e.projectFolderIgnoreList)!==null&&t!==void 0?t:["**/node_modules/**"]).reduce((e,t)=>{if(typeof t==="string"){e.push(t)}return e},[]).map(e=>e.startsWith("!")?e:`!${e}`);A.projects=prepareAndTransformProjects(e.project,r)}if(Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every(e=>typeof e==="string")){A.extraFileExtensions=e.extraFileExtensions}if(typeof e.preserveNodeMaps==="boolean"){A.preserveNodeMaps=e.preserveNodeMaps}A.createDefaultProgram=typeof e.createDefaultProgram==="boolean"&&e.createDefaultProgram;A.EXPERIMENTAL_useSourceOfProjectReferenceRedirect=typeof e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect==="boolean"&&e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect;if(typeof e.moduleResolver==="string"){A.moduleResolver=e.moduleResolver}}function warnAboutTSVersion(){var e;if(!C&&!k){const t=typeof process==="undefined"?false:(e=process.stdout)===null||e===void 0?void 0:e.isTTY;if(t){const e="=============";const t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${E}`,`YOUR TYPESCRIPT VERSION: ${D}`,"Please only submit bug reports when using the officially supported version.",e];A.log(t.join("\n\n"))}k=true}}function inferSingleRun(e){if(process.env.TSESTREE_SINGLE_RUN==="false"){A.singleRun=false;return}if(process.env.TSESTREE_SINGLE_RUN==="true"){A.singleRun=true;return}if(e===null||e===void 0?void 0:e.allowAutomaticSingleRunInference){if(process.env.CI==="true"||process.argv[1].endsWith((0,p.normalize)("node_modules/.bin/eslint"))){A.singleRun=true;return}}A.singleRun=false}function parse(e,t){const{ast:r}=parseWithNodeMapsInternal(e,t,false);return r}t.parse=parse;function parseWithNodeMapsInternal(e,t,r){resetExtra();if(t===null||t===void 0?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues){throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`)}e=enforceString(e);A.code=e;if(typeof t!=="undefined"){applyParserOptionsToExtra(t)}warnAboutTSVersion();inferSingleRun(t);const n=(0,y.createSourceFile)(e,A);const{estree:i,astMaps:a}=(0,f.astConverter)(n,A,r);return{ast:i,esTreeNodeToTSNodeMap:a.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:a.tsNodeToESTreeNodeMap}}function parseWithNodeMaps(e,t){return parseWithNodeMapsInternal(e,t,true)}t.parseWithNodeMaps=parseWithNodeMaps;let N={};function clearParseAndGenerateServicesCalls(){N={}}t.clearParseAndGenerateServicesCalls=clearParseAndGenerateServicesCalls;function parseAndGenerateServices(e,t){var r;resetExtra();e=enforceString(e);A.code=e;if(typeof t!=="undefined"){applyParserOptionsToExtra(t);if(typeof t.errorOnTypeScriptSyntacticAndSemanticIssues==="boolean"&&t.errorOnTypeScriptSyntacticAndSemanticIssues){A.errorOnTypeScriptSyntacticAndSemanticIssues=true}}warnAboutTSVersion();inferSingleRun(t);if(A.singleRun&&!A.programs&&((r=A.projects)===null||r===void 0?void 0:r.length)>0){A.programs={*[Symbol.iterator](){for(const e of A.projects){const t=P.get(e);if(t){yield t}else{b("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);const t=(0,S.createProgramFromConfigFile)(e);P.set(e,t);yield t}}}}}const n=A.programs!=null||A.projects&&A.projects.length>0;let i;let a;if(A.singleRun&&t.filePath){N[t.filePath]=(N[t.filePath]||0)+1}if(A.singleRun&&t.filePath&&N[t.filePath]>1){const t=(0,_.createIsolatedProgram)(e,A);i=t.ast;a=t.program}else{const t=getProgramAndAST(e,A.programs,n,A.createDefaultProgram);i=t.ast;a=t.program}const s=typeof A.preserveNodeMaps==="boolean"?A.preserveNodeMaps:true;const{estree:o,astMaps:c}=(0,f.astConverter)(i,A,s);if(a&&A.errorOnTypeScriptSyntacticAndSemanticIssues){const e=(0,v.getFirstSemanticOrSyntacticError)(a,i);if(e){throw(0,m.convertError)(e)}}return{ast:o,services:{hasFullTypeInformation:n,program:a,esTreeNodeToTSNodeMap:c.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:c.tsNodeToESTreeNodeMap}}}t.parseAndGenerateServices=parseAndGenerateServices},5747:function(e){e.exports=require("fs")},5753:function(e,t,r){var n=r(6062);var i=r(7818);e.exports=function(e){return n(i(e))}},5763:function(e,t,r){"use strict";var n=r(5357);var i=r(5622).posix.dirname;var a=r(2087).platform()==="win32";var s="/";var o=/\\/g;var c=/[\{\[].*[\}\]]$/;var u=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e.exports=function globParent(e,t){var r=Object.assign({flipBackslashes:true},t);if(r.flipBackslashes&&a&&e.indexOf(s)<0){e=e.replace(o,s)}if(c.test(e)){e+=s}e+="a";do{e=i(e)}while(n(e)||u.test(e));return e.replace(l,"$1")}},5766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.program=t.expression=t.statement=t.statements=t.smart=void 0;var n=r(9978);const{assertExpressionStatement:i}=n;function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>{return e(t.program.body.slice(1))}}}const a=makeStatementFormatter(e=>{if(e.length>1){return e}else{return e[0]}});t.smart=a;const s=makeStatementFormatter(e=>e);t.statements=s;const o=makeStatementFormatter(e=>{if(e.length===0){throw new Error("Found nothing to return.")}if(e.length>1){throw new Error("Found multiple statements but wanted one")}return e[0]});t.statement=o;const c={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1){throw new Error("Found multiple statements but wanted one")}if(c.unwrap(e).start===0){throw new Error("Parse result included parens.")}},unwrap:({program:e})=>{const[t]=e.body;i(t);return t.expression}};t.expression=c;const u={code:e=>e,validate:()=>{},unwrap:e=>e.program};t.program=u},5767:function(e,t,r){var n=r(6272),i=r(5338),a=r(2663),s=r(1971);var o=Object.prototype;var c=o.hasOwnProperty;var u=n(function(e,t){e=Object(e);var r=-1;var n=t.length;var u=n>2?t[2]:undefined;if(u&&a(t[0],t[1],u)){n=1}while(++r{callFailureCallback(e,t)});this._reader.onEntry(e=>{this._storage.push(e)});this._reader.onEnd(()=>{callSuccessCallback(e,this._storage)});this._reader.read()}}t.default=AsyncProvider;function callFailureCallback(e,t){e(t)}function callSuccessCallback(e,t){e(null,t)}},5772:function(e,t,r){var n=r(5382);function baseAssignValue(e,t,r){if(t=="__proto__"&&n){n(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=baseAssignValue},5776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=cloneDeep;var n=r(1533);function cloneDeep(e){return(0,n.default)(e)}},5782:function(e,t,r){var n=r(562);var i=/^\s+/;function baseTrim(e){return e?e.slice(0,n(e)+1).replace(i,""):e}e.exports=baseTrim},5810:function(e,t,r){"use strict";var n=r(2431);var i=new RegExp(n().source);e.exports=i.test.bind(i)},5812:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=inherits;var n=r(9068);var i=r(1108);function inherits(e,t){if(!e||!t)return e;for(const r of n.INHERIT_KEYS.optional){if(e[r]==null){e[r]=t[r]}}for(const r of Object.keys(t)){if(r[0]==="_"&&r!=="__clone")e[r]=t[r]}for(const r of n.INHERIT_KEYS.force){e[r]=t[r]}(0,i.default)(e,t);return e}},5817:function(e){e.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}},5849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. "+"Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. "+"Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using "+"or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. "+"Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. "+"Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the "+"tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling "+"that calls Babel to assign `map.file` themselves."}};t.default=r},5852:function(e,t,r){"use strict";t.__esModule=true;t.visitors=t.Hub=t.Scope=t.NodePath=undefined;var n=r(2979);var i=_interopRequireDefault(n);var a=r(4644);Object.defineProperty(t,"NodePath",{enumerable:true,get:function get(){return _interopRequireDefault(a).default}});var s=r(55);Object.defineProperty(t,"Scope",{enumerable:true,get:function get(){return _interopRequireDefault(s).default}});var o=r(3204);Object.defineProperty(t,"Hub",{enumerable:true,get:function get(){return _interopRequireDefault(o).default}});t.default=traverse;var c=r(8234);var u=_interopRequireDefault(c);var l=r(8376);var p=_interopRequireWildcard(l);var d=r(8243);var f=_interopRequireWildcard(d);var m=r(2973);var g=_interopRequireDefault(m);var _=r(8011);var h=_interopRequireWildcard(_);var y=r(6450);var v=_interopRequireWildcard(y);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.visitors=p;function traverse(e,t,r,n,i){if(!e)return;if(!t)t={};if(!t.noScope&&!r){if(e.type!=="Program"&&e.type!=="File"){throw new Error(f.get("traverseNeedsParent",e.type))}}p.explode(t);traverse.node(e,t,r,n,i)}traverse.visitors=p;traverse.verify=p.verify;traverse.explode=p.explode;traverse.NodePath=r(4644);traverse.Scope=r(55);traverse.Hub=r(3204);traverse.cheap=function(e,t){return h.traverseFast(e,t)};traverse.node=function(e,t,r,n,a,s){var o=h.VISITOR_KEYS[e.type];if(!o)return;var c=new u.default(r,t,n,a);for(var l=o,p=Array.isArray(l),d=0,l=p?l:(0,i.default)(l);;){var f;if(p){if(d>=l.length)break;f=l[d++]}else{d=l.next();if(d.done)break;f=d.value}var m=f;if(s&&s[m])continue;if(c.visit(e,m))return}};traverse.clearNode=function(e,t){h.removeProperties(e,t);v.path.delete(e)};traverse.removeProperties=function(e,t){h.traverseFast(e,traverse.clearNode,t);return e};function hasBlacklistedType(e,t){if(e.node.type===t.type){t.has=true;e.stop()}}traverse.hasType=function(e,t,r,n){if((0,g.default)(n,e.type))return false;if(e.type===r)return true;var i={has:false,type:r};traverse(e,{blacklist:n,enter:hasBlacklistedType},t,i);return i.has};traverse.clearCache=function(){v.clear()};traverse.clearCache.clearPath=v.clearPath;traverse.clearCache.clearScope=v.clearScope;traverse.copyCache=function(e,t){if(v.path.has(e)){v.path.set(t,v.path.get(e))}}},5861:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.replaceWithMultiple=replaceWithMultiple;t.replaceWithSourceString=replaceWithSourceString;t.replaceWith=replaceWith;t._replaceWith=_replaceWith;t.replaceExpressionWithStatements=replaceExpressionWithStatements;t.replaceInline=replaceInline;var n=r(8801);var i=r(5167);var a=r(7774);var s=r(2715);var o=r(2603);var c=r(9978);var u=r(4338);const{FUNCTION_TYPES:l,arrowFunctionExpression:p,assignmentExpression:d,awaitExpression:f,blockStatement:m,callExpression:g,cloneNode:_,expressionStatement:h,identifier:y,inheritLeadingComments:v,inheritTrailingComments:T,inheritsComments:S,isExpression:b,isProgram:E,isStatement:x,removeComments:D,returnStatement:C,toSequenceExpression:A,validate:k,yieldExpression:P}=c;function replaceWithMultiple(e){var t;this.resync();e=this._verifyNodeList(e);v(e[0],this.node);T(e[e.length-1],this.node);(t=s.path.get(this.parent))==null?void 0:t.delete(this.node);this.node=this.container[this.key]=null;const r=this.insertAfter(e);if(this.node){this.requeue()}else{this.remove()}return r}function replaceWithSourceString(e){this.resync();try{e=`(${e})`;e=(0,o.parse)(e)}catch(t){const r=t.loc;if(r){t.message+=" - make sure this is an expression.\n"+(0,n.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}});t.code="BABEL_REPLACE_SOURCE_ERROR"}throw t}e=e.program.body[0].expression;i.default.removeProperties(e);return this.replaceWith(e)}function replaceWith(e){this.resync();if(this.removed){throw new Error("You can't replace this node, we've already removed it")}if(e instanceof a.default){e=e.node}if(!e){throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead")}if(this.node===e){return[this]}if(this.isProgram()&&!E(e)){throw new Error("You can only replace a Program root node with another Program node")}if(Array.isArray(e)){throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`")}if(typeof e==="string"){throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`")}let t="";if(this.isNodeType("Statement")&&b(e)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e)&&!this.parentPath.isExportDefaultDeclaration()){e=h(e);t="expression"}}if(this.isNodeType("Expression")&&x(e)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(e)){return this.replaceExpressionWithStatements([e])}}const r=this.node;if(r){S(e,r);D(r)}this._replaceWith(e);this.type=e.type;this.setScope();this.requeue();return[t?this.get(t):this]}function _replaceWith(e){var t;if(!this.container){throw new ReferenceError("Container is falsy")}if(this.inList){k(this.parent,this.key,[e])}else{k(this.parent,this.key,e)}this.debug(`Replace with ${e==null?void 0:e.type}`);(t=s.path.get(this.parent))==null?void 0:t.set(e,this).delete(this.node);this.node=this.container[this.key]=e}function replaceExpressionWithStatements(e){this.resync();const t=A(e,this.scope);if(t){return this.replaceWith(t)[0].get("expressions")}const r=this.getFunctionParent();const n=r==null?void 0:r.is("async");const a=r==null?void 0:r.is("generator");const s=p([],m(e));this.replaceWith(g(s,[]));const o=this.get("callee");(0,u.default)(o.get("body"),e=>{this.scope.push({id:e})},"var");const c=this.get("callee").getCompletionRecords();for(const e of c){if(!e.isExpressionStatement())continue;const t=e.findParent(e=>e.isLoop());if(t){let r=t.getData("expressionReplacementReturnUid");if(!r){r=o.scope.generateDeclaredUidIdentifier("ret");o.get("body").pushContainer("body",C(_(r)));t.setData("expressionReplacementReturnUid",r)}else{r=y(r.name)}e.get("expression").replaceWith(d("=",_(r),e.node.expression))}else{e.replaceWith(C(e.node.expression))}}o.arrowFunctionToExpression();const h=o;const v=n&&i.default.hasType(this.get("callee.body").node,"AwaitExpression",l);const T=a&&i.default.hasType(this.get("callee.body").node,"YieldExpression",l);if(v){h.set("async",true);if(!T){this.replaceWith(f(this.node))}}if(T){h.set("generator",true);this.replaceWith(P(this.node,true))}return h.get("body.body")}function replaceInline(e){this.resync();if(Array.isArray(e)){if(Array.isArray(this.container)){e=this._verifyNodeList(e);const t=this._containerInsertAfter(e);this.remove();return t}else{return this.replaceWithMultiple(e)}}else{return this.replaceWith(e)}}},5866:function(e){e.exports=removeHook;function removeHook(e,t,r){if(!e.registry[t]){return}var n=e.registry[t].map(function(e){return e.orig}).indexOf(r);if(n===-1){return}e.registry[t].splice(n,1)}},5891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Identifier=Identifier;t.ArgumentPlaceholder=ArgumentPlaceholder;t.SpreadElement=t.RestElement=RestElement;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.RecordExpression=RecordExpression;t.TupleExpression=TupleExpression;t.RegExpLiteral=RegExpLiteral;t.BooleanLiteral=BooleanLiteral;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.StringLiteral=StringLiteral;t.BigIntLiteral=BigIntLiteral;t.DecimalLiteral=DecimalLiteral;t.TopicReference=TopicReference;t.PipelineTopicExpression=PipelineTopicExpression;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;var n=r(9978);var i=r(5904);const{isAssignmentPattern:a,isIdentifier:s}=n;function Identifier(e){this.exactSource(e.loc,()=>{this.word(e.name)})}function ArgumentPlaceholder(){this.token("?")}function RestElement(e){this.token("...");this.print(e.argument,e)}function ObjectExpression(e){const t=e.properties;this.token("{");this.printInnerComments(e);if(t.length){this.space();this.printList(t,e,{indent:true,statement:true});this.space()}this.token("}")}function ObjectMethod(e){this.printJoin(e.decorators,e);this._methodHead(e);this.space();this.print(e.body,e)}function ObjectProperty(e){this.printJoin(e.decorators,e);if(e.computed){this.token("[");this.print(e.key,e);this.token("]")}else{if(a(e.value)&&s(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}this.print(e.key,e);if(e.shorthand&&s(e.key)&&s(e.value)&&e.key.name===e.value.name){return}}this.token(":");this.space();this.print(e.value,e)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.token("[");this.printInnerComments(e);for(let n=0;n0)this.space();this.print(i,e);if(n0)this.space();this.print(i,e);if(n{for(const n in e){if(r.call(e,n)){t(n,e[n])}}};const i=(e,t)=>{if(!t){return e}n(t,(t,r)=>{e[t]=r});return e};const a=(e,t)=>{const r=e.length;let n=-1;while(++n{return s.call(e)=="[object Object]"};const l=e=>{return typeof e=="string"||s.call(e)=="[object String]"};const p=e=>{return typeof e=="number"||s.call(e)=="[object Number]"};const d=e=>{return typeof e=="function"};const f=e=>{return s.call(e)=="[object Map]"};const m=e=>{return s.call(e)=="[object Set]"};const g={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const _=/["'\\\b\f\n\r\t]/;const h=/[0-9]/;const y=/[ !#-&\(-\[\]-_a-~]/;const v=(e,t)=>{const r=()=>{D=x;++t.indentLevel;x=t.indent.repeat(t.indentLevel)};const s={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const T=t&&t.json;if(T){s.quotes="double";s.wrap=true}t=i(s,t);if(t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"){t.quotes="single"}const S=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'";const b=t.compact;const E=t.lowercaseHex;let x=t.indent.repeat(t.indentLevel);let D="";const C=t.__inline1__;const A=t.__inline2__;const k=b?"":"\n";let P;let N=true;const O=t.numbers=="binary";const F=t.numbers=="octal";const w=t.numbers=="decimal";const I=t.numbers=="hexadecimal";if(T&&e&&d(e.toJSON)){e=e.toJSON()}if(!l(e)){if(f(e)){if(e.size==0){return"new Map()"}if(!b){t.__inline1__=true;t.__inline2__=false}return"new Map("+v(Array.from(e),t)+")"}if(m(e)){if(e.size==0){return"new Set()"}return"new Set("+v(Array.from(e),t)+")"}if(c(e)){if(e.length==0){return"Buffer.from([])"}return"Buffer.from("+v(Array.from(e),t)+")"}if(o(e)){P=[];t.wrap=true;if(C){t.__inline1__=false;t.__inline2__=true}if(!A){r()}a(e,e=>{N=false;if(A){t.__inline2__=false}P.push((b||A?"":x)+v(e,t))});if(N){return"[]"}if(A){return"["+P.join(", ")+"]"}return"["+k+P.join(","+k)+k+(b?"":D)+"]"}else if(p(e)){if(T){return JSON.stringify(e)}if(w){return String(e)}if(I){let t=e.toString(16);if(!E){t=t.toUpperCase()}return"0x"+t}if(O){return"0b"+e.toString(2)}if(F){return"0o"+e.toString(8)}}else if(!u(e)){if(T){return JSON.stringify(e)||"null"}return String(e)}else{P=[];t.wrap=true;r();n(e,(e,r)=>{N=false;P.push((b?"":x)+v(e,t)+":"+(b?"":" ")+v(r,t))});if(N){return"{}"}return"{"+k+P.join(","+k)+k+(b?"":D)+"}"}}const L=e;let M=-1;const R=L.length;P="";while(++M=55296&&e<=56319&&R>M+1){const t=L.charCodeAt(M+1);if(t>=56320&&t<=57343){const r=(e-55296)*1024+t-56320+65536;let n=r.toString(16);if(!E){n=n.toUpperCase()}P+="\\u{"+n+"}";++M;continue}}}if(!t.escapeEverything){if(y.test(e)){P+=e;continue}if(e=='"'){P+=S==e?'\\"':e;continue}if(e=="`"){P+=S==e?"\\`":e;continue}if(e=="'"){P+=S==e?"\\'":e;continue}}if(e=="\0"&&!T&&!h.test(L.charAt(M+1))){P+="\\0";continue}if(_.test(e)){P+=g[e];continue}const r=e.charCodeAt(0);if(t.minimal&&r!=8232&&r!=8233){P+=e;continue}let n=r.toString(16);if(!E){n=n.toUpperCase()}const i=n.length>2||T;const a="\\"+(i?"u":"x")+("0000"+n).slice(i?-4:-2);P+=a;continue}if(t.wrap){P=S+P+S}if(S=="`"){P=P.replace(/\$\{/g,"\\${")}if(t.isScriptContext){return P.replace(/<\/(script|style)/gi,"<\\/$1").replace(/